The static RS flip-flop
Fundamental memory block
S
R
Q
0
0
hold
hold
store
1
0
1
0
set
0
1
0
1
reset
1
1
0
0
forbidden
Implementation A in Simulink
works with delay due to Memory block
Better implementation B
works without delay
Implementation in Modelica
block Pre replaces block Memory
both implementations can be reproduced
both work without delay!