Chapter 1
Chapter 1
involves
Michael Relly
An example electrical system is a lamp that passes current through a glowing resistor in a light bulb.
The more current, the brighter the glow.
PARTICIPATION
ACTIVITY 1.1.1:
Voltage and current.
Animation captions:
PARTICIPATION
ACTIVITY 1.1.2:
Terminology: Electrical systems. ©zyBooks 10/22/21 16:48 1048321
Michael Relly
SDMIRAMARCISC211MoezziFall2021
https://learn.zybooks.com/zybook/SDMIRAMARCISC211MoezziFall2021/chapter/1/print 1/75
10/22/21, 4:49 PM CISC 211: Computer Organization and Assembly Language home
Opposition to flow
Units of voltage
Michael Relly
SDMIRAMARCISC211MoezziFall2021
Units of resistance
Ohm's Law
Reset
PARTICIPATION
ACTIVITY 1.1.3:
Voltage, current, and resistance.
3) If V is 6 V and R is 2 Ohms, I = ?
12
6
3 ©zyBooks 10/22/21 16:48 1048321
Michael Relly
12
6
3
5) If V is 6 V and R is 0 Ohms, I = ?
https://learn.zybooks.com/zybook/SDMIRAMARCISC211MoezziFall2021/chapter/1/print 2/75
10/22/21, 4:50 PM CISC 211: Computer Organization and Assembly Language home
6
3
Infinity
6) If V is 6 V and R is infinite, I = ?
0
©zyBooks 10/22/21 16:48 1048321
3 Michael Relly
SDMIRAMARCISC211MoezziFall2021
Infinity
The voltage on a wire with no resistance is the same everywhere on the wire. But voltage drops across
a resistor as V = IR.
PARTICIPATION
ACTIVITY 1.1.4:
V = IR.
V Michael Relly
SDMIRAMARCISC211MoezziFall2021
Check Show answer
https://learn.zybooks.com/zybook/SDMIRAMARCISC211MoezziFall2021/chapter/1/print 3/75
10/22/21, 4:50 PM CISC 211: Computer Organization and Assembly Language home
Note: Nearly every wire has some tiny resistance (with the exception of superconductors),
Michael Relly
but that
resistance is commonly ignored. SDMIRAMARCISC211MoezziFall2021
Note: Convention is to show current flowing from higher voltage to lower voltage, even though actual
flow is in the other direction, due to electrons having negative charge. But the net effect is the same.
Switches
A switch is an electronic device that acts like a wire (a.k.a. "conducts") between two terminals if the
switch is configured to on. A light-switch is an example.
PARTICIPATION
ACTIVITY 1.1.5:
Switches can be configured to conduct.
Animation captions:
An electronically-controlled switch has another input terminal whose voltage can turn the switch
on. The terminal that controls an electronically-controlled switch is known as the control input.
PARTICIPATION
ACTIVITY 1.1.6:
An electronically-controlled switch is controlled by a control input.
Animation captions:
1. An electronically-controlled switch has a control input that turns the switch on or off.
2. A positive voltage on the control input turns the switch on. ©zyBooks Michael
10/22/21 16:48 1048321
Relly
Switches in the early 1900s were large, each being several inches long. A transistor is a smaller
simpler switch with no mechanical parts, invented in 1947.
PARTICIPATION
ACTIVITY 1.1.7:
Switches. ©zyBooks 10/22/21 16:48 1048321
Michael Relly
SDMIRAMARCISC211MoezziFall2021
1) A basic _____ either conducts or
doesn't.
CMOS technology
CMOS technology uses pMOS and nMOS transistors to implement digital circuits. An nMOS
transistor conducts when its control input is 1. A pMOS transistor conducts when its control input is
0.
©zyBooks 10/22/21 16:48 1048321
ACTIVITY 1.1.8:
CMOS transistors.
SDMIRAMARCISC211MoezziFall2021
Animation captions:
PARTICIPATION
ACTIVITY 1.1.9:
pMOS and nMOS transistors.
Michael Relly
No SDMIRAMARCISC211MoezziFall2021
PARTICIPATION
ACTIVITY 1.1.10:
A simple circuit of pMOS and nMOS transistors.
1) What is y when a is 0?
1
0
2) What is y when a is 1?
©zyBooks 10/22/21 16:48 1048321
1
Michael Relly
0 SDMIRAMARCISC211MoezziFall2021
Digital systems
A circuit is a path through which electrical current can flow. In a circuit of switches, some wires have
a high voltage, some have low voltage. High is labeled 1, low 0. (High is usually not 1 V; high could be
https://learn.zybooks.com/zybook/SDMIRAMARCISC211MoezziFall2021/chapter/1/print 6/75
10/22/21, 4:50 PM CISC 211: Computer Organization and Assembly Language home
1.3 V, for example). A digital circuit has voltages that are treated as either high or low, and is typically
built as a connection of switches. In contrast, an analog system has voltages that are treated as
having infinite values like 0.15, 0.2, 0.333, etc. Digital circuits form the basis of useful systems like
smartphones, computers, medical devices, and more.
The word "system" means a set of connected things forming a complex whole. Thus, digital circuits
are often referred to more generally as digital systems
This material focuses on digital design: Creating digital circuits to©zyBooks 10/22/21 16:48 1048321
achieve Michael
desired digital system
Relly
behavior that converts digital inputs into desired digital outputs. SDMIRAMARCISC211MoezziFall2021
PARTICIPATION
ACTIVITY 1.1.11:
Digital systems.
Animation captions:
1. An analog system treats voltages as continuous. This analog circuit takes an input and
generates an output with amplified voltage, perhaps to increase a TV's volume.
2. A digital system treats voltages as being one of two values: high or low. This digital circuit
takes an input signal and generates an output signal that is the inverse.
The term "digit" literally means finger (or toe) (see Oxford dictionary definition).
Because people have a finite number of fingers, and digital circuits have a finite
number of voltages (usually just two: high and low), the term "digital" is used. (Digit is
also used to refer to a place in a number, such as 97 having two digits; that use of digit
stems from people counting with their fingers).
PARTICIPATION
ACTIVITY 1.1.12:
Digital circuits.
Michael Relly
SDMIRAMARCISC211MoezziFall2021
Check Show answer
Exploring further:
Transistor (Wikipedia)
CMOS (Wikipedia)
1.2 Gates
Building complex circuits from transistors is hard. In 1938, Claude Shannon described how transistor
circuits could implement logic functions. Common logic functions include AND, OR, and NOT.
A logic gate (or just gate) is a transistor circuit that implements a logic function. The usefulness of
gates will be seen later.
A NOT gate outputs 1 if the gate's input is 0, and outputs 0 if the input is 1. A NOT gate is also called
an inverter. The following circuit with a pMOS and an nMOS transistor implements a NOT gate.
PARTICIPATION
ACTIVITY 1.2.1:
NOT gate built from CMOS transistors.
©zyBooks 10/22/21 16:48 1048321
Michael Relly
SDMIRAMARCISC211MoezziFall2021
Animation content:
undefined
Animation captions:
https://learn.zybooks.com/zybook/SDMIRAMARCISC211MoezziFall2021/chapter/1/print 8/75
10/22/21, 4:50 PM CISC 211: Computer Organization and Assembly Language home
1. An input of 0 causes the pMOS transistor to conduct, and the nMOS transistor to not conduct.
Thus, y becomes 1.
2. An input of 1 causes the nMOS transistor to conduct, and the pMOS transistor to not conduct.
Thus, y becomes 0.
PARTICIPATION
ACTIVITY 1.2.2:
NOT gate.
©zyBooks 10/22/21 16:48 1048321
Michael Relly
SDMIRAMARCISC211MoezziFall2021
PARTICIPATION
ACTIVITY 1.2.3:
NOT gate.
Michael Relly
SDMIRAMARCISC211MoezziFall2021
AND gate
An AND gate outputs 1 only if both the gate's inputs are 1's. The following transistor circuit
implements an AND gate.
PARTICIPATION
ACTIVITY 1.2.4:
AND gate built from CMOS transistors.
https://learn.zybooks.com/zybook/SDMIRAMARCISC211MoezziFall2021/chapter/1/print 9/75
10/22/21, 4:50 PM CISC 211: Computer Organization and Assembly Language home
Animation captions:
One might ask why the AND circuit isn't implemented more simply, with 0 at the top and 1 at the
bottom, omitting the NOT gate. The answer is that pMOS is a poor conductor of 0's, and nMOS a poor
conductor of 1's, for physics reasons beyond our scope.
PARTICIPATION
ACTIVITY 1.2.5:
CMOS AND gate.
1) If a = 0, b = 0, does h conduct?
Yes
No
2) If a = 0, b = 0, does i conduct?
Yes
No
3) If a = 0, b = 0, then j is ?
0
1
4) If a = 0, b = 0, then k is ?
0
1
©zyBooks 10/22/21 16:48 1048321
Michael Relly
5) If a = 1, b = 0, then j is ? SDMIRAMARCISC211MoezziFall2021
0
1
6) If a = 1, b = 0, then k is ?
0
https://learn.zybooks.com/zybook/SDMIRAMARCISC211MoezziFall2021/chapter/1/print 10/75
10/22/21, 4:50 PM CISC 211: Computer Organization and Assembly Language home
7) If a = 1, b = 1, then k is ?
0
1
Michael Relly
PARTICIPATION
1.2.6:
AND gate with two inputs. SDMIRAMARCISC211MoezziFall2021
ACTIVITY
OR gate
An OR gate outputs 1 if either, or both, of the gate's inputs is a 1. The following transistor circuit
implements an OR gate.
PARTICIPATION
ACTIVITY 1.2.7:
OR gate built from CMOS transistors.
Animation captions:
Michael Relly
SDMIRAMARCISC211MoezziFall2021
PARTICIPATION
ACTIVITY 1.2.8:
OR gate.
https://learn.zybooks.com/zybook/SDMIRAMARCISC211MoezziFall2021/chapter/1/print 11/75
10/22/21, 4:50 PM CISC 211: Computer Organization and Assembly Language home
Michael Relly
0 SDMIRAMARCISC211MoezziFall2021
PARTICIPATION
ACTIVITY 1.2.9:
OR gate with two inputs.
If an issue persists,
The following figure summarizes the NOT, AND, and OR gates. Michael Relly
SDMIRAMARCISC211MoezziFall2021
Note: OR and AND gates may have more than two inputs. OR outputs 1 if at least one input is 1. AND
outputs 1 only if all inputs are 1's.
https://learn.zybooks.com/zybook/SDMIRAMARCISC211MoezziFall2021/chapter/1/print 12/75
10/22/21, 4:50 PM CISC 211: Computer Organization and Assembly Language home
PARTICIPATION
ACTIVITY 1.2.10:
Logic gates: NOT, AND, and OR.
1)
©zyBooks 10/22/21 16:48 1048321
0 Michael Relly
SDMIRAMARCISC211MoezziFall2021
1
2)
0
1
3)
0
1
4)
0
1
5)
0
1
6)
0
1
PARTICIPATION
ACTIVITY 1.2.11:
Example systems implemented using one logic gate.
©zyBooks 10/22/21 16:48 1048321
Michael Relly
SDMIRAMARCISC211MoezziFall2021
Indicate which one logic gate is best suited to implement the desired system functionality.
1)
https://learn.zybooks.com/zybook/SDMIRAMARCISC211MoezziFall2021/chapter/1/print 13/75
10/22/21, 4:50 PM CISC 211: Computer Organization and Assembly Language home
NOT
OR
AND
2)
SDMIRAMARCISC211MoezziFall2021
NOT
OR
AND
3)
4)
5)
Michael Relly
OR SDMIRAMARCISC211MoezziFall2021
AND
6)
ACTIVITY 1.2.1:
Gates. SDMIRAMARCISC211MoezziFall2021
350504.2096642.qx3zqy7
Boolean algebra
Operator Description
NOT NOT outputs true if the input is false. NOT outputs false if the input
Michael Rellyis
true.
SDMIRAMARCISC211MoezziFall2021
PARTICIPATION
ACTIVITY 1.3.1:
Boolean algebra can capture human logic as math equations.
Animation captions:
https://learn.zybooks.com/zybook/SDMIRAMARCISC211MoezziFall2021/chapter/1/print 15/75
10/22/21, 4:50 PM CISC 211: Computer Organization and Assembly Language home
PARTICIPATION
ACTIVITY 1.3.2:
Capturing human logic as a Boolean equation.
baby.
Michael Relly
SDMIRAMARCISC211MoezziFall2021
Output: c indicates the baby will cry.
Reset
PARTICIPATION
ACTIVITY 1.3.3:
Boolean algebra.
Indicate whether the equation matches the human logic. ©zyBooks 10/22/21 16:48 1048321
Michael Relly
c = b OR g
Yes
No
https://learn.zybooks.com/zybook/SDMIRAMARCISC211MoezziFall2021/chapter/1/print 16/75
10/22/21, 4:50 PM CISC 211: Computer Organization and Assembly Language home
c = false
Yes
No
3) The car will start if there's enough gas; ©zyBooks 10/22/21 16:48 1048321
SDMIRAMARCISC211MoezziFall2021
c=g
Yes
No
c = NOT(g)
Yes
No
A Boolean expression is evaluated by evaluating parts and combining. NOT is evaluated first. AND is
evaluated before OR.
PARTICIPATION
ACTIVITY 1.3.4:
Evaluating Boolean expressions.
Animation captions:
Michael Relly
PARTICIPATION SDMIRAMARCISC211MoezziFall2021
ACTIVITY 1.3.5:
Evaluating Boolean expressions.
Evaluate. Assume:
a = false
b = true
1) a AND b
2) a OR b
©zyBooks 10/22/21 16:48 1048321
Michael Relly
SDMIRAMARCISC211MoezziFall2021
Check Show answer
3) a AND NOT(b)
5) (a AND b) OR NOT(a)
= (false) OR ?
Michael Relly
S b l
https://learn.zybooks.com/zybook/SDMIRAMARCISC211MoezziFall2021/chapter/1/print 18/75
10/22/21, 4:50 PM CISC 211: Computer Organization and Assembly Language home
Symbols
Note: Mathematicians use symbols like ∧, ∨, and ¬ for AND, OR, and NOT, respectively.
This section uses the words for simple understanding; later sections use common
digital-designer shorthand notation.
Michael Relly
SDMIRAMARCISC211MoezziFall2021
Boolean equations
Boolean algebra was developed in the 1800s for purposes unrelated to digital circuits. In 1938, Claude
Shannon applied Boolean algebra to the design of digital circuits. Previously, designing circuits directly
as switches was hard and error-prone. Shannon showed that building and using logic gates
(AND/OR/NOT) allowed use of Boolean algebra's properties to more-easily and correctly design
complex circuits.
In digital circuits, 1 (the high voltage value) is Boolean algebra's true, and 0 is false.
A Boolean equation has a Boolean variable (left), an equal sign, and a Boolean expression (right),
defining the left variable's value based on the right variables' values. A Boolean equation can describe
a digital circuit, with the output on the left and the inputs on the right.
PARTICIPATION 1.3.6:
A Boolean equation can describe digital circuit behavior: Microwave
ACTIVITY
door example.
Animation captions:
1. A digital system has inputs, outputs, and goal behavior. This microwave should open the door
(d) if button (b) is pressed and motor (m) is not running.
2. The behavior can be captured as the equation: d = b AND NOT(m).
Digital designers commonly use a shorthand notation for Boolean operators, shown below.
Michael Relly
SDMIRAMARCISC211MoezziFall2021
Operation Shorthand Notes
PARTICIPATION
ACTIVITY 1.3.7:
Digital-designer shorthand notation for Boolean operators.
©zyBooks 10/22/21 16:48 1048321
Michael Relly
SDMIRAMARCISC211MoezziFall2021
Note: This material's activities require straightforward answers. Ex: For a AND b, type ab.
All variations like ba or (ab) cannot be accounted for.
1) a OR b
2) (a AND b) OR c
3) NOT(a)
4) NOT(a) AND b
SDMIRAMARCISC211MoezziFall2021
6) NOT(ab)
https://learn.zybooks.com/zybook/SDMIRAMARCISC211MoezziFall2021/chapter/1/print 20/75
10/22/21, 4:50 PM CISC 211: Computer Organization and Assembly Language home
7) NOT(a OR b)
ACTIVITY 1.3.8:
Boolean equations for digital circuits.
Michael Relly
SDMIRAMARCISC211MoezziFall2021
A digital system has the following inputs and outputs:
Michael Relly
SDMIRAMARCISC211MoezziFall2021
Logic circuits
Digital circuits are sometimes called logic circuits due to the roots in Boolean
algebra's logic operations of AND, OR, and NOT.
https://learn.zybooks.com/zybook/SDMIRAMARCISC211MoezziFall2021/chapter/1/print 21/75
10/22/21, 4:50 PM CISC 211: Computer Organization and Assembly Language home
Boolean functions
In Boolean algebra, a function is a relation of inputs' values to an output's values. A function can be
described in various ways:
As English: When inputs a, b are both 1's, the output y is 1. Else, y is 0. 10/22/21 16:48 1048321
©zyBooks
As an equation: y = ab Michael Relly
SDMIRAMARCISC211MoezziFall2021
As a table:
a b y
0 0 0
0 1 0
1 0 0
1 1 1
Michael Relly
PARTICIPATION
ACTIVITY 1.3.9:
Expressions, equations, and functions.
https://learn.zybooks.com/zybook/SDMIRAMARCISC211MoezziFall2021/chapter/1/print 22/75
10/22/21, 4:50 PM CISC 211: Computer Organization and Assembly Language home
1) Is c + d a function?
Yes
No
Michael Relly
Yes SDMIRAMARCISC211MoezziFall2021
No
3) Is y = c + d an equation?
Yes
No
c d y
0 0 0
0 1 1
1 0 1
1 1 1
Yes
No
SDMIRAMARCISC211MoezziFall2021
Michael Relly
SDMIRAMARCISC211MoezziFall2021
PARTICIPATION
ACTIVITY 1.4.1:
Digital circuit simulator.
Adding an item, like a gate, to a circuit is called instantiating an item. An instantiated circuit item, like
a specific AND gate, is called an instance.
PARTICIPATION
ACTIVITY 1.4.2:
Digital circuit simulator.
Michael Relly
True SDMIRAMARCISC211MoezziFall2021
False
PARTICIPATION
ACTIVITY 1.4.3:
Digital circuit simulator with export.
©zyBooks 10/22/21 16:48 1048321
Michael Relly
SDMIRAMARCISC211MoezziFall2021
The simulator will sometimes appear with an "Export" button. To save your circuit, click
Export, then copy-paste the exported circuit text into any text file (or email message). To load
a previously-saved circuit, paste the circuit text into box, and click Import.
Modify the shown circuit, then click Export, and copy-paste the circuit text into a text
file.
Reload this page, then return to here. Paste the previous circuit text into the box, and
press Import to restore the circuit.
PARTICIPATION
ACTIVITY 1.4.4:
Digital circuit simulator with export.
Michael Relly
SDMIRAMARCISC211MoezziFall2021
A timing diagram graphically shows a circuit's output values for given input values that change over
time. Each signal (input or output) name is listed on the left. Time proceeds to the right. Each signal is
drawn as a high line (1) or a low line (0).
PARTICIPATION
ACTIVITY 1.5.1:
Timing diagram for an AND gate.
https://learn.zybooks.com/zybook/SDMIRAMARCISC211MoezziFall2021/chapter/1/print 25/75
10/22/21, 4:50 PM CISC 211: Computer Organization and Assembly Language home
Animation captions:
1. If a = 0 and b = 0, then y = 0.
2. If a = 1 and b = 0, then y = 0.
3. If a = 0 and b = 1, then y = 0.
4. If a = 1 and b = 1, then y = 1.
Michael Relly
PARTICIPATION
1.5.2:
Timing diagram. SDMIRAMARCISC211MoezziFall2021
ACTIVITY
1) (a)
0
1
2) (b)
0
1
3) (c)
0
1
CHALLENGE
ACTIVITY 1.5.1:
Timing diagram.
Indicate y's value over time. Click on the y's waveform to adjust it.
350504.2096642.qx3zqy7
Michael Relly
SDMIRAMARCISC211MoezziFall2021
1.6 Equations to/from circuits
Equations to circuits
An equation is one way to represent a Boolean function. Another way is using a circuit.
https://learn.zybooks.com/zybook/SDMIRAMARCISC211MoezziFall2021/chapter/1/print 26/75
10/22/21, 4:50 PM CISC 211: Computer Organization and Assembly Language home
An equation can be converted to a circuit by converting each operation to a gate. Conversion is done
first for items within parentheses. In a term like cd', NOT is converted before AND or OR. Converting
behavior (like an equation) to a circuit is called design.
PARTICIPATION
ACTIVITY 1.6.1:
Convert equation to circuit.
SDMIRAMARCISC211MoezziFall2021
1. Convert inside parentheses first.
2. Convert NOT before converting AND (or OR).
3. Convert AND.
PARTICIPATION
ACTIVITY 1.6.2:
Converting an equation to a circuit.
1) (a)
AND
OR
NOT
2) (b)
m
n
mn'
i
3) (c)
m
n ©zyBooks 10/22/21 16:48 1048321
Michael Relly
mn' SDMIRAMARCISC211MoezziFall2021
i
4) (d)
AND
OR
https://learn.zybooks.com/zybook/SDMIRAMARCISC211MoezziFall2021/chapter/1/print 27/75
10/22/21, 4:50 PM CISC 211: Computer Organization and Assembly Language home
NOT
5) (e)
AND
OR
NOT
©zyBooks 10/22/21 16:48 1048321
Michael Relly
Cars have airbags that deploy during an accident to reduce injuries to occupants. Airbags can harm
kids, and aren't needed for non-human objects. Thus, cars have sensors to help detect whether an
airbag should be enabled by a large enough human being seated. In one car, a seat back sensor
detects a heartbeat (h = 1). A seat bottom sensor indicates if over 60 pounds is detected (w = 1). A
switch can be used to manually disable the airbags (d = 1). An output e indicates that the airbag is
enabled (e = 1).
A designer specifies the system as: e = hwd' (heartbeat detected, and enabled if weight over 60, and
not manually disabled).
PARTICIPATION
ACTIVITY 1.6.3:
Airbag example.
1) What is h if a heartbeat is
detected?
©zyBooks 10/22/21 16:48 1048321
Michael Relly
SDMIRAMARCISC211MoezziFall2021
Check Show answer
Ch k Sh
https://learn.zybooks.com/zybook/SDMIRAMARCISC211MoezziFall2021/chapter/1/print 28/75
10/22/21, 4:50 PM CISC 211: Computer Organization and Assembly Language home
Check Show answer
3) What is e if h = 1, w = 1, and d = 1?
SDMIRAMARCISC211MoezziFall2021
system, the airbag deployment
system. That system has another
input to detect a hard front-end
collision (c = 1). That system's
output a should be 1 if a hard
collision is detected and the airbag
is enabled. Write the equation for a.
o = h'w'd
©zyBooks 10/22/21 16:48 1048321
SDMIRAMARCISC211MoezziFall2021
(Note: Answer by re-typing one of
the equations provided)
https://learn.zybooks.com/zybook/SDMIRAMARCISC211MoezziFall2021/chapter/1/print 29/75
10/22/21, 4:50 PM CISC 211: Computer Organization and Assembly Language home
Airplanes typically have a lighted sign to let passengers know if at least one of several lavatories
(bathrooms) is available, so that passengers can choose to stay seated until a bathroom becomes
available. A designer may think about the logic as follows: If all doors are locked, the sign should be
off, otherwise the sign should be on. From that thought, the designer may create an equation.
PARTICIPATION
1.6.4:
Aircraft lavatory sign. Michael Relly
ACTIVITY
SDMIRAMARCISC211MoezziFall2021
Animation captions:
1. An airplane has a "Lavatory available" sign that should light if at least one of three lavatories is
available. Each lavatory door has a locked signal (1 when locked).
2. A designer thinks: If all three doors are locked (AND), sign should be off. Otherwise (NOT), sign
should be on. The designer creates Boolean equation y = (abc)'.
3. The equation is easily converted to a circuit.
PARTICIPATION
ACTIVITY 1.6.5:
Lavatory sign example.
Circuits to equations
©zyBooks 10/22/21 16:48 1048321
A circuit can be converted to an equation. Starting from the inputs, the process replaces
Michael Relly
gates by
terms while moving towards the output, labeling gate outputs along the way. Converting a circuit to
SDMIRAMARCISC211MoezziFall2021
behavior (like an equation) is called analysis.
PARTICIPATION
ACTIVITY 1.6.6:
Circuit to equation.
Animation captions:
https://learn.zybooks.com/zybook/SDMIRAMARCISC211MoezziFall2021/chapter/1/print 30/75
10/22/21, 4:50 PM CISC 211: Computer Organization and Assembly Language home
A circuit whose output value is determined solely by the present combination of input values is called
a combinational circuit. A combinational circuit is also called combinational logic.
©zyBooks 10/22/21 16:48 1048321
Michael Relly
PARTICIPATION
ACTIVITY 1.6.7:
Combinational vs. sequential circuits.
Michael Relly
Sequential SDMIRAMARCISC211MoezziFall2021
CHALLENGE
ACTIVITY 1.6.1:
Convert the equation to a circuit.
Michael Relly
350504.2096642.qx3zqy7
PARTICIPATION
ACTIVITY 1.7.1:
Drawing circuits.
1) Wires connect.
True
False
2) Wires connect.
Michael Relly
False SDMIRAMARCISC211MoezziFall2021
jk'
j'k
https://learn.zybooks.com/zybook/SDMIRAMARCISC211MoezziFall2021/chapter/1/print 32/75
10/22/21, 4:50 PM CISC 211: Computer Organization and Assembly Language home
True
False
©zyBooks 10/22/21 16:48 1048321
Michael Relly
True
SDMIRAMARCISC211MoezziFall2021
False
True
False
The benefit of building circuits from logic gates, rather than directly from transistors, becomes clear
after learning some basic properties of Boolean algebra.
0+1=1 SDMIRAMARCISC211MoezziFall2021
1·1=1
https://learn.zybooks.com/zybook/SDMIRAMARCISC211MoezziFall2021/chapter/1/print 33/75
10/22/21, 4:50 PM CISC 211: Computer Organization and Assembly Language home
PARTICIPATION 1.8.1:
The properties of Boolean algebra are useful to simplify an equation,
ACTIVITY
yielding a simpler circuit: Out-of-bed alarm system.
Animation captions:
1. Goal behavior.
2. Captured equation. ©zyBooks 10/22/21 16:48 1048321
Michael Relly
Applying Boolean algebra properties led to a simpler expression and thus a simpler circuit. Simplifying
expressions is a common use of Boolean algebra.
PARTICIPATION
ACTIVITY 1.8.2:
Simplifying an expression using Boolean algebra.
Original expression
Complement
Identity
Distributive
Reset
Michael Relly
https://learn.zybooks.com/zybook/SDMIRAMARCISC211MoezziFall2021/chapter/1/print 34/75
10/22/21, 4:50 PM CISC 211: Computer Organization and Assembly Language home
a = 1 1 + 1 = 1
©zyBooks 10/22/21 16:48 1048321
a+a=a
0 + 0 = 0 1 + 1 = 1
Michael Relly
Idempotent
aa = a 0 · 0 = 0 1SDMIRAMARCISC211MoezziFall2021
·1=1
PARTICIPATION
ACTIVITY 1.8.3:
Simplifying an expression using more Boolean algebra properties.
(e + 1)(e'f + fe' + d') e'f + d' (1)(e'f + fe' + d') e'f + fe' + d' e'f + e'f + d'
Original expression
Null elements
Identity
Idempotent
Reset
CHALLENGE
ACTIVITY 1.8.1:
Simplify the equation using Boolean algebra properties.
©zyBooks 10/22/21 16:48 1048321
Michael Relly
350504.2096642.qx3zqy7
https://learn.zybooks.com/zybook/SDMIRAMARCISC211MoezziFall2021/chapter/1/print 35/75
10/22/21, 4:50 PM CISC 211: Computer Organization and Assembly Language home
A designer may initially write an equation that matches his/her natural thinking of desired behavior, as
below. The designer can then apply Boolean algebra properties to obtain a simpler equation (and thus
a simpler eventual circuit).
PARTICIPATION 1.8.4:
Simplifying an equation using Boolean algebra properties: Motion-
ACTIVITY
sensing light.
©zyBooks 10/22/21 16:48 1048321
SDMIRAMARCISC211MoezziFall2021
1. Inputs are m (motion) and t (test). Output is i (illuminate). Goal: Illuminate if motion and not
test, or if test and no motion, or if test and motion.
2. The goal behavior can be directly captured as an equation: i = mt' + tm' + tm.
3. The equation can be simplified using Boolean algebra properties. To begin, commutative (for
AND) yields i = mt' + m't + mt.
4. Next, idempotent yields i = mt' + m't + mt + mt. This equation looks longer, but will enable
simplifications.
5. Commutative yields i = mt' + mt + m't + mt.
Then distributive (twice) yields i = m(t' + t) + (m' +
m)t.
6. Complement (twice) yields i = m(1) + (1)t.
Commutative (for AND) yields i = m(1) + t(1).
7. Finally, identity (twice) yields i = m + t. A circuit derived from that equation will be simpler than
for original equation of i = mt' + tm' + tm.
PARTICIPATION
ACTIVITY 1.8.5:
Motion-sensing light example.
rearranged
eliminated
https://learn.zybooks.com/zybook/SDMIRAMARCISC211MoezziFall2021/chapter/1/print 36/75
10/22/21, 4:50 PM CISC 211: Computer Organization and Assembly Language home
decreased
did not change
increased
Michael Relly
2
SDMIRAMARCISC211MoezziFall2021
3
a(b + c) = ab + ac
(AND) Same as multiplication in regular
Distributive (AND)
Distributive (OR)
c) (OR) Different from regular algebra
ab = ba
Variable order does not matter. Good
Commutative
a+b=b+a practice is to sort variables alphabetically.
(ab)c = a(bc)
a's value 0
Michael Relly
SDMIRAMARCISC211MoezziFall2021
a+0=a Identity (OR) (OR) Result of a + 0 is always a's value 0 +
0 = 0 1 + 0 = 1
a·0=0
Null elements Result doesn't depend on the value of a.
a+1=1
a+a=a
(0')' = (1)' = 0
(a')' = a Involution
(1')' = (0)' = 1
Michael Relly
SDMIRAMARCISC211MoezziFall2021
PARTICIPATION
ACTIVITY 1.8.6:
Basic properties of Boolean algebra.
Complement
Identity
CHALLENGE
ACTIVITY 1.8.2:
Simplify the equation using Boolean algebra properties.
https://learn.zybooks.com/zybook/SDMIRAMARCISC211MoezziFall2021/chapter/1/print 38/75
10/22/21, 4:50 PM CISC 211: Computer Organization and Assembly Language home
Michael Relly
SDMIRAMARCISC211MoezziFall2021
Sum-of-products
Circuits are commonly designed by creating a simplified expression in sum-of-products form, then
converting to a simple circuit.
A product term is an ANDing of (one or more) variables, like ab'c. A product term is sometimes called
just a product or just a term. An expression in sum-of-products form consists solely of an ORing of
product terms, like ab'c + ab.
Due to similarities with regular algebra, convention uses the word "product" for AND and "sum" for OR;
hence the name "sum-of-products". But AND is not really multiplication (product), and OR is not really
addition (sum).
PARTICIPATION
ACTIVITY 1.9.1:
Products.
1) abc
Yes
No
2) a'b'cd
Yes
No
Michael Relly
Yes SDMIRAMARCISC211MoezziFall2021
No
4) a
Yes
No
https://learn.zybooks.com/zybook/SDMIRAMARCISC211MoezziFall2021/chapter/1/print 39/75
10/22/21, 4:50 PM CISC 211: Computer Organization and Assembly Language home
PARTICIPATION
ACTIVITY 1.9.2:
Sum-of-products form.
SDMIRAMARCISC211MoezziFall2021
No
2) abc' + c
Yes
No
3) a + c
Yes
No
4) ab
Yes
No
5) a
Yes
No
6) a(b + c)
Yes
No
7) (a + b)(b' + c)
Yes ©zyBooks 10/22/21 16:48 1048321
Michael Relly
No SDMIRAMARCISC211MoezziFall2021
A sum-of-products equation can be easily converted to a circuit, consisting of a column of AND gates
(one gate per product term), followed by an OR gate, which is known as a two-level circuit. (The NOT
https://learn.zybooks.com/zybook/SDMIRAMARCISC211MoezziFall2021/chapter/1/print 40/75
10/22/21, 4:50 PM CISC 211: Computer Organization and Assembly Language home
PARTICIPATION
ACTIVITY 1.9.3:
Converting a sum-of-products equation into a two-level circuit.
Michael Relly
SDMIRAMARCISC211MoezziFall2021
y = fg + e'
y = efg + e'f
y = e'f' + ef
y=f+g
Reset
Circuits are commonly created by multiplying out an initial expression into sum-of-products form, then
creating a two-level circuit.
PARTICIPATION 1.9.4:
Multiplying out an expression to sum-of-products, before creating a
ACTIVITY
circuit.
Animation captions:
1. Goal: Sound alarm (y = 1) if enabled (e = 1) and (door open (d = 1) or window open (c = 1). A
designer first captures the equation y = e(d + c).
2. The designer then multiplies the right side expression into sum-of-products form: y = e(d + c)
= ed + ec.
3. The designer then converts the sum-of-products equation into a two-level
©zyBooks circuit:
10/22/21 16:48AND gates
1048321
for ed and ec, whose outputs are ORed to yield output y. Michael Relly
SDMIRAMARCISC211MoezziFall2021
PARTICIPATION
ACTIVITY 1.9.5:
Multiplying out expressions to convert to sum-of-products form.
https://learn.zybooks.com/zybook/SDMIRAMARCISC211MoezziFall2021/chapter/1/print 41/75
10/22/21, 4:50 PM CISC 211: Computer Organization and Assembly Language home
1) y = a(b + b'c)
y = ab + ?
2) y = c(a + b)
©zyBooks 10/22/21 16:48 1048321
y = ac + ? Michael Relly
SDMIRAMARCISC211MoezziFall2021
3) y = ab(c + d)
y = abc + ?
4) y = ac(b + a)
y = abc + ?
5) y = a + c(b + ab')
y = ? + bc + ab'c
6) y = a'(b + b'c)
y = a'b + ?
SDMIRAMARCISC211MoezziFall2021
7) y = (a' + b)(c + d)
y = a'c + a'd + ?
https://learn.zybooks.com/zybook/SDMIRAMARCISC211MoezziFall2021/chapter/1/print 42/75
10/22/21, 4:50 PM CISC 211: Computer Organization and Assembly Language home
A processor executes computer programs. Various devices (like keyboards or USB ports) surrounding
a processor may request the processor to execute a sub-program on behalf of that device, a request
known as an interrupt. Devices may be in two categories, low-priority and high-priority, and the
processor may disable either category or both. ©zyBooks 10/22/21 16:48 1048321
Michael Relly
SDMIRAMARCISC211MoezziFall2021
Low-priority: keyboard (k = 1), mouse (m = 1), USB port (u = 1). Disable all: p = 1.
High-priority: network interface (n = 1), battery backup (b = 1). Disable all: q = 1.
An interrupt logic component determines whether interrupt requests from devices result in an actual
interrupt to the processor (r = 1).
PARTICIPATION 1.9.6:
Multiplying out an expression into sum-of-products form before
ACTIVITY
creating a circuit: An interrupt logic example.
Animation captions:
1. This processor can be interrupted by any of multiple devices: a keyboard, mouse, USB port,
interface controller, or battery backup. The latter two have high priority.
2. The processor can disable all the low-priority devices by setting p = 1.
The processor can
disable all the high-priority devices by setting q = 1.
3. Interrupt logic controls whether the processor is interrupted. A designer captures the desired
behavior as equation: r = (k + m + u)p' + (n + b)q'.
4. The designer converts to sum-of-products form, r = kp' + mp' + up' + nq' + bq', and then
creates a two-level circuit, consisting of 5 AND gates and an OR gate.
PARTICIPATION
ACTIVITY 1.9.7:
Interrupt logic example.
Michael Relly
SDMIRAMARCISC211MoezziFall2021
Check Show answer
Ch k Sh
https://learn.zybooks.com/zybook/SDMIRAMARCISC211MoezziFall2021/chapter/1/print 43/75
10/22/21, 4:50 PM CISC 211: Computer Organization and Assembly Language home
Check Show answer
Michael Relly
CHALLENGE
ACTIVITY 1.9.1:
Convert to sum-of-products form.
350504.2096642.qx3zqy7
SDMIRAMARCISC211MoezziFall2021
Different equations may represent the same function. Ex: y = a + b, and y = a + a'b, represent the same
function. The sameness is not obvious, so a standard equation form is desirable.
https://learn.zybooks.com/zybook/SDMIRAMARCISC211MoezziFall2021/chapter/1/print 44/75
10/22/21, 4:50 PM CISC 211: Computer Organization and Assembly Language home
A minterm is a product term having exactly one literal for every function variable.
A literal is a variable appearance, in true or complemented form, in an expression, such as b, or
b'.
For a function of variables a and b, y = ab + a'b + a'b' is in sum-of-minterms form, but y = ab + a' is not
because the second product term is missing variable b.
ACTIVITY 1.10.1:
Minterms. Michael Relly
SDMIRAMARCISC211MoezziFall2021
Given a function of a, b, c.
4) Is bc' a minterm?
Yes
No
5) Is ab'c a minterm?
Yes
No
SDMIRAMARCISC211MoezziFall2021
No
PARTICIPATION
ACTIVITY 1.10.2:
Sum-of-minterms form.
1) y = abc + a'b'c'
Yes
No
2) y = ab + abc
Yes
©zyBooks 10/22/21 16:48 1048321
No Michael Relly
SDMIRAMARCISC211MoezziFall2021
3) y = a(b + c)
Yes
No
4) y = abc
Yes
No
5) y = ac
Yes
No
6) y = abc + cb'a
Yes
No
7) y = abc + abc
Yes
No
Transforming to sum-of-minterms
©zyBooks 10/22/21 16:48 1048321
y = ab + a'(b + b')
An equation not initially in sum-of-products form can first be multiplied out. Thus, transforming an
equation to sum-of-minterms is done by:
Michael Relly
PARTICIPATION SDMIRAMARCISC211MoezziFall2021
ACTIVITY 1.10.3:
Transforming to sum-of-minterms.
Animation captions:
1. Given y = a(b + bc'), the first step is to multiply out into sum-of-products form (if not already in
sum-of-products form), yielding y = ab + abc'.
2. The next step is to transform each term into a minterm. For ab, the identity property can be
used to obtain ab(1).
3. The complement property can be used to transform ab(1) to ab(c + c').
4. ab(c + c') can be multiplied out to become abc + abc', both of which are minterms.
5. Duplicate terms should be removed. So y = abc + abc' + abc' becomes y = abc + abc'. The
equation is now in sum-of-minterms form.
PARTICIPATION 1.10.4:
Transforming an equation already in sum-of-products form to sum-
ACTIVITY
of-minterms.
Original equation
(1)
©zyBooks 10/22/21 16:48 1048321
SDMIRAMARCISC211MoezziFall2021
(3)
Reset
PARTICIPATION
1 10 5 T f i l i
https://learn.zybooks.com/zybook/SDMIRAMARCISC211MoezziFall2021/chapter/1/print f i f 47/75
10/22/21, 4:50 PM CISC 211: Computer Organization and Assembly Language home
ACTIVITY 1.10.5:
Transforming a general equation to sum-of-minterms form.
y = a'bc + abc' + abc y = ab(c + c') + bc(a + a') y = ab(1) + bc(1) y = (a + c)b
Michael Relly
SDMIRAMARCISC211MoezziFall2021
Original equation
(1)
(2)
(3)
(4)
(5)
Reset
Note: Transforming directly from ab to ab(c + c') is a common shortcut. The intermediate step, ab to
ab(1), is often omitted.
PARTICIPATION
ACTIVITY 1.10.6:
Transforming to sum-of-minterms form.
Given variables a, b, c. Transform each equation to sum-of-minterms form. Type only the ?
part
1) y = a'b
y = a'b(1)
y = a'b(c + c')
Michael Relly
y = a'bc + ? SDMIRAMARCISC211MoezziFall2021
2) y = ac
y = ac(1)
https://learn.zybooks.com/zybook/SDMIRAMARCISC211MoezziFall2021/chapter/1/print 48/75
10/22/21, 4:50 PM CISC 211: Computer Organization and Assembly Language home
y = ac(b + ?)
3) y = a'c'
Michael Relly
SDMIRAMARCISC211MoezziFall2021
Because sum-of-minterms is canonical, one can determine whether two equations represent the
same function by transforming each to sum-of-minterms equations and checking if the equations are
the same.
PARTICIPATION 1.10.7:
Transforming to sum-of-minterms to check if equations represent
ACTIVITY
same function: Person-waiting example.
Animation captions:
A compact function notation represents each minterm by a number. Given that ab'c is 1 if a/b/c are
Michael Relly
1/0/1, that minterm is represented as m5 because 101 in binary is 5 in decimal. A 3-variable function
SDMIRAMARCISC211MoezziFall2021
thus has minterms numbered 0 to 7. Ex: f(a,b,c) = a'b'c' + ab'c + abc can be written compactly as
f(a,b,c) = m0 + m5 + m7. An alternative notation is f(a,b,c) = ∑(0, 5, 7).
PARTICIPATION
ACTIVITY 1.10.8:
Numbered minterms.
https://learn.zybooks.com/zybook/SDMIRAMARCISC211MoezziFall2021/chapter/1/print 49/75
10/22/21, 4:50 PM CISC 211: Computer Organization and Assembly Language home
m6 m1 m2 m5 m0
a'bc'
©zyBooks 10/22/21 16:48 1048321
Michael Relly
a'b'c' SDMIRAMARCISC211MoezziFall2021
a'b'c
ab'c
abc'
Reset
PARTICIPATION
ACTIVITY 1.10.9:
Compact function notation.
The compact form makes comparing equations for equivalence especially easy.
Michael Relly
SDMIRAMARCISC211MoezziFall2021
CHALLENGE
ACTIVITY 1.10.1:
Transform the equation to a sum-of-minterms.
Steps to expand:
https://learn.zybooks.com/zybook/SDMIRAMARCISC211MoezziFall2021/chapter/1/print 50/75
10/22/21, 4:50 PM CISC 211: Computer Organization and Assembly Language home
SDMIRAMARCISC211MoezziFall2021
CHALLENGE
ACTIVITY 1.10.2:
Convert to sum-of-minterms form.
350504.2096642.qx3zqy7
Humans have ten fingers so humans use a base ten number system. Ex: 452 means 4·102 + 5·101 +
2·100. Digital systems have two-valued signals (high, low) so digital systems use a base two number
system. Ex: 1101 means 1·23 + 1·22 + 0·21 + 1·20. A number in base ten is called a decimal number
(from Latin "decem" meaning ten).
Base ten has ten symbols for a digit: 0, 1, ..., 9. When counting up and reaching 9, the digit resets to 0
and a 1 carries to the next digit. Ex: 008, 009, 010, 011, or 098, 099, 100, 101. Base two has only two
symbols for a digit: 0 and 1. So counting up results in frequent carries. Ex: 000, 001, 010, 011, 100,
101, 110, 111. A number in base two is called a binary number (from Latin "bini" meaning two
together).
PARTICIPATION
ACTIVITY 1.11.1:
Counting up.
SDMIRAMARCISC211MoezziFall2021
1. Quantities can be shown directly, like *, **, ***, ..., **********.
2. In base ten, the first digit goes up to 9, then that digit is reset to 0 and a 1 carries to the next
digit. So 9 is followed by 10.
3. If the carry is to a digit that is already 9, then that digit is also reset to 0 and a 1 carries to the
next digit. So 99 is followed by100.
https://learn.zybooks.com/zybook/SDMIRAMARCISC211MoezziFall2021/chapter/1/print 51/75
10/22/21, 4:50 PM CISC 211: Computer Organization and Assembly Language home
4. In base two, the first digit goes up to 1, then the digit is reset to 0, and a 1 carries to next digit.
So 1 is followed by 10.
5. If a carry is to a digit that is already 1, then that digit is also reset to 0 and a 1 carries to next
digit. So 11 is followed by 100.
6. In binary, resets and carries happen every other count: 101, 110 (reset, carry), 111, 1000 (reset,
carry and reset, carry and reset, carry), 1001, 1010 (reset, carry), 1011, etc.
Michael Relly
PARTICIPATION
1.11.2:
Counting in binary. SDMIRAMARCISC211MoezziFall2021
ACTIVITY
What binary number comes next? In explanations, "first digit" is the rightmost digit.
1) 000
001
100
2) 001
011
010
3) 011
010
100
4) 100
101
001
5) 101
110
111
Michael Relly
CHALLENGE SDMIRAMARCISC211MoezziFall2021
ACTIVITY 1.11.1:
Counting up with 3 bits.
350504.2096642.qx3zqy7
https://learn.zybooks.com/zybook/SDMIRAMARCISC211MoezziFall2021/chapter/1/print 52/75
10/22/21, 4:50 PM CISC 211: Computer Organization and Assembly Language home
Digital designers benefit from being able to quickly convert between binary and decimal numbers.
Given a binary number, each digit's weight is summed to form a decimal number. Ex: 1101 = 1·23 +
1·22 + 0·21 + 1·20 = 8 + 4 + 0 + 1 = 13.
PARTICIPATION
ACTIVITY 1.11.3:
Binary to decimal conversion tool. ©zyBooks 10/22/21 16:48 1048321
Michael Relly
SDMIRAMARCISC211MoezziFall2021
0 0 0 0
0
8 4 2 1 (decimal value)
23 22 21 20
PARTICIPATION
ACTIVITY 1.11.4:
Binary to decimal.
Convert from binary to decimal. Type answer without any leading 0's. Four-bit binary digit
weights: 8, 4, 2, 1.
1) 0001
2) 0010
3) 0111
Michael Relly
4) 1001 SDMIRAMARCISC211MoezziFall2021
5) 1111
https://learn.zybooks.com/zybook/SDMIRAMARCISC211MoezziFall2021/chapter/1/print 53/75
10/22/21, 4:50 PM CISC 211: Computer Organization and Assembly Language home
Given a decimal number, starting from the leftmost binary digit (greater thanMichael
the decimal
Relly
number), a 1
is placed in each digit as long as the resulting binary number doesn't exceed the decimal number.
SDMIRAMARCISC211MoezziFall2021
1... 8 is less
1001 9 is equal
PARTICIPATION
ACTIVITY 1.11.5:
Decimal to four-bit binary.
Convert from decimal to binary. Type a four-bit answer: 0101, not 101. Four-bit binary digit
weights: 8, 4, 2, 1.
1) 3
Michael Relly
SDMIRAMARCISC211MoezziFall2021
3) 5
4) 13
Michael Relly
SDMIRAMARCISC211MoezziFall2021
Seen on a t-shirt
A Boolean function can be represented in various ways, like an equation, a circuit, or a truth table. A
truth table lists all possible variable value combinations on the left, and lists the function's value for
each combination on the right. Each row corresponds to a possible minterm. Generating all
combinations is done by counting up in binary.
Note: Minterms are sometimes written as m0, m1, ..., indicating their row's decimal equivalent: a'b'c' is
000 or m0, a'b'c is 001 or m1, etc..
A function with N variables will have a truth table with 2N rows:
Michael Relly
PARTICIPATION
ACTIVITY 1.12.1:
Truth table basics.
Animation captions:
https://learn.zybooks.com/zybook/SDMIRAMARCISC211MoezziFall2021/chapter/1/print 55/75
10/22/21, 4:50 PM CISC 211: Computer Organization and Assembly Language home
1. A truth table lists on the left all possible variable value combinations (meaning all possible
minterms). For a, b, possible combinations are 00, 01, 10, 11.
2. Note that the combinations are obtained by counting up in binary. Each row corresponds to a
minterm.
3. For a given function, a truth table lists on the right for which rows (variable value
combinations) that the output should be 1. Other rows get 0's.
4. A 3-input function's truth table will have 2 3 or 8 rows. A 4-input would have 2 4 or 16 rows. And
©zyBooks 10/22/21 16:48 1048321
SDMIRAMARCISC211MoezziFall2021
PARTICIPATION
ACTIVITY 1.12.2:
2-input truth table.
SDMIRAMARCISC211MoezziFall2021
ab'
https://learn.zybooks.com/zybook/SDMIRAMARCISC211MoezziFall2021/chapter/1/print 56/75
10/22/21, 4:50 PM CISC 211: Computer Organization and Assembly Language home
Michael Relly
PARTICIPATION
ACTIVITY 1.12.3:
Converting a truth table to an equation, and then a circuit.
Animation captions:
PARTICIPATION
ACTIVITY 1.12.4:
Converting a truth table to an equation.
Michael Relly
3) y = ?
SDMIRAMARCISC211MoezziFall2021
PARTICIPATION
ACTIVITY 1.12.5:
Converting a truth table to an equation and then circuit.
ab y
00 0
01 1
10 1
11 0
1
2
3
https://learn.zybooks.com/zybook/SDMIRAMARCISC211MoezziFall2021/chapter/1/print 58/75
10/22/21, 4:50 PM CISC 211: Computer Organization and Assembly Language home
Some functions are more easily captured as a truth table, others as an equation.
PARTICIPATION 1.12.6:
Some functions are more easily captured as a truth table, others as
ACTIVITY
an equation.
Animation captions:
1. Three parking spaces exist (a, b, c). A parked car causes the space's variable to be 1.
2. The function "y is 1 if two cars are parked adjacently" is easily captured as a truth table. The
designer looks for rows with two adjacent 1's, setting y to 1. Other rows get 0.
3. An equation can be derived by summing the minterms for the rows with 1's. y = a'bc + abc' +
abc
4. In contrast, the function "z is 1 if a car is parked on an edge" is more easily captured as an
equation: z = a + c.
PARTICIPATION
ACTIVITY 1.12.7:
Capturing behavior as a truth table or equation.
©zyBooks 10/22/21 16:48 1048321
Michael Relly
https://learn.zybooks.com/zybook/SDMIRAMARCISC211MoezziFall2021/chapter/1/print 59/75
10/22/21, 4:50 PM CISC 211: Computer Organization and Assembly Language home
Truth table
Equation
PARTICIPATION
ACTIVITY 1.12.8:
Windows-open detector: A truth table easily captures the behavior.
Animation captions:
4. The designer has captured the function. The designer then converts Michael
to sum-of-minterms
Relly
by
SDMIRAMARCISC211MoezziFall2021
including any minterm for a row with a 1: y = a'bc + ab'c + abc' + abc.
5. During operation, y will be 1 if two or more windows are open, corresponding to a table row
with a 1 and to a minterm in the equation. Fewer open corresponds to a 0 row.
PARTICIPATION
ACTIVITY 1.12.9:
Windows-open example.
https://learn.zybooks.com/zybook/SDMIRAMARCISC211MoezziFall2021/chapter/1/print 60/75
10/22/21, 4:50 PM CISC 211: Computer Organization and Assembly Language home
4
8
SDMIRAMARCISC211MoezziFall2021
CHALLENGE
ACTIVITY 1.12.1:
Convert the table to a sum-of-minterms.
350504.2096642.qx3zqy7
https://learn.zybooks.com/zybook/SDMIRAMARCISC211MoezziFall2021/chapter/1/print 61/75
10/22/21, 4:50 PM CISC 211: Computer Organization and Assembly Language home
SDMIRAMARCISC211MoezziFall2021
A sum term is an ORing of (one or more) variables, like (a + b' + c'). A sum term is sometimes called
just a term. An expression in product-of-sums (POS) form consists solely of an ANDing of sum
terms, like (a + b' + c)(a + b).
PARTICIPATION
ACTIVITY 1.13.1:
Sum terms and product-of-sum.
Michael Relly
https://learn.zybooks.com/zybook/SDMIRAMARCISC211MoezziFall2021/chapter/1/print 62/75
10/22/21, 4:50 PM CISC 211: Computer Organization and Assembly Language home
Yes
No
Product-of-maxterms
A maxterm is a sum term that has all of the function variables exactly once in either true or
complemented form. Product-of-maxterms form is a canonical form ©zyBooks 10/22/21 equation
of a Boolean 16:48 1048321
where
Michael Relly
the right-side expression is a product-of-sum with each sum consisting only of maxterms.
SDMIRAMARCISC211MoezziFall2021
PARTICIPATION
ACTIVITY 1.13.2:
Truth table to product-of-maxterms.
Animation content:
undefined
Animation captions:
PARTICIPATION
ACTIVITY 1.13.3:
Maxterms and product of maxterms.
Given a function of a, b, c.
2) Is a(b + c) a maxterm?
©zyBooks 10/22/21 16:48 1048321
SDMIRAMARCISC211MoezziFall2021
No
Michael Relly
Yes
SDMIRAMARCISC211MoezziFall2021
No
PARTICIPATION
ACTIVITY 1.13.4:
Converting from POS to SOP form.
Animation content:
undefined
Animation captions:
PARTICIPATION
ACTIVITY 1.13.5:
POS to SOP conversion.
Convert the equations from POS to SOP form. ©zyBooks 10/22/21 16:48 1048321
Michael Relly
SDMIRAMARCISC211MoezziFall2021
1) y = (a' + b)(a + c)
a' + bc
a+b+c
a'c + ab + bc
a'b' + ab
ab' + a'b
a' + b + a + b'
3) y = (a' + c')(a + c)
1
©zyBooks 10/22/21 16:48 1048321
SDMIRAMARCISC211MoezziFall2021
ac + a'c'
CHALLENGE
ACTIVITY 1.13.1:
Product-of-maxterms form.
350504.2096642.qx3zqy7
Capture: For combinational circuits, designers commonly capture behavior as truth tables or
equations.
Convert: A truth table can be converted to an equation first by ORing the minterms of each table row
having an output 1. An equation can be converted to a circuit by multiplying out to product terms (if
not already), with each term becoming an AND gate, followed by one OR gate.
©zyBooks 10/22/21 16:48 1048321
Michael Relly
SDMIRAMARCISC211MoezziFall2021
PARTICIPATION
ACTIVITY 1.14.1:
Top-down design: Capture, convert.
https://learn.zybooks.com/zybook/SDMIRAMARCISC211MoezziFall2021/chapter/1/print 65/75
10/22/21, 4:50 PM CISC 211: Computer Organization and Assembly Language home
(A)
Michael Relly
(C) SDMIRAMARCISC211MoezziFall2021
(D)
Reset
A particular medical device delivers radiation to a patient to treat cancer. The device has two radiation
strength levels, low (s = 0) and high (s = 1). The device has two radiation durations: short (d = 0) and
long (d = 1). The device normally is used to deliver high strength for short duration, or low strength for
long duration. A hardware safety component can be enabled (e = 1) that detects high strength for long
duration and automatically turns off the device after a minute, but on rare occasion a radiation
therapist may disable that component. To prevent accidents, a designer wishes to sound an alarm if
the device is ever configured to high strength for long duration with the safety off.
PARTICIPATION
ACTIVITY 1.14.2:
Medical radiation therapy device: Warning system.
Animation captions:
1. A therapist can configure a radiation delivery device for high strength (s = 1) or low, and for
long duration (d = 1) or short. A hardware safety component can be enabled (e = 1).
2. The designer wishes to sound the alarm if strength is high, duration is long,
and the safety is
off.
3. Capture: For this system, the designer decides that an equation most easily captures the
behavior: y = sde' ©zyBooks 10/22/21 16:48 1048321
4. Convert: The designer can then convert the equation to a circuit. Michael Relly
SDMIRAMARCISC211MoezziFall2021
PARTICIPATION
ACTIVITY 1.14.3:
Radiation delivery device.
1)
https://learn.zybooks.com/zybook/SDMIRAMARCISC211MoezziFall2021/chapter/1/print 66/75
10/22/21, 4:50 PM CISC 211: Computer Organization and Assembly Language home
2) A truth table would have had how ©zyBooks 10/22/21 16:48 1048321
SDMIRAMARCISC211MoezziFall2021
Exploring further:
Therac-25 : A well-known radiation therapy device with a bug that caused patient
injury/death. (Source: Wikipedia)
A car's seat weight sensor provides three values a, b, c, to a system, indicating an object's
Michael Relly
relative
SDMIRAMARCISC211MoezziFall2021
weight in binary, ranging from 000 to 111 (heaviest). A designer wishes to design a "weight threshold"
system that activates an airbag system (y = 1) if the weight is 101 (5) or more. For this system, the
designer chooses to capture desired behavior with a truth table, then converts to a circuit.
PARTICIPATION
ACTIVITY 1.14.4:
Weight threshold system.
https://learn.zybooks.com/zybook/SDMIRAMARCISC211MoezziFall2021/chapter/1/print 67/75
10/22/21, 4:50 PM CISC 211: Computer Organization and Assembly Language home
Animation captions:
1. A car seat's weight sensor outputs weights in binary ranging from 000 (nobody seated) to 111
(heavy person seated), on signals a, b, c.
2. A designer wishes to design a system that sets y = 1 only if the weight is 5 (101) or more.
3. For this behavior, the Capture task is best done using a truth table. The designer puts a 1 in
the y column for rows 101 (5) and higher. The other rows get 0.
©zyBooks 10/22/21 16:48 1048321
SDMIRAMARCISC211MoezziFall2021
PARTICIPATION
ACTIVITY 1.14.5:
Weight threshold system.
Some systems are more prone to errors due to complexity or noise. And, some systems cannot
tolerate errors. Ex: Spacecraft have complex control systems, are prone to errors due to
noise/vibrations/heat, and may crash or explode if digital circuit outputs are erroneous. Such systems
©zyBooks 10/22/21 16:48 1048321
often have three independent calculations of output, and then use a circuit to take aRelly
Michael majority
vote, an
arrangement known as triple modular redundancy. SDMIRAMARCISC211MoezziFall2021
PARTICIPATION
ACTIVITY 1.14.6:
Majority voter circuit.
Animation captions:
https://learn.zybooks.com/zybook/SDMIRAMARCISC211MoezziFall2021/chapter/1/print 68/75
10/22/21, 4:50 PM CISC 211: Computer Organization and Assembly Language home
1. Some systems like spacecraft may be prone to errors due to complexity and electrical noise.
And, errors may have disastrous results.
2. Thus, designers may build three versions of the same component, such as one that
opens/closes a fuel valve. Ideally all three always output the same value, but sometimes they
don't.
3. A majority voter circuit outputs the value that occurs most. A designer decides to capture as a
truth table. Three 0's yields 0. Two 0's and a 1 yields 0. Likewise for the rest.
©zyBooks 10/22/21 16:48 1048321
4. The designer converts the truth table to an equation and then gates.Michael Relly
SDMIRAMARCISC211MoezziFall2021
PARTICIPATION
ACTIVITY 1.14.7:
Majority voter circuit.
SDMIRAMARCISC211MoezziFall2021
always different
usually the same
Exploring further:
Michael Relly
SDMIRAMARCISC211MoezziFall2021
Studying digital design is also important for professionals who may build embedded systems, like
computer scientists, electrical and computer engineers, mechanical engineers, biomedical engineers,
physicists, and more. An embedded system is a computing system embedded within another device
like an automobile, an electronic book reader or music player, a robot, a medical device, a home
security system, and much more. Hundreds of times more embedded systems exist than traditional
computers. As digital circuit chips continue to shrink, become more powerful, and reduce in cost,
previously-unimaginable exciting embedded system inventions continue to be unveiled, like
eyeglasses that a user can talk to and get instant information displayed in the lenses, like self-driving
cars, or like ingestible computerized pills that deliver time-released medicines or that measure internal
©zyBooks 10/22/21 16:48 1048321
body data—all of which exist today. To meet tight constraints on size, performance, power, or cost,
Michael Relly
embedded systems often use various combinations of microprocessors and custom digital circuits.
SDMIRAMARCISC211MoezziFall2021
https://learn.zybooks.com/zybook/SDMIRAMARCISC211MoezziFall2021/chapter/1/print 70/75
10/22/21, 4:50 PM CISC 211: Computer Organization and Assembly Language home
PARTICIPATION
ACTIVITY 1.15.1:
Why digital design.
Which of the following are likely to be true, based on the above discussion?
Michael Relly
SDMIRAMARCISC211MoezziFall2021
True
False
https://learn.zybooks.com/zybook/SDMIRAMARCISC211MoezziFall2021/chapter/1/print 71/75
10/22/21, 4:50 PM CISC 211: Computer Organization and Assembly Language home
Michael Relly
Many combinational circuits have multiple outputs for the same inputs. Each output can be treated as
a unique function. For a truth table, each output becomes a new column. For equations, each output
is a unique equation.
PARTICIPATION
ACTIVITY 1.16.1:
Multiple outputs: This circuit has three inputs and two outputs.
Animation content:
undefined
Animation captions:
1. Given three inputs a, b, c, this circuit should output the number of 1's. Ex: 000 has zero 1's. 010
has one 1, as does 100. 110 has two 1's.
2. The number of 1's can be represented in binary using two variables y, z.
3. A designer treats y as a unique function of inputs a, b, c, so derives an equation for y. Likewise,
the designer derives an equation for z.
4. The designer then designs a circuit for each output. Each output has 4 AND gates and 1 OR
gate.
PARTICIPATION
ACTIVITY 1.16.2:
Multiple output circuits. ©zyBooks 10/22/21 16:48 1048321
Michael Relly
SDMIRAMARCISC211MoezziFall2021
Consider the example above.
Michael Relly
A 7-segment display is a common display device having 7 light segments that can be lit in different
patterns to represent numbers 0-9 and some letters too. ©zyBooks 10/22/21 16:48 1048321
Michael Relly
SDMIRAMARCISC211MoezziFall2021
PARTICIPATION 1.16.3:
7-segment display, and use for displaying a 2-bit binary number as a
ACTIVITY
decimal number.
Animation captions:
https://learn.zybooks.com/zybook/SDMIRAMARCISC211MoezziFall2021/chapter/1/print 73/75
10/22/21, 4:50 PM CISC 211: Computer Organization and Assembly Language home
Michael Relly
SDMIRAMARCISC211MoezziFall2021
PARTICIPATION
ACTIVITY 1.16.4:
7-segment display.
SDMIRAMARCISC211MoezziFall2021
https://learn.zybooks.com/zybook/SDMIRAMARCISC211MoezziFall2021/chapter/1/print 74/75
10/22/21, 4:50 PM CISC 211: Computer Organization and Assembly Language home
SDMIRAMARCISC211MoezziFall2021
Michael Relly
SDMIRAMARCISC211MoezziFall2021
https://learn.zybooks.com/zybook/SDMIRAMARCISC211MoezziFall2021/chapter/1/print 75/75