#!/bin/sh

echo "running espresso to minimize logic"
espresso test.logic > test.pla

#echo "running genie to optimize logic"
#genie -pla test.pla | genie -pmr

echo "running misII to synthesize logic"
misII -f script.msu -t pla -T oct -o test:logic test.pla

echo "running padplace to generate i/o list"
padplace -l test:logic > test.padlist
padplace -D test.padlist test:logic

echo "running bdnet to connect latches"
bdnet tester.net

echo "running octflatten"
octflatten -t LEAF -o tester:flat tester:logic

echo "running wolfe to place and route"
wolfe -f -o tester:placed tester:flat

echo "running chipstats on core"
echo "====================================================" > tester.stats
chipstats tester:placed >> tester.stats
echo "====================================================" >> tester.stats

#echo "generating an ident clump"
#phyt -v -h 50 -o ident:physical "KU ECE - J. Evans"
#vulcan -k ident:physical

#echo "running bdnet to generate pad frame"
#bdnet mosis.net

#echo "running chipstats on entire chip"
#echo "====================================================" >> tester.stats
#chipstats mosis:symbolic >> tester.stats
#echo "====================================================" >> tester.stats

