Deanonymize CSRFile's IO bundle
This commit is contained in:
parent
fd5f419eb1
commit
94c1f01ec6
@ -33,9 +33,7 @@ object CSR
|
|||||||
val C = Bits(3,2)
|
val C = Bits(3,2)
|
||||||
}
|
}
|
||||||
|
|
||||||
class CSRFile(implicit conf: RocketConfiguration) extends Module
|
class CSRFileIO(implicit conf: RocketConfiguration) extends Bundle {
|
||||||
{
|
|
||||||
val io = new Bundle {
|
|
||||||
val host = new HTIFIO(conf.tl.ln.nClients)
|
val host = new HTIFIO(conf.tl.ln.nClients)
|
||||||
val rw = new Bundle {
|
val rw = new Bundle {
|
||||||
val addr = UInt(INPUT, 12)
|
val addr = UInt(INPUT, 12)
|
||||||
@ -62,6 +60,10 @@ class CSRFile(implicit conf: RocketConfiguration) extends Module
|
|||||||
val rocc = new RoCCInterface().flip
|
val rocc = new RoCCInterface().flip
|
||||||
}
|
}
|
||||||
|
|
||||||
|
class CSRFile(implicit conf: RocketConfiguration) extends Module
|
||||||
|
{
|
||||||
|
val io = new CSRFileIO
|
||||||
|
|
||||||
val reg_epc = Reg(Bits(width = conf.as.vaddrBits+1))
|
val reg_epc = Reg(Bits(width = conf.as.vaddrBits+1))
|
||||||
val reg_badvaddr = Reg(Bits(width = conf.as.vaddrBits))
|
val reg_badvaddr = Reg(Bits(width = conf.as.vaddrBits))
|
||||||
val reg_evec = Reg(Bits(width = conf.as.vaddrBits))
|
val reg_evec = Reg(Bits(width = conf.as.vaddrBits))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user