Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SystemVerilog interface - Passing parameters after module declaration

Given the following module declaration:

module ( myinterface.mymodport mybus, ... );

And assuming that myinterface has parameters, how do I specify them?

The interface instantiation happens only in the testbench, but now I want to synthesize the DUT, so the TB disappears.

like image 923
2HDS1X8B Avatar asked Apr 23 '26 03:04

2HDS1X8B


1 Answers

This is an oversight in the SystemVerilog LRM. There's no syntax to specify a required set of parameters for an interface in a module header.

You might check your synthesis tool to see if they provide any way of specifying parameter overrides for the top-level synthesis instance.

like image 61
dave_59 Avatar answered Apr 26 '26 12:04

dave_59



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!