topic Matlab code to Xilinx System Generator Help! in Video and Audio
https://forums.xilinx.com/t5/Video-and-Audio/Matlab-code-to-Xilinx-System-Generator-Help/m-p/244974#M5928
<P>Hello, I'm trying to implement a matlab code into a sysgen block diagram.</P>
<P> </P>
<P>The code analyzes an audio signal in frames of 512 (frames ovelapped by each other by 75%, hop 128 bits), which are multiplied with a hanning window, and then are synthesized again with different overlapping (hop 149 bits). The objective of my code is to implement a pitch shifting effect in future, by resampling my output signal.</P>
<P> </P>
<P>Here is the basic part of the matlab code. The "window" variable is a hanning window created by matlab. N is 512, the frame length.</P>
<P> </P>
<P>for u=1:frame_count<BR />Xu_current = window.*input(u*Ra:u*Ra+N-1); % analyze current frame, Ra=128 bits<BR />output(u*Rs:u*Rs+N-1) = output(u*Rs:u*Rs+N-1) + Xu_current; % add current frame to output, Rs=149 bits<BR />end</P>
<P> </P>
<P>I'm implementing this using two Dual Port RAMs. The first is used for the synthesis, with a counter which points the address going from 0 to 512, then from 128 to 640, etc, to calculate each frame. The second RAM is used for the synthesis, going from 0 to 512, then from 149 to 661, etc, the same way.</P>
<P> </P>
<P>When the simulation finishes I get a problem during the synthesis (a totally false output signal), when I try to add my frames again in the output. Am I doing something wrong with my implementation using the Dual Port RAM?</P>
<P> </P>
<P>I am attaching the matlab code, my.mdl design so far, the .wav file that I import, and also the matlab workspace needed to import this with the "from workspace" block.</P>
<P> </P>
<P>Thank you in advance, for other information needed please ask me.</P>Fri, 29 Jun 2012 19:57:48 GMTpanospet2012-06-29T19:57:48ZMatlab code to Xilinx System Generator Help!
https://forums.xilinx.com/t5/Video-and-Audio/Matlab-code-to-Xilinx-System-Generator-Help/m-p/244974#M5928
<P>Hello, I'm trying to implement a matlab code into a sysgen block diagram.</P>
<P> </P>
<P>The code analyzes an audio signal in frames of 512 (frames ovelapped by each other by 75%, hop 128 bits), which are multiplied with a hanning window, and then are synthesized again with different overlapping (hop 149 bits). The objective of my code is to implement a pitch shifting effect in future, by resampling my output signal.</P>
<P> </P>
<P>Here is the basic part of the matlab code. The "window" variable is a hanning window created by matlab. N is 512, the frame length.</P>
<P> </P>
<P>for u=1:frame_count<BR />Xu_current = window.*input(u*Ra:u*Ra+N-1); % analyze current frame, Ra=128 bits<BR />output(u*Rs:u*Rs+N-1) = output(u*Rs:u*Rs+N-1) + Xu_current; % add current frame to output, Rs=149 bits<BR />end</P>
<P> </P>
<P>I'm implementing this using two Dual Port RAMs. The first is used for the synthesis, with a counter which points the address going from 0 to 512, then from 128 to 640, etc, to calculate each frame. The second RAM is used for the synthesis, going from 0 to 512, then from 149 to 661, etc, the same way.</P>
<P> </P>
<P>When the simulation finishes I get a problem during the synthesis (a totally false output signal), when I try to add my frames again in the output. Am I doing something wrong with my implementation using the Dual Port RAM?</P>
<P> </P>
<P>I am attaching the matlab code, my.mdl design so far, the .wav file that I import, and also the matlab workspace needed to import this with the "from workspace" block.</P>
<P> </P>
<P>Thank you in advance, for other information needed please ask me.</P>Fri, 29 Jun 2012 19:57:48 GMThttps://forums.xilinx.com/t5/Video-and-Audio/Matlab-code-to-Xilinx-System-Generator-Help/m-p/244974#M5928panospet2012-06-29T19:57:48ZRe: Matlab code to Xilinx System Generator Help!
https://forums.xilinx.com/t5/Video-and-Audio/Matlab-code-to-Xilinx-System-Generator-Help/m-p/327207#M6773
<P>Hello,</P>
<P> </P>
<P> you must have to call your model in .m file. And also add your model to .m file.</P>
<P> </P>
<P> </P>
<P>Thnx.</P>Thu, 13 Jun 2013 09:57:11 GMThttps://forums.xilinx.com/t5/Video-and-Audio/Matlab-code-to-Xilinx-System-Generator-Help/m-p/327207#M6773tanubijan2013-06-13T09:57:11Z