mirror of
https://github.com/openhwgroup/cvw
synced 2025-01-29 16:04:29 +00:00
Merge branch 'main' of https://github.com/davidharrishmc/riscv-wally into main
This commit is contained in:
commit
5e3f2ce5d5
@ -474,18 +474,18 @@ module testbench();
|
||||
end
|
||||
|
||||
string PCtextD,PCtextE,PCtextM,PCtext2;
|
||||
//always_ff @(posedge clk, posedge reset)
|
||||
// if (reset) begin
|
||||
// PCtextE <= #1 "(reset)";
|
||||
// PCtextM <= #1 "(reset)";
|
||||
// end else begin
|
||||
// if (~dut.hart.StallE)
|
||||
// if (dut.hart.FlushE) PCtextE <= #1 "(flushed)";
|
||||
// else PCtextE <= #1 PCtextD;
|
||||
// if (~dut.hart.StallM)
|
||||
// if (dut.hart.FlushM) PCtextM <= #1 "(flushed)";
|
||||
// else PCtextM <= #1 PCtextE;
|
||||
// end
|
||||
always_ff @(posedge clk, posedge reset)
|
||||
if (reset) begin
|
||||
PCtextE = "(reset)";
|
||||
PCtextM = "(reset)";
|
||||
end else begin
|
||||
if (~dut.hart.StallM)
|
||||
if (dut.hart.FlushM) PCtextM = "(flushed)";
|
||||
else PCtextM = PCtextE;
|
||||
if (~dut.hart.StallE)
|
||||
if (dut.hart.FlushE) PCtextE = "(flushed)";
|
||||
else PCtextE = PCtextD;
|
||||
end
|
||||
|
||||
|
||||
initial begin
|
||||
|
Loading…
Reference in New Issue
Block a user