Jump to content

Recommended Posts

Posted

Hi,

I need to design & verify parametric design, such that my design & verif env will be instantiated twice, each time with different parameters.

I usually work with packages for my design, so all of parameters, structs etc are defined there.

My questions:

Is there a  way to write such package so same package will hold same parameter  with two different values? (different value for each instance)

Is there a robust way in uvm to verify such design?

Thanks!

  • 4 years later...
Posted

I recently joined a similar team, and unfortunately the solution has been to put all the rtl localparam constants into their own file (not in a package), and include that everywhere it's needed (directly inside of verif classes, modules, etc). Those constants are dependent upon parameters, which means that every module and uvm component will have parameter proliferation. Also, because you can't have parameterized packages, the module port list use Verilog '95 style instead of ANSI 2001.

Would be nice if this feature request had some more activity, but I don't see much traction.
https://accellera.mantishub.io/view.php?id=4720

Posted

It would help to explain why you need Verilog 95 style ports. 

There is a way of using parameterized classes which are themselves passed as parameter types to a module. But most HDL synthesis tools do not accept classes even though they may be perfectly synthesizable in some cases.

Posted

There's a constant/localparam generated for every port's MSB and LSB, and many of them are dependent upon the module's parameters. This prevents using them in a 2001-style port list. IFF they didn't have that dependency, yes you simply wrap them in a package and import them prior to the port list.

The '95 style's lack of size or direction in the port list allows for `including the module's constants file prior to the input/output/inout list (which is sized) but after the parameter & port lists. 

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