Producer/Consumer Model: Top Level
At the top-level, all 3 modules - Master, Producer and Consumer - are instantiated and connected to each other.
The simulation is then run. Print control All three modules' print-out is controlled from the command line and print-control text files (one for each module). |
|
Running
Executing the top-level without any command line arguments, gets each module to print its own command line options.
To run the model, call it with '-run' command line argument.
To have an individual module print-out all its debug messages, add '-<module>_print everything', to the command line.
E.g., for Master, do:
-master_print everything
Running the model with the following command line,
./build/debug/top.exe -master_print_file master_print_ctrl.txt -producer_print_file producer_print_ctrl.txt -consumer_print_file consumer_print_ctrl.txt -run
will produce the output as see in run.log .
Executing the top-level without any command line arguments, gets each module to print its own command line options.
To run the model, call it with '-run' command line argument.
To have an individual module print-out all its debug messages, add '-<module>_print everything', to the command line.
E.g., for Master, do:
-master_print everything
Running the model with the following command line,
./build/debug/top.exe -master_print_file master_print_ctrl.txt -producer_print_file producer_print_ctrl.txt -consumer_print_file consumer_print_ctrl.txt -run
will produce the output as see in run.log .