-
Notifications
You must be signed in to change notification settings - Fork 888
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add relative path resolution support for script I/O operations
- Loading branch information
1 parent
0fc5812
commit b7af214
Showing
5 changed files
with
45 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
script script_relative_path_files/relative_path_read_write_operations.ys |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/*.il |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module top(input a, b, output o); | ||
assign o = a & b; | ||
endmodule |
16 changes: 16 additions & 0 deletions
16
tests/various/script_relative_path_files/relative_path_read_write_operations.ys
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
scratchpad -set script.relative_path_resolution_enabled 1 | ||
read_verilog design.v | ||
design -reset | ||
|
||
read_verilog ./design.v | ||
design -reset | ||
|
||
read_verilog ../script_relative_path_files/design.v | ||
write_rtlil design.il | ||
design -reset | ||
read_rtlil design.il | ||
design -reset | ||
|
||
scratchpad -set script.relative_path_resolution_enabled 0 | ||
logger -expect error "Can't open input file `design.v' for reading: No such file or directory" 1 | ||
read_verilog design.v |