Skip to main content

Computer Logic

Computers are made up of small pieces of electronics called logic gates.

These gates take 0s and 1s 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