User guide
44 www.xilinx.com System Generator for DSP Getting Started Guide
UG639 (v 14.3) October 16, 2012
Chapter 4: Getting Started
The MCode Block
The MCode block supports the use of MATLAB for implementing state dependent and branch conditional control
operations. This block is not suitable for MATLAB that describes an algorithmic operation such as a FIR filter or
Matrix inverse. The MCode block provides a convenient and efficient method for implementing state machines and
complex muxing conditions. This is the recommended way to implement a finite state machine in System
Generator.