UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Contributor
Contributor
5,777 Views
Registered: ‎06-03-2011

M-Code block in Simulink/System Generator VS AccelDSP tool

Jump to solution

Hello

 

I want to ask about Matlab functions that are supported in Xilinx M-Code block in Simulink/System Generator, for example can I use directly qammod(), fft(), awgn(), cos(), sqrt(), gaussfir() and more other functions (for modulation, channels, mathematic operations, estimation, …) for communication and signal processing

 

What are the limits of Xilinx M-Code block in Simulink in communication and signal processing programming?

 

What difference between Xilinx M-Code block in Simulink/System Generator and AccelDSP tool?

 

What tool is most required for communication and signal processing programming?

___

Regards

Sofiene

0 Kudos
1 Solution

Accepted Solutions
Highlighted
Contributor
Contributor
6,591 Views
Registered: ‎06-03-2011

Re: M-Code block in Simulink/System Generator VS AccelDSP tool

Jump to solution

@sofiene wrote:
 

Also can I use the above mentioned Matlab functions directly in AccelDSP ?


http://www.xilinx.com/support/documentation/white_papers/wp240.pdf

0 Kudos
4 Replies
Xilinx Employee
Xilinx Employee
5,772 Views
Registered: ‎08-02-2011

Re: M-Code block in Simulink/System Generator VS AccelDSP tool

Jump to solution

Hello,

 

See page 47 of the SysGen User's guide (UG640) for a section titled "Compiling MATLAB into an FPGA"

 

This should answer most of your questions and gives examples.

 

Also see page 234 of the SysGen Reference Guide UG638 for a section called "MCode" which states:

 

"The MCode block supports a limited subset of the MATLAB language that is useful for
implementing arithmetic functions, finite state machines and control logic."

 

Also, most of those functions already have a SysGen block, so you shouldn't have to build them yourself.

www.xilinx.com
0 Kudos
Contributor
Contributor
5,768 Views
Registered: ‎06-03-2011

Re: M-Code block in Simulink/System Generator VS AccelDSP tool

Jump to solution

 

OK, it's clear

 

But what about AccelDSP tool ?

 

What difference between Xilinx M-Code block in Simulink/System Generator and AccelDSP tool ?

What tool is most required for communication and signal processing programming ?

 

Also can I use the above mentioned Matlab functions directly in AccelDSP ?

___

Regards

Sofiene

0 Kudos
Advisor eilert
Advisor
5,763 Views
Registered: ‎08-14-2007

Re: M-Code block in Simulink/System Generator VS AccelDSP tool

Jump to solution

Hi Sofiene.

a little abridgement from Moty Pythons "Dead Parrot Sketch":

 

Mr. Praline: 'E's not pinin'! 'E's passed on! This parrot is no more! He has ceased to be! 'E's expired and gone to meet 'is maker! 'E's a stiff! Bereft of life, 'e rests in peace! If you hadn't nailed 'im to the perch 'e'd be pushing up the daisies! 'Is metabolic processes are now 'istory! 'E's off the twig! 'E's kicked the bucket, 'e's shuffled off 'is mortal coil, run down the curtain and joined the bleedin' choir invisibile!! THIS IS AN EX-PARROT!!

 

Feel free to exchange "E's" by "AccelDSP is" and "parrot" by "tool". ;-)

 

However for someone who has worked with AccelDSP it might be useful to know how to migrate to Sysgen.

If you are beginning with DSP design, just don't care about rotten parrot corpses.

 

Cheers

  Eilert

0 Kudos
Highlighted
Contributor
Contributor
6,592 Views
Registered: ‎06-03-2011

Re: M-Code block in Simulink/System Generator VS AccelDSP tool

Jump to solution

@sofiene wrote:
 

Also can I use the above mentioned Matlab functions directly in AccelDSP ?


http://www.xilinx.com/support/documentation/white_papers/wp240.pdf

0 Kudos