Nuand / bladeRF

bladeRF USB 3.0 Superspeed Software Defined Radio Source Code
http://nuand.com
Other
1.11k stars 452 forks source link

[hdl] Issue with modelsim scripts #802

Closed Max-Manning closed 3 years ago

Max-Manning commented 3 years ago

I am trying to use modelsim to simulate the bladerf-micro platform on Windows. In ModelSim, I navigate to bladeRF/hdl/fpga/platforms/bladerf-micro/modelsim/ and execute do compile.do. I get the following error:

# -- Compiling architecture arch of sample_stream_tb
# ** Error: (vcom-11) Could not find work.tx.
# ** Error (suppressible): ../../../ip/nuand/./simulation/sample_stream_tb.vhd(207): (vcom-1195) Cannot find expanded name "work.tx".
# ** Error: ../../../ip/nuand/./simulation/sample_stream_tb.vhd(207): Unknown expanded name.
# ** Error: (vcom-11) Could not find work.rx.
# ** Error (suppressible): ../../../ip/nuand/./simulation/sample_stream_tb.vhd(257): (vcom-1195) Cannot find expanded name "work.rx".
# ** Error: ../../../ip/nuand/./simulation/sample_stream_tb.vhd(257): Unknown expanded name.
# ** Error: ../../../ip/nuand/./simulation/sample_stream_tb.vhd(455): VHDL Compiler exiting

This appears to be because sample_stream_tb.vhd is being compiled before rx.vhd and tx.vhd. I've tried editing compile.do so that rx.vhd and tx.vhd are compiled first, but this doesn't work.

I'm happy to explore the source of this issue in more detail, but if anyone can replicate the bug and/or offer suggestions it would be helpful. Thanks!

rghilduta commented 3 years ago

compile.do has been updated. Please update 2020.12 tag and see if the problem persists!

Max-Manning commented 3 years ago

This solves the issue. Thanks!