Handling parameterization in SystemVerilog packages

后端 未结 7 1890
别那么骄傲
别那么骄傲 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:29

    Yeah, I agree. That's a missing feature of packages.

    Just spitballin' here, but you could abstract your parameters into a secod package and use the right one at compile-time to tweak your package. I know that's not what you really want, but it might get you close.

    I think I would just end up with multiple packages representing each configuration if I faced this in my project.

    0 讨论(0)
提交回复
热议问题