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 --- .../de1_matlab_dds_adda_pins.tcl | 62 ++++++++++++++++++++++ pnr/de1_matlab_dds_adda/makefile | 18 +++++++ 2 files changed, 80 insertions(+) create mode 100755 pnr/de1_matlab_dds_adda/de1_matlab_dds_adda_pins.tcl create mode 100644 pnr/de1_matlab_dds_adda/makefile (limited to 'pnr/de1_matlab_dds_adda') diff --git a/pnr/de1_matlab_dds_adda/de1_matlab_dds_adda_pins.tcl b/pnr/de1_matlab_dds_adda/de1_matlab_dds_adda_pins.tcl new file mode 100755 index 0000000..0bbae36 --- /dev/null +++ b/pnr/de1_matlab_dds_adda/de1_matlab_dds_adda_pins.tcl @@ -0,0 +1,62 @@ +# Pin Configuration +set_location_assignment PIN_L1 -to CLOCK_50 +set_location_assignment PIN_R22 -to KEY0 +# 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] +set_location_assignment PIN_R20 -to LEDR +#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] +# DAC Pins on GPIO Header +set_location_assignment PIN_C19 -to DAC_CLK_A +set_location_assignment PIN_D19 -to DAC_CLK_B +set_location_assignment PIN_C18 -to DAC_DA[0] +set_location_assignment PIN_F15 -to DAC_DA[10] +set_location_assignment PIN_E14 -to DAC_DA[11] +set_location_assignment PIN_G15 -to DAC_DA[12] +set_location_assignment PIN_H13 -to DAC_DA[13] +set_location_assignment PIN_D16 -to DAC_DA[1] +set_location_assignment PIN_C17 -to DAC_DA[2] +set_location_assignment PIN_D15 -to DAC_DA[3] +set_location_assignment PIN_D14 -to DAC_DA[4] +set_location_assignment PIN_F13 -to DAC_DA[5] +set_location_assignment PIN_C14 -to DAC_DA[6] +set_location_assignment PIN_F12 -to DAC_DA[7] +set_location_assignment PIN_G16 -to DAC_DA[8] +set_location_assignment PIN_E15 -to DAC_DA[9] +set_location_assignment PIN_P15 -to DAC_DB[0] +set_location_assignment PIN_G20 -to DAC_DB[10] +set_location_assignment PIN_E19 -to DAC_DB[11] +set_location_assignment PIN_F20 -to DAC_DB[12] +set_location_assignment PIN_D20 -to DAC_DB[13] +set_location_assignment PIN_N22 -to DAC_DB[1] +set_location_assignment PIN_N15 -to DAC_DB[2] +set_location_assignment PIN_N21 -to DAC_DB[3] +set_location_assignment PIN_J15 -to DAC_DB[4] +set_location_assignment PIN_G17 -to DAC_DB[5] +set_location_assignment PIN_H18 -to DAC_DB[6] +set_location_assignment PIN_H17 -to DAC_DB[7] +set_location_assignment PIN_G18 -to DAC_DB[8] +set_location_assignment PIN_E18 -to DAC_DB[9] +set_location_assignment PIN_P18 -to DAC_MODE +set_location_assignment PIN_C20 -to DAC_WRT_A +set_location_assignment PIN_P17 -to DAC_WRT_B +set_location_assignment PIN_C21 -to ADC_CLK_A +set_location_assignment PIN_D21 -to ADC_CLK_B +set_location_assignment PIN_L18 -to ADC_OEB_A +set_location_assignment PIN_K20 -to ADC_OEB_B +set_location_assignment PIN_J18 -to POWER_ON 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