Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make ICESTICK fail with latest oss-cad-suite for macOS 12 #125

Open
daveti opened this issue Dec 27, 2024 · 1 comment
Open

Make ICESTICK fail with latest oss-cad-suite for macOS 12 #125

daveti opened this issue Dec 27, 2024 · 1 comment

Comments

@daveti
Copy link

daveti commented Dec 27, 2024

⦗OSS CAD Suite⦘ Mac-Pro:FemtoRV daveti$ make ICESTICK
BOARD=icestick TOOLS/make_config.sh -DICE_STICK
./PROCESSOR/femtorv32_quark.v:63: error: Unable to bind wire/reg/memory instr['sd11:'sd7]' in FemtoRV32'
./PROCESSOR/femtorv32_quark.v:198: : A symbol with that name was declared here. Check for declaration after use.
./PROCESSOR/femtorv32_quark.v:63: error: Unable to elaborate r-value: instr['sd11:'sd7]
./PROCESSOR/femtorv32_quark.v:68: error: Unable to bind wire/reg/memory instr['sd14:'sd12]' in FemtoRV32'
./PROCESSOR/femtorv32_quark.v:198: : A symbol with that name was declared here. Check for declaration after use.
./PROCESSOR/femtorv32_quark.v:68: error: Unable to elaborate r-value: (8'd1)<<(instr['sd14:'sd12])
./PROCESSOR/femtorv32_quark.v:71: error: Unable to bind wire/reg/memory instr['sd31]' in FemtoRV32'
./PROCESSOR/femtorv32_quark.v:198: : A symbol with that name was declared here. Check for declaration after use.
./PROCESSOR/femtorv32_quark.v:71: error: Unable to bind wire/reg/memory instr['sd30:'sd12]' in FemtoRV32'
./PROCESSOR/femtorv32_quark.v:198: : A symbol with that name was declared here. Check for declaration after use.
./PROCESSOR/femtorv32_quark.v:72: error: Unable to bind wire/reg/memory instr['sd31]' in FemtoRV32'
./PROCESSOR/femtorv32_quark.v:198: : A symbol with that name was declared here. Check for declaration after use.
./PROCESSOR/femtorv32_quark.v:72: error: Concatenation/replication may not have zero width in this context.
./PROCESSOR/femtorv32_quark.v:72: error: Unable to bind wire/reg/memory instr['sd30:'sd20]' in FemtoRV32'
./PROCESSOR/femtorv32_quark.v:198: : A symbol with that name was declared here. Check for declaration after use.
./PROCESSOR/femtorv32_quark.v:72: error: Concatenation/replication may not have zero width in this context.
./PROCESSOR/femtorv32_quark.v:72: error: Unable to elaborate r-value: {{'sd21{instr['sd31]}}, instr['sd30:'sd20]}
./PROCESSOR/femtorv32_quark.v:74: error: Unable to bind wire/reg/memory instr['sd31]' in FemtoRV32'
./PROCESSOR/femtorv32_quark.v:198: : A symbol with that name was declared here. Check for declaration after use.
./PROCESSOR/femtorv32_quark.v:74: error: Concatenation/replication may not have zero width in this context.
./PROCESSOR/femtorv32_quark.v:74: error: Unable to bind wire/reg/memory instr['sd30:'sd25]' in FemtoRV32'
./PROCESSOR/femtorv32_quark.v:198: : A symbol with that name was declared here. Check for declaration after use.
./PROCESSOR/femtorv32_quark.v:74: error: Unable to bind wire/reg/memory instr['sd11:'sd7]' in FemtoRV32'
./PROCESSOR/femtorv32_quark.v:198: : A symbol with that name was declared here. Check for declaration after use.
./PROCESSOR/femtorv32_quark.v:74: error: Concatenation/replication may not have zero width in this context.
./PROCESSOR/femtorv32_quark.v:74: error: Unable to elaborate r-value: {{'sd21{instr['sd31]}}, instr['sd30:'sd25], instr['sd11:'sd7]}
./PROCESSOR/femtorv32_quark.v:75: error: Unable to bind wire/reg/memory instr['sd31]' in FemtoRV32'
./PROCESSOR/femtorv32_quark.v:198: : A symbol with that name was declared here. Check for declaration after use.
./PROCESSOR/femtorv32_quark.v:75: error: Concatenation/replication may not have zero width in this context.
./PROCESSOR/femtorv32_quark.v:75: error: Unable to bind wire/reg/memory instr['sd7]' in FemtoRV32'
./PROCESSOR/femtorv32_quark.v:198: : A symbol with that name was declared here. Check for declaration after use.
./PROCESSOR/femtorv32_quark.v:75: error: Unable to bind wire/reg/memory instr['sd30:'sd25]' in FemtoRV32'
./PROCESSOR/femtorv32_quark.v:198: : A symbol with that name was declared here. Check for declaration after use.
./PROCESSOR/femtorv32_quark.v:75: error: Unable to bind wire/reg/memory instr['sd11:'sd8]' in FemtoRV32'
./PROCESSOR/femtorv32_quark.v:198: : A symbol with that name was declared here. Check for declaration after use.
./PROCESSOR/femtorv32_quark.v:76: error: Unable to bind wire/reg/memory instr['sd31]' in FemtoRV32'
./PROCESSOR/femtorv32_quark.v:198: : A symbol with that name was declared here. Check for declaration after use.
./PROCESSOR/femtorv32_quark.v:76: error: Concatenation/replication may not have zero width in this context.
./PROCESSOR/femtorv32_quark.v:76: error: Unable to bind wire/reg/memory instr['sd19:'sd12]' in FemtoRV32'
./PROCESSOR/femtorv32_quark.v:198: : A symbol with that name was declared here. Check for declaration after use.
./PROCESSOR/femtorv32_quark.v:76: error: Unable to bind wire/reg/memory instr['sd20]' in FemtoRV32'
./PROCESSOR/femtorv32_quark.v:198: : A symbol with that name was declared here. Check for declaration after use.
./PROCESSOR/femtorv32_quark.v:76: error: Unable to bind wire/reg/memory instr['sd30:'sd21]' in FemtoRV32'
./PROCESSOR/femtorv32_quark.v:198: : A symbol with that name was declared here. Check for declaration after use.
./PROCESSOR/femtorv32_quark.v:80: error: Unable to bind wire/reg/memory instr['sd6:'sd2]' in FemtoRV32'
./PROCESSOR/femtorv32_quark.v:198: : A symbol with that name was declared here. Check for declaration after use.
./PROCESSOR/femtorv32_quark.v:80: error: Unable to elaborate r-value: (instr['sd6:'sd2])==(5'd0)
./PROCESSOR/femtorv32_quark.v:81: error: Unable to bind wire/reg/memory instr['sd6:'sd2]' in FemtoRV32'
./PROCESSOR/femtorv32_quark.v:198: : A symbol with that name was declared here. Check for declaration after use.
./PROCESSOR/femtorv32_quark.v:81: error: Unable to elaborate r-value: (instr['sd6:'sd2])==(5'd4)
./PROCESSOR/femtorv32_quark.v:82: error: Unable to bind wire/reg/memory instr['sd6:'sd2]' in FemtoRV32'
./PROCESSOR/femtorv32_quark.v:198: : A symbol with that name was declared here. Check for declaration after use.
./PROCESSOR/femtorv32_quark.v:82: error: Unable to elaborate r-value: (instr['sd6:'sd2])==(5'd8)
./PROCESSOR/femtorv32_quark.v:83: error: Unable to bind wire/reg/memory instr['sd6:'sd2]' in FemtoRV32'
./PROCESSOR/femtorv32_quark.v:198: : A symbol with that name was declared here. Check for declaration after use.
./PROCESSOR/femtorv32_quark.v:83: error: Unable to elaborate r-value: (instr['sd6:'sd2])==(5'd12)
./PROCESSOR/femtorv32_quark.v:84: error: Unable to bind wire/reg/memory instr['sd6:'sd2]' in FemtoRV32'
./PROCESSOR/femtorv32_quark.v:198: : A symbol with that name was declared here. Check for declaration after use.
./PROCESSOR/femtorv32_quark.v:84: error: Unable to elaborate r-value: (instr['sd6:'sd2])==(5'd28)
./PROCESSOR/femtorv32_quark.v:85: error: Unable to bind wire/reg/memory instr['sd3]' in FemtoRV32'
./PROCESSOR/femtorv32_quark.v:198: : A symbol with that name was declared here. Check for declaration after use.
./PROCESSOR/femtorv32_quark.v:85: error: Unable to elaborate r-value: instr['sd3]
./PROCESSOR/femtorv32_quark.v:86: error: Unable to bind wire/reg/memory instr['sd6:'sd2]' in FemtoRV32'
./PROCESSOR/femtorv32_quark.v:198: : A symbol with that name was declared here. Check for declaration after use.
./PROCESSOR/femtorv32_quark.v:86: error: Unable to elaborate r-value: (instr['sd6:'sd2])==(5'd25)
./PROCESSOR/femtorv32_quark.v:87: error: Unable to bind wire/reg/memory instr['sd6:'sd2]' in FemtoRV32'
./PROCESSOR/femtorv32_quark.v:198: : A symbol with that name was declared here. Check for declaration after use.
./PROCESSOR/femtorv32_quark.v:87: error: Unable to elaborate r-value: (instr['sd6:'sd2])==(5'd13)
./PROCESSOR/femtorv32_quark.v:88: error: Unable to bind wire/reg/memory instr['sd6:'sd2]' in FemtoRV32'
./PROCESSOR/femtorv32_quark.v:198: : A symbol with that name was declared here. Check for declaration after use.
./PROCESSOR/femtorv32_quark.v:88: error: Unable to elaborate r-value: (instr['sd6:'sd2])==(5'd5)
./PROCESSOR/femtorv32_quark.v:89: error: Unable to bind wire/reg/memory instr['sd6:'sd2]' in FemtoRV32'
./PROCESSOR/femtorv32_quark.v:198: : A symbol with that name was declared here. Check for declaration after use.
./PROCESSOR/femtorv32_quark.v:89: error: Unable to elaborate r-value: (instr['sd6:'sd2])==(5'd24)
./PROCESSOR/femtorv32_quark.v:144: error: Unable to bind wire/reg/memory instr['sd30]' in FemtoRV32'
./PROCESSOR/femtorv32_quark.v:198: : A symbol with that name was declared here. Check for declaration after use.
./PROCESSOR/femtorv32_quark.v:144: error: Unable to bind wire/reg/memory instr['sd5]' in FemtoRV32'
./PROCESSOR/femtorv32_quark.v:198: : A symbol with that name was declared here. Check for declaration after use.
./PROCESSOR/femtorv32_quark.v:150: error: Unable to bind wire/reg/memory funct3IsShift' in FemtoRV32'
./PROCESSOR/femtorv32_quark.v:152: : A symbol with that name was declared here. Check for declaration after use.
./PROCESSOR/femtorv32_quark.v:143: error: Unable to elaborate r-value: (((((((funct3Is['sd0])?(((instr['sd30])&(instr['sd5]))?(aluMinus['sd31:'sd0]):(aluPlus)):(32'b00000000000000000000000000000000))|((funct3Is['sd2])?({31'd0, LT}):(32'b00000000000000000000000000000000)))|((funct3Is['sd3])?({31'd0, LTU}):(32'b00000000000000000000000000000000)))|((funct3Is['sd4])?((aluIn1)^(aluIn2)):(32'b00000000000000000000000000000000)))|((funct3Is['sd6])?((aluIn1)|(aluIn2)):(32'b00000000000000000000000000000000)))|((funct3Is['sd7])?((aluIn1)&(aluIn2)):(32'b00000000000000000000000000000000)))|((funct3IsShift)?(aluReg):(32'b00000000000000000000000000000000))
./PROCESSOR/femtorv32_quark.v:219: error: Unable to bind wire/reg/memory state[WAIT_INSTR_bit]' in FemtoRV32'
./PROCESSOR/femtorv32_quark.v:308: : A symbol with that name was declared here. Check for declaration after use.
./PROCESSOR/femtorv32_quark.v:219: error: Unable to bind wire/reg/memory state[FETCH_INSTR_bit]' in FemtoRV32'
./PROCESSOR/femtorv32_quark.v:308: : A symbol with that name was declared here. Check for declaration after use.
./PROCESSOR/femtorv32_quark.v:219: error: Unable to elaborate r-value: ((state[WAIT_INSTR_bit])|(state[FETCH_INSTR_bit]))?(PC):(loadstore_addr)
./PROCESSOR/femtorv32_quark.v:227: error: Unable to bind wire/reg/memory cycles' in FemtoRV32'
./PROCESSOR/femtorv32_quark.v:377: : A symbol with that name was declared here. Check for declaration after use.
./PROCESSOR/femtorv32_quark.v:232: error: Unable to bind wire/reg/memory LOAD_data' in FemtoRV32'
./PROCESSOR/femtorv32_quark.v:256: : A symbol with that name was declared here. Check for declaration after use.
./PROCESSOR/femtorv32_quark.v:226: error: Unable to elaborate r-value: ((((((isSYSTEM)?(cycles):(32'b00000000000000000000000000000000))|((isLUI)?(Uimm):(32'b00000000000000000000000000000000)))|((isALU)?(aluOut):(32'b00000000000000000000000000000000)))|((isAUIPC)?(PCplusImm):(32'b00000000000000000000000000000000)))|(((isJALR)|(isJAL))?(PCplus4):(32'b00000000000000000000000000000000)))|((isLoad)?(LOAD_data):(32'b00000000000000000000000000000000))
./PROCESSOR/femtorv32_quark.v:254: error: Unable to bind wire/reg/memory LOAD_byte['sd7]' in FemtoRV32'
./PROCESSOR/femtorv32_quark.v:264: : A symbol with that name was declared here. Check for declaration after use.
./PROCESSOR/femtorv32_quark.v:253: error: Unable to elaborate r-value: (!(instr['sd14]))&((mem_byteAccess)?(LOAD_byte['sd7]):(LOAD_halfword['sd15]))
./PROCESSOR/femtorv32_quark.v:257: error: Unable to bind wire/reg/memory LOAD_byte' in FemtoRV32'
./PROCESSOR/femtorv32_quark.v:264: : A symbol with that name was declared here. Check for declaration after use.
./PROCESSOR/femtorv32_quark.v:258: error: Unable to bind wire/reg/memory LOAD_halfword' in FemtoRV32'
./PROCESSOR/femtorv32_quark.v:261: : A symbol with that name was declared here. Check for declaration after use.
./PROCESSOR/femtorv32_quark.v:104: error: Unable to bind wire/reg/memory writeBack' in FemtoRV32'
./PROCESSOR/femtorv32_quark.v:314: : A symbol with that name was declared here. Check for declaration after use.
./PROCESSOR/femtorv32_quark.v:104: error: Unable to elaborate condition expression.
./PROCESSOR/femtorv32_quark.v:166: error: Unable to bind wire/reg/memory instr['sd30]' in FemtoRV32'
./PROCESSOR/femtorv32_quark.v:198: : A symbol with that name was declared here. Check for declaration after use.
./PROCESSOR/femtorv32_quark.v:166: error: Concatenation/replication may not have zero width in this context.
./PROCESSOR/femtorv32_quark.v:177: error: Unable to bind wire/reg/memory instr['sd30]' in FemtoRV32'
./PROCESSOR/femtorv32_quark.v:198: : A symbol with that name was declared here. Check for declaration after use.
Elaboration failed
tmp.vvp: Unable to open input file.
BOARD=icestick
(cd FIRMWARE; make libs)
(cd LIBFEMTOGL; make clean all) # Compile graphic library
Configuring for Mac
rm -f *.o *.elf *.hex *.exe *~ *.a *.bin *.list
/Volumes/git2/learn-fpga/FemtoRV/FIRMWARE//TOOLCHAIN/xpack-riscv-none-embed-gcc-10.1.0-1.1-darwin-x64/bin/riscv-none-embed-as -march= -mabi= -I/Volumes/git2/learn-fpga/FemtoRV/FIRMWARE//LIBFEMTOGL -I/Volumes/git2/learn-fpga/FemtoRV/FIRMWARE//LIBFEMTORV32 -I/Volumes/git2/learn-fpga/FemtoRV/FIRMWARE//LIBFEMTOC font_8x16.S -o font_8x16.o
Assembler messages:
Error: unrecognized option -%
make[2]: *** [font_8x16.o] Error 1
make[1]: *** [libs] Error 2
make: *** [ICESTICK.firmware_config] Error 2
⦗OSS CAD Suite⦘ Mac-Pro:FemtoRV daveti$

@miguemoya
Copy link

Hello, this error also occurs on linux and in more files in the tutorial TUTORIALS/FROM_BLINKER_TO_RISCV/

You have to define wires and reg before you use.

You can see the changes at master...miguemoya:learn-fpga:master

But I can't get it to work when launching ./run_verilator.sh step18.v, the error messages are:

g++    ../../../FIRMWARE/LIBFEMTORV32/femto_elf.o sim_main.o verilated.o verilated_threads.o VSOC__ALL.a    -pthread -lpthread -latomic   -o VSOC
/usr/bin/ld: ../../../FIRMWARE/LIBFEMTORV32/femto_elf.o: relocations in generic ELF (EM: 243)
/usr/bin/ld: ../../../FIRMWARE/LIBFEMTORV32/femto_elf.o: error al añadir símbolos: file in wrong format
collect2: error: ld returned 1 exit status
make: *** [VSOC.mk:72: VSOC] Error 1
rm VSOC__ALL.verilator_deplist.tmp

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants