day2/vhdl: also run synthesized version
This commit is contained in:
parent
a73387e367
commit
354773886f
1 changed files with 15 additions and 3 deletions
|
@ -2,8 +2,20 @@
|
||||||
|
|
||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
|
GHDLFLAGS="--std=08 --workdir=workdir"
|
||||||
|
|
||||||
mkdir -p workdir
|
mkdir -p workdir
|
||||||
|
|
||||||
ghdl analyze --std=08 --workdir=workdir parser.vhd verifier.vhd top.vhd sim.vhd
|
ghdl remove $GHDLFLAGS
|
||||||
ghdl elab-run --std=08 --workdir=workdir sim -gSTEP=1 -gFILENAME="../input.txt"
|
ghdl analyze $GHDLFLAGS parser.vhd verifier.vhd top.vhd sim.vhd
|
||||||
ghdl elab-run --std=08 --workdir=workdir sim -gSTEP=2 -gFILENAME="../input.txt"
|
ghdl elab-run $GHDLFLAGS sim -gSTEP=1 -gFILENAME="../input.txt"
|
||||||
|
ghdl elab-run $GHDLFLAGS sim -gSTEP=2 -gFILENAME="../input.txt"
|
||||||
|
|
||||||
|
echo "Synthesized: "
|
||||||
|
|
||||||
|
for step in 1 2; do
|
||||||
|
ghdl remove $GHDLFLAGS
|
||||||
|
ghdl synth $GHDLFLAGS -gCOUNTER_WIDTH=12 -gSTEP="$step" parser.vhd verifier.vhd top.vhd -e top > top_syn.vhd
|
||||||
|
ghdl analyze $GHDLFLAGS top_syn.vhd sim.vhd
|
||||||
|
ghdl elab-run $GHDLFLAGS sim -gSTEP="$step" -gFILENAME="../input.txt" --ieee-asserts=disable-at-0
|
||||||
|
done
|
||||||
|
|
Loading…
Reference in a new issue