agorararmard | 1a1e89a | 2020-11-05 22:36:46 +0200 | [diff] [blame] | 1 | #!/bin/sh |
Steve Kelly | 3ab5f03 | 2020-12-18 18:35:23 -0500 | [diff] [blame] | 2 | # SPDX-FileCopyrightText: 2020 Efabless Corporation |
| 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. |
| 15 | # SPDX-License-Identifier: Apache-2.0 |
| 16 | |
agorararmard | 1a1e89a | 2020-11-05 22:36:46 +0200 | [diff] [blame] | 17 | |
| 18 | : ${1?"Usage: $0 file1.gds file2.gds <top_level_module_name>"} |
| 19 | : ${2?"Usage: $0 file1.gds file2.gds <top_level_module_name>"} |
| 20 | : ${3?"Usage: $0 file1.gds file2.gds <top_level_module_name>"} |
| 21 | |
| 22 | klayout -r $(dirname $0)/xor.drc -rd top_cell=$3 -rd a=$1 -rd b=$2 -rd thr=$(nproc) -rd ol=xor.gds -zz |