@@ -13,6 +13,7 @@ proc relative_rectangle { rect offset } {
1313 [expr [lindex $rect 3] - [lindex $offset 1]]]
1414}
1515
16+ # tclint-disable-next-line command-args
1617if [package vcompare 8.6 $tcl_version ] {
1718 proc lmap {_var list body} {
1819 upvar 1 $_var var
@@ -26,11 +27,13 @@ namespace eval lef {
2627variable lefOut stdout
2728variable def_units 2000
2829
30+ # tclint-disable-next-line redefined-builtin
2931proc open { file_name } {
3032 variable lefOut
3133 set lefOut [::open $file_name w]
3234}
3335
36+ # tclint-disable-next-line redefined-builtin
3437proc close { } {
3538 variable lefOut
3639 if { $lefOut != " stdout" } {
@@ -288,13 +291,13 @@ proc write_footer { } {
288291# - shape
289292# - ports: a list of lists of shapes that make up a physical connection
290293# - layer
291- # - rect
294+ # - rect
292295# - mask?
293296# - obstructions
294297# - layer: a dictionaries with layer_name as the key
295- # - rect
298+ # - rect
296299# - mask?
297- #
300+ #
298301proc write { design } {
299302 set def_units [dict get $design units]
300303
@@ -449,11 +452,13 @@ variable def_units
449452variable defOut stdout
450453variable designs {}
451454
455+ # tclint-disable-next-line redefined-builtin
452456proc open { file_name } {
453457 variable defOut
454458 set defOut [::open $file_name w]
455459}
456460
461+ # tclint-disable-next-line redefined-builtin
457462proc close { } {
458463 variable defOut
459464 if { $defOut != " stdout" } {
@@ -499,32 +504,32 @@ proc out { args } {
499504# - shapes : list of rectangles (or polygons)
500505# - (rect|polygon)
501506# - physical_viarules: dict with the name of the viarule as the key
502- # - rule
503- # - cutsize
504- # - layers
505- # - cutspacing
506- # - enclosure
507- # - rowcol
507+ # - rule
508+ # - cutsize
509+ # - layers
510+ # - cutspacing
511+ # - enclosure
512+ # - rowcol
508513# - components: dict with the instance name of the component as the key
509514# - inst_name
510515# - cell_name
511516# - (fixed|placed)?
512517# - orientation
513518# - nets: dict with the name of the net as the key
514519# - use: SIGNAL | POWER | GROUND
515- # - connections: list of instance pin pairs
516- # - routes: list of dictionaries
517- # - layer
518- # - points: list of points, where a point can be an XY location or the name of a VIA
520+ # - connections: list of instance pin pairs
521+ # - routes: list of dictionaries
522+ # - layer
523+ # - points: list of points, where a point can be an XY location or the name of a VIA
519524# - special_nets: dict with the name of the net as the key
520- # - use: SIGNAL | POWER | GROUND
521- # - connections: list of instance pin pairs
522- # - routes: list of dictioaries
523- # - layer
524- # - width
525- # - shape
525+ # - use: SIGNAL | POWER | GROUND
526+ # - connections: list of instance pin pairs
527+ # - routes: list of dictioaries
528+ # - layer
529+ # - width
530+ # - shape
526531# - points: list of points, where a point can be an XY location or the name of a VIA
527- #
532+ #
528533
529534proc shift_point { point x y } {
530535 return [list [expr [lindex $point 0] + $x ] [expr [lindex $point 1] + $y ]]
@@ -727,8 +732,8 @@ proc write { design } {
727732
728733 if { [dict exists $design rows] } {
729734 foreach idx [lsort -integer [dict keys $design rows]] {
730- out -nonewline " ROW ROW_$idx [ dict keys $design rows $idx site] [ dict keys $design rows $idx start] [ dict keys $design rows $idx height] [ dict keys $design rows $idx orientation] "
731- out " DO [ dict keys $design rows $idx num_sites] BY 1 STEP [ dict keys $design rows $idx site_width] 0 ;"
735+ out -nonewline " ROW ROW_$idx [ dict get $design rows $idx site] [ dict get $design rows $idx start] [ dict get $design rows $idx height] [ dict get $design rows $idx orientation] "
736+ out " DO [ dict get $design rows $idx num_sites] BY 1 STEP [ dict get $design rows $idx site_width] 0 ;"
732737 }
733738 }
734739
0 commit comments