Fixed bug in adder/subtracter where code assuming width was the bit width was not updated when moving to the 2**N approach required by the assignment. Updated adder/subtracter testbench to correctly instantiate the asser/subtracter and removed unused variable

This commit is contained in:
riley committed 2026-09-08 22:49:22 +10:00
1 parent 42f4e661dc
commit 5acf1c8b87
2 files changed
+5 -7

No files matched your search

+1 -3
View File
@@ -10,10 +10,8 @@ module asu_tb #(width=8)();
logic [width-1:0] C_exp;
logic [0:0] Cout_exp;
logic [0:0] Cin_exp; // TODO
logic [0:0] Signed_overflow;
asu #(width) dut(op, A, B, C, Cout, Cin);
asu #($clog2(width)) dut(op, A, B, C, Cout, Cin);
integer error_count;
initial begin