ruby: slicc: set sender, receiver clock objs for optional queue

This commit is contained in:
Nilay Vaish 2013-03-22 17:21:23 -05:00
parent e85b556d70
commit b2c8c50f17

View file

@ -590,6 +590,9 @@ $c_ident::init()
code('$vid->setReceiver(this);')
elif vtype.c_ident == "TimerTable":
code('$vid->setClockObj(this);')
elif var.ident.find("optionalQueue") >= 0:
code('$vid->setSender(this);')
code('$vid->setReceiver(this);')
else:
# Network port object