Innovative Integration
 
Log inUsernamePassword
Log me on automatically each visit    
Register
Register
Log in to check your private messages
Log in to check your private messages
X5-400M Matlab/Simulink Programming for signal processing

 
Post new topic   Reply to topic    II Support Forum Index -> MatLab/SimuLink Development Corner
View previous topic :: View next topic  
Author Message
samehalkady



Joined: 20 May 2010
Posts: 9

PostPosted: Mon Feb 14, 2011 5:20 pm    Post subject: X5-400M Matlab/Simulink Programming for signal processing Reply with quote

Hello support;

I am trying to program the FPGA on a X5-400M card using Matlab/Simulink. My goal is to add a FFT routine in the path of data streaming, so that instead of streaming-out time domain signal, I would stream-out the power spectrum of the signal. I started with the default example located in X5-400M_r7.7. I added a 32-to-16 fifo right after ADC_0_INTF, followed by a FFT7.1 block followed by slice, and reinterpret blocks, then a complex multipler M-block that I generated followed by slice and reinterpret blocks. then a 16-to-32 fifo, which feeds the II_Interleaver. I compiled the design, and generated a hwcosim lib block, then used the jtag cable to run the hwcosim. I keep getting 0's as output of Ch0 (using a function generator at Ch0 input, running snap, and viewing the signal with binview) . I do not know what goes wrong. The FFT routine works fine when I simulate it separately in Matlab/simulink. I attached a copy of the mdl file along with the matlab function of the M-code I added.



I appreciate your help.

Thanks.

_________________
Sameh Abdelazim
Back to top
View user's profile Send private message
bkao



Joined: 09 Feb 2007
Posts: 200
Location: Innovative Integration

PostPosted: Mon Feb 14, 2011 5:38 pm    Post subject: Reply with quote

Please attach the files.

Billy
Back to top
View user's profile Send private message Send e-mail
samehalkady



Joined: 20 May 2010
Posts: 9

PostPosted: Mon Feb 14, 2011 8:41 pm    Post subject: Re: X5-400M Matlab/Simulink Programming for signal processi Reply with quote

samehalkady wrote:
Hello support;

I am trying to program the FPGA on a X5-400M card using Matlab/Simulink. My goal is to add a FFT routine in the path of data streaming, so that instead of streaming-out time domain signal, I would stream-out the power spectrum of the signal. I started with the default example located in X5-400M_r7.7. I added a 32-to-16 fifo right after ADC_0_INTF, followed by a FFT7.1 block followed by slice, and reinterpret blocks, then a complex multipler M-block that I generated followed by slice and reinterpret blocks. then a 16-to-32 fifo, which feeds the II_Interleaver. I compiled the design, and generated a hwcosim lib block, then used the jtag cable to run the hwcosim. I keep getting 0's as output of Ch0 (using a function generator at Ch0 input, running snap, and viewing the signal with binview) . I do not know what goes wrong. The FFT routine works fine when I simulate it separately in Matlab/simulink. I attached a copy of the mdl file along with the matlab function of the M-code I added.



I appreciate your help.

Thanks.

_________________
Sameh Abdelazim
Back to top
View user's profile Send private message
bkao



Joined: 09 Feb 2007
Posts: 200
Location: Innovative Integration

PostPosted: Tue Feb 15, 2011 10:33 am    Post subject: Reply with quote

Sameh,

I suggest you provide proper flow control along the path.

1. Even you set V5_FIFO_32i_16o rd '1', you can't drain the data fast enough out of the FIFO. So this FIFO will be overflow immediately.
2. I can't figure out what the FFT output is when input is corrupt.

You shall carry valid signal with the data for all signal processing components. The processing chain needs to be changed because it can't handle the data rate.

Billy
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    II Support Forum Index -> MatLab/SimuLink Development Corner (GMT - 8 Hours)
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

© Copyright 2006-2012 Innovative Integration
Powered by phpBB © 2001, 2002 phpBB Group
Based on iCGstation v1.0 Template By Ray © 2003, 2004 iOptional