beautypg.com

Smt6040 project, Smt6040, Sundance simulink toolbox – Sundance SMT6040 User Manual

Page 9

background image

Sundance Multiprocessor Technology Limited

Form : QCF32

SMT6040

“Sundance Simulink Toolbox”

Date : 6 July 2006

This procedure is shown in Figure 1.

Section 2.1 describes how to integrate a Simulink DSP task into Diamond. Section 2.2
describes how to integrate a Simulink FPGA task.

2.1 Integrate a SMT6040 Simulink DSP design into Diamond

The SMT6040 allows generating full applications targeting Sundance HW, but it also
supports Diamond DSP and it can be used to generate a DSP task. This is very useful as it
adds flexibility and it makes it possible to integrate a Simulink design into a Diamond project
and also into the Diamond demos provided by Sundance.

Therefore, users can combine their Simulink algorithms with C/VHDL projects developed in
Diamond (e.g. they can add their tasks – designed with the SMT6040 – to Diamond SDR or
Video demos, which are provided by 3L).

The design process for a combined SMT6040-Diamond application requires only the
following simple steps:

1- Create a SMT6040 design that targets a DSP;

2- Compile the SMT6040 project; this will create the “T6040_root.tsk” DSP task;

3- Select the Diamond project of your interest and add the “T6040_root.tsk” task to it;

4- Connect the input/output ports of the “T6040_root.tsk” task and the ports of the

Diamond task of your interest;

5- Set up the data transfer between the two tasks;

6- Build and run the demo in Diamond IDE.

An example that explains this procedure is provided in the “SMT6040_generic” directory.
This folder contains the Diamond project (based on the “fpga-example1” demo) and the
Simulink project (represented in Figure 2).

Please notice that this package targets the SMT362 DSP. If you need to target another board,
you can select the correct module type by double-clicking on the “Digital HW Interface” block
under the “DSP6040/root” sub-system.

Please check that you are targeting the proper DSP module also in Diamond.

2.1.1 SMT6040

project

The Simulink diagram is in this case performs three operations:

-

A sum of the two inputs is outputted on Diamond write Channel 0;

-

The second input is passed through to Diamond write Channel 1;

-

The sentence “SMT6040 task” is printed on the screen.

To compile the “DSP6040.mdl” design, the following two steps are necessary:

1- Double click on “Digital HW Interface”, then click on “Compile To HW/SW Analog”

and “Overall Build”;

SMT6040 - “Sundance Simulink Toolbox”

Last Edited: 08/01/2010 15.42

Page 9 of 53