1
0

interrupts: add debugstring to nodes to show sync depth in graphml

This commit is contained in:
Wesley W. Terpstra
2017-10-26 13:11:47 -07:00
parent 2acff8d21f
commit e76e0f6dce
2 changed files with 10 additions and 4 deletions

View File

@ -51,12 +51,18 @@ object IntSyncImp extends SimpleNodeImp[IntSourcePortParameters, IntSinkPortPara
case class IntSyncIdentityNode()(implicit valName: ValName) extends IdentityNode(IntSyncImp)()
case class IntSyncSourceNode()(implicit valName: ValName)
case class IntSyncSourceNode(alreadyRegistered: Boolean)(implicit valName: ValName)
extends MixedAdapterNode(IntImp, IntSyncImp)(
dFn = { p => p },
uFn = { p => p })
{
override lazy val nodedebugstring = s"alreadyRegistered:${alreadyRegistered}"
}
case class IntSyncSinkNode()(implicit valName: ValName)
case class IntSyncSinkNode(sync: Int)(implicit valName: ValName)
extends MixedAdapterNode(IntSyncImp, IntImp)(
dFn = { p => p },
uFn = { p => p })
{
override lazy val nodedebugstring = s"sync:${sync}"
}