In a basic two-transistor NMOS current mirror, what is the primary reason the mirrored current (Iout) is not perfectly identical to the reference current (Iref), assuming both transistors are in saturation and have identical W/L ratios?
The basic current mirror assumes that the drain-to-source voltage (Vds) is the same for both transistors. However, the reference transistor is diode-connected (Vgs = Vds), while the output transistor's Vds is set by the load. This difference in Vds causes a mismatch in the currents due to channel length modulation (the effect where the effective channel length decreases as Vds increases, represented by the lambda parameter). This effect gives the transistor a finite output resistance and makes Iout dependent on its Vds, causing a deviation from Iref.