diplomacy: run user instantiate() method after nodes are initialized (#1198)
This commit is contained in:
parent
5cc1411e14
commit
f6f5606f8e
@ -174,7 +174,6 @@ sealed trait LazyModuleImpLike extends BaseModule
|
|||||||
mod.finishInstantiate()
|
mod.finishInstantiate()
|
||||||
mod.dangles
|
mod.dangles
|
||||||
}
|
}
|
||||||
wrapper.instantiate()
|
|
||||||
val nodeDangles = wrapper.nodes.reverse.flatMap(_.instantiate())
|
val nodeDangles = wrapper.nodes.reverse.flatMap(_.instantiate())
|
||||||
val allDangles = nodeDangles ++ childDangles
|
val allDangles = nodeDangles ++ childDangles
|
||||||
val pairing = SortedMap(allDangles.groupBy(_.source).toSeq:_*)
|
val pairing = SortedMap(allDangles.groupBy(_.source).toSeq:_*)
|
||||||
@ -189,6 +188,7 @@ sealed trait LazyModuleImpLike extends BaseModule
|
|||||||
if (d.flipped) { d.data <> io } else { io <> d.data }
|
if (d.flipped) { d.data <> io } else { io <> d.data }
|
||||||
d.copy(data = io, name = wrapper.valName.getOrElse("anon") + "_" + d.name)
|
d.copy(data = io, name = wrapper.valName.getOrElse("anon") + "_" + d.name)
|
||||||
}
|
}
|
||||||
|
wrapper.instantiate()
|
||||||
(auto, dangles)
|
(auto, dangles)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user