fix: Fix FetchUnit PC initialization issue
This commit is contained in:
parent
59dc2337cb
commit
9862402688
|
@ -13,7 +13,7 @@ class FetchUnit extends Module {
|
|||
val instSram = new InstSram()
|
||||
})
|
||||
|
||||
val pc = RegNext(io.instSram.addr, (PC_INIT - 4.U))
|
||||
val pc = RegEnable(io.instSram.addr, (PC_INIT - 4.U), io.decodeStage.data.valid)
|
||||
|
||||
io.instSram.addr := MuxCase(
|
||||
pc + 4.U,
|
||||
|
|
2
difftest
2
difftest
|
@ -1 +1 @@
|
|||
Subproject commit 2207e5e02ef77abe5d48fdf8ec2174107cc05c1d
|
||||
Subproject commit 8fb9d90b00e02be2baa7536ffa43fe0a6d6dc7f6
|
Loading…
Reference in New Issue