forked from w32agobot/SKY130_SAR-ADC
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathlayver.sh
executable file
·55 lines (47 loc) · 1.54 KB
/
layver.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#!/bin/bash
#
# layver.sh layout verification script
# (c) 2023 Harald Pretl, IIC@JKU
echo "[INFO] Layout verification script for SKY130_SAR-ADC1"
RESDIR=$PWD/layver.tmp
[ -d "$RESDIR" ] && rm -rf "$RESDIR"
mkdir -p "$RESDIR"
ERROR=0
if true; then
CELL=adc_comp_latch
echo "[INFO] Checking cell $CELL"
iic-drc.sh -w "$RESDIR" -b mag/$CELL.mag || ERROR=1
iic-lvs.sh -w "$RESDIR" -s xschem/$CELL.sch -l mag/$CELL.mag -c $CELL || ERROR=1
fi
if true; then
CELL=adc_array_matrix_12bit
echo "[INFO] Checking cell $CELL"
iic-drc.sh -w "$RESDIR" -b mag/$CELL.mag || ERROR=1
iic-lvs.sh -w "$RESDIR" -s xschem/$CELL.sch -l mag/$CELL.mag -c $CELL || ERROR=1
fi
if true; then
CELL=adc_vcm_generator
echo "[INFO] Checking cell $CELL"
iic-drc.sh -w "$RESDIR" -b mag/$CELL.mag || ERROR=1
iic-lvs.sh -w "$RESDIR" -s xschem/$CELL.sch -l mag/$CELL.mag -c $CELL || ERROR=1
fi
if true; then
CELL=sky130_mm_sc_hd_dlyPoly5ns
echo "[INFO] Checking cell $CELL"
iic-lvs.sh -w "$RESDIR" -s xschem/$CELL.sch -l stdcells/sky130_mm_sc_hd_dlyPoly5ns/$CELL.mag -c $CELL || ERROR=1
iic-lvs.sh -w "$RESDIR" -s xschem/$CELL.sch -l stdcells/sky130_mm_sc_hd_dlyPoly5ns/$CELL.gds -c $CELL || ERROR=1
fi
if true; then
CELL=adc_top
echo "[INFO] Checking cell $CELL"
iic-drc.sh -w "$RESDIR" -b gds/$CELL.gds.gz || ERROR=1
iic-lvs.sh -w "$RESDIR" -s lvs/$CELL.spice -l gds/$CELL.gds.gz -c $CELL || ERROR=1
fi
if [ $ERROR -eq 1 ]; then
echo "==="
echo "[ERROR] Layout verification FAILED! Check results!"
exit 1
else
echo "==="
echo "[INFO] Layout verification PASSED all checks!"
fi