Three input nor gate cmos