ELEC40006-P1-CW/ADD_1.v

14 lines
169 B
Coq
Raw Normal View History

module ADD_1 (enable, in, out);
input [15:0] in;
input enable;
output reg [15:0] out;
always @(*) begin
if(enable)
out = in + 1'b1;
else
out = in;
end
endmodule