2 入力 XOR 関数の例 - 2023.2 日本語

Vivado Design Suite ユーザー ガイド: 合成 (UG901)

Document ID
UG901
Release Date
2023-11-01
Version
2023.2 日本語
次のコード例では、ビルトイン モジュールの各インスタンスに a_invb_invout などの固有のインスタンス名が指定されています。
module build_xor (a, b, c);
input a, b;
output c;
wire c, a_not, b_not;

not a_inv (a_not, a);not b_inv (b_not, b);and a1 (x, a_not, b);and a2 (y, b_not, a);or out (c, x, y);
endmodule