User guide

Table Of Contents
94 www.xilinx.com System Generator for DSP Getting Started Guide
UG639 (v 12.2) July 23, 2010
Chapter 4: Getting Started
M-Code Examples
Processor Examples
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 ification
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.
Topic Description
Designing and
Exporting MicroBlaze
Processor Peripherals
Demonstrates how to export a design from System Generator into
Xilinx Platform Studio (EDK) by showing how to design a
peripheral (pcore) for a MicroBlaze
processor. An RGB to gray-
scale color space converter is created and generated into a pcore
using the Export to EDK compilation target.