# UVMF: parametrized hdl typdefs

**URL:** <https://verificationacademy.com/forums/t/uvmf-parametrized-hdl-typdefs/36078>\
**Category:** UVM\
**Tags:** UVMF, UVM\
**Created:** [May 9, 2019, 8:27am UTC](https://verificationacademy.com/forums/t/uvmf-parametrized-hdl-typdefs/36078 "2019-05-09T08:27:13Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![adrianf0](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/a/f07891/32.png) [@adrianf0](https://verificationacademy.com/forums/u/adrianf0)\
**Post date:** [May 9, 2019, 4:31pm UTC](https://verificationacademy.com/forums/t/uvmf-parametrized-hdl-typdefs/36078/7 "2019-05-09T16:31:22Z")

</div>

_In reply to [chr\_sue](https://verificationacademy.com/forums/t/uvmf-parametrized-hdl-typdefs/36078/6):_

> _In reply to [adrianf0](https://verificationacademy.com/forums/t/uvmf-parametrized-hdl-typdefs/36078/6):_  
> SV packages are always top to bottom. I guess your VIP is provoding a common package which is not RO. There you can make your settings regarding your system application.  
> Then you have to adopt your compile script with respect to your new structure. I do not see any problem.

I think we have a misunderstanding.  
I assume that VIP packages, in view of reusability, should be testbench agnostic. Thus, they should not make any assumptions that testbench will provide an extra package with parameters. This information, should come through actual parameters syntax (ie.

```verilog
my_interface #(.WIDTH_A(5), .WIDTH_B(3) inter;

```

).

Moreover, let’s imagine that in the testbench we would like to have 2 interfaces of the same type but differently parametrized. Solution with an extra package with parameters would not work in such case.

---

_[View the full topic](https://verificationacademy.com/forums/t/uvmf-parametrized-hdl-typdefs/36078)._
