
newring test 16384 scratchpad=256

loadrt ringwrite ring=test

# slow square signal on ringwrite.write
# every edge on ringwrite.write causes a message to be queued
loadrt charge_pump
net square-wave charge_pump.0.out ringwrite.write

# 1ms/200ms
newthread  fast 1000000 fp
newthread  slow 20000000 fp

# the 'enqueue a message' function
addf ringwrite fast

addf charge_pump.0 slow
start

# get going
setp charge_pump.0.enable 1
