Aug
31
类似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;
这种方法与例化分开,参数需要写绝对路径来指定。
例子见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;
这种方法与例化分开,参数需要写绝对路径来指定。
OpheliaDelacruz24
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
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
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
1 2 3 4 5 6 7
让Verilog仿真状态机时可以显示状态名
怎样提取.ise中的内容?




