forked from google/skywater-pdk-libs-sky130_bag3_pr
-
Notifications
You must be signed in to change notification settings - Fork 2
/
install.sh
executable file
·90 lines (80 loc) · 2.76 KB
/
install.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
#!/bin/bash
#
# Copyright 2019-2021 SkyWater PDK Authors
#
# 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
#
# https://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.
#
# This code is *alternatively* available under a BSD-3-Clause license, see
# details in the README.md at the top level and the license text at
# https://github.com/google/skywater-pdk-libs-sky130_bag3_pr/blob/master/LICENSE.alternative
#
# SPDX-License-Identifier: BSD-3-Clause OR Apache 2.0
#!/usr/bin/env bash
export TECH_DIR="skywater130"
export ROOT_DIR="${TECH_DIR}/workspace_setup"
# files to copy from workspace_setup
cp_files=( ".cdsenv.personal"
".cdsinit.personal"
"bag_submodules.yaml" )
# files to link from workspace_setup
ln_files=( "bag_config.yaml"
".cdsenv"
".cdsinit"
".simrc"
".bashrc"
".bashrc_bag"
"cds.lib.core"
"display.drf"
"models"
".gitignore"
"leBindKeys.il" )
# user configuration files; copy
for f in "${cp_files[@]}"; do
cp ${ROOT_DIR}/${f} .
git add -f ${f}
done
# standard configuration files; symlink
for f in "${ln_files[@]}"; do
ln -s ${ROOT_DIR}/${f} .
git add -f ${f}
done
# setup .ipython
export CUR_DIR=".ipython/profile_default"
mkdir -p ${CUR_DIR}
ln -s "../../${ROOT_DIR}/ipython_config.py" "${CUR_DIR}/ipython_config.py"
git add -f ${CUR_DIR}/ipython_config.py
# setup gen_libs folder
mkdir gen_libs
touch gen_libs/.gitignore
git add -f gen_libs/.gitignore
# setup cds.lib
echo 'INCLUDE $BAG_WORK_DIR/cds.lib.core' > cds.lib
# link BAG run scripts
ln -s BAG_framework/run_scripts/start_bag_ICADV12d3.il start_bag.il
ln -s BAG_framework/run_scripts/start_bag.sh .
ln -s BAG_framework/run_scripts/run_bag.sh .
ln -s BAG_framework/run_scripts/gen_cell.sh .
ln -s BAG_framework/run_scripts/sim_cell.sh .
ln -s BAG_framework/run_scripts/meas_cell.sh .
ln -s BAG_framework/run_scripts/run_em_cell.sh .
ln -s BAG_framework/run_scripts/extract_cell.sh .
ln -s BAG_framework/run_scripts/dsn_cell.sh .
ln -s BAG_framework/run_scripts/virt_server.sh .
ln -s BAG_framework/run_scripts/setup_submodules.py .
git add start_bag.il
git add start_bag.sh
git add run_bag.sh
git add virt_server.sh
git add setup_submodules.py
ln -s ${BAG_TEMP_DIR}/simulations/gen_outputs gen_outputs_scratch
ln -s ${BAG_TEMP_DIR}/calibre_run calibre_run