gnuradio / gr-verilog

GNU General Public License v3.0
15 stars 9 forks source link

Make it possible to control the base directory for a given module #10

Open gs-jgj opened 4 years ago

gs-jgj commented 4 years ago

This can otherwise be problematic for calls to $readmemh etc.

dkozel commented 4 years ago

Hi @gs-jgj Do you have an example testbench that has this issue or even better have you looked at adding this feature?

gs-jgj commented 4 years ago

Haven't looked into it yet. A simple workaround is just to put absolute paths in all places that read data

But attached is a simple testcase that shows the issue testcase.zip

It will fail with %Error: lut.dat:0: $readmem file not found if you leave the files in some random directory.