blob: 8cbdff8f14addde4dbc422fe475d7bbc76a791eb [file] [log] [blame]
set ::env(PDK) "sky130A"
set ::env(STD_CELL_LIBRARY) "sky130_fd_sc_hd"
set script_dir [file dirname [file normalize [info script]]]
set ::env(ROUTING_CORES) "8"
set ::env(DESIGN_NAME) GPIO
set ::env(VERILOG_FILES) "\
$::env(CARAVEL_ROOT)/verilog/rtl/defines.v \
$script_dir/../../verilog/rtl/Peripherals/GPIO/GPIO_top.v \
$script_dir/../../verilog/rtl/Peripherals/GPIO/GPIODevice.v \
$script_dir/../../verilog/rtl/Peripherals/Registers/ConfigurationRegister.v \
$script_dir/../../verilog/rtl/Peripherals/Registers/DataRegister.v \
$script_dir/../../verilog/rtl/Peripherals/Registers/DeviceSelect.v \
$script_dir/../../verilog/rtl/Peripherals/Registers/PeripheralSelect.v"
set ::env(DESIGN_IS_CORE) 0
set ::env(FP_PDN_CORE_RING) 0
set ::env(CLOCK_PORT) "clk"
set ::env(CLOCK_PERIOD) "10"
# Absolute module size
# Modules should be bigger than 200x200
# Also generally best to leave bottom left as 0,0
set ::env(FP_SIZING) "absolute"
set ::env(DIE_AREA) "0 0 200 200"
# Alternatively use an adaptive size
#set ::env(FP_SIZING) "relative"
#set ::env(FP_CORE_UTIL) 20
#set ::env(FP_ASPECT_RATIO) 1.0
set ::env(FP_PIN_ORDER_CFG) $script_dir/pin_order.cfg
set ::env(PL_BASIC_PLACEMENT) 0
set ::env(PL_TARGET_DENSITY) 0.265
# If this cell is placed in the top level (user_project_wrapper), then it can't have anything on metal layer 5 as this is used for PDN
# If this cell is placed in another macro, then we can't have anything on metal layer 4 as the parent macro will add the PDN
set ::env(RT_MAX_LAYER) {met3}
# You can draw more power domains if you need to
set ::env(VDD_NETS) [list {vccd1}]
set ::env(GND_NETS) [list {vssd1}]
# If you're going to use multiple power domains, then disable cvc run.
set ::env(RUN_CVC) 1
set ::env(DIODE_INSERTION_STRATEGY) 4