FPGA Intellectual Property
PCI Express*, Networking and Connectivity, Memory Interfaces, DSP IP, and Video IP
6670 Discussions

DSP Builder procedure to get data from A/D board using SPI

Altera_Forum
Honored Contributor II
1,289 Views

If there are someone tha can helpme please, I need to know how can I get data from SPI ADC board to Simulink. I dont know what is the procedure to do this. I dont know if I need to make a SOPC builder system with Avalon and if I have to use Avalon Master at simulink.  

I have a Cyclon III EP3C120F780C8 of HumanData and a SPI ADC HumanData board but I need to know how can I connect and get data. 

 

Thank you 

 

jjeshua
0 Kudos
3 Replies
Altera_Forum
Honored Contributor II
468 Views

For this,you need to write a verilog code as per ADC datasheet specifications.Dump this code to your FPGA device.

0 Kudos
Altera_Forum
Honored Contributor II
468 Views

In this moment i dont know what Should I do. I was thinking that the Avalon Master MM of DPbuilder could be connected to Avalon Slave MM of SPI Core. 

I suppose that the signals needed in the SPI slave I have to generate them by myself.  

Then the procedure could be. first, generate the verilog code for SPI slave. Second find the way to get data from verilog code to simulink. Someone could help me. 

 

Thank you for your help.:)
0 Kudos
Altera_Forum
Honored Contributor II
468 Views

Im using an HDL import Block in Simulink using VHDL program to get data from ADC 16 bits. 

 

If anybody need to use it. 

 

jjeshua
0 Kudos
Reply