User guide
74 www.xilinx.com System Generator for DSP Getting Started Guide
UG639 (v 14.3) October 16, 2012
Chapter 4: Getting Started
M-Code Examples
MAC FIR filter This design example implements a 43 tap FIR Filter with a MAC
engine and a Dual Port Ram used for data and coefficient storage.
Complex FIR filter This example demonstrates a complex FIR filter built out of blocks
from the System Generator and Simulink library.
Topic Description
Topic Description
Simple Selector This example shows how to implement a function that returns the
maximum value of its inputs.
Simple Arithmetic
Operations
This example shows how to implement simple arithmetic
operations.
Complex Multiplier
with Latency
This example shows how to build a complex multiplier with latency.
Shift Operations This example shows how to implement shift operations.
Passing Parameters
into the MCode Block
This example shows how to pass parameters into a MCode block.
Optional Input Ports This example shows how to implement optional input ports on an
MCode block.
Finite State Machines This example shows how to implement a finite state machine.
Parameterizable
Accumulator
This example shows how to build a parameterizable accumulator.
FIR Blocks and
Ver ific at ion
This example shows how to model FIR blocks and how to do system
verification.
RPN Calculator This example shows how to model a RPN calculator – a stack
machine.
Example of disp
function
This example shows how to use the disp function.