0
0

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 > my_design #(.USE_CASE(1)) u0 ( 省略 ) > パラメータUSE_CASEの上書き

Posted at

動作環境

Ubuntu 20.04 LTS
IcarusVerilog v10.3
GTKWave v3.3.103

my_design #(.USE_CASE(1)) u0 ( .a(a), .b(b), .sel(sel), .out(out));

my_design #(.USE_CASE(1)) u0 ( .a(a), .b(b), .sel(sel), .out(out));

#(.USE_CASE(1))の部分が分からないため調べた。

パラメータの上書き

情報感謝です。

上記の実装ではUSE_CASEを0か1かでgenerate文の処理による異なるモジュールインスタンス化する。
実装例ではUSE_CASEを1としてインスタンス化している。

関連

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?