Jump to content

Passing bit width parameters from top module to sequence item classes


Recommended Posts

There are a number of bit width parameters declared in the my top module. These parameters are passed to the DUT instance and parameterized interface instances. How can I also pass these parameter values to the sequence items, so that the bit widths of the sequence item fields correspond to the  bit widths of the interface fields?

 

 

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

Hello Kate,

 

I recently tried similar activity and found that you cannot assign the parameter from module/interface to package/class.

 

Also the -g option of the simulator(questasim) only assigns parameters to module/interface and not the package/class.  Hence I followed a workaround to declare static variables in package/class and assign them the parameter value from the module/interface.

 

In your case you can access the parameter value of the interface through its virtual interface handle in the class/package and then use it. But then, the bit width specification cannot be achieved.

 

Also I  don't know why class/package parameters cannot be assigned using -g option of the simulator?

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.

×
×
  • Create New...