comparison main.c @ 27:fb4970a0c337

fix up comment in main.c
author kshalle
date Wed, 25 Feb 2015 15:40:06 -0800
parents 0deed3ee0b02
children
comparison
equal deleted inserted replaced
10:2cb0bb179146 11:ab303ca7a8de
14 14
15 #include "HWSim_impl/HWSim_tests.h" 15 #include "HWSim_impl/HWSim_tests.h"
16 16
17 17
18 18
19 /* This sample code shows 19 /*This Hello World sample code demonstrates the bare structure of an HWSim
20 * based simulator.
21 *The application code creates a netlist, which is populated with element
22 * structures and activity structures.
23 *The elements register activities, which represent triggered behaviors.
24 * During a run, the arrival of a communication on the inport of an
25 * element triggers the registered activity, which in turn calls the
26 * activity's behavior function and its time-width calculation function.
27 *The behavior function can access and modify the state of the element,
28 * and it can send out communications on the elements outports.
29 *When a communication is sent, a separate function is called to calculate
30 * the time of flight of that communication.
20 * 31 *
21 * 32 *Commands of the HWSim langlet are invoked by calling a function. Such
33 * functions have a name that begins with "HWSim__" for example,
34 * "HWSim__run_simulation" is a command to tell HWSim to perform a
35 * simulation run.
36 *
37 *Data structures that are defined by the HWSim langlet have names that
38 * begin with "HWSim", for example "HWSimNetlist" is a data structure
39 * defined by the HWSim langlet.
22 */ 40 */
23 41
24 int main(int argc, char **argv) 42 int main(int argc, char **argv)
25 { 43 {
26 ParamBag *simParams; 44 ParamBag *simParams;