Add Keep attribut on dBusCached relaxedMemoryTranslationRegister feature

This commit is contained in:
Charles Papon 2019-10-11 00:22:44 +02:00
parent 51d22d4a8c
commit 3fc0a74102
1 changed files with 4 additions and 1 deletions

View File

@ -223,7 +223,10 @@ class DBusCachedPlugin(val config : DataCacheConfig,
arbitration.haltItself := True
}
if(relaxedMemoryTranslationRegister) insert(MEMORY_VIRTUAL_ADDRESS) := cache.io.cpu.execute.address
if(relaxedMemoryTranslationRegister) {
insert(MEMORY_VIRTUAL_ADDRESS) := cache.io.cpu.execute.address
addPrePopTask( () => KeepAttribute(memory.input(MEMORY_VIRTUAL_ADDRESS).getDrivingReg))
}
}
memory plug new Area{