When the input voltage is higher than 2/3 of the power supply voltage the green LEDs glows. When the input voltage is 1/3 lower than the power supply voltage, the red LED glows. This circuit can be used to test logic circuits using CMOS technology. Power comes from the circuit under analisys.