Lecture 1
Lecture 1
Lecture 1
Introduction to Basic
Digital Logic
logicII
Advantages of Digital Systems/Values
Relatively less sensitive to distortion (noise and losses)
Can be reproduced more accurately
Easier to reconstruct a signal
More storage and transfer options
Can be processed mathematically and logically
Systems are easier to design electrically (fewer voltage
/current issues)
Digital systems can be made small (low current)
logicII
Disadvantages of digital systems/values
Takes time to convert and process values
Can become quite complex with an increase
of significant digits
Often need to convert to / from analog
systems
More sensitive to environmental issues
logicII
Number Systems
Decimal numbering system
•Decimal values are difficult to represent in
electrical systems. Ex: 23 10
Binary Signals
Binary Signals have two basic states:
1(logic “high”, or H, or “on”, or “True”)
0 (logic “low”, or L, or “off”, or “False”)
Ex: 01110012
Hexadecimal
is used to simplify dealing with large binary values
Ex: A6C316
logicII
Basic Digital Logic Functions
3 primary functions (the Basic Gates):
AND
OR
NOT
logicII
Inputs Output
logicII
Timing diagrams for AND gate
logicII
Inputs Output
logicII
Inputs Output
logicII
Combinational logic circuits can be
described with:
English Terms
Boolean equations
Truth Tables
Logic diagrams
Timing Diagrams
logicII
Combinational logic circuits
NAND gate (NOT gate +AND gate.)
logicII
X-OR X-NOR
logicII
Combinational logic vs. Sequential logic
circuits
Combinational Logic:
Output depends only on current input
Has no memory
Sequential Logic:
Output depends not only on current input but also on past input
values, e.g., design a counter
logicII
Synchronous vs. Asynchronous
logicII
Synchronous Sequential Circuits:
Flip flops as state memory
The most important memory element is the flip-flop (FF).
logicII
Flip-flops
The flip-flop is known by other names, including latch and
bistable multivibrator
logicII
SR Latch (NAND version)
1 S’ S’ R’ Q Q’
Q 0
0 0
0 1 1 0 Set
1 0 0 1 Reset
Q’ 1
0 R’ 1 1 1 0 Hold
X Y NAND
00 1
01 1
10 1
11 0
SR Latch (NAND version)
1 S’ S’ R’ Q Q’
Q 0
0 0
0 1 1 0 Set
1 0 0 1 Reset
Q’ 1
1 R’ 1 1 1 0 Hold
0 1 Hold
X Y NAND
00 1
01 1
10 1
11 0
SR Latch (NAND version)
0 S’ S’ R’ Q Q’
Q 1
0 0 1 1 Disallowed
0 1 1 0 Set
1 0 0 1 Reset
Q’ 1
0 R’ 1 1 1 0 Hold
0 1 Hold
X Y NAND
00 1
01 1
10 1
11 0
NOR GATE LATCH
logicII
Clocked Flip-Flop
It is activated by a signal transition; this is indicated
by the presence of a small triangle on the CLK
input.
logicII
Clocked J-K FLIP-FLOP
• Operates like the S-R FF.
• J is set, K is clear.
• When J and K are both high the output is
toggled from whatever state it is in to the
opposite state.
• May be positive going or negative going clock
trigger.
• Has the ability to do everything the S-R FF
does, plus operate in toggle mode.
logicII
logicII
Clocked J-K FLIP-FLOP
logicII
Clocked D FLIP-FLOP
One data input.
The output changes to the value of the input at
either the positive going or negative going clock
trigger.
May be implemented with a J-K FF by tying the J
input to the K input through an inverter.
logicII
Implementation of the D FLIP-FLOP
logicII
Transparent D Latch
• One data input.
• The clock has been replaced by an enable line.
• The output follows the input only when EN is
high.
logicII
Preset-Clear Flip-flop
D FLIP-FLOP with Asynchronous Inputs
•The labels PRE and CLR are used for asynchronous inputs.
logicII
Preset-Clear Flip-flop
logicII
Lecture 1 finished
Thanks