From b59791e8f33449900a8a09dae13703882b1c30a7 Mon Sep 17 00:00:00 2001 From: Torsten Meissner Date: Tue, 12 Mar 2019 14:19:32 +0100 Subject: [PATCH] Move VHDL library files in work directory --- aes/sim/vhdl/Makefile | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/aes/sim/vhdl/Makefile b/aes/sim/vhdl/Makefile index eef66b6..8773e1b 100644 --- a/aes/sim/vhdl/Makefile +++ b/aes/sim/vhdl/Makefile @@ -36,13 +36,17 @@ sim: tb_aes.ghw compile: tb_aes -tb_aes: ${RTL_SRC} ${SIM_SRC} - ghdl -a --std=08 -fpsl ${RTL_SRC} ${SIM_SRC} - ghdl -e --std=08 -fpsl $@ +work: + mkdir work + + +tb_aes: ${RTL_SRC} ${SIM_SRC} | work + ghdl -a --std=08 -fpsl --workdir=work ${RTL_SRC} ${SIM_SRC} + ghdl -e --std=08 -fpsl --workdir=work $@ tb_aes.ghw: tb_aes - ghdl -r tb_aes --wave=tb_aes.ghw --assert-level=error \ + ghdl -r tb_aes --wave=$@ --assert-level=error \ --psl-report=$(basename $@)_psl_coverage_report.json @@ -56,7 +60,7 @@ clean: echo "# cleaning simulation files" rm -f tb_aes rm -f tb_aes.ghw - rm -f *.cf rm -f *.o rm -f *.json + rm -rf work/