Tasks

Top  Previous  Next

Tasks are usually created on a processor by right-clicking the processor and selecting Create Task. You can also create a task without needing to place it on a processor by right-clicking the project in the Diamond source view.

CreateFloatingTask

You can specify the name of the task and the number of input and output ports it has. Once a task has been created you can change these settings by double-clicking the task name. The use of ports is discussed under Channels.

 

Automatic file creation

If you create a task and leave the Create main source file option ticked, the IDE creates suitable starting files that depend on the type of the processor on which the task is being created. For DSPs, the IDE creates trivial .c and .h files. For FPGAs, it creates basic .ucf, .vhd, .xcf, and _pkg.vhd files. Clearing the Create main source file option prevents most of these files from being created. No files is created if the task is not being placed on a processor.