Skip to content

Commit 9ad7339

Browse files
committed
fix: delay one cycle to match valid-ready time seq in soc env
1 parent 8e96393 commit 9ad7339

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

rtl/tc_l2/src/main/scala/core/inst/PCReg.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,13 @@ class PCReg() extends Module with AXI4Config with InstConfig {
1717

1818
// now we dont handle this resp info to check if the read oper is right
1919
// tmp
20+
protected val tmpStall = if (SoCEna) RegNext(~io.ctrl2pc.maStall) else ~io.ctrl2pc.maStall
2021
io.axi.req := 0.U // 0: read 1: write
2122
io.axi.wdata := DontCare
2223
io.axi.resp := DontCare
2324
io.axi.addr := pc
2425
io.axi.id := 0.U
25-
io.axi.valid := ~io.ctrl2pc.maStall // TODO: maybe this code lead to cycle
26+
io.axi.valid := tmpStall // TODO: maybe this code lead to cycle
2627
io.axi.size := AXI4Bridge.SIZE_W
2728

2829
when(io.ctrl2pc.jump) {

0 commit comments

Comments
 (0)