Fixed bug where includes still refered to verilog rather than systemverilog. Inverted test cases in seven segment test bench to reflect changes made to module. There is still a bug with the module where it outputs garbage

This commit is contained in:
riley committed 2026-09-03 16:32:56 +10:00
1 parent f881a4126b
commit a89a66d34d
8 files changed
+27 -27

No files matched your search

+1 -1
View File
@@ -1,4 +1,4 @@
@echo off @echo off
cls cls
iverilog -g2012 -o testbench.vvp -I"./modules" -I"./tests" tests/tests.v iverilog -g2012 -o testbench.vvp -I"./modules" -I"./tests" tests/tests.sv
vvp testbench.vvp vvp testbench.vvp
+1 -1
View File
@@ -1,5 +1,5 @@
// TODO: Both the ALU and this test bench is incomplete // TODO: Both the ALU and this test bench is incomplete
`#include "alu.v" `#include "alu.sv"
module alu_tb #(width=8)(); module alu_tb #(width=8)();
+1 -1
View File
@@ -1,4 +1,4 @@
`include "asu.v" `include "asu.sv"
module asu_tb #(width=8)(); module asu_tb #(width=8)();
logic [0:0] op; logic [0:0] op;
+1 -1
View File
@@ -1 +1 @@
`#include "instruction_classifier.v" `#include "instruction_classifier.sv"
+1 -1
View File
@@ -1,4 +1,4 @@
`include "lu.v" `include "lu.sv"
module lu_tb #(W=8)(); module lu_tb #(W=8)();
logic [1:0] op; logic [1:0] op;
+18 -18
View File
@@ -1,4 +1,4 @@
`include "seven_seg.v" `include "seven_seg.sv"
module seven_seg_tb(); module seven_seg_tb();
logic [3:0] in_num; logic [3:0] in_num;
@@ -14,23 +14,23 @@ module seven_seg_tb();
initial begin initial begin
// Initialise truth table // Initialise truth table
true_segments[0 ] = 8'b11111101; true_segments[0 ] = ~(8'b11111101);
true_segments[1 ] = 8'b01100001; true_segments[1 ] = ~(8'b01100001);
true_segments[2 ] = 8'b11011011; true_segments[2 ] = ~(8'b11011011);
true_segments[3 ] = 8'b11110011; true_segments[3 ] = ~(8'b11110011);
true_segments[4 ] = 8'b01100111; true_segments[4 ] = ~(8'b01100111);
true_segments[5 ] = 8'b10110111; true_segments[5 ] = ~(8'b10110111);
true_segments[6 ] = 8'b10111111; true_segments[6 ] = ~(8'b10111111);
true_segments[7 ] = 8'b11100001; true_segments[7 ] = ~(8'b11100001);
true_segments[8 ] = 8'b11111111; true_segments[8 ] = ~(8'b11111111);
true_segments[9 ] = 8'b11100111; true_segments[9 ] = ~(8'b11100111);
true_segments[10] = 8'b11101111; true_segments[10] = ~(8'b11101111);
true_segments[11] = 8'b00111111; true_segments[11] = ~(8'b00111111);
true_segments[12] = 8'b10011101; true_segments[12] = ~(8'b10011101);
true_segments[13] = 8'b01111011; true_segments[13] = ~(8'b01111011);
true_segments[14] = 8'b10011111; true_segments[14] = ~(8'b10011111);
true_segments[15] = 8'b10001111; true_segments[15] = ~(8'b10001111);
true_segments[16] = 8'b00000000; true_segments[16] = ~(8'b00000000);
$display("Beginning seven-segment tests"); $display("Beginning seven-segment tests");
+1 -1
View File
@@ -1,4 +1,4 @@
`#include "shifter.v" `#include "shifter.sv"
module shifter_tb #(width=8)(); module shifter_tb #(width=8)();
+3 -3
View File
@@ -1,3 +1,3 @@
`include "tests/seven_seg_tb.v" `include "tests/seven_seg_tb.sv"
`include "tests/lu_tb.v" `include "tests/lu_tb.sv"
`include "tests/asu_tb.v" `include "tests/asu_tb.sv"