memory - block
[sim, out] = ld_memory(sim, events, in, rememberin, initial_state)
in * - input
rememberin * -
out * - output
If rememberin > 0 then
remember in, which is then feed to the output out until it is overwritten by a new value
Please note that input ist applied to the output immediately (without a delay)
initial output out = initial_state