From a7cb44532bca19223b104c8e54b212ee9e4a35eb Mon Sep 17 00:00:00 2001 From: Adrien Guatto Date: Sun, 27 Jun 2010 23:27:33 +0200 Subject: [PATCH] Updated helper scripts. --- tools/{hec-c.sh => heptc-c.sh} | 2 +- tools/{hec-vhdl.sh => heptc-vhdl.sh} | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) rename tools/{hec-c.sh => heptc-c.sh} (87%) rename tools/{hec-vhdl.sh => heptc-vhdl.sh} (84%) diff --git a/tools/hec-c.sh b/tools/heptc-c.sh similarity index 87% rename from tools/hec-c.sh rename to tools/heptc-c.sh index e9e5123..6014e2f 100755 --- a/tools/hec-c.sh +++ b/tools/heptc-c.sh @@ -20,7 +20,7 @@ shift # Compile source file to VHDL, flattening node calls if [ $compile -eq 1 ]; then - hec.byte $@ -s main -target c $F || exit 1 + heptc.native $@ -s main -target c $F $@ || exit 1 fi # Compile it with GCC diff --git a/tools/hec-vhdl.sh b/tools/heptc-vhdl.sh similarity index 84% rename from tools/hec-vhdl.sh rename to tools/heptc-vhdl.sh index d850f6c..33ff16e 100755 --- a/tools/hec-vhdl.sh +++ b/tools/heptc-vhdl.sh @@ -21,7 +21,7 @@ shift # Compile source file to VHDL, flattening node calls if [ $compile -eq 1 ]; then - hec.byte $@ -s main -target vhdl $F > tmp.sh || exit 1 + heptc.native $@ -s main -target vhdl $F $@ > tmp.sh || exit 1 fi # Display the resulting VHDL code @@ -34,7 +34,8 @@ done cd $REP || exit 1 # Properly compile it with GHDL; order matters -sh ../tmp.sh && rm -f ../tmp.sh || exit 1 +ghdl -a types.vhd `grep node ../$F | perl -pe 's/node (.*?)\b*\(.*$/$1.vhd/'` \ + main_tb.vhd || exit 1 # Link everything using the generated test-bench ghdl -e main_tb || exit 1