A circuit for a switched-mode-power-supply, wherein the switched-mode-power-supply is configured to: receive a current-control-signal; and provide an output-voltage based on the current-control-signal, the circuit comprising: a controller, configured to: generate a control-voltage based on the difference between: (i) a sense-voltage, which is representative of the output-voltage of the switched-mode-power-supply; and (ii) a reference-voltage; generate a target-current-control-signal based on the control-voltage, wherein the target-current-control-signal is configured to adjust the current through the switched-mode-power-supply in order to bring the sense-voltage closer to the reference-voltage; a current-limiter configured to provide the current-control-signal as the target-current-control-signal limited to a max-current-control-value; and a clamp-circuit configured to set the control-voltage to a clamp-voltage-value when the current-limiter provides the current-control-signal having the limited value of the max-current-control-value, wherein the controller comprises: a transconductance-amplifier-control-block, which incorporates the functionality of the current-limiter and the clamp-circuit such that the transconductance-amplifier-control-block is configured to: receive the control-voltage; prevent the control-voltage from increasing when the current-control-signal has the limited value of the max-current-control-value; and convert the control-voltage to the current-control-signal, and wherein the transconductance-amplifier-control-block comprises: a voltage amplifier, a bias-voltage-source configured to provide a saturation-voltage; a clamp-transistor; and a first-mirror-second-transistor; wherein the voltage amplifier in combination with the clamp-transistor is configured to regulate the voltage drop across the first-mirror-second-transistor to the saturation-voltage provided by the bias-voltage-source; and wherein the controller is configured to generate the control-voltage by integrating the difference between: (i) the sense-voltage; and (ii) the reference-voltage. a controller, configured to: generate a control-voltage based on the difference between: (i) a sense-voltage, which is representative of the output-voltage of the switched-mode-power-supply; and (ii) a reference-voltage; generate a target-current-control-signal based on the control-voltage, wherein the target-current-control-signal is configured to adjust the current through the switched-mode-power-supply in order to bring the sense-voltage closer to the reference-voltage; generate a control-voltage based on the difference between: (i) a sense-voltage, which is representative of the output-voltage of the switched-mode-power-supply; and (ii) a reference-voltage; generate a target-current-control-signal based on the control-voltage, wherein the target-current-control-signal is configured to adjust the current through the switched-mode-power-supply in order to bring the sense-voltage closer to the reference-voltage; a current-limiter configured to provide the current-control-signal as the target-current-control-signal limited to a max-current-control-value; and a clamp-circuit configured to set the control-voltage to a clamp-voltage-value when the current-limiter provides the current-control-signal having the limited value of the max-current-control-value, wherein the controller comprises: a transconductance-amplifier-control-block, which incorporates the functionality of the current-limiter and the clamp-circuit such that the transconductance-amplifier-control-block is configured to: receive the control-voltage; prevent the control-voltage from increasing when the current-control-signal has the limited value of the max-current-control-value; and convert the control-voltage to the current-control-signal, and receive the control-voltage; prevent the control-voltage from increasing when the current-control-signal has the limited value of the max-current-control-value; and convert the control-voltage to the current-control-signal, and wherein the transconductance-amplifier-control-block comprises: a voltage amplifier, a bias-voltage-source configured to provide a saturation-voltage; a clamp-transistor; and a first-mirror-second-transistor; wherein the voltage amplifier in combination with the clamp-transistor is configured to regulate the voltage drop across the first-mirror-second-transistor to the saturation-voltage provided by the bias-voltage-source; and a voltage amplifier, a bias-voltage-source configured to provide a saturation-voltage; a clamp-transistor; and a first-mirror-second-transistor; wherein the voltage amplifier in combination with the clamp-transistor is configured to regulate the voltage drop across the first-mirror-second-transistor to the saturation-voltage provided by the bias-voltage-source; and wherein the controller is configured to generate the control-voltage by integrating the difference between: (i) the sense-voltage; and (ii) the reference-voltage.