Skip to content

Commit a066d98

Browse files
committed
[Yosys+Odin]: fixing env variables in ODIN_II/regression_test/tools/synth.tcl
Signed-off-by: Seyed Alireza Damghani <[email protected]>
1 parent 6416929 commit a066d98

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

ODIN_II/regression_test/tools/run_yosys.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ RED=$'\033[31;1m'
3939
NC=$'\033[0m' # No Color
4040

4141
# defaults
42-
_YOSYS_EXEC="yosys"
42+
_YOSYS_EXEC="${VTR_DIR}/libs/EXTERNAL/libyosys/yosys"
4343
_TEST_INPUT_LIST=()
4444
_VERILOG_INPUT_LIST=()
4545
_REGENERATE_BLIF="off"

ODIN_II/regression_test/tools/synth.tcl

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ yosys -import
44
# Feel free to specify file paths using "$env(VTR_ROOT)/ ..."
55

66
# Read the hardware decription Verilog
7-
read_verilog -nomem2reg -nolatches $env(VTR_ROOT)/ODIN_II/regression_test/benchmark/verilog/common/mux.v;
7+
read_verilog -nomem2reg -nolatches $env(TCL_CIRCUIT);
88
# Check that cells match libraries and find top module
99
hierarchy -check -auto-top;
1010

@@ -20,8 +20,8 @@ memory_collect; memory_dff; opt;
2020
# Looking for combinatorial loops, wires with multiple drivers and used wires without any driver.
2121
check;
2222
# resolve asynchronous dffs
23-
techmap -map $env(VTR_ROOT)/ODIN_II/techlib/adff2dff.v;
24-
techmap -map $env(VTR_ROOT)/ODIN_II/techlib/adffe2dff.v;
23+
techmap -map $env(ODIN_TECHLIB)/adff2dff.v;
24+
techmap -map $env(ODIN_TECHLIB)/adffe2dff.v;
2525
# convert mem block to bram/rom
2626

2727
# [NOTE]: Yosys complains about expression width more than 24 bits.
@@ -40,3 +40,5 @@ opt -undriven -full; # -noff #potential option to remove all sdff and etc. Only
4040
autoname;
4141
# Print statistics
4242
stat;
43+
44+
write_blif -param -impltf $env(TCL_BLIF);

0 commit comments

Comments
 (0)