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