loom
1import "/data/modules/chart.simodo-script" : chart
2
3def auto :
4sv_module_t = {
5always_comb : fn (){},
6always_ff : fn (){},
7}
8
9def sv_module_t
10type SVModule
11
12def int :
13ff_step = 10,
14steps = 4
15
16fn start(SVModule : ex)
17{
18for int : comb_step in Range(0,steps*ff_step) {
19if (comb_step % ff_step == 0) {
20
21ex.always_ff()
22}
23
24chart.addPoint("in", comb_step, ex.in_value)
25chart.addPoint("out", comb_step, ex.out_value)
26}
27}