User manual

PAL tutorial
RS-232 Serial cable
Optionally from MathWorks for MV2P Target:
MATLAB 7.0.1 (Release 14). Other versions might work, but have not been tested.
2.2.3 System design
The DSM FIR filter tutorial demonstrates a method for hardware/software co-design using DK and DSM.
1. Create a system-level design.
2. Translate the hardware side of the design into Handel-C.
3. Translate the software side of the design into ANSI-C.
Block diagram
A block diagram of the system used for the DSM FIR filter tutorial is shown below.
DSM FIR FILTER BLOCK DIAGRAM
The system consists of a FIR filter that is connected to the processor platform through DSM ports. One
software-to hardware port (S2H) is used to transfer data from software to FIR filter while the
hardware-to-software (H2S) port is used to transfer data from the FIR filter back to the software side. To
visualize the data processing a framebuffer is connected to the application. The framebuffer is
connected to the software side through a DSM S2H port.
A Handel-C coded representation of the system in the block diagram for MicroBlaze running on RC200,
RC200E, RC300 or RC300E is as follows:
DsmVersionRequire (2, 0);
PalVersionRequire (1, 0);
PalVideoOutRequire (1);
PalPL1RAMRequire (1);
par
{
DsmRun (DSM, DsmInterfaceDefault,
DSM_INTERFACE_DATA,
PORT_H2S_COUNT,
PORT_S2H_COUNT);
www.celoxica.com
Page 19