aboutsummaryrefslogtreecommitdiff
path: root/pnr/de1_matlab_dds_adda/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'pnr/de1_matlab_dds_adda/makefile')
-rw-r--r--pnr/de1_matlab_dds_adda/makefile18
1 files changed, 18 insertions, 0 deletions
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