Computer Logic

Computers are made up of small electronic circuits called logic gates.  These gates take zeroes and ones and combine them to create outputs. From these combinations all the electronics contained in computers: CPUs, Memory, etc are constructed.  This section covers these gates, the outputs obtained for all the possible inputs and how we can use them in a practical application.

Remember that the logic operations described are not just for hardware. A Google search that uses AND or OR in the query string is also using logic as are any programs you write that contain compound conditions, for example while NOT EOF do.

While examining logic gates it may be helpful to think in terms of TRUE and FALSE: as in TRUE is NOT FALSE.

Next: NOT Gate