A Simple Application

Top  Previous  Next

The easiest way to describe the operation of the IDE is to give an example that creates a simple application.

 

Creating a project

By right-clicking the blank space anywhere within the source view you can bring up a menu that includes a Create Project option.

 

CreateMenu

Selecting this brings up the following dialog:

 

CreateDialog

Provide the name of your project and click Finish to create a minimal project which appears in the source view.

project_0

At the moment there are only three components: root, Connections, and Wires.

 

Root is the first processor in your application; every Diamond application needs a root processor, so the IDE has created one for you. The type of root is the currently-selected default processor type.

 

Connections is a place where you can organise the channels connecting your tasks. We shall come back to this once we have created several tasks.

 

Finally, Wires is a place where you can specify the communication links connecting your processors. Again, this becomes more interesting later.

 

Double-click root and the following appears in the edit area:

root_processor

You can see that the processor has been created with type SMT362; this was the default type at the time the example was created. You can change the type of root by clicking Select and choosing a new type from the list of available types that is presented.