diff options
Diffstat (limited to 'research/experiments/028-one-sending-loop/src.aup')
| -rw-r--r-- | research/experiments/028-one-sending-loop/src.aup | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/research/experiments/028-one-sending-loop/src.aup b/research/experiments/028-one-sending-loop/src.aup new file mode 100644 index 0000000..6bb9c42 --- /dev/null +++ b/research/experiments/028-one-sending-loop/src.aup @@ -0,0 +1,29 @@ +record Item { + k = 0 +} +state items: list of Item +input fill = message { k: u32 } +input burst = message { step: u32 } +input burst4 = message { step: u32 } +output out = message { k: u32 } +output o1 = message { k: u32 } +output o2 = message { k: u32 } +output o3 = message { k: u32 } +output o4 = message { k: u32 } +on fill { + items.append(Item { k: fill.k }) +} +on burst { + for i in items { + send out { k: i.k + burst.step } + } +} +on burst4 { + for i in items { + send o1 { k: i.k + burst4.step } + send o2 { k: i.k + burst4.step } + send o3 { k: i.k + burst4.step } + send o4 { k: i.k + burst4.step } + } +} +view count = count(i in items where i.k > 0) |
