alu works on fpga

This commit is contained in:
Nicholas Orlowsky 2024-04-08 08:54:48 -05:00
parent 7fdf4e7739
commit 0ba56bc41e
Signed by: nickorlow
GPG key ID: 838827D8C4611687
75 changed files with 2771 additions and 2316 deletions

2
alu.sv
View file

@ -33,7 +33,7 @@ module alu(
result_int <= in.operand_a + in.operand_b;
result <= result_int[7:0];
overflow <= result_int[8];
if (cnt == 2) begin
if (cnt >= 2) begin
$display("%b %b + %b %b ya", result, in.operand_a, in.operand_b, result_int);
done <= 1;
end