devices: switch to using node-style API (#44)
This commit is contained in:
committed by
GitHub
parent
e4960a4e5a
commit
90e6ea1d2d
@ -41,10 +41,10 @@ trait HasPeripherySPIFlash extends HasPeripheryBus with HasInterruptBus {
|
||||
val qspis = spiFlashParams map { params =>
|
||||
val qspi = LazyModule(new TLSPIFlash(pbus.beatBytes, params))
|
||||
qspi.rnode := pbus.toVariableWidthSlaves
|
||||
qspi.fnode :=
|
||||
TLFragmenter(1, pbus.blockBytes)(
|
||||
TLBuffer(BufferParams(params.fBufferDepth), BufferParams.none)(
|
||||
pbus.toFixedWidthSlaves))
|
||||
(qspi.fnode
|
||||
:= TLFragmenter(1, pbus.blockBytes)
|
||||
:= TLBuffer(BufferParams(params.fBufferDepth), BufferParams.none)
|
||||
:= pbus.toFixedWidthSlaves)
|
||||
ibus.fromSync := qspi.intnode
|
||||
qspi
|
||||
}
|
||||
|
Reference in New Issue
Block a user