Updated helper scripts.

This commit is contained in:
Adrien Guatto 2010-06-27 23:27:33 +02:00
parent b4ddefa65c
commit a7cb44532b
2 changed files with 4 additions and 3 deletions

View file

@ -20,7 +20,7 @@ shift
# Compile source file to VHDL, flattening node calls # Compile source file to VHDL, flattening node calls
if [ $compile -eq 1 ]; then if [ $compile -eq 1 ]; then
hec.byte $@ -s main -target c $F || exit 1 heptc.native $@ -s main -target c $F $@ || exit 1
fi fi
# Compile it with GCC # Compile it with GCC

View file

@ -21,7 +21,7 @@ shift
# Compile source file to VHDL, flattening node calls # Compile source file to VHDL, flattening node calls
if [ $compile -eq 1 ]; then 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 fi
# Display the resulting VHDL code # Display the resulting VHDL code
@ -34,7 +34,8 @@ done
cd $REP || exit 1 cd $REP || exit 1
# Properly compile it with GHDL; order matters # 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 # Link everything using the generated test-bench
ghdl -e main_tb || exit 1 ghdl -e main_tb || exit 1