Better print statements

This commit is contained in:
Louis Hobson
2025-03-10 17:05:47 +00:00
committed by Jonathan Woodruff
parent 04ee741ce2
commit 0c634fc019

View File

@@ -643,11 +643,12 @@ endfunction
line: newLine // write new data into cache line: newLine // write new data into cache
}, isValid(succ) ? pipeOutNextInQueue : pipeOutSecondInQueue, True); // hit, so update rep info }, isValid(succ) ? pipeOutNextInQueue : pipeOutSecondInQueue, True); // hit, so update rep info
if (!isValid(succ) &&& pipeOutNextInQueue matches tagged Valid .nextInQueue) begin if (!isValid(succ) &&& pipeOutNextInQueue matches tagged Valid .nextInQueue) begin
$display("%t L1D dequeuing queued req: mshr: %d, queueSucc: ", if (verbose)
$time, $display("%t L1 %m pipelineResp: Hit func: dequeuing req: mshr: %d, queueSucc: ",
nextInQueue, $time,
fshow(pipeOutSecondInQueue) nextInQueue,
); fshow(pipeOutSecondInQueue)
);
cRqRetryIndexQ.enq(nextInQueue); cRqRetryIndexQ.enq(nextInQueue);
cRqMshr.manageQueue.resetEntry(nextInQueue); cRqMshr.manageQueue.resetEntry(nextInQueue);
end end
@@ -913,6 +914,10 @@ endfunction
end end
cRqQueue; cRqQueue;
end end
if (verbose)
$display("%t L1 %m pipelineResp: cRq: all ways owned, queuing ", $time,
fshow(n), " after ", fshow(cRqQueuedEOC)
);
end end
end end
else begin else begin
@@ -1092,11 +1097,12 @@ endfunction
line: ram.line line: ram.line
}, pipeOutSecondInQueue, False); }, pipeOutSecondInQueue, False);
if (pipeOutNextInQueue matches tagged Valid .nextInQueue) begin if (pipeOutNextInQueue matches tagged Valid .nextInQueue) begin
$display("%t L1D dequeuing queued req: mshr: %d, queueSucc: ", if (verbose)
$time, $display("%t L1 %m pipelineResp: pRq: dequeuing req: mshr: %d, queueSucc: ",
nextInQueue, $time,
fshow(pipeOutSecondInQueue) nextInQueue,
); fshow(pipeOutSecondInQueue)
);
cRqRetryIndexQ.enq(nextInQueue); cRqRetryIndexQ.enq(nextInQueue);
cRqMshr.manageQueue.resetEntry(nextInQueue); cRqMshr.manageQueue.resetEntry(nextInQueue);
end end