caravel/openlane/housekeeping/config.tcl

91 lines
2.9 KiB
Tcl
Raw Normal View History

2021-11-15 05:23:54 -06: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
## This should be changed to point at Caravel root
set ::env(CARAVEL_ROOT) $::env(DESIGN_DIR)/../..
2021-11-15 05:23:54 -06:00
set ::env(DESIGN_NAME) "housekeeping"
2022-10-05 14:35:03 -05:00
set ::env(ROUTING_CORES) 12
2021-11-15 05:23:54 -06:00
set ::env(RUN_KLAYOUT) 0
2022-10-05 14:35:03 -05:00
set ::env(PDK) "sky130A"
2021-11-15 05:23:54 -06:00
set ::env(VERILOG_FILES) "$::env(CARAVEL_ROOT)/verilog/rtl/defines.v \
$::env(CARAVEL_ROOT)/verilog/rtl/housekeeping.v \
$::env(CARAVEL_ROOT)/verilog/rtl/housekeeping_spi.v"
2021-11-15 05:23:54 -06:00
2022-10-05 14:35:03 -05:00
set ::env(CLOCK_PORT) ""
set ::env(CLOCK_NET) "wb_clk_i csclk mgmt_gpio_in\[4\]"
set ::env(CLOCK_TREE_SYNTH) 1
2021-11-15 05:23:54 -06:00
2022-10-05 14:35:03 -05:00
set ::env(BASE_SDC_FILE) [glob $::env(DESIGN_DIR)/base.sdc]
2021-11-15 05:23:54 -06:00
## Synthesis
2022-10-05 14:35:03 -05:00
set ::env(NO_SYNTH_CELL_LIST) [glob $::env(DESIGN_DIR)/no_synth.list]
# set ::env(DRC_EXCLUDE_CELL_LIST) [glob $::env(DESIGN_DIR)/drc_exclude.list]
2021-11-25 04:54:22 -06:00
set ::env(SYNTH_STRATEGY) "AREA 0"
2021-11-15 05:23:54 -06:00
set ::env(SYNTH_MAX_FANOUT) 20
# set ::env(SYNTH_CAP_LOAD) "180"
set ::env(SYNTH_BUFFERING) 0
2021-11-15 05:23:54 -06:00
## Floorplan
set ::env(FP_SIZING) absolute
2022-10-05 14:35:03 -05:00
set ::env(DIE_AREA) "0 0 370.230 550.950"
2021-11-15 05:23:54 -06:00
2022-10-05 14:35:03 -05:00
set ::env(FP_PIN_ORDER_CFG) [glob $::env(DESIGN_DIR)/pin_order.cfg]
2021-11-15 05:23:54 -06:00
2022-10-05 14:35:03 -05:00
set ::env(FP_IO_MIN_DISTANCE) 2
2021-11-15 05:23:54 -06:00
2022-10-05 14:35:03 -05:00
set ::env(CELL_PAD) 0
set ::env(FP_PDN_HPITCH) 153.18
set ::env(FP_PDN_HSPACING) 74.99
set ::env(FP_PDN_HOFFSET) 16.41
2021-11-18 17:30:14 -06:00
2021-11-15 05:23:54 -06:00
## Placement
set ::env(PL_TARGET_DENSITY) 0.28
set ::env(PL_TIME_DRIVEN) 1
2022-10-05 14:35:03 -05:00
set ::env(PL_RESIZER_DESIGN_OPTIMIZATIONS) 1
set ::env(PL_RESIZER_TIMING_OPTIMIZATIONS) 1
set ::env(PL_RESIZER_MAX_WIRE_LENGTH) 80
2022-10-05 14:35:03 -05:00
set ::env(PL_RESIZER_HOLD_SLACK_MARGIN) 0.02
# set ::env(PL_RESIZER_MAX_SLEW_MARGIN) "30"
# set ::env(PL_RESIZER_MAX_CAP_MARGIN) "30"
# set ::env(PL_RESIZER_HOLD_MAX_BUFFER_PERCENT) 50
# set ::env(PL_RESIZER_ALLOW_SETUP_VIOS) 1
set ::env(CLOCK_TREE_SYNTH) 1
2021-11-15 05:23:54 -06:00
2022-10-05 14:35:03 -05:00
## Routing
set ::env(GLB_ADJUSTMENT) 0.2
2022-10-05 14:35:03 -05:00
set ::env(GLB_OVERFLOW_ITERS) 100
set ::env(GRT_ALLOW_CONGESTION) 1
set ::env(GLB_RESIZER_TIMING_OPTIMIZATIONS) 1
2022-10-05 14:35:03 -05:00
set ::env(GLB_RESIZER_HOLD_SLACK_MARGIN) 0.1
set ::env(GLB_RESIZER_MAX_WIRE_LENGTH) 100
# set ::env(GLB_RESIZER_MAX_SLEW_MARGIN) "30"
# set ::env(GLB_RESIZER_MAX_CAP_MARGIN) "30"
2021-11-15 05:23:54 -06:00
## Diode Insertion
2022-10-05 14:35:03 -05:00
set ::env(DIODE_INSERTION_STRATEGY) 3
set ::env(GRT_ANT_ITERS) 10
set ::env(GRT_MAX_DIODE_INS_ITERS) 10
# set ::env(USE_ARC_ANTENNA_CHECK) 0
2022-10-05 14:35:03 -05:00
## clock buffering
# set ::env(CTS_CLK_BUFFER_LIST) {sky130_fd_sc_hd__clkbuf_8 sky130_fd_sc_hd__clkbuf_4}
# set ::env(CTS_ROOT_BUFFER) {sky130_fd_sc_hd__clkbuf_8}