devices: switch to using node-style API (#44)
[sifive-blocks.git] / src / main / scala / devices / mockaon / MockAONPeriphery.scala
index 6bdf6d5d7a65a3b93ea1bb679016fbe04f3d1554..f7f563bc77e9d8fea1f5188fff3782c22abf10a5 100644 (file)
@@ -22,8 +22,8 @@ trait HasPeripheryMockAON extends HasPeripheryBus
   // are in the proper clock domain.
   val mockAONParams= p(PeripheryMockAONKey)
   val aon = LazyModule(new MockAONWrapper(pbus.beatBytes, mockAONParams))
-  aon.node := pbus.toAsyncVariableWidthSlaves(sync = 3)
-  ibus.fromAsync := aon.intnode
+  aon.node := TLAsyncCrossingSource() := pbus.toVariableWidthSlaves
+  ibus.fromSync := IntSyncCrossingSink() := aon.intnode
 }
 
 trait HasPeripheryMockAONBundle {