devices: switch to using node-style API (#44)
[sifive-blocks.git] / src / main / scala / devices / spi / SPIPeriphery.scala
index b2edb0f64f14d2f9009af8d34cfbc56d6992a953..dd76d15db4df1ca8149bef39a53c55f0b8cb2478 100644 (file)
@@ -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
   }