@@ -179,7 +179,7 @@ def getParamNames(self):
179
179
180
180
class DefinitionInfoTable (object ):
181
181
def __init__ (self ):
182
- self .dict = {}
182
+ self .dict = collections . OrderedDict ()
183
183
self .current = None
184
184
def addDefinition (self , name , definition ):
185
185
if name in self .dict :
@@ -264,8 +264,8 @@ def __init__(self, name, previous, frametype='none',
264
264
self .variables = Variables ()
265
265
self .functions = FunctionInfoTable ()
266
266
self .tasks = TaskInfoTable ()
267
- self .blockingassign = {}
268
- self .nonblockingassign = {}
267
+ self .blockingassign = collections . OrderedDict ()
268
+ self .nonblockingassign = collections . OrderedDict ()
269
269
270
270
self .modulename = modulename
271
271
@@ -541,28 +541,28 @@ def getAllInstances(self):
541
541
return tuple (ret )
542
542
543
543
def getAllSignals (self ):
544
- ret = {}
544
+ ret = collections . OrderedDict ()
545
545
for dk , dv in self .dict .items ():
546
546
ret .update (
547
547
map_key ((lambda x : dk + ScopeLabel (x ,'signal' )), dv .getSignals ()))
548
548
return ret
549
549
550
550
def getAllConsts (self ):
551
- ret = {}
551
+ ret = collections . OrderedDict ()
552
552
for dk , dv in self .dict .items ():
553
553
ret .update (
554
554
map_key ((lambda x : dk + ScopeLabel (x ,'signal' )), dv .getConsts ()))
555
555
return ret
556
556
557
557
def getAllFunctions (self ):
558
- ret = {}
558
+ ret = collections . OrderedDict ()
559
559
for dk , dv in self .dict .items ():
560
560
ret .update (
561
561
map_key ((lambda x : dk + ScopeLabel (x ,'function' )), dv .getFunctions ()))
562
562
return ret
563
563
564
564
def getAllTasks (self ):
565
- ret = {}
565
+ ret = collections . OrderedDict ()
566
566
for dk , dv in self .dict .items ():
567
567
ret .update (
568
568
map_key ((lambda x : dk + ScopeLabel (x ,'task' )), dv .getTasks ()))
@@ -640,9 +640,9 @@ def getNonblockingAssigns(self):
640
640
641
641
def getPreviousNonblockingAssign (self ):
642
642
previous = self .dict [self .current ].previous
643
- if len (previous ) == 0 : return {}
643
+ if len (previous ) == 0 : return collections . OrderedDict ()
644
644
previous_frame = self .dict [previous ]
645
- if not previous_frame .isAlways (): return {}
645
+ if not previous_frame .isAlways (): return collections . OrderedDict ()
646
646
return previous_frame .getNonblockingAssigns ()
647
647
648
648
def searchConstantDefinition (self , key , name ):
0 commit comments