Fix relaxedBusCmdValid pendingCmd overflow
This commit is contained in:
parent
7768f065e4
commit
dc968020c4
|
@ -160,9 +160,10 @@ class IBusSimplePlugin(resetVector : BigInt,
|
||||||
val pipFork = fork(1)
|
val pipFork = fork(1)
|
||||||
output << pipFork
|
output << pipFork
|
||||||
|
|
||||||
iBus.cmd.valid := busFork.valid && pendingCmd =/= pendingMax
|
val okBus = pendingCmd =/= pendingMax
|
||||||
|
iBus.cmd.valid := busFork.valid && okBus
|
||||||
iBus.cmd.pc := busFork.payload(31 downto 2) @@ "00"
|
iBus.cmd.pc := busFork.payload(31 downto 2) @@ "00"
|
||||||
busFork.ready := iBus.cmd.ready
|
busFork.ready := iBus.cmd.ready && okBus
|
||||||
} else new Area {
|
} else new Area {
|
||||||
def input = fetchPc.output
|
def input = fetchPc.output
|
||||||
def output = iBusRsp.input
|
def output = iBusRsp.input
|
||||||
|
|
Loading…
Reference in New Issue