From b7b245fe2f88dcdc4be568edda8cc05d59474dea Mon Sep 17 00:00:00 2001 From: Rose Thompson Date: Mon, 18 Dec 2023 16:37:26 -0600 Subject: [PATCH] functionName.sv is now linting for rv64gc. --- testbench/common/functionName.sv | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/testbench/common/functionName.sv b/testbench/common/functionName.sv index e59491621..eb223be8e 100644 --- a/testbench/common/functionName.sv +++ b/testbench/common/functionName.sv @@ -31,14 +31,14 @@ module FunctionName import cvw::*; #(parameter cvw_t P) ( ); logic [P.XLEN-1:0] ProgramAddrMapMemory [longint]; - string ProgramLabelMapMemory [integer]; + string ProgramLabelMapMemory [longint]; string FunctionName; logic [P.XLEN-1:0] PCF, PCD, PCE, PCM, FunctionAddr, PCM_temp, PCMOld; logic StallD, StallE, StallM, FlushD, FlushE, FlushM; logic InstrValidM; - integer ProgramAddrIndex, ProgramAddrIndexQ; + logic [P.XLEN-1:0] ProgramAddrIndex, ProgramAddrIndexQ; assign PCF = testbench.dut.core.ifu.PCF; assign StallD = testbench.dut.core.StallD; @@ -110,7 +110,7 @@ module FunctionName import cvw::*; #(parameter cvw_t P) ( integer ProgramAddrMapFP, ProgramLabelMapFP; longint ProgramAddrMapLineCount; - integer ProgramLabelMapLineCount; + longint ProgramLabelMapLineCount; longint ProgramAddrMapLine; string ProgramLabelMapLine; integer status; @@ -136,7 +136,7 @@ module FunctionName import cvw::*; #(parameter cvw_t P) ( ProgramAddrMapFP = $fopen(ProgramAddrMapFile, "r"); // read line by line to count lines - if (ProgramAddrMapFP) begin + if (ProgramAddrMapFP != '0) begin while (! $feof(ProgramAddrMapFP)) begin status = $fscanf(ProgramAddrMapFP, "%h\n", ProgramAddrMapLine); ProgramAddrMapMemory[ProgramAddrMapLineCount] = ProgramAddrMapLine; @@ -154,7 +154,7 @@ module FunctionName import cvw::*; #(parameter cvw_t P) ( ProgramLabelMapLineCount = 0; ProgramLabelMapFP = $fopen(ProgramLabelMapFile, "r"); - if (ProgramLabelMapFP) begin + if (ProgramLabelMapFP != '0) begin while (! $feof(ProgramLabelMapFP)) begin status = $fscanf(ProgramLabelMapFP, "%s\n", ProgramLabelMapLine); ProgramLabelMapMemory[ProgramLabelMapLineCount] = ProgramLabelMapLine;