I am unsuccessfully trying to replicate the behavior of the Integrate and Dump block in Simulink (Communication Systems Toolbox).
The problem arises at t=4, where the current counter value=4 should add to the next value=5 resulting to 9.
I am attaching a screenshot of the Simulink model along with the Waveform window and a zipped Simulink model for anyone who's willing to help me fix the model.
the thing is that in t=4 delay line is resetet and it takes new value in t=5 so its output that value in t=6. You should maybe use normal 1/z line and use switch to force 0 to 1 input of adder.