Make toPipelinedMemoryBus() just like the other busses
This commit is contained in:
parent
46f10bacb2
commit
95c3e436dc
|
@ -59,6 +59,11 @@ object IBusSimpleBus{
|
|||
useBTE = true,
|
||||
useCTI = true
|
||||
)
|
||||
|
||||
def getPipelinedMemoryBusConfig() = PipelinedMemoryBusConfig(
|
||||
addressWidth = 32,
|
||||
dataWidth = 32
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
|
@ -136,7 +141,8 @@ case class IBusSimpleBus(interfaceKeepData : Boolean = false) extends Bundle wit
|
|||
}
|
||||
|
||||
def toPipelinedMemoryBus(): PipelinedMemoryBus = {
|
||||
val bus = PipelinedMemoryBus(32,32)
|
||||
val pipelinedMemoryBusConfig = IBusSimpleBus.getPipelinedMemoryBusConfig()
|
||||
val bus = PipelinedMemoryBus(pipelinedMemoryBusConfig)
|
||||
bus.cmd.arbitrationFrom(cmd)
|
||||
bus.cmd.address := cmd.pc.resized
|
||||
bus.cmd.write := False
|
||||
|
@ -281,4 +287,4 @@ class IBusSimplePlugin(resetVector : BigInt,
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue