From e9b4d9ea3ec38db12b37f81994c28b8a28b6f88e Mon Sep 17 00:00:00 2001 From: jackbackrack Date: Thu, 7 May 2015 10:28:50 -0700 Subject: add better testing support, better width inference and padding, remove old reduce ops --- bin/filter.cpp | 8 ++++++-- bin/fir2flo.sh | 4 ++-- bin/flo2app.sh | 2 +- 3 files changed, 9 insertions(+), 5 deletions(-) (limited to 'bin') diff --git a/bin/filter.cpp b/bin/filter.cpp index ce67b8e3..4e805a48 100644 --- a/bin/filter.cpp +++ b/bin/filter.cpp @@ -5,7 +5,11 @@ int main (int argc, char* argv[]) { for (;;) { c = getchar(); if (c == EOF) break; - char nc = (c == '$' || c == '#') ? '_' : c; - putchar(nc); + if (c == '#') + putchar('_'); + else if (c == '$') { + putchar(':'); putchar(':'); + } else + putchar(c); } } diff --git a/bin/fir2flo.sh b/bin/fir2flo.sh index 5a528ab1..d97036a9 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/chisel3-tests/bin/filter < $1.flo > tmp; mv tmp $1.flo +$HOME/bar/firrtl/utils/bin/firrtl -i $1.fir -o $1.flo -x X # -p c # tkwTgc +$HOME/bar/chisel3/bin/filter < $1.flo > tmp; mv tmp $1.flo diff --git a/bin/flo2app.sh b/bin/flo2app.sh index bac47702..cebf4325 100755 --- a/bin/flo2app.sh +++ b/bin/flo2app.sh @@ -1,6 +1,6 @@ #!/bin/bash -flo-llvm $1.flo +flo-llvm --vcdtmp $1.flo echo FLO-LLVM DONE flo-llvm-release $1.flo --harness > $1-harness.cpp echo FLO-LLVM-RELEASE DONE -- cgit v1.2.3