Archived
1
0

create ALU

added files:
halfadder.sv
adder.sv
adder16.sv
alu.sv
This commit is contained in:
Erick
2022-03-05 00:00:16 +01:00
parent cf48ffa34f
commit f78cc40524
4 changed files with 87 additions and 21 deletions
+3 -3
View File
@@ -1,6 +1,6 @@
'include "cpu/alu/halfadder.sv"
import halfadder::*;
module adder (
package adder (
output sum_bit,
output carry_bit,
input a,
@@ -15,4 +15,4 @@ xor sum_final(sum_bit, tmpXor0, c);
and carry_tmp0(tmpAnd1, tmpXor0, c);
or carry_final(carry_bit, tmpAnd0, tmpAnd1);
endmodule
endpackage