Handling parameterization in SystemVerilog packages

后端 未结 7 1981
别那么骄傲
别那么骄傲 2021-01-02 07:56

SystemVerilog added packages to provide namespaces for common code pieces (functions, types, constants, etc). But since packages are not instantiated, they cannot be parame

7条回答
  •  滥情空心
    2021-01-02 08:13

    This may or may not apply, depending on exactly what you have in mind to put in the package, but interfaces can be parameterized and are synthesizable if your tool supports it.

    There is an example at http://www.doulos.com/knowhow/sysverilog/tutorial/interfaces/

提交回复
热议问题