diff options
author | Johann Faerber <johann.faerber@hs-augsburg.de> | 2022-03-15 16:34:22 +0100 |
---|---|---|
committer | Johann Faerber <johann.faerber@hs-augsburg.de> | 2022-03-15 16:34:22 +0100 |
commit | 9e4e00ddc1b0e3636414eb9f4ec3ed6e239d46a4 (patch) | |
tree | b00501269ae4d7b05a689bf24ff7ae24e8c5d4da | |
parent | f82462f98e92f9584ddfaa3978e041be2cbd3238 (diff) |
added pnr/de1_matlab_audio
-rw-r--r-- | pnr/de1_matlab_audio/de1_matlab_audio_pins.tcl | 31 | ||||
-rw-r--r-- | pnr/de1_matlab_audio/makefile | 27 |
2 files changed, 58 insertions, 0 deletions
diff --git a/pnr/de1_matlab_audio/de1_matlab_audio_pins.tcl b/pnr/de1_matlab_audio/de1_matlab_audio_pins.tcl new file mode 100644 index 0000000..864834b --- /dev/null +++ b/pnr/de1_matlab_audio/de1_matlab_audio_pins.tcl @@ -0,0 +1,31 @@ +# Pin Configuration +set_location_assignment PIN_L1 -to CLOCK_50 +set_location_assignment PIN_R22 -to KEY0 +set_location_assignment PIN_A3 -to I2C_SCLK +set_location_assignment PIN_B3 -to I2C_SDAT +set_location_assignment PIN_A6 -to AUD_ADCLRCK +set_location_assignment PIN_B6 -to AUD_ADCDAT +set_location_assignment PIN_A5 -to AUD_DACLRCK +set_location_assignment PIN_B5 -to AUD_DACDAT +set_location_assignment PIN_B4 -to AUD_XCK +set_location_assignment PIN_A4 -to AUD_BCLK +set_location_assignment PIN_R20 -to LEDR[0] +set_location_assignment PIN_R19 -to LEDR[1] +set_location_assignment PIN_U19 -to LEDR[2] +set_location_assignment PIN_Y19 -to LEDR[3] +set_location_assignment PIN_T18 -to LEDR[4] +set_location_assignment PIN_V19 -to LEDR[5] +set_location_assignment PIN_Y18 -to LEDR[6] +set_location_assignment PIN_U18 -to LEDR[7] +set_location_assignment PIN_R18 -to LEDR[8] +set_location_assignment PIN_R17 -to LEDR[9] +set_location_assignment PIN_L22 -to SW[0] +set_location_assignment PIN_L21 -to SW[1] +set_location_assignment PIN_M22 -to SW[2] +set_location_assignment PIN_V12 -to SW[3] +set_location_assignment PIN_W12 -to SW[4] +set_location_assignment PIN_U12 -to SW[5] +set_location_assignment PIN_U11 -to SW[6] +set_location_assignment PIN_M2 -to SW[7] +set_location_assignment PIN_M1 -to SW[8] +set_location_assignment PIN_L2 -to SW[9] 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 |