This chapter describes the ITEX Simulator in the Windows version of ITEX. It gives an introduction to the concept of the ITEX Simulator, as well as a guide to its functionality.
Note: Windows version This is the Windows version of the chapter. The UNIX version is The ITEX Simulator (on UNIX) |
The ITEX Simulator allows you to generate executable test suites (ETS) for testing of simulated SDT systems. This allows the testing of the system design early in the design process.
These ETSs allow you to execute test cases and/or test groups (hereafter referred to as tests) at full speed or by single stepping through the selected tests. There is also the possibility to set breakpoints in the tables of the tests.
It should be noted that there is no separate ITEX Simulator GUI. The ITEX Simulator will use the Table Editor to present the current line during execution.
More information about the Simulator in SDT can be found in The SDT Simulator.
Given a test suite containing a set of tests you want to execute together with a simulated SDT system, the following steps are to be performed:
|
start-itex
and then go-forever
.
The Simulator can present messages to the user in three forms:
Informative messages are normally presented at the status bar. These might be for instance progress reports or other simple messages, which are only of a temporary interest (such as the tool tips).
Warnings, also known as "non-critical errors", are events that indicate a problem during the preparation for a simulation, or during the actual simulation run. These are presented in standard warning dialogs.
Critical errors will halt the simulation. They are presented by an error dialog that appears in front of the application. The error dialog can often appear large and intimidating, but it simply gives a more verbose reason to why the error occurred, and what steps should be taken to avoid it.
The SDT Simulator and the ITEX Simulator may stop communicating. This can occur if there are "old" instances of the Simulator ETS process still alive. They will then "steal" messages from the intended recipient. There are some ways to make the Simulators communicate again:
The execution of tests may stop at a certain point during execution for no reason. If the problem is reproducible, you should check the supported types. There is a possibility that a type has been used in a message between the simulators that is not supported.
The Simulators may get out of sync. One way of doing this is when an execution in the ITEX Simulator has been aborted and the SDT Simulator has not been restarted.
The data type mapping used by the co-simulation of the SDT and ITEX simulators in Windows is the same as for the co-simulation on UNIX. See Type Mappings in Co-Simulation.