Skip to content

Commit 7969ad7

Browse files
authored
Merge pull request #3285 from The-OpenROAD-Project-staging/veneer-fix2
Fix cell-veneer again - just remove the problematic concats
2 parents aaf4f6a + 47750e1 commit 7969ad7

File tree

1 file changed

+26
-30
lines changed

1 file changed

+26
-30
lines changed

flow/util/cell-veneer/lefdef.tcl

Lines changed: 26 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -312,9 +312,8 @@ proc write { design } {
312312
out " ORIGIN 0.0 0.0 ;"
313313
}
314314
out " FOREIGN [dict get $design foreign ref] [dict get $design foreign origin] ;"
315-
out [concat \
316-
" SIZE [expr 1.0 * [lindex [dict get $design die_area] 2] / $def_units]" \
317-
" BY [expr 1.0 * [lindex [dict get $design die_area] 3] / $def_units] ;"]
315+
out " SIZE [expr 1.0 * [lindex [dict get $design die_area] 2] / $def_units]\
316+
BY [expr 1.0 * [lindex [dict get $design die_area] 3] / $def_units] ;"
318317
out " SYMMETRY [dict get $design symmetry] ;"
319318
if { [dict exists $design site] } {
320319
out " SITE [dict get $design site] ;"
@@ -344,10 +343,10 @@ proc write { design } {
344343
set rect [absolute_rectangle [dict get $shape rect] $offset]
345344

346345
if { [dict exists $shape mask] } {
347-
out [concat \
348-
" RECT MASK [dict get $shape mask]" \
349-
" [lmap x $rect { expr { 1.0 * $x / $def_units } }]" \
350-
" ;"]
346+
out \
347+
" RECT MASK [dict get $shape mask]\
348+
[lmap x $rect { expr { 1.0 * $x / $def_units } }] \
349+
;"
351350
} else {
352351
out " RECT [lmap x $rect { expr 1.0 * $x / $def_units }] ;"
353352
}
@@ -383,10 +382,9 @@ proc write { design } {
383382
out " LAYER $layer_name ;"
384383
foreach obs $obstructions {
385384
if { [dict exists $obs mask] } {
386-
out [concat \
387-
" RECT MASK [dict get $obs mask]" \
388-
" [lmap x [dict get $obs rect] { expr { 1.0 * $x / $def_units } }]" \
389-
" ;"]
385+
out " RECT MASK [dict get $obs mask]\
386+
[lmap x [dict get $obs rect] { expr { 1.0 * $x / $def_units } }]
387+
;"
390388
} else {
391389
out " RECT [lmap x [dict get $obs rect] { expr 1.0 * $x / $def_units }] ;"
392390
}
@@ -740,9 +738,8 @@ proc write { design } {
740738
}
741739

742740
out ""
743-
out [concat \
744-
"DIEAREA ( [lrange [dict get $design die_area] 0 1] )" \
745-
" ( [lrange [dict get $design die_area] 2 3] ) ;"]
741+
out "DIEAREA ( [lrange [dict get $design die_area] 0 1] )\
742+
( [lrange [dict get $design die_area] 2 3] ) ;"
746743

747744
if { [dict exists $design tracks] } {
748745

@@ -756,19 +753,18 @@ proc write { design } {
756753
[dict get $design rows $idx start] \
757754
[dict get $design rows $idx height] \
758755
[dict get $design rows $idx orientation]]
759-
out [concat \
760-
" DO [dict get $design rows $idx num_sites] BY 1 STEP " \
761-
"[dict get $design rows $idx site_width] 0 ;"]
756+
out " DO [dict get $design rows $idx num_sites] BY 1 STEP\
757+
[dict get $design rows $idx site_width] 0 ;"
762758
}
763759
}
764760

765761
if { [dict exists $design pins] } {
766762
out ""
767763
out "PINS [dict size [dict get $design pins]] ;"
768764
dict for {pin_name pin} [dict get $design pins] {
769-
out -nonewline [concat \
770-
"- $pin_name + NET [dict get $pin net_name]" \
771-
"+ DIRECTION [dict get $pin direction]"]
765+
out -nonewline \
766+
"- $pin_name + NET [dict get $pin net_name]\
767+
+ DIRECTION [dict get $pin direction]"
772768
if { [dict exists $pin use] } {
773769
out -nonewline " + USE [dict get $pin use]"
774770
}
@@ -866,9 +862,9 @@ proc write { design } {
866862
set mask ""
867863
}
868864
if { [llength $point] == 2 } {
869-
out -nonewline [concat \
870-
" + $type [dict get $route layer] " \
871-
"[get_line_width [dict get $route layer] [list $first_point $point]] "]
865+
out -nonewline \
866+
" + $type [dict get $route layer]\
867+
[get_line_width [dict get $route layer] [list $first_point $point]] "
872868
out -nonewline $shape
873869
out -nonewline $points
874870
out -nonewline $mask
@@ -899,19 +895,19 @@ proc write { design } {
899895
}
900896
if { [dict exists $net routes] } {
901897
set route [lindex [dict get $net routes] 0]
902-
out -nonewline [concat \
903-
" + ROUTED [dict get $route layer] " \
904-
"[expr round([dict get $route width])] " \
905-
"+ SHAPE [dict get $route shape] "]
898+
out -nonewline \
899+
" + ROUTED [dict get $route layer]\
900+
[expr round([dict get $route width])]\
901+
+ SHAPE [dict get $route shape] "
906902
foreach point [dict get $route points] {
907903
out -nonewline " $point"
908904
}
909905
out ""
910906

911907
foreach route [lrange [dict get $net routes] 1 end] {
912-
out [concat \
913-
" NEW [dict get $route layer] [expr round([dict get $route width])]" \
914-
"+ SHAPE [dict get $route shape] "]
908+
out \
909+
" NEW [dict get $route layer] [expr round([dict get $route width])]\
910+
+ SHAPE [dict get $route shape] "
915911
foreach point [dict get $route points] {
916912
out -nonewline " $point"
917913
}

0 commit comments

Comments
 (0)