Professional Documents
Culture Documents
Lecture 1 - Introductory Concepts
Lecture 1 - Introductory Concepts
Digital Design
g
Spring 2023
LECTURE 1
• Introductory Concepts
• Digital and Analog Quantities
• Binary Digits
• Logic Levels
• Digital Waveforms
• Basic Logic Functions
• Introduction to Programmable Logic
• Fixed Function Logic Devices
2
What is Digital?
• Ordinary Encounters of the Word Digital….
Analog TV Digital TV
3
Analog vs. Digital Electronics
4
Analog and Digital Quantities
• An analog quantity is one having continuous values.
• Most natural quantities (temperature, time, pressure, distance, sound) that we see
are analog and vary continuously
5
Analog and Digital Quantities
• Take a temperature reading every hour à Now you have sampled values
representing the temperature at discrete points in time.
6
An Analog System
• Amplify the sound so that it can be heard by a large audience à example of analog
electronics.
7
A System Using Digital and Analog Methods
• Many systems use a mix of analog and digital electronics to take advantage of each
technology.
• A typical CD player accepts digital data from the CD drive and converts it to an
analog signal for amplification.
• When the music was originally recorded on the CD, a process using an analog-to-
digital converter (ADC) was used.
8
Mechatronics
• Both digital and analog electronics are used in the control of various mechanical
systems.
9
Advantages of Digital Systems Over Analog Systems
• Reproducibility of the results
• Accuracy of results
• Ease of design: No special math skills needed to visualize the behavior of small
digital (logic) circuits.
• Programmability.
• Speed: A digital logic element can produce an output in less than 10 nanoseconds.
• A bit can have the value of either a 0 or a 1, depending on if the voltage is HIGH or
LOW.
11
Digital Waveforms
• Digital waveforms change between the LOW and HIGH levels.
• A positive going pulse is one that goes from a normally LOW logic level to a HIGH
level and then back again.
12
The Pulse
• If the rising and falling edges are assumed to change in zero time (instantaneously)
à the pulses are ideal
• Actual pulses are not ideal but are described by the rise time, fall time, amplitude,
and other characteristics.
13
Waveform Characteristics
• Most waveforms encountered in digital systems are composed of series of pulses
(called pulse trains) and can be classified as à either periodic or nonperiodic.
• A periodic pulse waveform is one that repeats itself at a fixed interval, called a
period (T). The frequency (f) is the rate at which it repeats itself and is measured in
hertz (Hz).
14
Waveform Characteristics - Example
15
The Clock
• In digital systems, all waveforms are synchronized with a basic timing waveform
called the clock à does not carry information.
• It is a periodic waveform in which each interval between pulses (the period) equals
the time for one bit.
16
Timing Diagrams
• A timing diagram is used to show the relationship between two or more digital
waveforms.
17
Data Transfer
• Data à groups of bits that convey some type of information.
• Binary data must be transferred from one device to another within a digital system
or from one system to another to accomplish a given purpose (RAM à CPU).
18
Data Transfer - Example
19
Basic Logic Functions
• Several propositions, when combined, form propositional, or logic, functions.
• “The light is on” will be true if “The bulb is not burned out” is true and if “The
switch is on” is true à the first statement is true only if the last two statements are
true.
• The term logic is applied to digital circuits used to implement logic functions.
• Three basic logic functions: NOT, AND, and OR à A circuit that performs a specified
logic function is called a logic gate.
20
NOT
• The NOT function changes one logic level to the opposite logic level.
21
AND
• The AND function produces a HIGH output only when all the inputs are HIGH.
22
OR
• The OR function produces a HIGH output when one or more inputs are HIGH.
23
Summary: Three Basic Logic Functions
24
Basic System Functions: Comparison
• AND, OR, and NOT elements can be combined to form various logic functions. A
few examples are given.
25
Basic System Functions: Arithmetic Functions
• Addition is performed by a logic circuit called an adder.
27
Basic System Functions: Decoding
• The decoding function is performed by a logic circuit called a decoder.
28
Basic System Functions: Data Selection
• The multiplexer (mux) is a logic circuit that switches digital data from several input
lines onto a single output line in a specified time sequence.
• The demultiplexer (demux) is a logic circuit that switches digital data from one
input line to several output lines in a specified time sequence.
• Used when data from several sources are to be transmitted over one line to a
distant location and redistributed to several destinations à time division
multiplexing (TDM).
29
Basic System Functions: Storage
• Storage is a function that is required in most digital systems, and its purpose is to
retain binary data for a period of time.
• A storage device can “memorize” a bit or a group of bits and retain the information
as long as necessary.
• A flip-flop is a bistable (two stable states) logic circuit that can store only one bit at
a time, either a 1 or a 0. HIGH output à 1, LOW output à 0.
30
Basic System Functions: Storage
• A register is formed by combining several flip-flops so that groups of bits can be
stored. 8-bit register à 8 flip-flops
• Registers can also be used to shift the bits from one position to another within the
register or out of the register to another circuit à shift registers.
• Magnetic disk memories are used for mass storage of binary data.
• An example is a computer’s internal hard disk.
32
Basic System Functions: Counting
• The basic purpose of a counter is to count events represented by changing levels or
pulses.
• To count, the counter must “remember” the present number so that it can go to
the next proper number in sequence.
33
A Process Control System
• Tablet-bottling system à various logic functions working together!
34
Introduction to Programmable Logic
• Programmable logic à requires both hardware and software.
• One advantage of programmable logic over fixed-function logic à the devices use
much less board space for an equivalent amount of logic.
• Also, a logic design can generally be implemented faster and with less cost with
programmable logic than with fixed-function logic.
35
Programmable Logic Devices (PLDs)
• Many types of programmable logic are available
à small devices that can replace a few fixed-function devices
à complex high-density devices that can replace thousands of fixed-function
devices
36
Simple Programmable Logic Device (SPLD)
• SPLD can replace up to ten fixed-function ICs and their interconnections à for
small-scale applications.
• A PAL (programmable array logic) à a device that can be programmed one time.
37
Complex Programmable Logic Device (CPLD)
• As technology progressed à manufacturers were able to put more than one SPLD
on a single chip and the CPLD was born.
• CPLD à a device containing multiple SPLDs and can replace many fixed-function ICs.
• There can be from 2 to 64 LABs à each LAB is roughly equivalent to one SPLD.
• CPLDs can be used to implement any logic function à decoders, encoders,
multiplexers, demultiplexers, and adders.
• SPLD and CPLD are closely related à CPLD basically contains a number of SPLDs.
39
Field-Programmable Gate Array (FPGA)
• The logic blocks in an FPGA à not as complex as the logic array blocks (LABs) in a
CPLD, but generally there are many more of them.
• Large FPGAs à can have tens of thousands of logic blocks in addition to memory
and other resources
• A typical FPGA ball-grid array package à can have over 1000 input and output pins.
40
The Programming Process
• An SPLD, CPLD, or FPGA à can be thought of as a “blank slate” on which you
implement a specified circuit or system design using a certain process.
• Digital systems have incorporated ICs for many years à because of their small size,
high reliability, low cost, and low power consumption.
42
Integrated Circuit (IC)
• Integrated circuit (IC) à an electronic circuit that is constructed entirely on a single
small chip of silicon.
• All the components that make up the circuit—transistors, diodes, resistors, and
capacitors—are an integral part of that single chip.
• Two broad categories of digital ICs à fixed-function logic and programmable logic
43
IC Packages
Example of through-hole
mounted configuration
à pins that are inserted
through holes in the PCB
Examples of surface-
mount technology (SMT)
package configurations
à a space saving
alternative
44
Pin Numbering
• All IC packages have a standard format for numbering the pins (leads).
45
Complexity Classifications for Fixed-Function ICs
• Fixed-function digital ICs are classified according to their complexity:
• Medium-scale integration (MSI) à ICs that have from 10 to 100 equivalent gates
on a chip. They include logic functions such as encoders, decoders, counters,
registers, multiplexers, arithmetic circuits, small memories, and others.
• Very large-scale integration (VLSI) à describes ICs with complexities of from more
than 10,000 to 100,000 equivalent gates per chip.
2) Determine the bit sequence represented by this waveform. A bit time is 1 us in this
case. What is the total serial transfer time for the eight bits? What is the total parallel
transfer time?
47
Lecture 1 – Home Study
3) Name the logic function of each block based on your observation of the inputs and
outputs.
48