summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorjackbackrack2015-05-01 23:17:15 -0700
committerjackbackrack2015-05-01 23:17:15 -0700
commitff9c772411d9037b9d028d23a79050041dcdc405 (patch)
treee1d1c6c6694d26a494e7944b136ea90b0b3abc15 /bin
parentef0bfe99887e89c3ba526ce14ca80e2f3b11b93c (diff)
update scripts to work as compiler with correct dirs
Diffstat (limited to 'bin')
-rwxr-xr-xbin/build.sh4
-rwxr-xr-xbin/fir2flo.sh2
-rwxr-xr-xbin/floall.sh1
-rwxr-xr-xbin/testall.sh6
4 files changed, 9 insertions, 4 deletions
diff --git a/bin/build.sh b/bin/build.sh
index badb8f97..79d5e22a 100755
--- a/bin/build.sh
+++ b/bin/build.sh
@@ -1,6 +1,6 @@
#!/bin/bash
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
-to-fir $1
+$DIR/to-fir.sh $1
(cd generated; $DIR/fir2flo.sh $1)
-(cd generated; $DIR/flo2app $1)
+(cd generated; $DIR/flo2app.sh $1)
diff --git a/bin/fir2flo.sh b/bin/fir2flo.sh
index 80e57da5..5a528ab1 100755
--- a/bin/fir2flo.sh
+++ b/bin/fir2flo.sh
@@ -1,4 +1,4 @@
#!/bin/bash
-$HOME/bar/firrtl/utils/bin/firrtl -i $1.fir -o $1.flo -x X -p tkwTgc
+$HOME/bar/firrtl/utils/bin/firrtl -i $1.fir -o $1.flo -x X # -p tkwTgc
$HOME/bar/chisel3-tests/bin/filter < $1.flo > tmp; mv tmp $1.flo
diff --git a/bin/floall.sh b/bin/floall.sh
index a07bebfd..872b78a5 100755
--- a/bin/floall.sh
+++ b/bin/floall.sh
@@ -1,6 +1,5 @@
#!/bin/bash
shift 1
-
for file in "$@"; do
echo -n $file "-> "
(cd generated; ../chisel3/bin/fir2flo.sh $file > $file.out; grep "res = " $file.out)
diff --git a/bin/testall.sh b/bin/testall.sh
new file mode 100755
index 00000000..93bb67ed
--- /dev/null
+++ b/bin/testall.sh
@@ -0,0 +1,6 @@
+#!/bin/bash
+DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
+shift 1
+for file in "$@"; do
+ $DIR/test.sh $file > generated/$file.tst-out
+done