30.07.2013 Views

The Esterel v5 21 System Manual - Courses

The Esterel v5 21 System Manual - Courses

The Esterel v5 21 System Manual - Courses

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

CONTENTS iii<br />

4.4 Simulating Programs with User-Defined Data . . . . . . . . . 57<br />

4.5 Multi-Module Files . . . . . . . . . . . . . . . . . . . . . . . . 59<br />

5 <strong>The</strong> xes Graphical Simulator 61<br />

5.1 Starting an xes Simulation . . . . . . . . . . . . . . . . . . . . 61<br />

5.2 Performing Reactions . . . . . . . . . . . . . . . . . . . . . . 63<br />

5.2.1 Building <strong>The</strong> Input Event . . . . . . . . . . . . . . . . 63<br />

5.2.2 Sending the tick . . . . . . . . . . . . . . . . . . . . . 65<br />

5.2.3 <strong>The</strong> Output Event . . . . . . . . . . . . . . . . . . . . 66<br />

5.2.4 Building the Next Event . . . . . . . . . . . . . . . . . 66<br />

5.2.5 High/Low Inputs . . . . . . . . . . . . . . . . . . . . . 67<br />

5.2.6 Resetting the Program . . . . . . . . . . . . . . . . . . 67<br />

5.2.7 Handling exec Statements . . . . . . . . . . . . . . . . 67<br />

5.3 <strong>The</strong> Main Panel Menus . . . . . . . . . . . . . . . . . . . . . 69<br />

5.3.1 <strong>The</strong> Commands Menu . . . . . . . . . . . . . . . . . . 69<br />

5.3.2 <strong>The</strong> Fonts Menu . . . . . . . . . . . . . . . . . . . . . 72<br />

5.3.3 <strong>The</strong> Windows Menu . . . . . . . . . . . . . . . . . . . 72<br />

5.4 Symbolic Debugging . . . . . . . . . . . . . . . . . . . . . . . 73<br />

5.4.1 Finding the Source Code . . . . . . . . . . . . . . . . 73<br />

5.4.2 Source Windows . . . . . . . . . . . . . . . . . . . . . 73<br />

5.4.3 <strong>The</strong> Program Tree . . . . . . . . . . . . . . . . . . . . 73<br />

5.4.4 Signal browsing . . . . . . . . . . . . . . . . . . . . . . 75<br />

5.4.5 Colors in Source Windows . . . . . . . . . . . . . . . . 76<br />

5.4.6 Breakpoints . . . . . . . . . . . . . . . . . . . . . . . . 77<br />

5.4.7 <strong>The</strong> Control Path . . . . . . . . . . . . . . . . . . . . 77<br />

5.4.8 Causality Errors . . . . . . . . . . . . . . . . . . . . . 78<br />

5.5 <strong>The</strong> Tape Recorder . . . . . . . . . . . . . . . . . . . . . . . . 81<br />

5.6 Options of the xes Command . . . . . . . . . . . . . . . . . . 81<br />

6 Simulation with csimul 85<br />

6.1 Prompts, Help, Exit, and Interrupts . . . . . . . . . . . . . . 85<br />

6.2 <strong>The</strong> Input Command . . . . . . . . . . . . . . . . . . . . . . . 86<br />

6.2.1 Input Syntax . . . . . . . . . . . . . . . . . . . . . . . 86<br />

6.2.2 Event generation . . . . . . . . . . . . . . . . . . . . . 87<br />

6.2.3 Input Checking . . . . . . . . . . . . . . . . . . . . . . 88<br />

6.2.4 Combined Signals in Input Events . . . . . . . . . . . 88<br />

6.3 Output Printing . . . . . . . . . . . . . . . . . . . . . . . . . 89<br />

6.4 Input and Output Streams . . . . . . . . . . . . . . . . . . . 90<br />

6.5 <strong>The</strong> reset Command . . . . . . . . . . . . . . . . . . . . . . . 91<br />

6.6 <strong>The</strong> show and trace Commands . . . . . . . . . . . . . . . . . 91

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!