Lec 4
Lec 4
Lec 4
Fall 2020
Lecture 4
Boolean Algebra
01
Agenda
Logic Gates
02
Logic Families
03
Boolean Algebra
Boolean Agenda
Algebra Style
❑ When we learned numbers like 1, 2, 3, we also then learned how to add,
multiply, etc. with them. Boolean Algebra covers operations that we can do
with 0’s and 1’s. Computers do these operations ALL THE TIME and they
are basic building blocks of computation inside your computer program.
• There are three basic operators in Boolean Algebra which are called logical operators or Boolean
operators.
OR - logical addition
Binary
AND – logical multiplication
• The Boolean operators are used to combine Boolean variables and Boolean constants to form
Boolean Expressions.
Basic Boolean
Agendaoperations
Style
There are three basic operations for logical values.
Operation: OR (sum) of AND (product) NOT(complement)
two inputs of two inputs on one input
Expression: x+y xy, or x•y x’ or 𝑥ҧ
❑ Four other derived gates NAND, NOR, XOR, and XNOR are also
used to construct logic functions.
LOGIC GATES (cont.)
Agenda Style
❑ A logic gate takes one or more inputs and only one output is produced.
❑ Logic gates are the building blocks that build most of the digital systems.
❑ It must be understood that there are two different voltages levels that used
to represent the logic `1 ` and logic `0’, which are fed as input to the gates.
❑ Moreover the output, which has the logic `1’ or `0’ values, is represented
x y out x y out
AND
x
A x•y 0 0 0 NOR:x 0 0 1
y NAND y x•y 0 1 1
B 0 1 0
1 0 0 1 0 1
1 1 1 1 1 0
x y out x y out
OR
x x+y 0 0 0 x
y NOR y x+y 0 0 1
0 1 1 0 1 0
1 0 1 1 0 0
1 1 1 1 1 0
Logic Gates(cont.)
Agenda Style
XOR (Exclusive-OR) x y XOR
0 0 0
x xÅ y 0 1 1
y xy+xy 1 0 1
1 1 0
x y XNOR
XNOR (Exclusive-NOR) (Equivalence) 0 0 1
0 1 0
1 0 0
1 1 1
Timing Diagram
Agenda Style
• Timing Diagram is a graph that accurately depicts the relation of
two or more waveforms on a time basis with respect to each other.
❑ NAND and NOR gates less expensive and easier to design which
makes them more popular.
?
Logic Function
Agenda Implementation
Style
Using Switches Switches in parallel => OR
For inputs:
◼ logic 1 is switch closed
◼ logic 0 is switch open
f(x,y,z) = (x + y’)z + x
F = A’ + B•C’ + A’•B’
A F
B
Agenda
Logic Function Style
Implementation
• Example: Logic Using Switches
A
• Light is on (L = 1) for
L(A, B, C, D) = A ( BCത + D)
and off (L = 0), otherwise.
• Useful model for relay circuits and for CMOS gate circuits,
the foundation of current digital logic technology
Logic Families
Logic Families
Agenda Style
Logic families classified based on manufacturing technologies to:
“Diode Logic”(DL)
“Resistor Transistor Logic”(RTL)
– 𝑉𝑐𝑐 : Dc Supply Voltage, 𝐼𝐶𝐶𝐻 , 𝐼𝐶𝐶𝐿 : the supply current for the high and LOW
output respectively
𝐼𝑂𝐿
– fan-out = 𝐼𝐼𝐿
– 𝐼𝑂𝐿 : LOW Level Output Current , 𝐼𝐼𝐿 : LOW Level Input Current
• Example: Determine the number of units loads that 74LS00 (NAND gate)
can derive if 𝐼𝑂𝐿 = 8.0 mA and 𝐼𝐼𝐿 = 0.4 mA
– Fan-out = 8 / 0.4 = 20
Thank you