subtraction & multiplier
This commit is contained in:
9
project0.2/halfadder.v
Normal file
9
project0.2/halfadder.v
Normal file
@@ -0,0 +1,9 @@
|
||||
module halfadder (
|
||||
input A, B,
|
||||
output Sum, Carry
|
||||
);
|
||||
|
||||
and a1 (Carry, A, B);
|
||||
xor xo1 (Sum, A, B);
|
||||
|
||||
endmodule
|
||||
Reference in New Issue
Block a user