# 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" set ::env(PL_TARGET_DENSITY) 0.9 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" set ::env(VDD_NETS) "vccd vccd1" set ::env(GND_NETS) "vssd vssd1" set ::env(BASE_SDC_FILE) $::env(DESIGN_DIR)/base.sdc ## Synthesis set ::env(SYNTH_READ_BLACKBOX_LIB) 1 set ::env(SYNTH_USE_PG_PINS_DEFINES) "USE_POWER_PINS" set ::env(SYNTH_STRATEGY) "AREA 0" ## Floorplan set ::env(FP_SIZING) absolute set ::env(DIE_AREA) "0 0 170 65" set ::env(RIGHT_MARGIN_MULT) 256 set ::env(LEFT_MARGIN_MULT) 10 set ::env(TOP_MARGIN_MULT) 1 set ::env(BOTTOM_MARGIN_MULT) 1 set ::env(DPL_CELL_PADDING) 0 set ::env(GPL_CELL_PADDING) 0 set ::env(DIODE_PADDING) 0 ## PDN set ::env(FP_PDN_MACRO_HOOKS) "\ gpio_logic_high vccd1 vssd1 vccd1 vssd1" set ::env(PDN_CFG) $::env(DESIGN_DIR)/pdn.tcl 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 # these PDN vars are mostly hard coded in the custom ./pdn.tcl file # keeping them in case openlane depends on the variable definition set ::env(FP_PDN_HOFFSET) 1.5 set ::env(FP_PDN_VOFFSET) 9.0 set ::env(FP_PDN_HPITCH) 20 set ::env(FP_PDN_VPITCH) 25 set ::env(FP_PDN_VSPACING) 3.4 set ::env(FP_PDN_HSPACING) 3.4 ## Placement set ::env(PL_TARGET_DENSITY) 0.9 # for some reason resizer is leaving a floating net after running repair_tie_fanout command set ::env(PL_RESIZER_REPAIR_TIE_FANOUT) 0 # mgmt_gpio_in is driven by a tristate cell # set ::env(DONT_BUFFER_PORTS) "mgmt_gpio_in" ## Routing set ::env(GRT_MINLAYER) 2 set ::env(GRT_MAXLAYER) 4 set ::env(GRT_ADJUSTMENT) 0.05 # 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, met5 50 0 170 65, met4 49 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} ## Internal macros set ::env(MACRO_PLACEMENT_CFG) $::env(DESIGN_DIR)/macro_placement.cfg set ::env(VERILOG_FILES_BLACKBOX) "\ $::env(DESIGN_DIR)/../../verilog/rtl/gpio_logic_high.v" set ::env(EXTRA_LEFS) "\ $::env(DESIGN_DIR)/../../lef/gpio_logic_high.lef" set ::env(EXTRA_GDS_FILES) "\ $::env(DESIGN_DIR)/../../gds/gpio_logic_high.gds" set ::env(GLB_RESIZER_TIMING_OPTIMIZATIONS) 1 #Placement set ::env(PL_RESIZER_DESIGN_OPTIMIZATIONS) 1 #Post cts set ::env(PL_RESIZER_TIMING_OPTIMIZATIONS) 0 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 set ::env(CLOCK_TREE_SYNTH) 1 set ::env(FP_DEF_TEMPLATE) $::env(DESIGN_DIR)/template/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} 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*" set ::env(FP_PDN_SKIPTRIM) 1