STAR-future's picture
add chips/openroad_flow_scripts (part 7)
34292e0 verified
Raw History Blame Contribute Delete
5.48 kB
# Process node
export PROCESS = 130
#-----------------------------------------------------
# Tech/Libs
# ----------------------------------------------------
export TECH_LEF ?= $(PLATFORM_DIR)/lef/sky130_fd_sc_hd.tlef
export SC_LEF ?= $(PLATFORM_DIR)/lef/sky130_fd_sc_hd_merged.lef
export LIB_FILES ?= $(PLATFORM_DIR)/lib/sky130_fd_sc_hd__tt_025C_1v80.lib
export LIB_FILES += $(ADDITIONAL_LIBS)
export GDS_FILES ?= $(wildcard $(PLATFORM_DIR)/gds/*.gds)
export GDS_FILES += $(ADDITIONAL_GDS)
# Dont use cells to ease congestion
# Specify at least one filler cell if none
# The *probe* are for inserting probe points and have metal shapes
# on all layers.
# *lpflow* cells are for multi-power domains
export DONT_USE_CELLS += \
sky130_fd_sc_hd__probe_p_8 sky130_fd_sc_hd__probec_p_8 \
sky130_fd_sc_hd__lpflow_bleeder_1 \
sky130_fd_sc_hd__lpflow_clkbufkapwr_1 \
sky130_fd_sc_hd__lpflow_clkbufkapwr_16 \
sky130_fd_sc_hd__lpflow_clkbufkapwr_2 \
sky130_fd_sc_hd__lpflow_clkbufkapwr_4 \
sky130_fd_sc_hd__lpflow_clkbufkapwr_8 \
sky130_fd_sc_hd__lpflow_clkinvkapwr_1 \
sky130_fd_sc_hd__lpflow_clkinvkapwr_16 \
sky130_fd_sc_hd__lpflow_clkinvkapwr_2 \
sky130_fd_sc_hd__lpflow_clkinvkapwr_4 \
sky130_fd_sc_hd__lpflow_clkinvkapwr_8 \
sky130_fd_sc_hd__lpflow_decapkapwr_12 \
sky130_fd_sc_hd__lpflow_decapkapwr_3 \
sky130_fd_sc_hd__lpflow_decapkapwr_4 \
sky130_fd_sc_hd__lpflow_decapkapwr_6 \
sky130_fd_sc_hd__lpflow_decapkapwr_8 \
sky130_fd_sc_hd__lpflow_inputiso0n_1 \
sky130_fd_sc_hd__lpflow_inputiso0p_1 \
sky130_fd_sc_hd__lpflow_inputiso1n_1 \
sky130_fd_sc_hd__lpflow_inputiso1p_1 \
sky130_fd_sc_hd__lpflow_inputisolatch_1 \
sky130_fd_sc_hd__lpflow_isobufsrc_1 \
sky130_fd_sc_hd__lpflow_isobufsrc_16 \
sky130_fd_sc_hd__lpflow_isobufsrc_2 \
sky130_fd_sc_hd__lpflow_isobufsrc_4 \
sky130_fd_sc_hd__lpflow_isobufsrc_8 \
sky130_fd_sc_hd__lpflow_isobufsrckapwr_16 \
sky130_fd_sc_hd__lpflow_lsbuf_lh_hl_isowell_tap_1 \
sky130_fd_sc_hd__lpflow_lsbuf_lh_hl_isowell_tap_2 \
sky130_fd_sc_hd__lpflow_lsbuf_lh_hl_isowell_tap_4 \
sky130_fd_sc_hd__lpflow_lsbuf_lh_isowell_4 \
sky130_fd_sc_hd__lpflow_lsbuf_lh_isowell_tap_1 \
sky130_fd_sc_hd__lpflow_lsbuf_lh_isowell_tap_2 \
sky130_fd_sc_hd__lpflow_lsbuf_lh_isowell_tap_4
#
# Define fill cells
export FILL_CELLS ?= sky130_fd_sc_hd__fill_1 sky130_fd_sc_hd__fill_2 sky130_fd_sc_hd__fill_4 sky130_fd_sc_hd__fill_8
# -----------------------------------------------------
# Yosys
# ----------------------------------------------------
# Set the TIEHI/TIELO cells
# These are used in yosys synthesis to avoid logical 1/0's in the netlist
export TIEHI_CELL_AND_PORT = sky130_fd_sc_hd__conb_1 HI
export TIELO_CELL_AND_PORT = sky130_fd_sc_hd__conb_1 LO
# Used in synthesis
export MIN_BUF_CELL_AND_PORTS = sky130_fd_sc_hd__buf_4 A X
# Yosys mapping files
export LATCH_MAP_FILE = $(PLATFORM_DIR)/cells_latch_hd.v
export CLKGATE_MAP_FILE = $(PLATFORM_DIR)/cells_clkgate_hd.v
export ADDER_MAP_FILE ?= $(PLATFORM_DIR)/cells_adders_hd.v
# Define ABC driver and load
export ABC_DRIVER_CELL = sky130_fd_sc_hd__buf_1
export ABC_LOAD_IN_FF = 5
# -----------------------------------------------------
# Sizing
# -----------------------------------------------------
export MATCH_CELL_FOOTPRINT = 1
#--------------------------------------------------------
# Floorplan
# -------------------------------------------------------
# Placement site for core cells
# This can be found in the technology lef
export PLACE_SITE = unithd
# IO Placer pin layers
export IO_PLACER_H ?= met3
export IO_PLACER_V ?= met2
# Define default PDN config
export GLOBAL_CONNECT_TCL ?= $(PLATFORM_DIR)/global_connect.tcl
export PDN_TCL ?= $(PLATFORM_DIR)/pdn.tcl
# Endcap and Welltie cells
export TAP_CELL_NAME = sky130_fd_sc_hd__tapvpwrvgnd_1
export TAPCELL_TCL ?= $(PLATFORM_DIR)/tapcell.tcl
export RTLMP_MIN_CHANNEL_SIZE ?= 80 80
#---------------------------------------------------------
# Place
# --------------------------------------------------------
export PLACE_DENSITY ?= 0.60
# ---------------------------------------------------------
# Route
# ---------------------------------------------------------
# FastRoute options
export MIN_ROUTING_LAYER ?= met1
export MIN_CLK_ROUTING_LAYER ?= met3
export MAX_ROUTING_LAYER ?= met5
export OPT_POST_GRT_WNS ?= 0
#
# Define fastRoute tcl
export FASTROUTE_TCL ?= $(PLATFORM_DIR)/fastroute.tcl
# KLayout technology file
export KLAYOUT_TECH_FILE = $(PLATFORM_DIR)/$(PLATFORM).lyt
#
# Rules for metal fill
export FILL_CONFIG = $(PLATFORM_DIR)/fill.json
#
# Template definition for power grid analysis
export TEMPLATE_PGA_CFG ?= $(PLATFORM_DIR)/template_pga.cfg
# OpenRCX extRules
export RCX_RULES = $(PLATFORM_DIR)/rcx_patterns.rules
# ---------------------------------------------------------
# IR Drop
# ---------------------------------------------------------
# IR drop estimation supply net name to be analyzed and supply voltage variable
# For multiple nets: PWR_NETS_VOLTAGES = "VDD1 1.8 VDD2 1.2"
export PWR_NETS_VOLTAGES ?= VDD 1.8
export GND_NETS_VOLTAGES ?= VSS 0.0
export IR_DROP_LAYER ?= met1
# DRC Check
export KLAYOUT_DRC_FILE ?= $(PLATFORM_DIR)/drc/$(PLATFORM)_drc.py
#LVS Check
export CDL_FILE = $(PLATFORM_DIR)/cdl/$(PLATFORM).cdl
export KLAYOUT_LVS_FILE ?= $(PLATFORM_DIR)/lvs/$(PLATFORM)_lvs.py
export REMOVE_CELLS_FOR_LEC = sky130_fd_sc_hd__tapvpwrvgnd*