EugenueY 0 Report post Posted July 16, 2012 Hello everyone. We are new in UVM. We are trying to implement UVM library on Cadence and are trying to compile first simple project. UVM_HOME variable is set, UVM compiled. `include "uvm_pkg.sv" module hello_world_example; // Import the UVM library and include the UVM macros import uvm_pkg::*; `include "uvm_macros.svh" initial begin `uvm _info ("info1","Hello World!", UVM _LOW) end endmodule: hello_world_example And we get this error: import uvm_pkg::*; | ncvlog: *E,MULTPK (hh.sv,6|17): Multiple (2) packages named "uvm_pkg" were found in the searched libraries: -> found verilog_package worklib.uvm_pkg:verilog_package (VST) -> found verilog_package worklib.uvm_pkg:sv (VST). How can I avoid this error?? Quote Share this post Link to post Share on other sites
KathleenMeade 2 Report post Posted July 16, 2012 Hello Eugene, Your example includes the UVM library and you are probably also using -uvm or -uvmhome on the command line. So the package is getting compiled twice. It should work if you comment out the 'include line. Kathleen Quote Share this post Link to post Share on other sites
uwes 17 Report post Posted July 16, 2012 hi, yes, as kathleen suggested remove the "include uvm_pkg" and either put it on the cmdline or use simply "-uvm" which does that under the covers. Quote Share this post Link to post Share on other sites
EugenueY 0 Report post Posted July 16, 2012 Thank you for answering. Now the file is like this module hello_world_example; // Import the UVM library and include the UVM macros import uvm_pkg::*; `include "uvm_macros.svh" initial begin `uvm _info ("info1","Hello World!", UVM _LOW) end endmodule: hello_world_example using irun -uvm hh.sv and receiving the same output file: hh.sv import uvm_pkg::*; | ncvlog: *E,MULTPK (hh.sv,5|17): Multiple (2) packages named "uvm_pkg" were found in the searched libraries: -> found verilog_package worklib.uvm_pkg:verilog_package (VST) -> found verilog_package worklib.uvm_pkg:sv (VST). import uvm_pkg::*; Again we are stuck with this problem ... Quote Share this post Link to post Share on other sites
uwes 17 Report post Posted July 16, 2012 and remove the INCA_libs directory. i assume the old stuff is still in there /uwe Quote Share this post Link to post Share on other sites
EugenueY 0 Report post Posted July 16, 2012 And now Thank you!! This problem is solved! Best regards. Quote Share this post Link to post Share on other sites