blob: c5c85a74757472afdf6d1ea7593b37f30ef47cd7 [file] [log] [blame]
Ahmed Ghazyd4ec2f02021-04-05 18:32:10 +02001# SPDX-FileCopyrightText: 2020 Efabless Corporation
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14# SPDX-License-Identifier: Apache-2.0
15
16# Base Configurations. Don't Touch
17# section begin
Ahmed Ghazyd4ec2f02021-04-05 18:32:10 +020018
nofal6eecddc2021-10-12 22:46:36 +020019set ::env(PDK) "sky130A"
20set ::env(STD_CELL_LIBRARY) "sky130_fd_sc_hd"
21
manarabdelatycf577da2021-09-17 18:20:33 +020022# YOU ARE NOT ALLOWED TO CHANGE ANY VARIABLES DEFINED IN THE FIXED WRAPPER CFGS
Marwan Abbas93b438c2022-02-02 00:58:51 +020023source $::env(CARAVEL_ROOT)/openlane/user_project_wrapper/fixed_wrapper_cfgs.tcl
manarabdelatycf577da2021-09-17 18:20:33 +020024
25# YOU CAN CHANGE ANY VARIABLES DEFINED IN THE DEFAULT WRAPPER CFGS BY OVERRIDING THEM IN THIS CONFIG.TCL
Marwan Abbas93b438c2022-02-02 00:58:51 +020026source $::env(CARAVEL_ROOT)/openlane/user_project_wrapper/default_wrapper_cfgs.tcl
manarabdelatycf577da2021-09-17 18:20:33 +020027
28set script_dir [file dirname [file normalize [info script]]]
Ahmed Ghazyd4ec2f02021-04-05 18:32:10 +020029
30set ::env(DESIGN_NAME) user_project_wrapper
31#section end
32
33# User Configurations
34
35## Source Verilog Files
36set ::env(VERILOG_FILES) "\
manarabdelatycf577da2021-09-17 18:20:33 +020037 $::env(CARAVEL_ROOT)/verilog/rtl/defines.v \
Ahmed Ghazyd4ec2f02021-04-05 18:32:10 +020038 $script_dir/../../verilog/rtl/user_project_wrapper.v"
39
40## Clock configurations
41set ::env(CLOCK_PORT) "user_clock2"
42set ::env(CLOCK_NET) "mprj.clk"
43
44set ::env(CLOCK_PERIOD) "10"
45
46## Internal Macros
manarabdelatycf577da2021-09-17 18:20:33 +020047### Macro PDN Connections
48set ::env(FP_PDN_MACRO_HOOKS) "\
49 mprj vccd1 vssd1"
50
Ahmed Ghazyd4ec2f02021-04-05 18:32:10 +020051### Macro Placement
52set ::env(MACRO_PLACEMENT_CFG) $script_dir/macro.cfg
53
54### Black-box verilog and views
55set ::env(VERILOG_FILES_BLACKBOX) "\
manarabdelatycf577da2021-09-17 18:20:33 +020056 $::env(CARAVEL_ROOT)/verilog/rtl/defines.v \
Ahmed Ghazyd4ec2f02021-04-05 18:32:10 +020057 $script_dir/../../verilog/rtl/user_proj_example.v"
58
59set ::env(EXTRA_LEFS) "\
60 $script_dir/../../lef/user_proj_example.lef"
61
62set ::env(EXTRA_GDS_FILES) "\
63 $script_dir/../../gds/user_proj_example.gds"
64
manarabdelaty609ec982021-04-21 17:00:06 +020065set ::env(GLB_RT_MAXLAYER) 5
66
manarabdelatycf577da2021-09-17 18:20:33 +020067# disable pdn check nodes becuase it hangs with multiple power domains.
68# any issue with pdn connections will be flagged with LVS so it is not a critical check.
manarabdelaty609ec982021-04-21 17:00:06 +020069set ::env(FP_PDN_CHECK_NODES) 0
Ahmed Ghazyd4ec2f02021-04-05 18:32:10 +020070
71# The following is because there are no std cells in the example wrapper project.
72set ::env(SYNTH_TOP_LEVEL) 1
73set ::env(PL_RANDOM_GLB_PLACEMENT) 1
74
75set ::env(PL_RESIZER_DESIGN_OPTIMIZATIONS) 0
76set ::env(PL_RESIZER_TIMING_OPTIMIZATIONS) 0
77set ::env(PL_RESIZER_BUFFER_INPUT_PORTS) 0
78set ::env(PL_RESIZER_BUFFER_OUTPUT_PORTS) 0
79
manarabdelatycf577da2021-09-17 18:20:33 +020080set ::env(FP_PDN_ENABLE_RAILS) 0
81
Ahmed Ghazyd4ec2f02021-04-05 18:32:10 +020082set ::env(DIODE_INSERTION_STRATEGY) 0
83set ::env(FILL_INSERTION) 0
84set ::env(TAP_DECAP_INSERTION) 0
85set ::env(CLOCK_TREE_SYNTH) 0