fusesocotb
fusesocotb copied to clipboard
Example has errors
INFO: Preparing ::vlog_tb_utils:1.1-r1
INFO: Preparing ::axis_send_packet:0
iverilog -saxis_send_packet -svlog_tb_utils -c axis_send_packet_0.scr -o axis_send_packet_0
:0: error: parameter `DW` not found in `vlog_tb_utils`.
:0: error: parameter `MSG_LEN` not found in `vlog_tb_utils`.
:0: error: parameter `MSG_STR` not found in `vlog_tb_utils`.
4 error(s) during elaboration.
make: *** [Makefile:8: axis_send_packet_0] Error 4
I see. With my version of icarus, these are only warnings. What version of Icarus are you using? Perhaps we can add some flag to downgrade this to a warning. That would be my preferred solution in the short term.
I am using the toolchain packaged in OSS CAD Suite: https://github.com/YosysHQ/oss-cad-suite-build
iverilog -v returns Icarus Verilog version 13.0 (devel) (s20221226-397-gb1e602d27)
What version are you using?
Looks like this commit changed the warning to an error and there doesn't seem to be a way to turn it off.
As a quick workaround you can change toplevel : [axis_send_packet, vlog_tb_utils] to toplevel : [axis_send_packet] in axis_send_packet.core but then you also lose the VCD generation. Let me look into a better way to fix this long-term.
I can confirm that removing the vlog_tb_utils top level does allow the cocotb test to execute successfully.
Thanks. That's good to know. I also filed a FuseSoC bug to fix this long-term https://github.com/olofk/fusesoc/issues/667
I fixed this in another way and believe we can close this now.