Ch03 Digital Logic
Ch03 Digital Logic
Ch03 Digital Logic
These slides are derived from those of Null & Lobur + the work of others.
Chapter 3: Digital Logic
Chapter 3 Objectives
Understand the relationship between Boolean logic and digital computer circuits. Learn how to design simple logic circuits. Understand how digital circuits work together to form complex computer systems.
3.1 Introduction
In the latter part of the nineteenth century, George Boole incensed philosophers and mathematicians alike when he suggested that logical thought could be represented through mathematical equations.
How dare anyone suggest that human thought could be encapsulated and manipulated like an algebraic formula?
In the middle of the twentieth century, computers were commonly known as thinking machines and electronic brains.
Many people were fearful of them.
Nowadays, we rarely ponder the relationship between electronic digital computers and human logic. Computers are accepted as part of our lives.
Many people, however, are still fearful of them.
Chapter 3: Digital Logic
Depending on the values of A, B, output C is connected either to Power or to Ground and so has either a 1 or 0 logical value.
Chapter 3: Digital Logic
operations, as you can see by their truth tables. And these representations map exactly into the transistors on the last two slides.
74LS08 They correspond directly to their respective Boolean Quad 2-input AND
The output of the XOR operation is true only when the values of the inputs differ.
Symbols for NAND and NOR, and truth tables are shown at the right.
This is an example of a combinational logic circuit. Combinational logic circuits produce a specified output (almost) at the instant when input values are applied.
Later well explore circuits where this is not the case.
Chapter 3: Digital Logic
10
11
HALF ADDER
FULL ADDER
Chapter 3: Digital Logic
12
This is a 4-bit adder that you can program as part of your Project.
74LS283
13
14
15
74LS42
16
17
18
19
20
21
22
Circuits that change state on the rising edge, or falling edge of the clock pulse are called edge-triggered.
Level-triggered circuits change state when the clock voltage reaches its highest or lowest level.
23
To retain their state values, sequential circuits rely on feedback. Feedback occurs when an output is looped back to the input. A simple example of this concept is shown below. Yes, this little circuit shows feedback, but it never changes state: If Q is 0 it will always be 0, if it is 1, it will always be 1. Why?
You can see how feedback works by examining the most basic sequential logic components, the SR flip-flop. The SR stands for set/reset. The internals of an SR flip-flop are shown, along with a block diagram.
24
The SR flip-flop actually has three inputs: S, R, and its current output, Q. (the Q is its state/history) We can construct a truth table for this circuit, as shown at the right. Notice the two undefined values. When both S and R are 1, the SR flip-flop is unstable. (meaning both Q and Q are 0 and thats not legal!)
Try a set of inputs and see what you get on the outputs.
25
At the right, is an SR flip-flop, modified to create a JK flip-flop. See how Q and Q condition the inputs to prevent S and R from both being 1. The characteristic table indicates that the flip-flop is stable for all inputs.
Means the value at t + 1 is the inverse of the value at t. Chapter 3: Digital Logic
26
27
The D flip-flop is the fundamental circuit of computer memory. D flip-flops are usually illustrated using the block diagram shown here.
Chapter 3: Digital Logic
28
29
30
31
32
33
Digital systems designers must also be mindful of the physical behaviors of circuits to include minute propagation delays that occur between the time when a circuits inputs are energized and when the output is accurate and stable.
Chapter 3: Digital Logic
34
Chapter 3 Conclusion
Computers are implementations of Boolean logic.
35
Chapter 3 Conclusion
Computer circuits consist of combinational logic circuits and sequential logic circuits. Combinational circuits produce outputs (almost) immediately when their inputs change. Sequential circuits require clocks to control their changes of state. The basic sequential circuit unit is the flip-flop: The behaviors of the SR, JK, and D flip-flops are the most important to know. The behavior of sequential circuits can be expressed using characteristic tables or through various finite state machines. Moore and Mealy machines are two finite state machines that model high-level circuit behavior.
Chapter 3: Digital Logic
36
37
38
39
At least one Boolean variable, At least one Boolean operator, and At least one input from the set {0,1}.
40
To make evaluation of the Boolean function easier, the truth table contains extra (shaded) columns to hold evaluations of subparts of the function.
Chapter 3: Digital Logic
41
42
With this in mind, we always want to reduce our Boolean functions to their simplest form. There are a number of Boolean identities that help us to do this.
Chapter 3: Digital Logic
43
44
45
46
47
48
is:
49
In order to eliminate as much confusion as possible, designers express Boolean functions in standardized or canonical form.
Chapter 3: Digital Logic
50
51
52
We note that this function is not in simplest terms. Our aim is only to rewrite our function in canonical sum-of-products form.
53