Trunc() bug - simulator occasionally ignores trunc() timestep

I believe @RDunn has better content than mine for explaining the DLL block on his GitHub.

Here just an example of how I implement a discrete feature at every 5us interval. My approach involves reducing the tolerance (ttol) when nearing each 5us interval where a change event is anticipated by Trunc().

example.FixedSampling.qsch (2.5 KB)
fixedsampling.cpp (4.1 KB)