diff options
Diffstat (limited to 'testsuite/gna/sr2676/Makefile')
-rw-r--r-- | testsuite/gna/sr2676/Makefile | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/testsuite/gna/sr2676/Makefile b/testsuite/gna/sr2676/Makefile new file mode 100644 index 0000000..620744c --- /dev/null +++ b/testsuite/gna/sr2676/Makefile @@ -0,0 +1,31 @@ +# project name +PROJECT=reset +# vhdl files +FILES = reset.vhdl reset_types.vhdl reset-rtl.vhdl +# testbench +SIMTOP = reset_testbench +SIMFILES = reset-test.vhdl +# Simu break condition +GHDL_SIM_OPT = --assert-level=error --ieee-asserts=disable +#GHDL_SIM_OPT = --stop-time=1ms +SIMDIR = sim + +GHDL_CMD = ghdl +GHDL_FLAGS = --warn-no-vital-generic +VIEW_CMD = /usr/bin/gtkwave + +ghdl-compile: + mkdir -p $(SIMDIR) + $(GHDL_CMD) -i $(GHDL_FLAGS) --workdir=$(SIMDIR) --work=work $(SIMFILES) $(FILES) + $(GHDL_CMD) -m $(GHDL_FLAGS) --workdir=$(SIMDIR) --work=work $(SIMTOP) + @mv $(SIMTOP) $(SIMDIR)/$(SIMTOP) + +ghdl-run: ghdl-compile + @$(SIMDIR)/$(SIMTOP) $(GHDL_SIM_OPT) --vcdgz=$(SIMDIR)/$(SIMTOP).vcdgz + +ghdl-view: + gunzip --stdout $(SIMDIR)/$(SIMTOP).vcdgz | $(VIEW_CMD) --vcd & + +ghdl-clean : + + |