blob: b840d4b905ed30e9aca409a615264585434242dc [file] [log] [blame]
#!/usr/bin/env bash
# Split apart the GDS files
# Depends on CDL and LEF
msg "Splitting GDS files."
find $INPUT_DIRECTORY -name \*.gds -print | sed -e's-gds/.*$--' | sort | uniq \
| parallel -v $SCRIPT_DIR/gds_to_lef_gds_mag.py \{\} $OUTPUT_DIRECTORY $INPUT_DIRECTORY/sky130A.tech $TEMP_DIR \
; RETCODE=$?
if [ "$RETCODE" -ne 0 ]; then
msg "Error: Failed to split GDS files!?"
exit 1
else
msg "Successfully split GDS files."
fi
$SCRIPT_DIR/gds-preview.sh $INPUT_DIRECTORY $OUTPUT_DIRECTORY $TEMP_DIR || exit 1