xorGate
This commit is contained in:
9
gowin/OldBit3-ledTest/halfadder.v
Normal file
9
gowin/OldBit3-ledTest/halfadder.v
Normal file
@ -0,0 +1,9 @@
|
||||
module halfadder(
|
||||
input A,B,
|
||||
output S,C
|
||||
);
|
||||
|
||||
xor (S, A, B);
|
||||
and (C, A, B);
|
||||
|
||||
endmodule
|
Reference in New Issue
Block a user