agorararmard | 790b952 | 2020-10-21 19:39:39 +0200 | [diff] [blame] | 1 | #!/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 | |
| 16 | if ! [[ -d $(pwd)/pdks/sky130A ]]; then exit -1; fi |
| 17 | |
| 18 | SIZE=$(du -sb $(pwd)/pdks/sky130A | cut -f1) |
agorararmard | c6117c3 | 2020-11-17 00:09:50 +0200 | [diff] [blame] | 19 | # 250MB = 131,072,000 bytes; a fair estimate of the size of one library, I guess. |
| 20 | if [[ $SIZE -lt 131072000 ]]; then |
| 21 | echo 'size is less than 125MB' |
agorararmard | 790b952 | 2020-10-21 19:39:39 +0200 | [diff] [blame] | 22 | exit -1 |
| 23 | fi |
| 24 | echo 'Built without fatal errors' |
| 25 | echo "sky130A size is $SIZE bytes" |
| 26 | exit 0 |