blob: 6d6fa7cce3852c4e527e02ecf1730add89edce64 [file] [log] [blame]
# Global
# ------
set script_dir [file dirname [file normalize [info script]]]
# Name
set ::env(DESIGN_NAME) sdrc_top
# This is macro
set ::env(DESIGN_IS_CORE) 0
# Diode insertion
# Spray
set ::env(DIODE_INSERTION_STRATEGY) 0
# Smart-"ish"
#set ::env(DIODE_INSERTION_STRATEGY) 3
#set ::env(GLB_RT_MAX_DIODE_INS_ITERS) 10
# Timing configuration
set ::env(CLOCK_PERIOD) "10"
set ::env(CLOCK_PORT) "wb_clk_i"
# Sources
# -------
# Local sources + no2usb sources
set ::env(VERILOG_FILES) "\
$script_dir/../../verilog/rtl/sdram_ctrl/src/top/sdrc_top.v \
$script_dir/../../verilog/rtl/sdram_ctrl/src/wb2sdrc/wb2sdrc.v \
$script_dir/../../verilog/rtl/lib/async_fifo.sv \
$script_dir/../../verilog/rtl/sdram_ctrl/src/core/sdrc_core.v \
$script_dir/../../verilog/rtl/sdram_ctrl/src/core/sdrc_bank_ctl.v \
$script_dir/../../verilog/rtl/sdram_ctrl/src/core/sdrc_bank_fsm.v \
$script_dir/../../verilog/rtl/sdram_ctrl/src/core/sdrc_bs_convert.v\
$script_dir/../../verilog/rtl/sdram_ctrl/src/core/sdrc_req_gen.v \
$script_dir/../../verilog/rtl/sdram_ctrl/src/core/sdrc_xfr_ctl.v "
set ::env(VERILOG_INCLUDE_DIRS) [glob $script_dir/../../verilog/rtl/sdram_ctrl/src/defs ]
#set ::env(SYNTH_DEFINES) [list SCR1_DBG_EN ]
# Need blackbox for cells
set ::env(SYNTH_READ_BLACKBOX_LIB) 0
# Floorplanning
# -------------
# Fixed area and pin position
set ::env(FP_SIZING) "absolute"
#actual die area is 0 0 2920 3520, given 500 micron extra margin
set ::env(DIE_AREA) [list 0.0 0.0 1000.0 300.0]
set ::env(FP_PIN_ORDER_CFG) $::env(DESIGN_DIR)/pin_order.cfg
# Halo around the Macros
set ::env(FP_HORIZONTAL_HALO) 25
set ::env(FP_VERTICAL_HALO) 20
#set ::env(PDN_CFG) $::env(DESIGN_DIR)/pdn.tcl
# Placement
# ---------
set ::env(PL_TARGET_DENSITY) 0.40
#set ::env(MACRO_PLACEMENT_CFG) $::env(DESIGN_DIR)/macro_placement.cfg
# Routing
# -------
#| `ROUTING_CORES` | Specifies the number of threads to be used in TritonRoute. <br> (Default: `4`) |
set ::env(ROUTING_CORES) 4
#| `GLB_RT_ALLOW_CONGESTION` | Allow congestion in the resultign guides. 0 = false, 1 = true <br> (Default: `0`) |
set ::env(GLB_RT_ALLOW_CONGESTION) 0
# | `GLB_RT_MINLAYER` | The number of lowest layer to be used in routing. <br> (Default: `1`)|
set ::env(GLB_RT_MINLAYER) 1
# | `GLB_RT_MAXLAYER` | The number of highest layer to be used in routing. <br> (Default: `6`)|
set ::env(GLB_RT_MAXLAYER) 6
# Obstructions
# li1 over the SRAM areas
# met5 over the whole design
#set ::env(GLB_RT_OBS) "li1 0.00 22.68 1748.00 486.24, li1 0.00 851.08 1748.00 486.24, met5 0.0 0.0 1748.0 1360.0"
#| `ROUTING_OPT_ITERS` | Specifies the maximum number of optimization iterations during Detailed Routing in TritonRoute. <br> (Default: `64`) |
set ::env(ROUTING_OPT_ITERS) "64"
#| `GLOBAL_ROUTER` | Specifies which global router to use. Values: `fastroute` or `cugr`. <br> (Default: `fastroute`) |
set ::env(GLOBAL_ROUTER) "fastroute"
#| `DETAILED_ROUTER` | Specifies which detailed router to use. Values: `tritonroute`, `tritonroute_or`, or `drcu`. <br> (Default: `tritonroute`) |
set ::env(DETAILED_ROUTER) "tritonroute"
# DRC
# ---
set ::env(MAGIC_DRC_USE_GDS) 1
# Tape Out
# --------
set ::env(MAGIC_ZEROIZE_ORIGIN) 0
# Cell library specific config
# ----------------------------
set filename $::env(DESIGN_DIR)/$::env(PDK)_$::env(STD_CELL_LIBRARY)_config.tcl
if { [file exists $filename] == 1} {
source $filename
}