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