mirror of
https://github.com/openhwgroup/cvw
synced 2025-01-23 13:04:28 +00:00
Resolved issue with questa not liking the TEST +arg as a generate.
This commit is contained in:
parent
d5e8ecbed5
commit
8993432928
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user