Skip to content

Commit b35cfed

Browse files
committed
sdc: fix source gaffe
Signed-off-by: Øyvind Harboe <[email protected]>
1 parent 52d0042 commit b35cfed

File tree

4 files changed

+22
-8
lines changed

4 files changed

+22
-8
lines changed

flow/designs/asap7/mock-array/Element/io.tcl

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
1-
set script_dir [file dirname [info script]]
2-
source $script_dir/../../../src/mock-array/util.tcl
1+
# bazel has root of OpenROAD-flow-scripts as working directory
2+
foreach prefix {"" flow/} {
3+
set f ${prefix}designs/src/mock-array/util.tcl
4+
if {[file exists $f]} {
5+
source $f
6+
}
7+
}
38

49
set assignments [list \
510
top bottom \

flow/designs/asap7/mock-array/io.tcl

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
1-
set script_dir [file dirname [info script]]
2-
source $script_dir/../../src/mock-array/util.tcl
1+
# bazel has root of OpenROAD-flow-scripts as working directory
2+
foreach prefix {"" flow/} {
3+
set f ${prefix}designs/src/mock-array/util.tcl
4+
if {[file exists $f]} {
5+
source $f
6+
}
7+
}
38

49
set assignments [list \
510
top \

flow/designs/asap7/mock-cpu/constraint.sdc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22
#
33
# This fifo is from http://www.sunburst-design.com/papers/CummingsSNUG2002SJ_FIFO1.pdf
44

5-
set script_dir [file dirname [info script]]
6-
source $script_dir/../../src/mock-array/util.tcl
5+
source designs/src/mock-array/util.tcl
76

87
set sdc_version 2.0
98

flow/designs/asap7/mock-cpu/io.tcl

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
set script_dir [file dirname [info script]]
2-
source $script_dir/../../src/mock-array/util.tcl
1+
# bazel has root of OpenROAD-flow-scripts as working directory
2+
foreach prefix {"" flow/} {
3+
set f ${prefix}designs/src/mock-array/util.tcl
4+
if {[file exists $f]} {
5+
source $f
6+
}
7+
}
38

49
set_io_pin_constraint -order -group -region bottom:* -pin_names [concat [match_pins .*] [match_pins clk input 1]]

0 commit comments

Comments
 (0)