blob: cd1a608e9a6ea3c33ef0cfd03d0707224fe359a4 [file] [log] [blame]
agorararmard790b9522020-10-21 19:39:39 +02001#!/bin/bash
2# Copyright 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
16if ! [[ -d $(pwd)/pdks/sky130A ]]; then exit -1; fi
17
18SIZE=$(du -sb $(pwd)/pdks/sky130A | cut -f1)
agorararmardc6117c32020-11-17 00:09:50 +020019# 250MB = 131,072,000 bytes; a fair estimate of the size of one library, I guess.
20if [[ $SIZE -lt 131072000 ]]; then
21 echo 'size is less than 125MB'
agorararmard790b9522020-10-21 19:39:39 +020022 exit -1
23fi
24echo 'Built without fatal errors'
25echo "sky130A size is $SIZE bytes"
26exit 0