xorGate
This commit is contained in:
13
gowin/OldBit3-ledTest/fulladder.v
Normal file
13
gowin/OldBit3-ledTest/fulladder.v
Normal file
@ -0,0 +1,13 @@
|
||||
module fulladder(
|
||||
input A, B, C0,
|
||||
output S, C
|
||||
);
|
||||
|
||||
wire S1,C1,C2;
|
||||
|
||||
halfadder ha1(A, B, S1, C1);
|
||||
halfadder ha2(S1, C0, S, C2);
|
||||
|
||||
or (C, C2, C1);
|
||||
|
||||
endmodule
|
Reference in New Issue
Block a user