test.hal
1 loadrt threads name1=fast period1=100000 2 loadrt flipflop 3 4 loadrt sampler depth=1000 cfg=b 5 loadrt streamer depth=32 cfg=bbbb 6 7 8 net a streamer.0.pin.0 9 net b streamer.0.pin.1 10 net c streamer.0.pin.2 11 net d streamer.0.pin.3 12 13 net a flipflop.0.data 14 net b flipflop.0.clk 15 net c flipflop.0.reset 16 net d flipflop.0.set 17 18 net n0 flipflop.0.out sampler.0.pin.0 19 20 addf streamer.0 fast 21 addf flipflop.0 fast 22 addf sampler.0 fast 23 24 loadusr -w sh runstreamer 25 start 26 loadusr -w halsampler -n 10