blob: dba3bbc5ac83a9ebb4d69f0c55454e0731bfd5bd [file] [log] [blame]
Ahmed Ghazy72e52c62020-10-26 16:44:41 +02001set script_dir [file dirname [file normalize [info script]]]
2
3set ::env(DESIGN_NAME) chip_io
4
5set ::env(VERILOG_FILES) "\
Ahmed Ghazyf744e2e2020-11-06 11:32:09 +02006 $script_dir/../../verilog/rtl/defines.v\
Ahmed Ghazy72e52c62020-10-26 16:44:41 +02007 $script_dir/../../verilog/rtl/pads.v\
8 $script_dir/../../verilog/rtl/mprj_io.v\
9 $script_dir/../../verilog/rtl/chip_io.v"
10
11# The removal of this line is pending the IO verilog files being parsable by yosys...
12set ::env(VERILOG_FILES_BLACKBOX) "$script_dir/../../verilog/stubs/sky130_fd_io__top_xres4v2.v"
13
14set ::env(DESIGN_IS_PADFRAME) 1
15set ::env(SYNTH_FLAT_TOP) 1
16set ::env(USE_GPIO_PADS) 1
17
Ahmed Ghazya997ad92020-11-25 04:02:15 +020018
Ahmed Ghazy72e52c62020-10-26 16:44:41 +020019set ::env(FP_SIZING) absolute
Ahmed Ghazya997ad92020-11-25 04:02:15 +020020
21set fd [open "$script_dir/../chip_dimensions.txt" "r"]
22set ::env(DIE_AREA) [read $fd]
23close $fd
Ahmed Ghazyec81bd22020-11-19 16:09:08 +020024
Ahmed Ghazyf744e2e2020-11-06 11:32:09 +020025
26set ::env(MAGIC_WRITE_FULL_LEF) 1
Ahmed Ghazyec81bd22020-11-19 16:09:08 +020027
28set ::env(DIODE_INSERTION_STRATEGY) 0
Ahmed Ghazya997ad92020-11-25 04:02:15 +020029set ::env(GLB_RT_TILES) 12
Ahmed Ghazyec81bd22020-11-19 16:09:08 +020030set ::env(GLB_RT_UNIDIRECTIONAL) 0
31# set ::env(GLB_RT_ALLOW_CONGESTION) 1
Ahmed Ghazya997ad92020-11-25 04:02:15 +020032# set ::env(GLB_RT_OVERFLOW_ITERS) 150