Previous Up Next

Chapter 6  Example 6: algorithm, architecture, adequation, and code generation

From the main window, choose File / Save as and save your sixth application under a new folder of your tutorial folder (eg. my_example6) with the name example6.

6.1  The main algorithm

Create the main algorithm algo (cf. figure 6.1) using the library int for the operations In<1> (input), cste2<{2}> (cst), add<1> (Arit_add), mul<1> (Arit_mul), visuadd<1>, and visumul<1> (output). For the operation conv, create a function definition conv and create a reference to this definition. Create the dependences between the references. Set it as main.


Figure 6.1: Main algorithm of the Example 6

6.2  The main architecture

To define and constraint the main arhcitecure:

6.3  The adequation and the code generation

To perform the adequation and to generate the code:

The folder of the Example 6 must contain the following files:

To launch the execution, type the command gmake in the folder of the Example 6. To delete the file created during the compilation, type the command gmake clean.

From the main window, choose File / Close. In the dialog window, click on the Save button.


Previous Up Next