Aug 31

Verilog例化时的参数传递 不指定

RickySu , 14:04 , 技术经验 , 评论(3) , 引用(157) , 阅读(2334) , Via 本站原创 | |
类似VHDL的Generic语句,Verilog也可以在例化时传递参数

例子见http://sutherland-hdl.com/online_verilog_ref_guide/vlog_ref_top.html#8.0%20Module%20Instances

传递的参数是子模块中定义的parameter。

传递的方法:
1、module_name #( parameter1, parameter2) inst_name( port_map);

2、module_name #( .parameter_name(para_value), .parameter_name(para_value)) inst_name (port map);

用#方法和port map的写法差不多

3、defparam
defparam heirarchy_path.parameter_name = value;
这种方法与例化分开,参数需要写绝对路径来指定。
Tags:
OpheliaDelacruz24 Email Homepage
2010/07/25 04:12
Tired of wasting hours for term paper essays composing? Don't trouble! Buy essays online from <a href="http://primeessays.com/index.php?mode=custom-essay-order">custom essay order</a> writing service and assure that you have got great quality papers.
BarnettJeannette34 Email Homepage
2010/07/22 18:08
Result aimed university students care about their academic future, so they use the <a href="http://www.qualityessay.com/paypal-essay.html">paypal essay</a> service, which supposes to be essential.
ClaudineGRIMES24 Email Homepage
2010/07/17 15:25
I will recommend not to hold back until you earn enough amount of money to order goods! You can get the <a href="http://bestfinance-blog.com">loans</a> or student loan and feel yourself free
分页: 1/16 第一页 1 2 3 4 5 6 7 下页 最后页
发表评论
表情
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
打开HTML
打开UBB
打开表情
隐藏
记住我
昵称   密码   游客无需密码
网址   电邮   [注册]