Jump to content

issue to access hierachy at compile time in VCS


Recommended Posts

Hi,

 

with VCS, I am trying to register with the uvm factory an object which is embedded inside a SV interface, using the hierarchy name as a type name.

But VCS won't compile, whereas this scheme works with Questa.

 

Here is the code snippet :

 

interface my_if();

 

  import my_pkg::*;

  localparam string my_path=$sformatf("%m");

 

  class my_c

    function new() ....

    typedef uvm_object_registry#(my_c,{"my_c",my_path}) type_id;

    ... etc ...

  endclass

 

  ... etc ...

endinterface

 

 

I may be wrong, but the LRM doesn't seem to specify if this is supposed to work at run/compile time.

Would someone know how to make this functionality work with VCS ?

 

 

Link to post
Share on other sites
  • 5 months later...

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.

×
×
  • Create New...