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) "\
|
2022-08-15 04:28:54 -05:00
|
|
|
$::env(DESIGN_DIR)/../../verilog/rtl/defines.v\
|
|
|
|
$::env(DESIGN_DIR)/../../verilog/rtl/gpio_control_block.v"
|
2021-11-04 09:19:12 -05:00
|
|
|
|
|
|
|
|
2022-10-07 06:59:17 -05:00
|
|
|
set ::env(PL_TARGET_DENSITY) 0.9
|
2021-11-04 09:19:12 -05:00
|
|
|
set ::env(CLOCK_PORT) "serial_clock"
|
2021-11-05 11:36:43 -05:00
|
|
|
|
2022-08-15 04:28:54 -05:00
|
|
|
set ::env(FP_DEF_TEMPLATE) "$::env(DESIGN_DIR)/template/gpio_control_block.def"
|
|
|
|
|
2021-11-05 11:36:43 -05:00
|
|
|
# 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"
|
|
|
|
|
2022-08-15 04:28:54 -05:00
|
|
|
set ::env(BASE_SDC_FILE) $::env(DESIGN_DIR)/base.sdc
|
2021-11-05 11:36:43 -05:00
|
|
|
|
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"
|
2022-08-15 04:28:54 -05:00
|
|
|
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
|
|
|
|
2022-10-07 06:59:17 -05:00
|
|
|
set ::env(RIGHT_MARGIN_MULT) 256
|
2021-11-04 09:19:12 -05:00
|
|
|
set ::env(LEFT_MARGIN_MULT) 10
|
2022-09-27 09:09:26 -05:00
|
|
|
set ::env(TOP_MARGIN_MULT) 1
|
|
|
|
set ::env(BOTTOM_MARGIN_MULT) 1
|
2021-11-04 09:19:12 -05:00
|
|
|
|
2022-08-15 04:28:54 -05:00
|
|
|
set ::env(DPL_CELL_PADDING) 0
|
2022-09-27 09:09:26 -05:00
|
|
|
set ::env(GPL_CELL_PADDING) 0
|
2022-10-07 06:59:17 -05:00
|
|
|
set ::env(DIODE_PADDING) 0
|
2021-11-04 09:19:12 -05:00
|
|
|
|
|
|
|
## PDN
|
2022-08-15 04:28:54 -05:00
|
|
|
set ::env(FP_PDN_MACRO_HOOKS) "\
|
|
|
|
gpio_logic_high vccd1 vssd1 vccd1 vssd1"
|
|
|
|
|
2022-09-14 12:42:23 -05:00
|
|
|
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
|
|
|
|
|
2022-09-14 12:42:23 -05:00
|
|
|
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
|
|
|
|
2022-09-14 12:42:23 -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
|
|
|
|
2022-09-14 12:42:23 -05:00
|
|
|
set ::env(FP_PDN_HPITCH) 20
|
2021-11-20 06:43:20 -06:00
|
|
|
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
|
2022-10-10 07:42:29 -05:00
|
|
|
set ::env(PL_TARGET_DENSITY) 0.95
|
2021-11-04 09:19:12 -05:00
|
|
|
# for some reason resizer is leaving a floating net after running repair_tie_fanout command
|
2021-12-24 13:06:58 -06:00
|
|
|
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
|
2021-12-24 13:06:58 -06:00
|
|
|
# set ::env(DONT_BUFFER_PORTS) "mgmt_gpio_in"
|
2021-11-04 09:19:12 -05:00
|
|
|
|
|
|
|
## Routing
|
2022-08-15 04:28:54 -05:00
|
|
|
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
|
2022-08-15 04:28:54 -05:00
|
|
|
set ::env(GRT_OBS) "\
|
2021-11-20 06:43:20 -06:00
|
|
|
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,
|
2022-10-05 09:00:34 -05:00
|
|
|
met5 50 0 170 65,
|
2022-09-27 09:09:26 -05:00
|
|
|
met4 49 0 170 65,
|
2021-11-05 09:54:24 -05:00
|
|
|
met2 120 0 170 65,
|
|
|
|
met1 120 0 170 65"
|
|
|
|
|
|
|
|
## Diode Insertion
|
2022-04-08 11:27:51 -05:00
|
|
|
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
|
2022-08-15 04:28:54 -05:00
|
|
|
set ::env(MACRO_PLACEMENT_CFG) $::env(DESIGN_DIR)/macro_placement.cfg
|
2021-11-04 09:19:12 -05:00
|
|
|
|
|
|
|
set ::env(VERILOG_FILES_BLACKBOX) "\
|
2022-08-15 04:28:54 -05:00
|
|
|
$::env(DESIGN_DIR)/../../verilog/rtl/gpio_logic_high.v"
|
2021-11-04 09:19:12 -05:00
|
|
|
|
|
|
|
set ::env(EXTRA_LEFS) "\
|
2022-08-15 04:28:54 -05:00
|
|
|
$::env(DESIGN_DIR)/../../lef/gpio_logic_high.lef"
|
2021-11-04 09:19:12 -05:00
|
|
|
|
|
|
|
set ::env(EXTRA_GDS_FILES) "\
|
2022-08-15 04:28:54 -05:00
|
|
|
$::env(DESIGN_DIR)/../../gds/gpio_logic_high.gds"
|
2022-04-08 11:27:51 -05:00
|
|
|
|
2022-08-15 04:28:54 -05:00
|
|
|
set ::env(GLB_RESIZER_TIMING_OPTIMIZATIONS) 1
|
2022-04-08 11:27:51 -05:00
|
|
|
|
2022-09-27 09:09:26 -05:00
|
|
|
#Placement
|
|
|
|
set ::env(PL_RESIZER_DESIGN_OPTIMIZATIONS) 1
|
2022-04-08 11:27:51 -05:00
|
|
|
|
2022-09-27 09:09:26 -05:00
|
|
|
#Post cts
|
2022-08-15 04:28:54 -05:00
|
|
|
set ::env(PL_RESIZER_TIMING_OPTIMIZATIONS) 0
|
|
|
|
|
2022-09-27 09:09:26 -05:00
|
|
|
set ::env(PL_RESIZER_BUFFER_INPUT_PORTS) 1
|
|
|
|
set ::env(PL_RESIZER_BUFFER_OUTPUT_PORTS) 1
|
|
|
|
|
|
|
|
set ::env(PL_RESIZER_MAX_SLEW_MARGIN) 1
|
|
|
|
set ::env(PL_RESIZER_MAX_CAP_MARGIN) 1
|
2022-08-15 04:28:54 -05:00
|
|
|
|
|
|
|
set ::env(CLOCK_TREE_SYNTH) 1
|
2022-09-28 03:03:00 -05:00
|
|
|
set ::env(FP_DEF_TEMPLATE) $::env(DESIGN_DIR)/template/gpio_control_block.def
|
2022-08-15 04:28:54 -05:00
|
|
|
set ::env(SYNTH_BUFFERING) 0
|
|
|
|
set ::env(SYNTH_SIZING) 0
|
2022-04-08 11:27:51 -05:00
|
|
|
# 0.07 ns 70 ps
|
2022-09-27 09:09:26 -05:00
|
|
|
|
2022-08-15 04:28:54 -05:00
|
|
|
# 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
|
2022-04-08 11:27:51 -05:00
|
|
|
|
2022-09-14 12:42:23 -05:00
|
|
|
set ::env(QUIT_ON_MAGIC_DRC) 1
|
|
|
|
set ::env(QUIT_ON_LVS_ERROR) 1
|
2022-04-08 11:27:51 -05:00
|
|
|
|
2022-08-15 04:28:54 -05:00
|
|
|
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}
|
2022-09-27 09:09:26 -05:00
|
|
|
set ::env(DRC_EXCLUDE_CELL_LIST) $::env(DESIGN_DIR)/drc_exclude_list.txt
|
|
|
|
set ::env(DRC_EXCLUDE_CELL_LIST_OPT) $::env(DESIGN_DIR)/drc_exclude_list.txt
|
|
|
|
set ::env(RSZ_DONT_TOUCH) "user_gpio_out user_gpio_oeb serial_clock_out serial_load_out gpio_defaults*"
|
2022-09-28 03:03:00 -05:00
|
|
|
set ::env(FP_PDN_SKIPTRIM) 1
|
2022-10-10 07:42:29 -05:00
|
|
|
set ::env(MAGIC_NO_DEF_BLOCKAGES) 1
|