SmpCluster now use i$ line of 64 bytes
This commit is contained in:
parent
9e9d28bfa6
commit
7c50fa6d55
|
@ -145,7 +145,7 @@ object VexRiscvSmpClusterGen {
|
||||||
relaxedPcCalculation = true,
|
relaxedPcCalculation = true,
|
||||||
config = InstructionCacheConfig(
|
config = InstructionCacheConfig(
|
||||||
cacheSize = 4096*1,
|
cacheSize = 4096*1,
|
||||||
bytePerLine = 32,
|
bytePerLine = 64,
|
||||||
wayCount = 1,
|
wayCount = 1,
|
||||||
addressWidth = 32,
|
addressWidth = 32,
|
||||||
cpuDataWidth = 32,
|
cpuDataWidth = 32,
|
||||||
|
|
|
@ -148,8 +148,9 @@ case class VexRiscvLitexSmpCluster(p : VexRiscvLitexSmpClusterParameter,
|
||||||
iBusDecoder.io.input << iBusArbiter.io.output
|
iBusDecoder.io.input << iBusArbiter.io.output
|
||||||
io.iMem.fromBmb(iBusDecoder.io.outputs(1))
|
io.iMem.fromBmb(iBusDecoder.io.outputs(1))
|
||||||
|
|
||||||
|
val peripheralAccessLength = Math.max(iBusDecoder.io.outputs(0).p.lengthWidth, dBusDecoder.io.outputs(0).p.lengthWidth)
|
||||||
val peripheralArbiter = BmbArbiter(
|
val peripheralArbiter = BmbArbiter(
|
||||||
p = dBusDecoder.io.outputs(0).p.copy(sourceWidth = dBusDecoder.io.outputs(0).p.sourceWidth + 1),
|
p = dBusDecoder.io.outputs(0).p.copy(sourceWidth = dBusDecoder.io.outputs(0).p.sourceWidth + 1, lengthWidth = peripheralAccessLength),
|
||||||
portCount = 2,
|
portCount = 2,
|
||||||
lowerFirstPriority = true
|
lowerFirstPriority = true
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue