the PWM-encoder is a stand in for the arduino ”analogWrite()”function. The signal then goes through a 2nd order lowpass filter, and then to a ”sample and hold” the sample and hold is clocked by one of the inputs to the PWM-encoder, but goes through a comparator first so that the pulse width is short.