Skip to content

Commit

Permalink
orfs: fewer surprises now that cwd is in the build folder
Browse files Browse the repository at this point in the history
relative paths work

Signed-off-by: Øyvind Harboe <[email protected]>
  • Loading branch information
oharboe committed May 11, 2024
1 parent 4d9d508 commit f0ed6ae
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 19 deletions.
10 changes: 0 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -338,16 +338,6 @@ filegroup(
)
```
The constraint file should also source the additional TCL script in a very specific manner.
The additional sourced files have to be placed in the same directory as the constraint file.
Constraint file should use environment variable `SDC_FILE` or `IO_CONSTRAINT` defined for the ORFS flow to fetch the path to itself and use it to source the additional file.
Here is the example:
```
set script_path [ file dirname $::env(IO_CONSTRAINTS) ]
source $script_path/util.tcl
```
## Tutorial
This tutorial uses the `docker flow` to run the physical design flow with ORFS.
Expand Down
4 changes: 1 addition & 3 deletions test/constraints-sram.sdc
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
set script_path [ file dirname $::env(SDC_FILE) ]
# We expect util.tcl in the same directory as this file
source $script_path/util.tcl
source test/util.tcl

# Set the clock name and period
set clk_period 400
Expand Down
4 changes: 1 addition & 3 deletions test/io-sram.tcl
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
set script_path [ file dirname $::env(IO_CONSTRAINTS) ]
# We expect util.tcl in the same directory as this file
source $script_path/util.tcl
source test/util.tcl

set_io_pin_constraint -region left:* -pin_names [match_pins {(R|W)[0-9]+_.*}]
4 changes: 1 addition & 3 deletions test/io.tcl
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
set script_path [ file dirname $::env(IO_CONSTRAINTS) ]
# We expect util.tcl in the same directory as this file
source $script_path/util.tcl
source test/util.tcl

set_io_pin_constraint -region left:* -pin_names [match_pins (io|auto)_.*]

0 comments on commit f0ed6ae

Please sign in to comment.