Skip to content

Commit acc05e8

Browse files
committed
Free shapeSet
Signed-off-by: Faholan <[email protected]>
1 parent 5443cc6 commit acc05e8

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

flow/scripts/placement_blockages.tcl

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ proc block_channels {channel_width_in_microns} {
1818
# Resize to fill the channels and edge gap
1919
#
2020
set resize_by [expr round($channel_width_in_microns * $units)]
21-
set shapeSet [odb::orSets $shapes]
22-
set shapeSet [odb::bloatSet $shapeSet $resize_by]
21+
set shapeSet0 [odb::orSets $shapes]
22+
set shapeSet1 [odb::bloatSet $shapeSet0 $resize_by]
2323

2424
#
2525
# Clip result to the core area
@@ -30,7 +30,7 @@ proc block_channels {channel_width_in_microns} {
3030
set xh [$core xMax]
3131
set yh [$core yMax]
3232
set core_rect [odb::newSetFromRect $xl $yl $xh $yh]
33-
set shapeSet [odb::andSet $shapeSet $core_rect]
33+
set shapeSet [odb::andSet $shapeSet1 $core_rect]
3434

3535
#
3636
# Output the blockages
@@ -41,5 +41,10 @@ proc block_channels {channel_width_in_microns} {
4141
[$rect xMin] [$rect yMin] [$rect xMax] [$rect yMax]]
4242
$b setSoft
4343
}
44+
45+
odb::destroySet $shapeSet
46+
odb::destroySet $shapeSet1
47+
odb::destroySet $shapeSet0
48+
odb::destroySet $core_rect
4449
}
4550

0 commit comments

Comments
 (0)