I am trying to simulate a design with multiple megawizard blocks generated by the Altera Quartus tools. I am hoping to use the "-makelib/-endlib" options in irun to specify all of the files for each megawizard. However, I have run into a problem with packages. In this case, I have 2 megawizard directories that both have a file "altera_xcvr_functions.sv" containing packages used by other files in their respective directories. A simplified argument list is shown below. Both file1.sv and file2.sv do an "import altera_xcvr_functions::*;"
When I try this, I get an error *E,MULTPK...Multiple (2) packages named "altera_xcvr_functions" were found in searched libraries:
-> found verilog_package nclib_dir1.altera_xcvr_functions:sv
-> found verilog_package nclib_dir2.altera_xcvr_functions:sv
Is there a way to keep the packages read in within a "-makelib/-endlib" pair local to just that library, and not visible outside of it?
I am using Incisive 11.10-p001.