Forum Discussion
Altera_Forum
Honored Contributor
12 years agoQsys tutorial modelsim simulation problem
Hi,
I'm running through the simulation chapter of the Qsys System Design tutorial and i'm running into problems compiling the generated system verilog module. Most of the load_sim.tcl are getting executed except when it reaches this line: vlog -sv ./test_program.sv -L pattern_generator_tb_csr_master Has someone seen this and know how i can fix it? I'm new to Qsys and System Verilog and would appeciate some guidance on how to fix my problem so that i can progress and try out modifying the system verilog test bench. Below is a portion of the error messages i get on Modelsim, Thanks # Model Technology ModelSim ALTERA vlog 10.1d Compiler 2012.11 Nov 2 2012# -- Compiling module test_program# ** Error: (vlog-19) Failed to access library 'pattern_generator_tb_csr_master' at "pattern_generator_tb_csr_master".# # No such file or directory. (errno = ENOENT)# ** Error: (vlog-19) Failed to access library 'pattern_generator_tb_csr_master' at "pattern_generator_tb_csr_master".# # No such file or directory. (errno = ENOENT)# ** Error: ./test_program.sv(21): Could not find the package (verbosity_pkg). Design read will continue, but expect a cascade of errors after this failure. Furthermore if you experience a vopt-7 error immediately before this error then please check the package names or the library search paths on the command line.# ** Error: (vlog-19) Failed to access library 'pattern_generator_tb_csr_master' at "pattern_generator_tb_csr_master".4 Replies
- Altera_Forum
Honored Contributor
ModelSim isn't finding 'test_porgram.sv' where it's being told to expect it. It's expecting to find it in the same directory as the simulation is being run from. Is that where it is? Perhaps you could post your ModelSim script for comment?
- Altera_Forum
Honored Contributor
TO_BE_DONE
- Altera_Forum
Honored Contributor
A further look at this, and the errors originally seen, show me it's not 'test_porgram.sv' it's not finding (as I originally suggested) but one of the packages it references.
In your 'msim_setup.tcl' look at the 'vsim' lines. You need to confirm each '-L' (library) option is installed. You mentioned Qsys generates the script. I'm sure it will automatically assume each library that it needs is available where it would normally expect to find it. It won't check that it's there when it creates the script. Final thought, ensure the required Altera primitives compile and map OK and that you get no errors as a result of those lines of the scrip being run - the 'vmap' entries in the script. I doubt it would result in the error you're seeing if they weren't compiling correctly, but it might. So, it's worth a check. Regards, Alex - Altera_Forum
Honored Contributor
Hi Alex,
You're correct Alex. Altera Tech support helped me with this, just today actually. The problem was with the vlog -sv ./test_program.sv -L pattern_generator_tb_csr_master It should be: vlog -sv ./test_program.sv -L altera_avalon_vip_pkgs_lib I'm still waiting for an explanation why that fixed it though. I'm about to do a Qsys project and i just want to make sure that all autogenerated files are error free. Thanks, Joel