filmov
tv
Logic Gates: AND, OR, NOT

Показать описание
Logic Gates: AND, OR, NOTAbsolutely all digital circuits including standard logic chips and the most sophisticated CPUs consist of one and the same elementary items. The thing is that chips may contain billions of such elementary items while standard logic chips may include only one logic gate. A logic gate is a basic component of a digital circuit performing an elementary logic operation on numerous logic inputs and producing a single logic output. The operation of such gate can be described in different ways, however the truth table is the most popular technique. The truth table lists the value of the output for every possible combination of the inputs. Let's consider such basic logic gates as AND, OR, NOT which implement basic logical algebra operations i.e. conjunction, disjunction and inversion. The AND logic gate implements the function of multiplication or conjunction. The truth table of this gate shows that A HIGH output (1) results only if both the inputs to the AND gate are HIGH (1). This accounts for the name of a logic gate: two inputs i.e. HIGH AND HIGH should apply to the AND gate. At least one LOW input result in LOW output. Let me demonstrate how the AND gate functions in a primitive electric circuit. It looks like two serially connected keys. Let's assume when the key is closed there is HIGH input; if open - there is LOW input. Output is represented by a light-emitting diode or lamp. If a LED is ON, there is HIGH output, if off - there is LOW output. The LED will light up only both the switch and the button are closed. This means that HIGH inputs to X1 and X2 will result in HIGH output.The OR logic gate implement the operation of disjunction. The truth table of this logic gate shows that A HIGH output (1) results if one or both the inputs to the gate are HIGH (1). If neither input is HIGH, a LOW output (0) results. This logic gate can be represented as two parallel-connected keys. The LED will light up if either the switch or button is closed resulting in HIGH output. Open keys i.e. both LOW inputs will result in LOW output.The NOT logic gate (inverter) is the only logic gate with one input only. The truth table is simple: LOW input results in HIGH output and vice versa - HIGH input results in LOW output. This mean if the key is open, the lamp is on; if closed, the lamp is off. The understanding how logic gates function provides insight into the operation of any computing mechanism.
Комментарии