This blocks computes output y as integral of the input u multiplied with the gain K:
K y = - u s
If the reset port is enabled, then the output y is reset to set or to Y0 (if the set port is not enabled), whenever the reset port has a rising edge.
Extended with Freeze functionality: If boolean input is set to true, the derivative of the state variable is set to zero.