blob: 4c1d6d8b207cc659c403daddaf38fdd2df13a823 [file] [log] [blame]
agorararmard80d3fef2020-11-05 21:33:22 +02001#!/bin/bash
agorararmard6c766a82020-12-10 18:13:12 +02002# SPDX-FileCopyrightText: 2020 Efabless Corporation
agorararmard80d3fef2020-11-05 21:33:22 +02003#
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.
agorararmardafa96ea2020-12-09 23:37:31 +020015# SPDX-License-Identifier: Apache-2.0
agorararmard80d3fef2020-11-05 21:33:22 +020016
agorararmard2ffcf3b2020-11-05 21:46:58 +020017# To call: ./drc-gds-sky130A.sh <target_path> <design_name> <pdk-root> [<output_path> default is <target_path>/results/]
agorararmard80d3fef2020-11-05 21:33:22 +020018
19export TARGET_DIR=$1
20export DESIGN_NAME=$2
agorararmard2ffcf3b2020-11-05 21:46:58 +020021export PDK_ROOT=$3
agorararmard80d3fef2020-11-05 21:33:22 +020022export OUT_DIR=${4:-$TARGET_DIR/results/}
agorararmard85a8aea2020-11-05 22:23:31 +020023export TCL_CALL_PATH=$(pwd)/core_scripts
agorararmard80d3fef2020-11-05 21:33:22 +020024
25if ! [[ -d "$OUT_DIR" ]]
26then
27 mkdir $OUT_DIR
28fi
agorararmard85a8aea2020-11-05 22:23:31 +020029
30bash ./core_scripts/magic-drc.sh $TARGET_DIR $DESIGN_NAME $PDK_ROOT "gds" "sky130A" $OUT_DIR $TCL_CALL_PATH