Reviewing classical logic gates
This section will serve as a refresher for classical logic gates such as AND, OR, NOR, and so on. If you are familiar with this subject, you can either skim through this chapter to refresh your memory or skip it entirely and jump to the next section. Otherwise, let's get logical!
Logic gates are defined as a device, electronic or otherwise, that implements a logical (usually Boolean) operation. Single-bit and two-bit gates generally have one or two inputs, respectively. Each input bit value is a state value of either 0 or 1. The operation carried out on the input varies by the type of gate. Each gate operation is usually described using logic truth tables, as illustrated in the following table:
The preceding table lists some of the common classical gates, descriptions of the operation that each gate performs on the input state, the result (output) of...