1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Verilog HDL > インスタンス化の後にdefparamをする

Last updated at Posted at 2021-07-24

動作環境

Ubuntu 20.04 LTS
IcarusVerilog v10.3
GTKWave v3.3.103

Advanced Synthesis Cookbook

ALTERA(Intel)のCookbookを読んでいる中で未学習のdefparamに出くわした。

ternnary_nine_sum.vの中に下記の記述がある。

arithmetic/ternnay_nine_sum.v
// output layer 3=> 1
tern_node o (.clk(clk),.a(part0),.b(part1),.c(part2),.o(out));
	defparam o .WIDTH = WIDTH+2;

parameter, defparam関連の情報

情報感謝です。

理解

ternnary_nine_sum.vの実装例ではインスタンス化した後にdefparamを呼んでいる。
oという名前でインスタンス化して、そのoのパラメータを変更するためにdefparamする、という流れのようだ。

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?