aboutsummaryrefslogtreecommitdiff
path: root/pnr/de1_matlab_dds_adda/makefile
diff options
context:
space:
mode:
authorMatthias Kamuf <matthias.kamuf@hs-augsburg.de>2022-06-15 17:31:01 +0200
committerMatthias Kamuf <matthias.kamuf@hs-augsburg.de>2022-06-15 17:31:01 +0200
commit941aeaad5be56c905b4f38f3d07b0a0cbc1bd07f (patch)
treefcc25bd3326d1489a97e6413a5f45b6dc54b09e1 /pnr/de1_matlab_dds_adda/makefile
parentfda13db347b69d24b7327a5b48cd2af7abfc6408 (diff)
Created stub for DDS test with ADDA-board using Simulink flow
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