Resolved issue with questa not liking the TEST +arg as a generate.

This commit is contained in:
Rose Thompson 2024-11-12 23:57:30 -06:00
parent d5e8ecbed5
commit 8993432928

View File

@ -52,6 +52,7 @@ module loggers import cvw::*; #(parameter cvw_t P,
logic StartSampleDelayed, BeginDelayed;
logic EndSampleFirst;
logic [P.XLEN-1:0] InitialHPMCOUNTERH[P.COUNTERS-1:0];
logic EndSampleDelayed;
string HPMCnames[] = '{"Mcycle",
"------",
@ -80,6 +81,7 @@ module loggers import cvw::*; #(parameter cvw_t P,
"Divide Cycles"
};
always_comb
if (TEST == "embench") begin
StartSampleFirst = FunctionName.FunctionName.FunctionName == "start_trigger";
@ -93,13 +95,21 @@ module loggers import cvw::*; #(parameter cvw_t P,
end
// this code needs to be with embench and coremark but not the else condition
/* -----\/----- EXCLUDED -----\/-----
if (TEST == "embench" | TEST == "coremark") begin
logic EndSampleDelayed;
flopr #(1) EndSampleReg(clk, reset, EndSampleFirst, EndSampleDelayed);
assign EndSample = EndSampleFirst & ~ EndSampleDelayed;
end else begin
assign EndSample = DCacheFlushStart & ~DCacheFlushDone;
end
-----/\----- EXCLUDED -----/\----- */
flopr #(1) EndSampleReg(clk, reset, EndSampleFirst, EndSampleDelayed);
always_comb
if (TEST == "embench" | TEST == "coremark") begin
EndSample = EndSampleFirst & ~ EndSampleDelayed;
end else begin
EndSample = DCacheFlushStart & ~DCacheFlushDone;
end
/*
if(TEST == "embench") begin