mirror of
https://github.com/supleed2/ELEC40006-P1-CW.git
synced 2024-11-10 02:05:48 +00:00
14 lines
171 B
Coq
14 lines
171 B
Coq
|
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
|