blob: 69110628f69b62107e94b034c3be4081e397e75b [file] [log] [blame]
agorararmard1a1e89a2020-11-05 22:36:46 +02001#!/bin/sh
Steve Kelly3ab5f032020-12-18 18:35:23 -05002# 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
agorararmard1a1e89a2020-11-05 22:36:46 +020017
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
22klayout -r $(dirname $0)/xor.drc -rd top_cell=$3 -rd a=$1 -rd b=$2 -rd thr=$(nproc) -rd ol=xor.gds -zz