A circuit is generating a signal which is proportional to current flowing into or out of a drain of a first FET, wherein the first FET is implemented in a first semiconductor device, the circuit comprising:
- a second FET comprising a gate, a source, and a drain, wherein the gate of the second FET is configured to receive a voltage, wherein the source node of the second FET is configured to be coupled to ground, and wherein the second FET is implemented in a second semiconductor device which is separate from the first semiconductor device;
- a operational amplifier comprising an inverting input node, a non-inverting input node, and an output node, wherein the inverting node is coupled to the drain of the second FET, and wherein the non-inverting node is coupled to the drain of the first FET;
- a resistor coupled between the inverting node and an output node.