There are two families of logic devices called TTL and CMOS. For those who are new to these devices, TTL…