Using red, yellow and green indicator lights to indicate the working state of 3 devices: green light indicates that all of the devices are OK, red light means that one of the device does not work, yellow light means that two of them do not work. If both red and yellow lights are on, all of them do not work. Please design the control circuit.
Hint:
Denote the 3 devices by A,B and C. ā1ā means OK, ā0ā means not work.
Denote red,yellow, green lights by Y1,Y2 and Y3. ā1ā means light is on, ā0ā means off.