This is our top-level layout. We design a current mirror so that each OTA and comparator has their own biased current, and we also design a selective mux for the system to select either red light signal path or infrared signal paths. Decoupling capacitors composed to transistors are placed between power and ground to stabilize the power supply.