blob: 8ba9392ca73ffed04548ff81e8499d2119e72835 [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 -080017
18o-mag2maglef-maglef.sh simple_por
19o-mag2maglef-maglef.sh gpio_control_block
20o-mag2maglef-maglef.sh digital_pll
21o-mag2maglef-maglef.sh storage
22o-mag2maglef-maglef.sh mgmt_core
23o-mag2maglef-maglef.sh sram_1rw1r_32_256_8_sky130
24o-mag2maglef-maglef.sh chip_io
25
26
27
28MAGTYPE=maglef magic -rcfile ./dot.magicrc.dist -d XR simple_por.mag
29MAGTYPE=mag magic -rcfile ./dot.magicrc.dist -d XR simple_por.mag
30
31MAGTYPE=maglef magic -rcfile ./dot.magicrc.dist -d XR simple_por.mag
32MAGTYPE=mag magic -rcfile ./dot.magicrc.dist -d XR simple_por.mag
33
34
35load ./digital_pll.mag ; select top cell ; expand ; drc on ; drc style drc(full) ; drc check ; drc catchup
36
37
38
39
40MAGTYPE=maglef magicDrc -T $PDK_ROOT/sky130A/libs.tech/magic/current/sky130A.tech -S 'drc(full)' -l simple_por.drc.out simple_por.mag
41
42MAGTYPE=maglef magicDrc -T $PDK_ROOT/sky130A/libs.tech/magic/current/sky130A.tech -S 'drc(full)' -l caravel..drc.out caravel.mag
43
44
45
46
47MAGTYPE=mag magicDrc -T $PDK_ROOT/sky130A/libs.tech/magic/current/sky130A.tech -S 'drc(full)' -l simple_por.drc.out simple_por.mag
48
49MAGTYPE=mag magicDrc -T $PDK_ROOT/sky130A/libs.tech/magic/current/sky130A.tech -S 'drc(full)' -l caravel..drc.out caravel.mag
50
51
52MAGTYPE=maglef magicDrc -T $PDK_ROOT/sky130A/libs.tech/magic/current/sky130A.tech -S 'drc(full)' -l chip_io.drc.out chip_io.mag
53MAGTYPE=mag magicDrc -T $PDK_ROOT/sky130A/libs.tech/magic/current/sky130A.tech -S 'drc(full)' -l chip_io.drc.out chip_io.mag
54
55MAGTYPE=maglef magicDrc -T $PDK_ROOT/sky130A/libs.tech/magic/current/sky130A.tech -S 'drc(full)' -l digital_pll.drc.out digital_pll.mag
56MAGTYPE=mag magicDrc -T $PDK_ROOT/sky130A/libs.tech/magic/current/sky130A.tech -S 'drc(full)' -l digital_pll.drc.out digital_pll.mag
57
58MAGTYPE=mag magicDrc -T $PDK_ROOT/sky130A/libs.tech/magic/current/sky130A.tech -S 'drc(full)' -l simple_por.drc.out simple_por.mag
59MAGTYPE=maglef magicDrc -T $PDK_ROOT/sky130A/libs.tech/magic/current/sky130A.tech -S 'drc(full)' -l simple_por.drc.out simple_por.mag
60
61
62
63cd ~/foss/designs/openflow-drc-tests/torture_tests
64git checkout master
65git pull
66mkdir -p $1
67cp -f ~/design/caravel/gds/$1.gds $1
68git add $1/*
69git commit -m "DRC check for $1"
70git push
71