DBusCachedPlugin add CSR info
This commit is contained in:
parent
74f2a4194a
commit
978eb9b6b2
|
@ -18,7 +18,9 @@ class DAxiCachedPlugin(config : DataCacheConfig, memoryTranslatorPortConfig : An
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
class DBusCachedPlugin(config : DataCacheConfig, memoryTranslatorPortConfig : Any = null) extends Plugin[VexRiscv]{
|
class DBusCachedPlugin(config : DataCacheConfig,
|
||||||
|
memoryTranslatorPortConfig : Any = null,
|
||||||
|
csrInfo : Boolean = false) extends Plugin[VexRiscv]{
|
||||||
import config._
|
import config._
|
||||||
var dBus : DataCacheMemBus = null
|
var dBus : DataCacheMemBus = null
|
||||||
var mmuBus : MemoryTranslatorBus = null
|
var mmuBus : MemoryTranslatorBus = null
|
||||||
|
@ -213,7 +215,12 @@ class DBusCachedPlugin(config : DataCacheConfig, memoryTranslatorPortConfig : An
|
||||||
when(arbitration.isValid && input(MEMORY_ENABLE)) {
|
when(arbitration.isValid && input(MEMORY_ENABLE)) {
|
||||||
output(REGFILE_WRITE_DATA) := rspFormated
|
output(REGFILE_WRITE_DATA) := rspFormated
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(csrInfo){
|
||||||
|
val csr = service(classOf[CsrPlugin])
|
||||||
|
csr.r(0xCC0, 0 -> U(cacheSize/wayCount), 20 -> U(bytePerLine))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue