From 685d3ff568c9625178ad5d2fd31742f2b1a0ce9a Mon Sep 17 00:00:00 2001 From: David Harris <74973295+davidharrishmc@users.noreply.github.com> Date: Thu, 16 Feb 2023 17:52:25 -0800 Subject: [PATCH 1/5] Update alu.sv --- src/ieu/alu.sv | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ieu/alu.sv b/src/ieu/alu.sv index ccd55779..3f25e6de 100644 --- a/src/ieu/alu.sv +++ b/src/ieu/alu.sv @@ -68,7 +68,7 @@ module alu #(parameter WIDTH=32) ( // SLT assign SLT = {{(WIDTH-1){1'b0}}, LT}; - assign SLTU = {{(WIDTH-1){1'b0}}, LTU}; + assign SLTU = {{(WIDTH-1){1'b0}}, LT}; // Select appropriate ALU Result always_comb From 6527257305ee9830e8419681cdf109e5123f03c4 Mon Sep 17 00:00:00 2001 From: David Harris <74973295+davidharrishmc@users.noreply.github.com> Date: Thu, 16 Feb 2023 17:52:44 -0800 Subject: [PATCH 2/5] Update controller.sv --- src/ieu/controller.sv | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ieu/controller.sv b/src/ieu/controller.sv index d6642534..cafe7d3d 100644 --- a/src/ieu/controller.sv +++ b/src/ieu/controller.sv @@ -99,7 +99,7 @@ module controller( logic CSRWriteD, CSRWriteE; // CSR write logic PrivilegedD, PrivilegedE; // Privileged instruction logic InvalidateICacheE, FlushDCacheE;// Invalidate I$, flush D$ - logic [`CTRLW-1:0] ControlsD; // Main Instruction Decoder control signals + logic ControlsD; // Main Instruction Decoder control signals logic SubArithD; // TRUE for R-type subtracts and sra, slt, sltu logic subD, sraD, sltD, sltuD; // Indicates if is one of these instructions logic BranchTakenE; // Branch is taken From 532abb5b9598fbca7f461e7f5e56e555dd755daf Mon Sep 17 00:00:00 2001 From: David Harris <74973295+davidharrishmc@users.noreply.github.com> Date: Thu, 16 Feb 2023 17:53:31 -0800 Subject: [PATCH 3/5] Update datapath.sv --- src/ieu/datapath.sv | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ieu/datapath.sv b/src/ieu/datapath.sv index 60d43de9..07bd4fae 100644 --- a/src/ieu/datapath.sv +++ b/src/ieu/datapath.sv @@ -101,7 +101,7 @@ module datapath ( flopenrc #(`XLEN) RD2EReg(clk, reset, FlushE, ~StallE, R2D, R2E); flopenrc #(`XLEN) ImmExtEReg(clk, reset, FlushE, ~StallE, ImmExtD, ImmExtE); flopenrc #(5) Rs1EReg(clk, reset, FlushE, ~StallE, Rs1D, Rs1E); - flopenrc #(5) Rs2EReg(clk, reset, FlushE, ~StallE, Rs2D, Rs2E); + flopenrc #(5) Rs2EReg(clk, reset, FlushE, ~StallE, Rs2D, Rs1E); flopenrc #(5) RdEReg(clk, reset, FlushE, ~StallE, RdD, RdE); mux3 #(`XLEN) faemux(R1E, ResultW, IFResultM, ForwardAE, ForwardedSrcAE); From 631008f06aef74561d626617bead9535786cac64 Mon Sep 17 00:00:00 2001 From: David Harris <74973295+davidharrishmc@users.noreply.github.com> Date: Thu, 16 Feb 2023 17:54:27 -0800 Subject: [PATCH 4/5] Update testbench.sv --- testbench/testbench.sv | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testbench/testbench.sv b/testbench/testbench.sv index 329d4c60..073b02e5 100644 --- a/testbench/testbench.sv +++ b/testbench/testbench.sv @@ -281,7 +281,7 @@ logic [3:0] dummy; // once the test inidicates it's done we need to immediately hold reset for a number of cycles. if(ResetCount < ResetThreshold) ResetCount = ResetCount + 1; else begin // hit reset threshold so we remove reset. - InReset = 0; + //InReset = 0; ResetCount = 0; end end else begin From 0b569e3ed4280220a37dd950c509629de5ecc790 Mon Sep 17 00:00:00 2001 From: David Harris <74973295+davidharrishmc@users.noreply.github.com> Date: Thu, 16 Feb 2023 17:55:46 -0800 Subject: [PATCH 5/5] Update testbench.sv --- testbench/testbench.sv | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testbench/testbench.sv b/testbench/testbench.sv index 073b02e5..28e58bfb 100644 --- a/testbench/testbench.sv +++ b/testbench/testbench.sv @@ -281,7 +281,7 @@ logic [3:0] dummy; // once the test inidicates it's done we need to immediately hold reset for a number of cycles. if(ResetCount < ResetThreshold) ResetCount = ResetCount + 1; else begin // hit reset threshold so we remove reset. - //InReset = 0; + //InReset = 0; hmmm-I smell a wumpus ResetCount = 0; end end else begin