Fix missing update session in block/spares.
* Bug: In cumulus/plugins/alpha/block/clocktree.ClockTree.splitClock(), forgot to wrap inside an UpdateSession. * Bug: In cumulus/plugins/alpha/block/clocktree.spares.raddTransNet(), forgot to set the masterNet for recursive call when the plug already exists.
This commit is contained in:
parent
51e3639687
commit
1c6a9b64b0
|
@ -176,7 +176,8 @@ class ClockTree ( object ):
|
||||||
quadTree = self.spares.quadTree
|
quadTree = self.spares.quadTree
|
||||||
quadTree.bufferTag = self.clockNet.getName()
|
quadTree.bufferTag = self.clockNet.getName()
|
||||||
|
|
||||||
hyperClock = HyperNet.create( Occurrence(self.clockNet) )
|
with UpdateSession():
|
||||||
for plugOccurrence in hyperClock.getTerminalNetlistPlugOccurrences():
|
hyperClock = HyperNet.create( Occurrence(self.clockNet) )
|
||||||
quadTree.attachToLeaf( plugOccurrence )
|
for plugOccurrence in hyperClock.getTerminalNetlistPlugOccurrences():
|
||||||
quadTree.rsplitNetlist()
|
quadTree.attachToLeaf( plugOccurrence )
|
||||||
|
quadTree.rsplitNetlist()
|
||||||
|
|
|
@ -569,6 +569,8 @@ class Spares ( object ):
|
||||||
% (topNet.getName(),headInstance.getName(),masterCell.getName()) )
|
% (topNet.getName(),headInstance.getName(),masterCell.getName()) )
|
||||||
headPlug.setNet( topNet )
|
headPlug.setNet( topNet )
|
||||||
self.addClonedCell( masterCell )
|
self.addClonedCell( masterCell )
|
||||||
|
else:
|
||||||
|
masterNet = headPlug.getMasterNet()
|
||||||
|
|
||||||
if tailPath.isEmpty(): return headPlug
|
if tailPath.isEmpty(): return headPlug
|
||||||
return self.raddTransNet( masterNet, tailPath )
|
return self.raddTransNet( masterNet, tailPath )
|
||||||
|
|
Loading…
Reference in New Issue