79186669

Date: 2024-11-13 21:09:04
Score: 1
Natty:
Report link

Assuming you're using a UVM testbench, your test lives outside of a package, and can access the testbench hierarchy, as well as the parameters of instantiated modules. Simply extract them and assign to a config class object in your package. I personally put them in an associative array keyed off the param name.

That said, if these are the parameters of a top-level DUT, then they should already be under your DV control. If you instead maintain defines, those can be used to assign to your TB instances and uvm classes, rather than have to extract from hierarchy. Also, if your parameter list changes, your edits will now be centralized in one file.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: bcassell