Skip to content

Commit

Permalink
Check for errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
ucbjrl committed Jul 24, 2015
1 parent 8077433 commit 4e8aa62
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
4 changes: 3 additions & 1 deletion bin/fir2flo.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/bin/bash

$CHISEL_BIN/firrtl -i $1.fir -o $1.flo -X flo # -x X # -p c # tkwTgc
$CHISEL_BIN/filter < $1.flo > tmp; mv tmp $1.flo
if [ $? ] ; then
$CHISEL_BIN/filter < $1.flo > tmp && mv tmp $1.flo
fi
15 changes: 9 additions & 6 deletions bin/flo2app.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
#!/bin/bash

echo FLO-LLVM DONE
flo-llvm $1.flo # --vcdtmp
echo FLO-LLVM DONE
flo-llvm-release $1.flo --harness > $1-harness.cpp
echo FLO-LLVM-RELEASE DONE
clang++ -o $1 $1-harness.cpp $1.o
echo GPP DONE
if [ $? ] ; then
echo FLO-LLVM DONE
flo-llvm-release $1.flo --harness > $1-harness.cpp
fi
if [ $? ] ; then
echo FLO-LLVM-RELEASE DONE
clang++ -o $1 $1-harness.cpp $1.o
echo GPP DONE
fi

0 comments on commit 4e8aa62

Please sign in to comment.