creation of an ALU
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
module halfadder (
|
||||
output sum_bit,
|
||||
output carry_bit,
|
||||
input a,
|
||||
input b
|
||||
);
|
||||
|
||||
xor sum_g(sum_bit, a, b);
|
||||
and carry_g(carry_bit, a, b);
|
||||
|
||||
endmodule
|
||||
Reference in New Issue
Block a user