functionName.sv is now linting for rv64gc.

This commit is contained in:
Rose Thompson 2023-12-18 16:37:26 -06:00
parent c1ac153a4f
commit b7b245fe2f

View File

@ -31,14 +31,14 @@ module FunctionName import cvw::*; #(parameter cvw_t P) (
); );
logic [P.XLEN-1:0] ProgramAddrMapMemory [longint]; logic [P.XLEN-1:0] ProgramAddrMapMemory [longint];
string ProgramLabelMapMemory [integer]; string ProgramLabelMapMemory [longint];
string FunctionName; string FunctionName;
logic [P.XLEN-1:0] PCF, PCD, PCE, PCM, FunctionAddr, PCM_temp, PCMOld; logic [P.XLEN-1:0] PCF, PCD, PCE, PCM, FunctionAddr, PCM_temp, PCMOld;
logic StallD, StallE, StallM, FlushD, FlushE, FlushM; logic StallD, StallE, StallM, FlushD, FlushE, FlushM;
logic InstrValidM; logic InstrValidM;
integer ProgramAddrIndex, ProgramAddrIndexQ; logic [P.XLEN-1:0] ProgramAddrIndex, ProgramAddrIndexQ;
assign PCF = testbench.dut.core.ifu.PCF; assign PCF = testbench.dut.core.ifu.PCF;
assign StallD = testbench.dut.core.StallD; assign StallD = testbench.dut.core.StallD;
@ -110,7 +110,7 @@ module FunctionName import cvw::*; #(parameter cvw_t P) (
integer ProgramAddrMapFP, ProgramLabelMapFP; integer ProgramAddrMapFP, ProgramLabelMapFP;
longint ProgramAddrMapLineCount; longint ProgramAddrMapLineCount;
integer ProgramLabelMapLineCount; longint ProgramLabelMapLineCount;
longint ProgramAddrMapLine; longint ProgramAddrMapLine;
string ProgramLabelMapLine; string ProgramLabelMapLine;
integer status; integer status;
@ -136,7 +136,7 @@ module FunctionName import cvw::*; #(parameter cvw_t P) (
ProgramAddrMapFP = $fopen(ProgramAddrMapFile, "r"); ProgramAddrMapFP = $fopen(ProgramAddrMapFile, "r");
// read line by line to count lines // read line by line to count lines
if (ProgramAddrMapFP) begin if (ProgramAddrMapFP != '0) begin
while (! $feof(ProgramAddrMapFP)) begin while (! $feof(ProgramAddrMapFP)) begin
status = $fscanf(ProgramAddrMapFP, "%h\n", ProgramAddrMapLine); status = $fscanf(ProgramAddrMapFP, "%h\n", ProgramAddrMapLine);
ProgramAddrMapMemory[ProgramAddrMapLineCount] = ProgramAddrMapLine; ProgramAddrMapMemory[ProgramAddrMapLineCount] = ProgramAddrMapLine;
@ -154,7 +154,7 @@ module FunctionName import cvw::*; #(parameter cvw_t P) (
ProgramLabelMapLineCount = 0; ProgramLabelMapLineCount = 0;
ProgramLabelMapFP = $fopen(ProgramLabelMapFile, "r"); ProgramLabelMapFP = $fopen(ProgramLabelMapFile, "r");
if (ProgramLabelMapFP) begin if (ProgramLabelMapFP != '0) begin
while (! $feof(ProgramLabelMapFP)) begin while (! $feof(ProgramLabelMapFP)) begin
status = $fscanf(ProgramLabelMapFP, "%s\n", ProgramLabelMapLine); status = $fscanf(ProgramLabelMapFP, "%s\n", ProgramLabelMapLine);
ProgramLabelMapMemory[ProgramLabelMapLineCount] = ProgramLabelMapLine; ProgramLabelMapMemory[ProgramLabelMapLineCount] = ProgramLabelMapLine;