8 lines
168 B
Coq
8 lines
168 B
Coq
|
// One bit full-adder
|
||
|
module fa(input A, input B, input Cin, output O, output Cout);
|
||
|
|
||
|
assign O = A ^ B ^ Cin;
|
||
|
assign Cout = (A & B) | (B & Cin) | (Cin & A);
|
||
|
|
||
|
endmodule
|