/* 加算演算子による4ビット加算回路 変数には [MSB:LSB] のようにビット幅を指定する ことができる */ module adder( a, b, q ); input [3:0] a, b; output [4:0] q; assign q = a + b; endmodule