-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup_env.sh
171 lines (112 loc) · 3.04 KB
/
setup_env.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
#!/bin/tcsh
setenv tool_dir /uusoc/facility/cad_tools
# Source Tools
#
# Synopsys
source ${tool_dir}/Synopsys/synopsys_setup.sh
# Cadence
source ${tool_dir}/Cadence/cadence_setup.sh
# Mentor
source ${tool_dir}/Mentor/mentor_setup.sh
setenv project_dir /research/ece/lnis
setenv pdk_gf12_dir ${project_dir}/CAD_TOOLS/DKITS/GF/12nm/PDK/12LP/V1.0_4.1
# Create subdirectory for verilog/VHDL files
if !( -d ${PWD}/HDL/GATE) then
mkdir ${PWD}/HDL/GATE
endif
# Create subdirectory for verilog/VHDL files
if !( -d ${PWD}/HDL/PLACED) then
mkdir ${PWD}/HDL/PLACED
endif
##############
# Synopsys DC
##############
# Create sdc directory
if !( -d ${PWD}/design_compiler/SDC) then
mkdir ${PWD}/design_compiler/SDC
endif
# Create dlib directory
if !( -d ${PWD}/design_compiler/DDC) then
mkdir ${PWD}/design_compiler/DDC
endif
if !( -d ${PWD}/design_compiler/SDF) then
mkdir ${PWD}/design_compiler/SDF
endif
# Create RPT directory
if !( -d ${PWD}/design_compiler/RPT) then
mkdir ${PWD}/design_compiler/RPT
endif
# Create DESIGN_LIBS directory
if !( -d ${PWD}/design_compiler/DESIGN_LIBS) then
mkdir ${PWD}/design_compiler/DESIGN_LIBS
endif
# Create subdirectory for verilog/VHDL files
if !( -d ${PWD}/design_compiler/HDL/GATE) then
mkdir ${PWD}/design_compiler/HDL/GATE
endif
# Create subdirectory for .db files
if !( -d ${PWD}/design_compiler/DB) then
mkdir ${PWD}/design_compiler/DB
endif
##################
# Cadence innovus
##################
# Create DBS directory
if !( -d ${PWD}/innovus/DBS) then
mkdir ${PWD}/innovus/DBS
endif
# Create GDS directory
if !( -d ${PWD}/innovus/GDS) then
mkdir ${PWD}/innovus/GDS
endif
# Create RPT directory
if !( -d ${PWD}/innovus/RPT) then
mkdir ${PWD}/innovus/RPT
endif
if !( -d ${PWD}/innovus/SDF) then
mkdir ${PWD}/innovus/SDF
endif
if !( -f ${PWD}/innovus/GDS/gds2.map) then
ln -s $pdk_gf12_dir/pdk/captable/gds2.map ${PWD}/innovus/GDS/gds2.map
endif
###################
# Cadence Virtuoso
###################
if !( -d ${PWD}/virtuoso/calibre) then
mkdir ${PWD}/virtuoso/calibre
endif
# Create drc, lvs, and pex directories
if !( -d ${PWD}/virtuoso/calibre/drc) then
mkdir ${PWD}/virtuoso/calibre/drc
endif
if !( -d ${PWD}/virtuoso/calibre/drcmetalfill) then
mkdir ${PWD}/virtuoso/calibre/drcmetalfill
endif
if !( -d ${PWD}/virtuoso/calibre/drcpolyfill) then
mkdir ${PWD}/virtuoso/calibre/drcpolyfill
endif
if !( -d ${PWD}/virtuoso/calibre/lvs) then
mkdir ${PWD}/virtuoso/calibre/lvs
endif
if !( -d ${PWD}/virtuoso/calibre/pex) then
mkdir ${PWD}/virtuoso/calibre/pex
endif
# Create libs directory for your own librairies
if !( -d ${PWD}/virtuoso/libs) then
mkdir ${PWD}/virtuoso/libs
endif
# Create simulation directory for Spectre/eldo/Hspice results
if !( -d ${PWD}/virtuoso/simulation) then
mkdir ${PWD}/virtuoso/simulation
endif
##################
# Mentor Modelsim
##################
# Create RPT directory
if !( -d ${PWD}/modelsim) then
mkdir ${PWD}/modelsim
endif
# Create RPT directory
if !( -d ${PWD}/modelsim/PROJECTS) then
mkdir ${PWD}/modelsim/PROJECTS
endif