wip before moving the fetchHalt
This commit is contained in:
parent
294293cb70
commit
e65757e34c
|
@ -289,9 +289,11 @@ abstract class IBusFetcherImpl(val catchAccessFault : Boolean,
|
||||||
// }
|
// }
|
||||||
|
|
||||||
if(injectionPort != null){
|
if(injectionPort != null){
|
||||||
injectionPort.ready := !decode.arbitration.isStuck
|
val state = RegNext(injectionPort.valid) init(False) clearWhen(injectionPort.ready)
|
||||||
|
injectionPort.ready := !decode.arbitration.isStuck && state
|
||||||
when(injectionPort.valid) {
|
when(injectionPort.valid) {
|
||||||
decode.arbitration.isValid := True
|
decode.arbitration.isValid := True
|
||||||
|
decode.arbitration.haltItself setWhen(!state)
|
||||||
decode.insert(INSTRUCTION) := injectionPort.payload
|
decode.insert(INSTRUCTION) := injectionPort.payload
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -109,8 +109,8 @@ class IBusSimplePlugin(interfaceKeepData : Boolean, catchAccessFault : Boolean,
|
||||||
catchAccessFault = catchAccessFault,
|
catchAccessFault = catchAccessFault,
|
||||||
resetVector = BigInt(0x80000000l),
|
resetVector = BigInt(0x80000000l),
|
||||||
keepPcPlus4 = false,
|
keepPcPlus4 = false,
|
||||||
decodePcGen = true,
|
decodePcGen = false,
|
||||||
compressedGen = true,
|
compressedGen = false,
|
||||||
cmdToRspStageCount = 1,
|
cmdToRspStageCount = 1,
|
||||||
rspStageGen = false,
|
rspStageGen = false,
|
||||||
injectorReadyCutGen = false,
|
injectorReadyCutGen = false,
|
||||||
|
|
Loading…
Reference in New Issue