ruby: slicc: set sender, receiver clock objs for optional queue
authorNilay Vaish <nilay@cs.wisc.edu>
Fri, 22 Mar 2013 22:21:23 +0000 (17:21 -0500)
committerNilay Vaish <nilay@cs.wisc.edu>
Fri, 22 Mar 2013 22:21:23 +0000 (17:21 -0500)
src/mem/slicc/symbols/StateMachine.py

index 4a33d78bab4b4bd5dc570dc4c166a72bbcc3b22f..af1435ae852c3a09ba513f71f3a0ad1b3de235e6 100644 (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