|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册
x
感觉挺奇怪的,原文如下,见DC UG 2019的P108。
很多模块里,比如总线模块,数据位宽等等参数都是要传递给下辖的各个模块的。如果按照这个说辞的话,岂不是变得很麻烦?
Guidelines for Modules
Observe these guidelines for modules:
• Avoid using logic expressions when you pass a value through ports.
The port list can include expressions, but expressions complicate debugging. In addition,
isolating a problem related to the bit field is difficult, particularly if that bit field leads to
internal port quantities that differ from external port quantities.
• Define local references as generics (VHDL) or parameters (Verilog). Do not pass
generics or parameters into modules.
|
|