User`s guide
Getting Started
14-13
Application Modules Required for the
Real-Time Program
Building the real-time program requires a number of support files in addition
to the generated code. These support files contain:
• A main program
• Code to drive execution of the model code
• Code to carry out data logging
The makefile automatically compiles and links these source modules. This
diagram shows the modules used to build the
countersdemo example.
Figure 14-4: Source Modules Used to Build the countersdemo Program
Generated Code
countersdemo.ads
mr_ada_sim.adb
Main Program
rt_engine.ads
Model
Data Types
tmw_types.ads
tmw_types-math.adb
Executable File
countersdemo
Execution
Data Logging
data_log.ads
Makefile
Template
gnat_sim.tmf
ada make
countersdemo_types.ads
countersdemo.adb
register.ads
sr_ada_sim.adb
rt_engine.adb
data_log.adb
tmw_types-ops.ads
tmw_types-strings.ads
gnat_tasking.tmf*
register2.ads
rt_crossing.ads
rt_crossing.adb
rt_ada_tasking.adb*
rt_tasks.ads*
rt_tasks.adb*
*Ada multitasking real-time
implementation only
rt_engine-rto_data.ads