Hi Nick,

I feel like you might be looking for something like this-- just a defparam
inside the testbench after the RFNOC_ADD_BLOCK macro?
https://gitlab.com/theseus-cores/theseus-cores/-/blob/master/fpga-rfnoc/testbenches/noc_block_ddc_1_to_n_tb/noc_block_ddc_1_to_n_tb.sv#L25

Let me know if you had something else in mind though...
EJ

On Fri, Feb 21, 2020, 3:16 PM Nick Foster via USRP-users <
[email protected]> wrote:

> Hi all,
>
> I'm wondering if there's any good way to instantiate blocks in testbenches
> with testbench-defined block parameters. The macro `RFNOC_ADD_BLOCK takes
> care of defining all the NOC bus interfaces, but there's no place to define
> block parameters.
>
> Say I have a NOC block which takes a parameter N_TAPS. How can I
> instantiate the block in the testbench with a testbench-defined N_TAPS
> parameter without setting it as the default in the block's module?
>
> Nick
> _______________________________________________
> USRP-users mailing list
> [email protected]
> http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com
>
_______________________________________________
USRP-users mailing list
[email protected]
http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com

Reply via email to