From dc526c92bda1fbcaa97b1c775c9379d1b2026295 Mon Sep 17 00:00:00 2001 From: David Harris Date: Sat, 7 Jan 2023 06:06:54 -0800 Subject: [PATCH] Removed unused signals --- pipelined/src/ifu/decompress.sv | 2 +- pipelined/src/privileged/csr.sv | 6 +++--- pipelined/src/privileged/csrc.sv | 2 +- pipelined/src/privileged/privdec.sv | 1 - pipelined/src/privileged/privileged.sv | 4 ++-- pipelined/src/uncore/uart_apb.sv | 8 -------- 6 files changed, 7 insertions(+), 16 deletions(-) diff --git a/pipelined/src/ifu/decompress.sv b/pipelined/src/ifu/decompress.sv index 8bd5d911..c13fc9b1 100644 --- a/pipelined/src/ifu/decompress.sv +++ b/pipelined/src/ifu/decompress.sv @@ -52,7 +52,7 @@ module decompress ( assign rs2p = {2'b01, instr16[4:2]}; assign rdp = {2'b01, instr16[4:2]}; - // many compressed immediate formats + // extract compressed immediate formats assign immCILSP = {4'b0000, instr16[3:2], instr16[12], instr16[6:4], 2'b00}; assign immCILSPD = {3'b000, instr16[4:2], instr16[12], instr16[6:5], 3'b000}; assign immCSS = {4'b0000, instr16[8:7], instr16[12:9], 2'b00}; diff --git a/pipelined/src/privileged/csr.sv b/pipelined/src/privileged/csr.sv index 34c726ea..da2035f7 100644 --- a/pipelined/src/privileged/csr.sv +++ b/pipelined/src/privileged/csr.sv @@ -37,7 +37,7 @@ module csr #(parameter SIP = 12'h144 ) ( input logic clk, reset, - input logic FlushE, FlushM, FlushW, + input logic FlushM, FlushW, input logic StallE, StallM, StallW, input logic [31:0] InstrM, input logic [`XLEN-1:0] PCM, SrcAM, IEUAdrM, PCNext2F, @@ -203,7 +203,7 @@ module csr #(parameter .CSRMWriteM, .CSRSWriteM, .CSRWriteValM, .CSRAdrM, .MExtInt, .SExtInt, .MTimerInt, .MSwInt, .MIP_REGW, .MIE_REGW, .MIP_REGW_writeable); - csrsr csrsr(.clk, .reset, .StallW, + csrsr csrsr(.clk, .reset, .StallW, .WriteMSTATUSM, .WriteMSTATUSHM, .WriteSSTATUSM, .TrapM, .FRegWriteM, .NextPrivilegeModeM, .PrivilegeModeW, .mretM, .sretM, .WriteFRMM, .WriteFFLAGSM, .CSRWriteValM, .SelHPTW, @@ -212,7 +212,7 @@ module csr #(parameter .STATUS_MIE, .STATUS_SIE, .STATUS_MXR, .STATUS_SUM, .STATUS_MPRV, .STATUS_TVM, .STATUS_FS, .BigEndianM); csrc counters(.clk, .reset, - .StallE, .StallM, .StallW, .FlushM, + .StallE, .StallM, .FlushM, .InstrValidNotFlushedM, .LoadStallD, .CSRMWriteM, .DirPredictionWrongM, .BTBPredPCWrongM, .RASPredPCWrongM, .PredictionInstrClassWrongM, .InstrClassM, .DCacheMiss, .DCacheAccess, .ICacheMiss, .ICacheAccess, diff --git a/pipelined/src/privileged/csrc.sv b/pipelined/src/privileged/csrc.sv index 04f5c209..b4b852c9 100644 --- a/pipelined/src/privileged/csrc.sv +++ b/pipelined/src/privileged/csrc.sv @@ -42,7 +42,7 @@ module csrc #(parameter TIMEH = 12'hC81 ) ( input logic clk, reset, - input logic StallE, StallM, StallW, + input logic StallE, StallM, input logic FlushM, input logic InstrValidNotFlushedM, LoadStallD, CSRMWriteM, input logic DirPredictionWrongM, diff --git a/pipelined/src/privileged/privdec.sv b/pipelined/src/privileged/privdec.sv index c31dca1d..a5ea88e4 100644 --- a/pipelined/src/privileged/privdec.sv +++ b/pipelined/src/privileged/privdec.sv @@ -38,7 +38,6 @@ module privdec ( input logic PrivilegedM, IllegalIEUInstrFaultM, IllegalCSRAccessM, IllegalFPUInstrM, input logic [1:0] PrivilegeModeW, input logic STATUS_TSR, STATUS_TVM, STATUS_TW, - input logic [1:0] STATUS_FS, output logic IllegalInstrFaultM, output logic EcallFaultM, BreakpointFaultM, output logic sretM, mretM, wfiM, sfencevmaM); diff --git a/pipelined/src/privileged/privileged.sv b/pipelined/src/privileged/privileged.sv index a1443dff..c8b7a21b 100644 --- a/pipelined/src/privileged/privileged.sv +++ b/pipelined/src/privileged/privileged.sv @@ -113,7 +113,7 @@ module privileged ( privdec pmd(.clk, .reset, .StallM, .InstrM(InstrM[31:20]), .PrivilegedM, .IllegalIEUInstrFaultM, .IllegalCSRAccessM, .IllegalFPUInstrM, - .PrivilegeModeW, .STATUS_TSR, .STATUS_TVM, .STATUS_TW, .STATUS_FS, .IllegalInstrFaultM, + .PrivilegeModeW, .STATUS_TSR, .STATUS_TVM, .STATUS_TW, .IllegalInstrFaultM, .EcallFaultM, .BreakpointFaultM, .sretM, .mretM, .wfiM, .sfencevmaM); @@ -121,7 +121,7 @@ module privileged ( // Control and Status Registers /////////////////////////////////////////// csr csr(.clk, .reset, - .FlushE, .FlushM, .FlushW, + .FlushM, .FlushW, .StallE, .StallM, .StallW, .InstrM, .PCM, .SrcAM, .IEUAdrM, .PCNext2F, .CSRReadM, .CSRWriteM, .TrapM, .mretM, .sretM, .wfiM, .IntPendingM, .InterruptM, diff --git a/pipelined/src/uncore/uart_apb.sv b/pipelined/src/uncore/uart_apb.sv index 6108b580..ac2121ae 100644 --- a/pipelined/src/uncore/uart_apb.sv +++ b/pipelined/src/uncore/uart_apb.sv @@ -42,14 +42,6 @@ module uart_apb ( input logic PENABLE, output logic [`XLEN-1:0] PRDATA, output logic PREADY, -/* - input logic HCLK, HRESETn, - input logic HSELUART, - input logic [2:0] HADDR, - input logic HWRITE, - input logic [`XLEN-1:0] PWDATA, - output logic [`XLEN-1:0] HREADUART, - output logic HRESPUART, HREADYUART, */ (* mark_debug = "true" *) input logic SIN, DSRb, DCDb, CTSb, RIb, // from E1A driver from RS232 interface (* mark_debug = "true" *) output logic SOUT, RTSb, DTRb, // to E1A driver to RS232 interface (* mark_debug = "true" *) output logic OUT1b, OUT2b, INTR, TXRDYb, RXRDYb); // to CPU