Skip to content

Commit 06bb757

Browse files
committed
Fixed Tclint issue.
Signed-off-by: Jaehyun Kim <[email protected]>
1 parent 061de9b commit 06bb757

File tree

2 files changed

+27
-21
lines changed

2 files changed

+27
-21
lines changed

src/dbSta/test/get_ports1.tcl

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,23 @@
11
# get_ports on a bus
22
source "helpers.tcl"
3+
4+
# tclint-disable
5+
proc print_info { objs } {
6+
set obj_names {}
7+
foreach obj $objs {
8+
lappend obj_names [get_name $obj]
9+
}
10+
puts "[lsort $obj_names]"
11+
puts "count: [llength $objs]"
12+
puts ""
13+
}
14+
# tclint-enable
15+
316
read_lef Nangate45/Nangate45.lef
417
read_liberty Nangate45/Nangate45_typ.lib
518
read_verilog get_ports1.v
619
link_design top
720

8-
proc print_info {objs} {
9-
set obj_names {}
10-
foreach obj $objs {
11-
lappend obj_names [get_name $obj]
12-
}
13-
puts "[lsort $obj_names]"
14-
puts "count: [llength $objs]"
15-
puts ""
16-
}
17-
1821
print_info [get_ports *]
1922

2023
# top module ports

src/dbSta/test/get_ports1_hier.tcl

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,23 @@
1-
# get_ports on a bus
1+
# get_ports on a bus in hierarchical flow
22
source "helpers.tcl"
3+
4+
# tclint-disable
5+
proc print_info { objs } {
6+
set obj_names {}
7+
foreach obj $objs {
8+
lappend obj_names [get_name $obj]
9+
}
10+
puts "[lsort $obj_names]"
11+
puts "count: [llength $objs]"
12+
puts ""
13+
}
14+
# tclint-enable
15+
316
read_lef Nangate45/Nangate45.lef
417
read_liberty Nangate45/Nangate45_typ.lib
518
read_verilog get_ports1.v
619
link_design top -hier
720

8-
proc print_info {objs} {
9-
set obj_names {}
10-
foreach obj $objs {
11-
lappend obj_names [get_name $obj]
12-
}
13-
puts "[lsort $obj_names]"
14-
puts "count: [llength $objs]"
15-
puts ""
16-
}
17-
1821
print_info [get_ports *]
1922

2023
# top module ports

0 commit comments

Comments
 (0)