agorararmard | 3661905 | 2020-11-05 22:32:00 +0200 | [diff] [blame] | 1 | #!/bin/bash |
agorararmard | 6c766a8 | 2020-12-10 18:13:12 +0200 | [diff] [blame] | 2 | # SPDX-FileCopyrightText: 2020 Efabless Corporation |
agorararmard | 3661905 | 2020-11-05 22:32:00 +0200 | [diff] [blame] | 3 | # |
| 4 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | # you may not use this file except in compliance with the License. |
| 6 | # You may obtain a copy of the License at |
| 7 | # |
| 8 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | # |
| 10 | # Unless required by applicable law or agreed to in writing, software |
| 11 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | # See the License for the specific language governing permissions and |
| 14 | # limitations under the License. |
agorararmard | afa96ea | 2020-12-09 23:37:31 +0200 | [diff] [blame] | 15 | # SPDX-License-Identifier: Apache-2.0 |
agorararmard | 3661905 | 2020-11-05 22:32:00 +0200 | [diff] [blame] | 16 | |
| 17 | # To call: ./ext-gds-sky130A.sh <target_path> <design_name> <pdk-root> [<output_path> default is <target_path>/results/] |
| 18 | |
| 19 | export TARGET_DIR=$1 |
| 20 | export DESIGN_NAME=$2 |
| 21 | export PDK_ROOT=$3 |
| 22 | export OUT_DIR=${4:-$TARGET_DIR/results/} |
| 23 | export TCL_CALL_PATH=$(pwd)/core_scripts |
| 24 | |
| 25 | if ! [[ -d "$OUT_DIR" ]] |
| 26 | then |
| 27 | mkdir $OUT_DIR |
| 28 | fi |
| 29 | |
| 30 | bash ./core_scripts/magic-ext.sh $TARGET_DIR $DESIGN_NAME $PDK_ROOT "gds" "sky130A" $OUT_DIR $TCL_CALL_PATH |