summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/fir2flo.sh4
-rwxr-xr-xbin/flo2app.sh15
2 files changed, 12 insertions, 7 deletions
diff --git a/bin/fir2flo.sh b/bin/fir2flo.sh
index 481f4418..3d425a4a 100755
--- a/bin/fir2flo.sh
+++ b/bin/fir2flo.sh
@@ -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
diff --git a/bin/flo2app.sh b/bin/flo2app.sh
index 6ef87351..f02ba8c0 100755
--- a/bin/flo2app.sh
+++ b/bin/flo2app.sh
@@ -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