devices: switch to using node-style API (#44)
[sifive-blocks.git] / src / main / scala / devices / mockaon / MockAONWrapper.scala
index 426c200b27dbd8766d7bd551dff6167f6e0ff303..86e5f1949317a8899f81849df95941420f689923 100644 (file)
@@ -44,12 +44,10 @@ class MockAONWrapper(w: Int, c: MockAONParams)(implicit p: Parameters) extends L
   val isolation = LazyModule(new TLIsolation(fOut = isoOut, fIn = isoIn))
   val crossing = LazyModule(new TLAsyncCrossingSink(depth = 1))
 
   val isolation = LazyModule(new TLIsolation(fOut = isoOut, fIn = isoIn))
   val crossing = LazyModule(new TLAsyncCrossingSink(depth = 1))
 
-  val node: TLAsyncInwardNode = isolation.node
-  crossing.node := isolation.node
-  aon.node := crossing.node
+  val node = aon.node := crossing.node := isolation.node
 
   // crossing lives outside in Periphery
 
   // crossing lives outside in Periphery
-  val intnode: IntOutwardNode = aon.intnode
+  val intnode = IntSyncCrossingSource(alreadyRegistered = true) := aon.intnode
 
   lazy val module = new LazyModuleImp(this) {
     val io = IO(new MockAONWrapperBundle {
 
   lazy val module = new LazyModuleImp(this) {
     val io = IO(new MockAONWrapperBundle {