summaryrefslogtreecommitdiff
path: root/bin/fir2flo.sh
diff options
context:
space:
mode:
authorJim Lawson2015-07-21 11:01:15 -0700
committerJim Lawson2015-07-24 15:50:55 -0700
commit4e8aa6245b43cc3ed3afbf19ad60dc37183ed0f4 (patch)
treef4f6aa902b0bf598b947c2829b4c5159c4bbd217 /bin/fir2flo.sh
parent80774333d08405fe726101405192493e0a7b3cf2 (diff)
Check for errors.
Diffstat (limited to 'bin/fir2flo.sh')
-rwxr-xr-xbin/fir2flo.sh4
1 files changed, 3 insertions, 1 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