Академический Документы
Профессиональный Документы
Культура Документы
E1.2 Digital Electronics 1 3.1 23 October 2008 E1.2 Digital Electronics 1 3.2 23 October 2008
• S should be 1 when: (H=1 and R=1) or (F=1 and R=1) Boolean Operators
• In Boolean Algebra:
∧ is used for ‘AND’
∨ is used for ‘OR’ • The operator symbols ∧, ∨, ¬ are not available on
¬ is used for ‘NOT’ standard keyboards
• To make things easier to type, in digital electronics we
S = (H ∧ R) ∨ (F ∧ R) use:
Operator Meaning
• If we could build an electronic circuit that implemented A+B A OR B
this Boolean expression we could sell it as a simple A•B A AND B
heating system controller A NOT A
E1.2 Digital Electronics 1 3.7 23 October 2008 E1.2 Digital Electronics 1 3.8 23 October 2008
Boolean Operators Basic Boolean Operators & Logic Gates
• Like ordinary algebra, Boolean algebra allows for
operations on its variables
• NOT operator produces the complement (or inverse) of a • Inverter
variable • AND gate
– e.g.: NOT K, which is written K • OR gate
– if K represents a key on a computer keyboard, and • NAND gate
K = 1 means the key is pressed,
• NOR gate
then K = 0 means the key is not pressed
• If we look at the complement of K, we can still tell the • Exclusive-OR gate
state of the key, but it will have the opposite sense: • Exclusive-NOR gate
K = 1 means the key is not pressed
K = 0 means the key is pressed
E1.2 Digital Electronics 1 3.9 23 October 2008 E1.2 Digital Electronics 1 3.10 23 October 2008
Truth table
Schematic & Boolean
symbol expression
Timing diagram
E1.2 Digital Electronics 1 3.11 23 October 2008 E1.2 Digital Electronics 1 3.12 23 October 2008
4-input OR gate Summary of OR operation
E1.2 Digital Electronics 1 3.13 23 October 2008 E1.2 Digital Electronics 1 3.14 23 October 2008
E1.2 Digital Electronics 1 3.15 23 October 2008 E1.2 Digital Electronics 1 3.16 23 October 2008
Example 3 Review questions for OR gates
• What is the only set of input conditions that will produce
a LOW output for any OR gate?
All inputs LOW
E1.2 Digital Electronics 1 3.17 23 October 2008 E1.2 Digital Electronics 1 3.18 23 October 2008
Truth table
0 = LOW • Output value will be
1 = HIGH
1 whenever all inputs are 1
3-Input AND Gate 0 otherwise
• An AND gate is a logic circuit that performs an AND
operation on the circuit’s inputs
• The Boolean expression x = A • B is read as
Timing Diagram
“x equals A AND B”
The output of the gate is HIGH
when ALL of the inputs are HIGH
E1.2 Digital Electronics 1 3.19 23 October 2008 E1.2 Digital Electronics 1 3.20 23 October 2008
The NOT operation and inverter
Review questions for AND gates
• What is the only input combination that will produce a
HIGH at the output of a five-input AND gate?
All 5 inputs = 1
Timing Diagram
• In Boolean algebra these are still Boolean operators, and The output of the gate is LOW
not the same as + and • in ordinary algebra! when ALL of the inputs are HIGH
E1.2 Digital Electronics 1 3.23 23 October 2008 E1.2 Digital Electronics 1 3.24 23 October 2008
The NOR gate
Describing logic circuits algebraically
Truth table
0 = LOW
1 = HIGH
Timing Diagram
E1.2 Digital Electronics 1 3.27 23 October 2008 E1.2 Digital Electronics 1 3.28 23 October 2008
More examples
Precedence
E1.2 Digital Electronics 1 3.29 23 October 2008 E1.2 Digital Electronics 1 3.30 23 October 2008
• Z = (0•1 + 0)1
= (1•1 + 0)1
= (1 + 0)1
= 1•1
= 0•1
=0
E1.2 Digital Electronics 1 3.31 23 October 2008 E1.2 Digital Electronics 1 3.32 23 October 2008
Implementing circuits from Boolean expressions
A further example • We can draw a logic circuit diagram directly from a
Boolean expression defining the function of the circuit.
E1.2 Digital Electronics 1 3.33 23 October 2008 E1.2 Digital Electronics 1 3.34 23 October 2008
E1.2 Digital Electronics 1 3.35 23 October 2008 E1.2 Digital Electronics 1 3.36 23 October 2008