Modern computers, and many other electronic devices, are based on digital electronics. Digital electronic circuits are mainly composed of logic gates, which we will look at in this article. The main CPU chip in a computer can contain hundreds of millions of logic gates, resulting in highly complex behaviour, but…