wip before moving the fetchHalt

This commit is contained in:
Dolu1990 2018-05-06 16:38:00 +02:00
parent 294293cb70
commit e65757e34c
2 changed files with 5 additions and 3 deletions

View File

@ -289,9 +289,11 @@ abstract class IBusFetcherImpl(val catchAccessFault : Boolean,
// }
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) {
decode.arbitration.isValid := True
decode.arbitration.haltItself setWhen(!state)
decode.insert(INSTRUCTION) := injectionPort.payload
}
}

View File

@ -109,8 +109,8 @@ class IBusSimplePlugin(interfaceKeepData : Boolean, catchAccessFault : Boolean,
catchAccessFault = catchAccessFault,
resetVector = BigInt(0x80000000l),
keepPcPlus4 = false,
decodePcGen = true,
compressedGen = true,
decodePcGen = false,
compressedGen = false,
cmdToRspStageCount = 1,
rspStageGen = false,
injectorReadyCutGen = false,