mkk | 91ada92 | 2020-12-02 09:08:26 -0800 | [diff] [blame] | 1 | #!/bin/sh |
agorararmard | 6c766a8 | 2020-12-10 18:13:12 +0200 | [diff] [blame] | 2 | # SPDX-FileCopyrightText: 2020 Efabless Corporation |
agorararmard | e5780bf | 2020-12-09 21:27:56 +0000 | [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 | e5780bf | 2020-12-09 21:27:56 +0000 | [diff] [blame] | 16 | |
mkk | 91ada92 | 2020-12-02 09:08:26 -0800 | [diff] [blame] | 17 | export PDK_ROOT=~/foss/pdks/open_pdks/sky130; |
| 18 | export MAGTYPE=mag ; |
| 19 | export PDKPATH=$PDK_ROOT/sky130A ; |
| 20 | export MAGIC=magic |
| 21 | |
| 22 | |
| 23 | $MAGIC -dnull -noconsole << EOF |
| 24 | #------------------------------------------------------ |
| 25 | drc off |
| 26 | #---------------------------------gds polygon subcell true |
| 27 | gds warning default |
| 28 | gds readonly true |
| 29 | gds rescale false |
| 30 | #---------------------------------tech unlock * |
| 31 | gds read $1 |
| 32 | load ${1%.gds} |
| 33 | #---------------------------------readspice ${1%.gds}.sp |
| 34 | cellname delete "(UNNAMED)" |
| 35 | save ${1%.gds}.mag |
| 36 | quit -noprompt |
| 37 | EOF |