Example-3

Top  Previous  Next

Example-3 has two tasks: task driver reads characters from stdin and sends them to task upc which converts the characters to upper case and sends them back task driver for printing. It is the same as Example-2 except that each task executes on a different processor.

 

 

The example assumes that there is a connection from comport 1 of the root processor to comport 4 of the node processor. This connection can be made with an explicit cable or, if your modules are placed on suitable carrier board sites , by setting the on-board comport switches using the Sundance utility, BoardInfo. You can start this utility by clicking the icon to the right of the blue Run triangle at the top of the window (below 'Project').

 

If you are using a multi-processor TIM (such as the SMT374 or the SMT362) you must go to the WIREs section of the IDE and delete the wire as the connection is provided internally. You can find further details about this under WIRE statement

 

Running the Example

Make sure you have set the default processor type corresponding to the hardware you have as explained here.

 

You can build the application by typing Ctrl+B and then execute it by clicking run.

 

When the application runs, it requests input from the console area. Note that the cursor only moves onto a new line when you start typing.

 

Type some text and terminate each line with Return. Your input should be printed in the output window with all letters in upper case.

 

You terminate the program by clicking the Send EOF icon.

 

Prerequisites

You  need the following components to be able to run this example:

 


Hardware

Quantity


Hardware with two DSPs

-


3L Diamond DSP licence

2


3L Diamond FPGA licence

0