Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
You need to sense the current by some means, ( copy the part of NMOS current by current mirror, or add the resistor sense at the source of NMOS) . This current then you can convert to voltage and using feed back path to control the gate voltage of NMOS.