Jump to content
Sign in to follow this  
EugenueY

Geting started error on Cadence (Multiple packages)

Recommended Posts

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??

Share this post


Link to post
Share on other sites

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 ...

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...