blob: 2faedf7febb6f2c465570f696dfdfd5059dbb5d5 [file] [log] [blame]
#!/usr/bin/env bash
# Copy accross the template files
msg "Copying tlef files."
$SCRIPT_DIR/tlef.py $INPUT_DIRECTORY $OUTPUT_DIRECTORY $TEMP_DIR ; RETCODE=$?
if [ "$RETCODE" -ne 0 ]; then
msg "Error: Failed to copy tlef files!?"
exit 1
else
msg "Successfully copied tlef files."
fi
# Split apart LEF files first
msg "Splitting existing LEF files."
find $INPUT_DIRECTORY -name \*.lef -print \
| parallel -v $SCRIPT_DIR/lef_rewrite.py \{\} $OUTPUT_DIRECTORY $TEMP_DIR \
; RETCODE=$?
if [ "$RETCODE" -ne 0 ]; then
msg "Error: Failed to split LEF files!?"
exit 1
else
msg "Successfully split LEF files."
fi
# Split apart the CDL files into netlist.csv files
msg "Splitting CDL into CSV files."
$SCRIPT_DIR/cdl_rewrite.py $INPUT_DIRECTORY $OUTPUT_DIRECTORY $TEMP_DIR ; RETCODE=$?
if [ "$RETCODE" -ne 0 ]; then
msg "Error: Failed to split CDL files into CSV files!?"
exit 1
else
msg "Successfully split CDL files into CSV files."
fi
# Convert the netlist.csv files to .cdl file
$SCRIPT_DIR/netlist-csv2cdl.py $OUTPUT_DIRECTORY ; RETCODE=$?
if [ "$RETCODE" -ne 0 ]; then
msg "Error: Failed to convert netlist.csv into CDL files!?"
exit 1
else
msg "Successfully converted netlist.csv into CDL files."
fi
# Processing spice models
#msg "Processing spice model files."
#$SCRIPT_DIR/spice.sh $INPUT_DIRECTORY $OUTPUT_DIRECTORY $TEMP_DIR; RETCODE=$?
#if [ "$RETCODE" -ne 0 ]; then
# msg "Error: Failed to process spice model files!?"
# exit 1
#else
# msg "Successfully processed spice model files."
#fi