gr-verilog icon indicating copy to clipboard operation
gr-verilog copied to clipboard

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

Open gs-jgj opened this issue 5 years ago • 2 comments

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

gs-jgj avatar May 04 '20 11:05 gs-jgj

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

dkozel avatar May 04 '20 11:05 dkozel

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.

gs-jgj avatar May 04 '20 11:05 gs-jgj