Ahmed Ghazy | d4ec2f0 | 2021-04-05 18:32:10 +0200 | [diff] [blame] | 1 | # 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 Ghazy | d4ec2f0 | 2021-04-05 18:32:10 +0200 | [diff] [blame] | 18 | |
nofal | 6eecddc | 2021-10-12 22:46:36 +0200 | [diff] [blame] | 19 | set ::env(PDK) "sky130A" |
| 20 | set ::env(STD_CELL_LIBRARY) "sky130_fd_sc_hd" |
| 21 | |
manarabdelaty | cf577da | 2021-09-17 18:20:33 +0200 | [diff] [blame] | 22 | # YOU ARE NOT ALLOWED TO CHANGE ANY VARIABLES DEFINED IN THE FIXED WRAPPER CFGS |
Marwan Abbas | 93b438c | 2022-02-02 00:58:51 +0200 | [diff] [blame] | 23 | source $::env(CARAVEL_ROOT)/openlane/user_project_wrapper/fixed_wrapper_cfgs.tcl |
manarabdelaty | cf577da | 2021-09-17 18:20:33 +0200 | [diff] [blame] | 24 | |
| 25 | # YOU CAN CHANGE ANY VARIABLES DEFINED IN THE DEFAULT WRAPPER CFGS BY OVERRIDING THEM IN THIS CONFIG.TCL |
Marwan Abbas | 93b438c | 2022-02-02 00:58:51 +0200 | [diff] [blame] | 26 | source $::env(CARAVEL_ROOT)/openlane/user_project_wrapper/default_wrapper_cfgs.tcl |
manarabdelaty | cf577da | 2021-09-17 18:20:33 +0200 | [diff] [blame] | 27 | |
| 28 | set script_dir [file dirname [file normalize [info script]]] |
Ahmed Ghazy | d4ec2f0 | 2021-04-05 18:32:10 +0200 | [diff] [blame] | 29 | |
| 30 | set ::env(DESIGN_NAME) user_project_wrapper |
| 31 | #section end |
| 32 | |
| 33 | # User Configurations |
| 34 | |
| 35 | ## Source Verilog Files |
| 36 | set ::env(VERILOG_FILES) "\ |
manarabdelaty | cf577da | 2021-09-17 18:20:33 +0200 | [diff] [blame] | 37 | $::env(CARAVEL_ROOT)/verilog/rtl/defines.v \ |
Ahmed Ghazy | d4ec2f0 | 2021-04-05 18:32:10 +0200 | [diff] [blame] | 38 | $script_dir/../../verilog/rtl/user_project_wrapper.v" |
| 39 | |
| 40 | ## Clock configurations |
| 41 | set ::env(CLOCK_PORT) "user_clock2" |
| 42 | set ::env(CLOCK_NET) "mprj.clk" |
| 43 | |
| 44 | set ::env(CLOCK_PERIOD) "10" |
| 45 | |
| 46 | ## Internal Macros |
manarabdelaty | cf577da | 2021-09-17 18:20:33 +0200 | [diff] [blame] | 47 | ### Macro PDN Connections |
| 48 | set ::env(FP_PDN_MACRO_HOOKS) "\ |
| 49 | mprj vccd1 vssd1" |
| 50 | |
Ahmed Ghazy | d4ec2f0 | 2021-04-05 18:32:10 +0200 | [diff] [blame] | 51 | ### Macro Placement |
| 52 | set ::env(MACRO_PLACEMENT_CFG) $script_dir/macro.cfg |
| 53 | |
| 54 | ### Black-box verilog and views |
| 55 | set ::env(VERILOG_FILES_BLACKBOX) "\ |
manarabdelaty | cf577da | 2021-09-17 18:20:33 +0200 | [diff] [blame] | 56 | $::env(CARAVEL_ROOT)/verilog/rtl/defines.v \ |
Ahmed Ghazy | d4ec2f0 | 2021-04-05 18:32:10 +0200 | [diff] [blame] | 57 | $script_dir/../../verilog/rtl/user_proj_example.v" |
| 58 | |
| 59 | set ::env(EXTRA_LEFS) "\ |
| 60 | $script_dir/../../lef/user_proj_example.lef" |
| 61 | |
| 62 | set ::env(EXTRA_GDS_FILES) "\ |
| 63 | $script_dir/../../gds/user_proj_example.gds" |
| 64 | |
manarabdelaty | 609ec98 | 2021-04-21 17:00:06 +0200 | [diff] [blame] | 65 | set ::env(GLB_RT_MAXLAYER) 5 |
| 66 | |
manarabdelaty | cf577da | 2021-09-17 18:20:33 +0200 | [diff] [blame] | 67 | # 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. |
manarabdelaty | 609ec98 | 2021-04-21 17:00:06 +0200 | [diff] [blame] | 69 | set ::env(FP_PDN_CHECK_NODES) 0 |
Ahmed Ghazy | d4ec2f0 | 2021-04-05 18:32:10 +0200 | [diff] [blame] | 70 | |
| 71 | # The following is because there are no std cells in the example wrapper project. |
| 72 | set ::env(SYNTH_TOP_LEVEL) 1 |
| 73 | set ::env(PL_RANDOM_GLB_PLACEMENT) 1 |
| 74 | |
| 75 | set ::env(PL_RESIZER_DESIGN_OPTIMIZATIONS) 0 |
| 76 | set ::env(PL_RESIZER_TIMING_OPTIMIZATIONS) 0 |
| 77 | set ::env(PL_RESIZER_BUFFER_INPUT_PORTS) 0 |
| 78 | set ::env(PL_RESIZER_BUFFER_OUTPUT_PORTS) 0 |
| 79 | |
manarabdelaty | cf577da | 2021-09-17 18:20:33 +0200 | [diff] [blame] | 80 | set ::env(FP_PDN_ENABLE_RAILS) 0 |
| 81 | |
Ahmed Ghazy | d4ec2f0 | 2021-04-05 18:32:10 +0200 | [diff] [blame] | 82 | set ::env(DIODE_INSERTION_STRATEGY) 0 |
| 83 | set ::env(FILL_INSERTION) 0 |
| 84 | set ::env(TAP_DECAP_INSERTION) 0 |
| 85 | set ::env(CLOCK_TREE_SYNTH) 0 |