Simple circuit for a laboratory power supply in one quadrant operation.
The Out-voltage is defined by the 1kHz source. The current limit is given by the 1V voltage ramp source.
Change the load resistance and see the behavior . Move slowly ... EC crash 🤓