From 941aeaad5be56c905b4f38f3d07b0a0cbc1bd07f Mon Sep 17 00:00:00 2001 From: Matthias Kamuf Date: Wed, 15 Jun 2022 17:31:01 +0200 Subject: Created stub for DDS test with ADDA-board using Simulink flow --- pnr/de1_matlab_dds_adda/makefile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 pnr/de1_matlab_dds_adda/makefile (limited to 'pnr/de1_matlab_dds_adda/makefile') diff --git a/pnr/de1_matlab_dds_adda/makefile b/pnr/de1_matlab_dds_adda/makefile new file mode 100644 index 0000000..14cbe16 --- /dev/null +++ b/pnr/de1_matlab_dds_adda/makefile @@ -0,0 +1,18 @@ +MATLAB_DIR_NAME = dds_adda +MATLAB_PROJECT_NAME = dds_adda_first +PROJECT = de1_matlab_$(MATLAB_DIR_NAME) + +# Matlab produces a xxx_compile.do file which contains the vhdl files belonging to the project +# Here I produce a list of these source files with full relative path to the matlab project +SIMULINK_PATH=../../matlab/$(MATLAB_DIR_NAME)/hdl_prj/hdlsrc/$(MATLAB_PROJECT_NAME) +MATLAB_SOURCE_FILE_NAMES = $(shell grep vcom $(SIMULINK_PATH)/*_compile.do | sed "s/vcom \(.*\)/\1/g") +MATLAB_SOURCE_FILES = $(foreach file,$(MATLAB_SOURCE_FILE_NAMES),$(SIMULINK_PATH)/$(file)) + +SOURCE_FILES = \ +../../src/de1_matlab_dds_adda.vhd $(MATLAB_SOURCE_FILES) + +FAMILY = "Cyclone II" +DEVICE = EP2C20F484C7 +PROGFILEEXT = sof + +include ../makefile -- cgit v1.2.3