blob: e60639fa5801b4fed555a078bfe58e5298ec74d1 [file] [log] [blame]
agorararmard9c7e7722020-12-11 23:13:01 +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
18set script_dir [file dirname [file normalize [info script]]]
19set ::env(DESIGN_NAME) user_project_wrapper
20#section end
21
22
23# User Configurations
agorararmard9c7e7722020-12-11 23:13:01 +020024
agorararmard44658332020-12-15 00:01:36 +020025## Source Verilog Files
26set ::env(VERILOG_FILES) "\
27 $script_dir/../../verilog/rtl/defines.v \
28 $script_dir/../../verilog/rtl/user_project_wrapper.v"
29
30## Clock configurations
agorararmard9c7e7722020-12-11 23:13:01 +020031set ::env(CLOCK_PORT) "user_clock2"
32set ::env(CLOCK_NET) "mprj.clk"
33
34set ::env(CLOCK_PERIOD) "10"
35
agorararmard44658332020-12-15 00:01:36 +020036## Internal Macros
37### Macro Placement
38set ::env(MACRO_PLACEMENT_CFG) $script_dir/macro.cfg
agorararmard9c7e7722020-12-11 23:13:01 +020039
agorararmard44658332020-12-15 00:01:36 +020040### Black-box verilog and views
agorararmard9c7e7722020-12-11 23:13:01 +020041set ::env(VERILOG_FILES_BLACKBOX) "\
42 $script_dir/../../verilog/rtl/defines.v \
43 $script_dir/../../verilog/rtl/user_proj_example.v"
44
45set ::env(EXTRA_LEFS) "\
46 $script_dir/../../lef/user_proj_example.lef"
47
48set ::env(EXTRA_GDS_FILES) "\
49 $script_dir/../../gds/user_proj_example.gds"
50
51
52# The following is because there are no std cells in the example wrapper project.
53set ::env(SYNTH_TOP_LEVEL) 1
54set ::env(PL_RANDOM_GLB_PLACEMENT) 1
55set ::env(PL_OPENPHYSYN_OPTIMIZATIONS) 0
56set ::env(DIODE_INSERTION_STRATEGY) 0
57set ::env(FILL_INSERTION) 0
58set ::env(TAP_DECAP_INSERTION) 0
59set ::env(CLOCK_TREE_SYNTH) 0
60
agorararmard44658332020-12-15 00:01:36 +020061
62# DON'T TOUCH THE FOLLOWING SECTIONS
63
Ahmed Ghazy0fbdaa52020-12-15 18:49:48 +020064# This makes sure that the core rings are outside the boundaries
65# of your block.
66set ::env(MAGIC_ZEROIZE_ORIGIN) 0
67
agorararmard9c7e7722020-12-11 23:13:01 +020068# Area Configurations. DON'T TOUCH.
69set ::env(FP_SIZING) absolute
70set ::env(DIE_AREA) "0 0 2920 3520"
71
72# Power & Pin Configurations. DON'T TOUCH.
73set ::env(FP_PDN_CORE_RING) 1
agorararmardb3e15092020-12-14 20:07:49 +000074set ::env(FP_PDN_CORE_RING_VWIDTH) 3
75set ::env(FP_PDN_CORE_RING_HWIDTH) $::env(FP_PDN_CORE_RING_VWIDTH)
Ahmed Ghazy0fbdaa52020-12-15 18:49:48 +020076set ::env(FP_PDN_CORE_RING_VOFFSET) 14
77set ::env(FP_PDN_CORE_RING_HOFFSET) $::env(FP_PDN_CORE_RING_VOFFSET)
agorararmardb3e15092020-12-14 20:07:49 +000078set ::env(FP_PDN_CORE_RING_VSPACING) 1.7
79set ::env(FP_PDN_CORE_RING_HSPACING) $::env(FP_PDN_CORE_RING_VSPACING)
Ahmed Ghazy0fbdaa52020-12-15 18:49:48 +020080
81set ::env(FP_PDN_VWIDTH) 3
82set ::env(FP_PDN_HWIDTH) 3
83set ::env(FP_PDN_VOFFSET) 0
agorararmardb3e15092020-12-14 20:07:49 +000084set ::env(FP_PDN_HOFFSET) $::env(FP_PDN_VOFFSET)
85set ::env(FP_PDN_VPITCH) 180
86set ::env(FP_PDN_HPITCH) $::env(FP_PDN_VPITCH)
87set ::env(FP_PDN_VSPACING) [expr 5*$::env(FP_PDN_CORE_RING_VWIDTH)]
88set ::env(FP_PDN_HSPACING) [expr 5*$::env(FP_PDN_CORE_RING_HWIDTH)]
agorararmardb3e15092020-12-14 20:07:49 +000089
agorararmard9c7e7722020-12-11 23:13:01 +020090set ::env(VDD_NETS) [list {vccd1} {vccd2} {vdda1} {vdda2}]
91set ::env(GND_NETS) [list {vssd1} {vssd2} {vssa1} {vssa2}]
agorararmardb3e15092020-12-14 20:07:49 +000092set ::env(SYNTH_USE_PG_PINS_DEFINES) "USE_POWER_PINS"
agorararmard44658332020-12-15 00:01:36 +020093
94set ::env(RUN_CVC) 0
agorararmard9c7e7722020-12-11 23:13:01 +020095
agorararmardab037c92020-12-14 23:30:29 +020096# Pin Configurations. DON'T TOUCH
agorararmard9c7e7722020-12-11 23:13:01 +020097set ::env(FP_PIN_ORDER_CFG) $script_dir/pin_order.cfg
98set ::env(FP_DEF_TEMPLATE) $script_dir/../../def/user_project_wrapper_empty.def
99set ::unit 2.4
100set ::env(FP_IO_VEXTEND) [expr 2*$::unit]
101set ::env(FP_IO_HEXTEND) [expr 2*$::unit]
102set ::env(FP_IO_VLENGTH) $::unit
103set ::env(FP_IO_HLENGTH) $::unit
104
105set ::env(FP_IO_VTHICKNESS_MULT) 4
106set ::env(FP_IO_HTHICKNESS_MULT) 4