# 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 #Change this to the directory of caravel set ::env(CARAVEL_ROOT) $::env(DESIGN_DIR)/../.. set ::env(DESIGN_NAME) mgmt_protect set ::env(ROUTING_CORES) 24 set ::env(DESIGN_IS_CORE) 1 set ::env(PDK) "sky130A" set ::env(VERILOG_FILES) "$::env(CARAVEL_ROOT)/verilog/rtl/defines.v \ $::env(CARAVEL_ROOT)/verilog/rtl/mgmt_protect.v" set ::env(BASE_SDC_FILE) [glob $::env(DESIGN_DIR)/base.sdc] set ::env(RUN_KLAYOUT) 0 # virtual clock set ::env(CLOCK_PERIOD) 10 set ::env(CLOCK_PORT) "" # Synthesis set ::env(SYNTH_STRATEGY) "AREA 0" set ::env(SYNTH_READ_BLACKBOX_LIB) 1 set ::env(SYNTH_USE_PG_PINS_DEFINES) "USE_POWER_PINS" set ::env(SYNTH_BUFFERING) 0 set ::env(CLOCK_TREE_SYNTH) 0 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] ## Floorplan set ::env(FP_SIZING) absolute set ::env(DIE_AREA) "0 0 2120 160" set ::env(FP_PIN_ORDER_CFG) [glob $::env(DESIGN_DIR)/pin_order.cfg] set ::env(FP_PDN_VERTICAL_HALO) 10 set ::env(FP_PDN_HORIZONTAL_HALO) 10 set ::env(FP_IO_MIN_DISTANCE) 5 set ::env(BOTTOM_MARGIN_MULT) 2 set ::env(TOP_MARGIN_MULT) 2 set ::env(LEFT_MARGIN_MULT) 12 set ::env(RIGHT_MARGIN_MULT) 12 set ::env(FP_IO_VEXTEND) 2 set ::env(FP_IO_HEXTEND) 2 # set ::env(CELL_PAD) 0 ## PDN set ::env(PDN_CFG) [glob $::env(DESIGN_DIR)/pdn.tcl] set ::env(FP_PDN_UPPER_LAYER) met4 set ::env(VDD_NETS) "vccd vccd1 vccd2 vdda1 vdda2" set ::env(GND_NETS) "vssd vssd1 vssd2 vssa1 vssa2" set ::env(FP_PDN_MACRO_HOOKS) "\ mprj_logic_high_inst vccd1 vssd1 vccd1 vssd1, \ mprj2_logic_high_inst vccd2 vssd2 vccd2 vssd2, \ powergood_check vccd vssd vccd vssd, \ powergood_check vdda1 vssa1 vdda1 vssa1, \ powergood_check vdda2 vssa2 vdda2 vssa2" set ::env(FP_PDN_SKIPTRIM) 0 ## Placement set ::env(PL_TARGET_DENSITY) 0.09 set ::env(PL_RESIZER_DESIGN_OPTIMIZATIONS) 1 set ::env(PL_RESIZER_TIMING_OPTIMIZATIONS) 0 set ::env(PL_RESIZER_MAX_SLEW_MARGIN) 25 ## Routing set ::env(RT_MIN_LAYER) "met1" set ::env(RT_MAX_LAYER) "met4" set ::env(GRT_ADJUSTMENT) 0.05 set ::env(GRT_OVERFLOW_ITERS) 250 set ::env(GRT_ALLOW_CONGESTION) 1 set ::env(GLB_RESIZER_TIMING_OPTIMIZATIONS) 0 ## prevent routing near the PDN to prevent DRCs at top-level set ::env(GRT_OBS) "met4 60.970 5.200 63.870 152.560, \ met4 136.220 5.200 140.120 152.560, \ met4 211.470 5.200 214.370 152.560, \ met4 286.720 5.200 289.620 152.560, \ met4 361.970 5.200 364.870 152.560, \ met4 437.220 5.200 440.120 152.560, \ met4 512.470 5.200 515.370 152.560, \ met4 587.720 5.200 590.620 152.560, \ met4 662.970 5.200 665.870 152.560, \ met4 738.220 5.200 741.120 152.560, \ met4 813.470 5.200 816.370 152.560, \ met4 888.720 5.200 891.620 152.560, \ met4 963.970 5.200 966.870 152.560, \ met4 1039.220 5.200 1042.120 152.560, \ met4 1114.470 5.200 1117.370 152.560, \ met4 1189.720 5.200 1192.620 152.560, \ met4 1264.970 5.200 1267.870 152.560, \ met4 1340.220 5.200 1343.120 152.560, \ met4 1415.470 5.200 1418.370 152.560, \ met4 1490.720 5.200 1493.620 152.560, \ met4 1565.970 5.200 1568.870 152.560, \ met4 1641.220 5.200 1644.120 152.560, \ met4 1716.470 5.200 1719.370 152.560, \ met4 1791.720 5.200 1794.620 152.560, \ met4 1866.970 5.200 1869.870 152.560 \ met4 24.070 5.200 26.970 152.560, \ met4 99.320 5.200 102.220 152.560, \ met4 174.570 5.200 177.470 152.560, \ met4 249.820 5.200 252.720 152.560, \ met4 325.070 5.200 327.970 152.560, \ met4 400.320 5.200 403.220 152.560, \ met4 475.570 5.200 478.470 152.560, \ met4 550.820 5.200 553.720 152.560, \ met4 626.070 5.200 628.970 152.560, \ met4 701.320 5.200 704.220 152.560, \ met4 776.570 5.200 779.470 152.560, \ met4 851.820 5.200 854.720 152.560, \ met4 927.070 5.200 929.970 152.560, \ met4 1002.320 5.200 1005.220 152.560, \ met4 1077.570 5.200 1080.470 152.560, \ met4 1152.820 5.200 1155.720 152.560, \ met4 1228.070 5.200 1230.970 152.560, \ met4 1303.320 5.200 1306.220 152.560, \ met4 1378.570 5.200 1381.470 152.560, \ met4 1453.820 5.200 1456.720 152.560, \ met4 1529.070 5.200 1531.970 152.560, \ met4 1604.320 5.200 1607.220 152.560, \ met4 1679.570 5.200 1682.470 152.560, \ met4 1754.820 5.200 1757.720 152.560, \ met4 1830.070 5.200 1832.970 152.560, \ met4 705.420 5.200 708.320 152.560, \ met4 780.670 5.200 783.570 152.560, \ met4 855.920 5.200 858.820 152.560, \ met4 931.170 5.200 934.070 152.560, \ met4 333.270 5.200 336.170 152.560, \ met4 383.270 5.200 386.170 152.560, \ met4 1278.070 5.200 1280.970 152.560, \ met4 1353.320 5.200 1356.220 152.560, \ met4 1282.070 5.200 1284.970 152.560, \ met4 1357.320 5.200 1360.220 152.560, \ met4 1314.970 5.200 1317.870 152.560, \ met4 1390.220 5.200 1393.120 152.560, \ met4 1318.970 5.200 1321.870 152.560, \ met4 1394.220 5.200 1397.120 152.560, \ met4 742.320 5.200 745.220 152.560, \ met4 817.570 5.200 820.470 152.560, \ met4 892.820 5.200 895.720 152.560, \ met4 968.070 5.200 970.970 152.560, \ met4 354.170 5.200 357.070 152.560, \ met4 404.170 5.200 407.070 152.560" ## Internal Macros set ::env(MACRO_PLACEMENT_CFG) [glob $::env(DESIGN_DIR)/macro_placement.cfg] set ::env(VERILOG_FILES_BLACKBOX) "$::env(CARAVEL_ROOT)/verilog/rtl/mgmt_protect_hv.v \ $::env(CARAVEL_ROOT)/verilog/rtl/mprj_logic_high.v \ $::env(CARAVEL_ROOT)/verilog/rtl/mprj2_logic_high.v" set ::env(EXTRA_LEFS) "$::env(CARAVEL_ROOT)/lef/mgmt_protect_hv.lef \ $::env(CARAVEL_ROOT)/lef/mprj_logic_high.lef \ $::env(CARAVEL_ROOT)/lef/mprj2_logic_high.lef" set ::env(EXTRA_GDS_FILES) "$::env(CARAVEL_ROOT)/gds/mgmt_protect_hv.gds \ $::env(CARAVEL_ROOT)/gds/mprj_logic_high.gds \ $::env(CARAVEL_ROOT)/gds/mprj2_logic_high.gds" ## DRC set ::env(QUIT_ON_MAGIC_DRC) 0 ## LVS set ::env(QUIT_ON_LVS_ERROR) 0 set ::env(MAGIC_EXT_USE_GDS) 0 set ::env(RSZ_DONT_TOUCH_RX) {la_data_out_core\[.*\]|mprj_ack_i_user|mprj_dat_i_user\[.*\]|user_irq_core\[.*\]} ## Antenna set ::env(DIODE_INSERTION_STRATEGY) 3 set ::env(GRT_ANT_ITERS) 15 set ::env(GRT_MAX_DIODE_INS_ITERS) 15 # set ::env(USE_ARC_ANTENNA_CHECK) 0 # set ::env(PL_RESIZER_MAX_WIRE_LENGTH) 150