aboutsummaryrefslogtreecommitdiff
path: root/pnr/de1_matlab_audio/makefile
diff options
context:
space:
mode:
authorJohann Faerber <johann.faerber@hs-augsburg.de>2022-03-15 16:34:22 +0100
committerJohann Faerber <johann.faerber@hs-augsburg.de>2022-03-15 16:34:22 +0100
commit9e4e00ddc1b0e3636414eb9f4ec3ed6e239d46a4 (patch)
treeb00501269ae4d7b05a689bf24ff7ae24e8c5d4da /pnr/de1_matlab_audio/makefile
parentf82462f98e92f9584ddfaa3978e041be2cbd3238 (diff)
added pnr/de1_matlab_audio
Diffstat (limited to 'pnr/de1_matlab_audio/makefile')
-rw-r--r--pnr/de1_matlab_audio/makefile27
1 files changed, 27 insertions, 0 deletions
diff --git a/pnr/de1_matlab_audio/makefile b/pnr/de1_matlab_audio/makefile
new file mode 100644
index 0000000..e5a40e9
--- /dev/null
+++ b/pnr/de1_matlab_audio/makefile
@@ -0,0 +1,27 @@
+MATLAB_DIR_NAME = audio
+MATLAB_PROJECT_NAME = audio_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/adcintf.vhd \
+../../src/bclk.vhd \
+../../src/dacintf.vhd \
+../../src/fsgen.vhd \
+../../src/i2c_sub.vhd \
+../../src/i2c.vhd \
+../../src/i2c_write.vhd \
+../../src/mclk.vhd \
+../../src/audio.vhd \
+../../src/de1_matlab_audio.vhd $(MATLAB_SOURCE_FILES)
+
+FAMILY = "Cyclone II"
+DEVICE = EP2C20F484C7
+PROGFILEEXT = sof
+
+include ../makefile