Fix InitZero example

This commit is contained in:
Jerry Zhao
2024-03-16 19:37:18 -07:00
parent e07b9cf523
commit 07bc4bce4f

View File

@@ -61,8 +61,8 @@ trait CanHavePeripheryInitZero { this: BaseSubsystem =>
implicit val p: Parameters
p(InitZeroKey) .map { k =>
val initZero = LazyModule(new InitZero()(p))
val fbus = locateTLBusWrapper(FBUS)
val initZero = fbus { LazyModule(new InitZero()(p)) }
fbus.coupleFrom("init-zero") { _ := initZero.node }
}
}