Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
intro_example:chp_fifo [2022/06/08 10:46] – rajit | intro_example:chp_fifo [2022/06/26 18:37] (current) – [Simulating the buffer] rajit | ||
---|---|---|---|
Line 145: | Line 145: | ||
Assuming all the process definitions above are in a file '' | Assuming all the process definitions above are in a file '' | ||
- | <code act> | + | <file act test.act> |
import " | import " | ||
Line 173: | Line 173: | ||
b.R = tsink.X; | b.R = tsink.X; | ||
} | } | ||
+ | </ | ||
+ | |||
+ | This can be simulated using '' | ||
+ | |||
+ | < | ||
+ | % actsim test.act test | ||
+ | |||
+ | actsim> cycle | ||
+ | WARNING: test_sink<>: | ||
+ | WARNING: test_source<>: | ||
+ | WARNING: one_place_buffer<>: | ||
+ | actsim> cycle | ||
+ | [ 30] < | ||
+ | [ 50] < | ||
+ | [ 70] < | ||
+ | [ 90] < | ||
+ | [ 110] < | ||
+ | [ 130] < | ||
+ | [ 150] < | ||
+ | [ 170] < | ||
+ | [ 190] < | ||
+ | [ 210] < | ||
+ | actsim> | ||
</ | </ | ||
+ | The first set of numbers is the time (default delays are 10 time units for each step in the CHP program). Next, the instance name is specified in angle brackets. Finally the log message is displayed. |