This block is a modified version from Modelica library block to accept a real input as the pulse width value.
The Boolean output y is a pulse signal: