blob: 110358bb4512f1156d4d5c1b899e092407d59854 [file] [log] [blame]
mkk91ada922020-12-02 09:08:26 -08001#!/bin/sh
agorararmard6c766a82020-12-10 18:13:12 +02002# SPDX-FileCopyrightText: 2020 Efabless Corporation
agorararmarde5780bf2020-12-09 21:27:56 +00003#
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
agorararmarde5780bf2020-12-09 21:27:56 +000016
mkk91ada922020-12-02 09:08:26 -080017export PDK_ROOT=~/foss/pdks/open_pdks/sky130;
18export MAGTYPE=mag ;
19export PDKPATH=$PDK_ROOT/sky130A ;
20export MAGIC=magic
21
22
23$MAGIC -dnull -noconsole << EOF
24#------------------------------------------------------
25drc off
26#---------------------------------gds polygon subcell true
27gds warning default
28gds readonly true
29gds rescale false
30#---------------------------------tech unlock *
31gds read $1
32load ${1%.gds}
33#---------------------------------readspice ${1%.gds}.sp
34cellname delete "(UNNAMED)"
35save ${1%.gds}.mag
36quit -noprompt
37EOF