caravel/openlane/gpio_control_block/config.tcl

145 lines
4.2 KiB
Tcl
Raw Normal View History

2021-11-04 09:19:12 -05:00
# SPDX-FileCopyrightText: 2020 Efabless Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# SPDX-License-Identifier: Apache-2.0
set ::env(DESIGN_NAME) gpio_control_block
set ::env(VERILOG_FILES) "\
$::env(DESIGN_DIR)/../../verilog/rtl/defines.v\
$::env(DESIGN_DIR)/../../verilog/rtl/gpio_control_block.v"
2021-11-04 09:19:12 -05:00
set ::env(CLOCK_PORT) "serial_clock"
set ::env(FP_DEF_TEMPLATE) "$::env(DESIGN_DIR)/template/gpio_control_block.def"
# This needs to be half the mgmt_core clock frequency
set ::env(CLOCK_PERIOD) "50"
2021-11-04 09:19:12 -05:00
set ::env(VDD_NETS) "vccd vccd1"
set ::env(GND_NETS) "vssd vssd1"
set ::env(BASE_SDC_FILE) $::env(DESIGN_DIR)/base.sdc
2021-11-04 09:19:12 -05:00
## Synthesis
set ::env(SYNTH_READ_BLACKBOX_LIB) 1
set ::env(SYNTH_USE_PG_PINS_DEFINES) "USE_POWER_PINS"
set ::env(SYNTH_STRATEGY) "AREA 0"
2021-11-04 09:19:12 -05:00
## Floorplan
set ::env(FP_SIZING) absolute
2021-11-05 09:54:24 -05:00
set ::env(DIE_AREA) "0 0 170 65"
2021-11-04 09:19:12 -05:00
set ::env(RIGHT_MARGIN_MULT) 262
set ::env(LEFT_MARGIN_MULT) 10
2021-11-05 09:54:24 -05:00
set ::env(TOP_MARGIN_MULT) 2
set ::env(BOTTOM_MARGIN_MULT) 2
2021-11-04 09:19:12 -05:00
set ::env(DPL_CELL_PADDING) 0
2021-11-04 09:19:12 -05:00
## PDN
set ::env(FP_PDN_MACRO_HOOKS) "\
gpio_logic_high vccd1 vssd1 vccd1 vssd1"
set ::env(PDN_CFG) $::env(DESIGN_DIR)/pdn.tcl
2021-11-04 09:19:12 -05:00
set ::env(FP_PDN_AUTO_ADJUST) 0
set ::env(FP_PDN_VWIDTH) 1.6
set ::env(FP_PDN_HWIDTH) 1.6
set ::env(FP_PDN_HORIZONTAL_HALO) 0
set ::env(FP_PDN_VERTICAL_HALO) 0
set ::env(FP_PDN_CHECK_NODES) 0
2021-11-04 09:19:12 -05:00
# these PDN vars are mostly hard coded in the custom ./pdn.tcl file
# keeping them in case openlane depends on the variable definition
2021-11-04 09:19:12 -05:00
set ::env(FP_PDN_HOFFSET) 1.5
2021-11-05 09:54:24 -05:00
set ::env(FP_PDN_VOFFSET) 9.0
2021-11-04 09:19:12 -05:00
set ::env(FP_PDN_HPITCH) 20
set ::env(FP_PDN_VPITCH) 25
2021-11-04 09:19:12 -05:00
set ::env(FP_PDN_VSPACING) 3.4
set ::env(FP_PDN_HSPACING) 3.4
## Placement
set ::env(PL_TARGET_DENSITY) 0.7
2021-11-04 09:19:12 -05:00
# for some reason resizer is leaving a floating net after running repair_tie_fanout command
set ::env(PL_RESIZER_REPAIR_TIE_FANOUT) 0
2021-11-04 09:19:12 -05:00
# mgmt_gpio_in is driven by a tristate cell
# set ::env(DONT_BUFFER_PORTS) "mgmt_gpio_in"
2021-11-04 09:19:12 -05:00
## Routing
set ::env(GRT_MINLAYER) 2
set ::env(GRT_MAXLAYER) 4
set ::env(GRT_ADJUSTMENT) 0.05
2021-11-04 09:19:12 -05:00
# Add obstructions on the areas that will lie underneath the padframe
set ::env(GRT_OBS) "\
li1 0 0 16.79500 30.02500,
li1 0 29.96500 4.26500 65.07000,
li1 4.21500 57.40500 49.81500 64.93000,
li1 16.83000 0 49.41000 5.24000,
li1 49.000 0 169.81000 64.84500,
2021-11-05 09:54:24 -05:00
met5 67 0 170 65,
met4 67 0 170 65,
met2 120 0 170 65,
met1 120 0 170 65"
## Diode Insertion
set ::env(DIODE_INSERTION_STRATEGY) 4
set ::env(FP_TAP_HORIZONTAL_HALO) {2}
set ::env(FP_TAP_VERTICAL_HALO) {2}
2021-11-04 09:19:12 -05:00
## Internal macros
set ::env(MACRO_PLACEMENT_CFG) $::env(DESIGN_DIR)/macro_placement.cfg
2021-11-04 09:19:12 -05:00
set ::env(VERILOG_FILES_BLACKBOX) "\
$::env(DESIGN_DIR)/../../verilog/rtl/gpio_logic_high.v"
2021-11-04 09:19:12 -05:00
set ::env(EXTRA_LEFS) "\
$::env(DESIGN_DIR)/../../lef/gpio_logic_high.lef"
2021-11-04 09:19:12 -05:00
set ::env(EXTRA_GDS_FILES) "\
$::env(DESIGN_DIR)/../../gds/gpio_logic_high.gds"
set ::env(GLB_RESIZER_TIMING_OPTIMIZATIONS) 1
set ::env(PL_RESIZER_DESIGN_OPTIMIZATIONS) 0
set ::env(PL_RESIZER_TIMING_OPTIMIZATIONS) 0
set ::env(PL_RESIZER_BUFFER_INPUT_PORTS) 0
set ::env(PL_RESIZER_BUFFER_OUTPUT_PORTS) 0
set ::env(CLOCK_TREE_SYNTH) 1
set ::env(FP_DEF_TEMPLATE) $::env(DESIGN_DIR)/gpio_control_block.def
set ::env(SYNTH_BUFFERING) 0
set ::env(SYNTH_SIZING) 0
# 0.07 ns 70 ps
# set ::env(PL_RESIZER_HOLD_SLACK_MARGIN) 0.07
# set ::env(PL_RESIZER_ALLOW_SETUP_VIOS) 1
# set ::env(PL_RESIZER_HOLD_MAX_BUFFER_PERCENT) 2
set ::env(QUIT_ON_MAGIC_DRC) 1
set ::env(QUIT_ON_LVS_ERROR) 1
set ::env(SYNTH_EXTRA_MAPPING_FILE) $::env(DESIGN_DIR)/yosys_mapping.v
set ::env(DECAP_CELL) {sky130_fd_sc_hd__decap_12 sky130_fd_sc_hd__decap_8 sky130_fd_sc_hd__decap_6 sky130_fd_sc_hd__decap_4 sky130_fd_sc_hd__decap_3}