mirror of
https://github.com/openhwgroup/cvw
synced 2025-02-11 06:05:49 +00:00
Only output instruction count when the csrs are implemented.
This commit is contained in:
parent
8b5970fdc4
commit
58580445ab
@ -539,10 +539,12 @@ module testbench;
|
|||||||
|
|
||||||
DCacheFlushFSM #(P) DCacheFlushFSM(.clk(clk), .reset(reset), .start(DCacheFlushStart), .done(DCacheFlushDone));
|
DCacheFlushFSM #(P) DCacheFlushFSM(.clk(clk), .reset(reset), .start(DCacheFlushStart), .done(DCacheFlushDone));
|
||||||
|
|
||||||
logic [P.XLEN-1:0] Minstret;
|
if(P.ZICSR_SUPPORTED) begin
|
||||||
assign Minstret = testbench.dut.core.priv.priv.csr.counters.counters.HPMCOUNTER_REGW[2];
|
logic [P.XLEN-1:0] Minstret;
|
||||||
always @(negedge clk) begin
|
assign Minstret = testbench.dut.core.priv.priv.csr.counters.counters.HPMCOUNTER_REGW[2];
|
||||||
if((Minstret != 0) && (Minstret % 'd100000 == 0)) $display("Reached %d instructions", Minstret);
|
always @(negedge clk) begin
|
||||||
|
if((Minstret != 0) && (Minstret % 'd100000 == 0)) $display("Reached %d instructions", Minstret);
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
task automatic CheckSignature;
|
task automatic CheckSignature;
|
||||||
|
Loading…
Reference in New Issue
Block a user