1
0

Periphery: make bus width and arithmetic atomics configurable (#337)

This commit is contained in:
Wesley W. Terpstra
2016-09-23 15:25:58 -07:00
committed by Yunsup Lee
parent 47843d8ec1
commit d175bb314d
4 changed files with 24 additions and 10 deletions

View File

@ -49,7 +49,12 @@ abstract class BaseTop(q: Parameters) extends LazyModule {
val legacy = LazyModule(new TLLegacy()(p.alterPartial({ case TLId => "L2toMMIO" })))
peripheryBus.node := TLWidthWidget(legacy.tlDataBytes)(TLBuffer()(TLAtomicAutomata()(TLHintHandler()(legacy.node))))
peripheryBus.node :=
TLWidthWidget(legacy.tlDataBytes)(
TLBuffer()(
TLAtomicAutomata(arithmetic = p(PeripheryBusKey).arithAMO)(
TLHintHandler()(
legacy.node))))
}
abstract class BaseTopBundle(val p: Parameters) extends Bundle {