You are on page 1of 27

Digital Basics

Page 1 of 2 Copyright 2010., Kacper Technologies Pvt Ltd. All Rights Reserved
Basic Review

Digital Electronics makes use of 2 states:


• Logic High, or ―1‖
• Logic Low, or ―0‖

Page 2 of 2 Copyright 2010., Kacper Technologies Pvt Ltd. All Rights Reserved
Theorems

Page 2 of 2 Copyright 2010., Kacper Technologies Pvt Ltd. All Rights Reserved
More Theorems

Page 2 of 2 Copyright 2010., Kacper Technologies Pvt Ltd. All Rights Reserved
Basic Review

There are 3 basic digital gates:

• AND

• OR

• NOT

Page 2 of 2 Copyright 2010., Kacper Technologies Pvt Ltd. All Rights Reserved
Basic Review
AND, where ALL inputs must be “1”
for the output to be “1”
OR, where ANY of the inputs can
be “1” for the output to be “1”

NOT (or the Inverter) where


the output is the opposite
(compliment) of the input.

Page 2 of 2 Copyright 2010., Kacper Technologies Pvt Ltd. All Rights Reserved
Combinational Logic

A circuit that utilizes more that 1 logic function has


Combinational Logic.

As an example, if a circuit has an AND gate connected to


an Inverter gate, this circuit has combinational logic.

Page 2 of 2 Copyright 2010., Kacper Technologies Pvt Ltd. All Rights Reserved
Combinational Logic

 How would your describe the output of this


combinational logic circuit?

Page 2 of 2 Copyright 2010., Kacper Technologies Pvt Ltd. All Rights Reserved
NOR Gate
The NOR gate is the combination of the NOT gate with the
OR gate.

The Bubble in front of the gate is an inverter.

Page 2 of 2 Copyright 2010., Kacper Technologies Pvt Ltd. All Rights Reserved
DeMorgan Symbol Equivalence

Bubble-pushing...

Page 2 of 2 Copyright 2010., Kacper Technologies Pvt Ltd. All Rights Reserved
Likewise for OR

Page 2 of 2 Copyright 2010., Kacper Technologies Pvt Ltd. All Rights Reserved
Alternate Gate symbols

Page 2 of 2 Copyright 2010., Kacper Technologies Pvt Ltd. All Rights Reserved
Definitions:
 Literal --- a variable or complemented variable (e.g., X or X')

 product term --- single literal or logical product of literals (e.g., X or X'Y)

 sum term --- single literal or logical sum of literals (e.g. X' or (X' + Y))

 sum-of-products --- logical sum of product terms (e.g. X'Y + Y'Z)

 product-of-sums --- logical product of sum terms (e.g. (X + Y')(Y + Z))

Page 2 of 2 Copyright 2010., Kacper Technologies Pvt Ltd. All Rights Reserved
Definitions:
normal term --- sum term or product term
in which no variable appears more than once
(e.g. X'YZ but not X'YZX or X'YZX'
(X + Y + Z') but not (X + Y + Z' + X))

minterm --- normal product term containing all variables (e.g. XYZ')

maxterm --- normal sum term containing all variables (e.g. (X + Y + Z'))

canonical sum --- sum of minterms from truth table rows producing a 1

canonical product --- product of maxterms from truth table rows


producing a 0

Page 2 of 2 Copyright 2010., Kacper Technologies Pvt Ltd. All Rights Reserved
Karnaugh Map
 A Karnaugh Map is a grid-like representation of a truth table.
 A Karnaugh map has zero and one entries at different positions.
 Each position in a grid corresponds to a truth table entry.
A B C D
0 0 0 0
0 0 1 0
0 1 0 0
0 1 1 1
1 0 0 0
1 0 1 1
1 1 0 1
1 1 1 1
Page 2 of 2 Copyright 2010., Kacper Technologies Pvt Ltd. All Rights Reserved
Example:

F = X’YZ’ + XZ + Y’Z

Page 2 of 2 Copyright 2010., Kacper Technologies Pvt Ltd. All Rights Reserved
Basic Digital Chips
Digital Electronics devices are usually in a chip format.
The chip is identified with a part number or a model
number.
A standard series starts with numbers 74, 4, or 14.
• 7404 is an inverter
• 7408 is an AND
• 7432 is an OR
• 4011B is a NAND

Page 2 of 2 Copyright 2010., Kacper Technologies Pvt Ltd. All Rights Reserved
Truth table vs. minterms & maxterms

Page 2 of 2 Copyright 2010., Kacper Technologies Pvt Ltd. All Rights Reserved
Basic Digital Chips
Digital Electronics devices are usually in a chip format.
The chip is identified with a part number or a model
number.
A standard series starts with numbers 74, 4, or 14.
• 7404 is an inverter
• 7408 is an AND
• 7432 is an OR
• 4011B is a NAND

Page 2 of 2 Copyright 2010., Kacper Technologies Pvt Ltd. All Rights Reserved
Chips
Basic logic chips often come in
14-pin packages.
Pin 14 Pin 8
Package sizes and styles vary.
Pin 1 is indicated with a dot or
half-circle
Numbers are read counter-
clockwise from pin 1 (viewed
from the top)
Pin 1 Pin 7

Page 2 of 2 Copyright 2010., Kacper Technologies Pvt Ltd. All Rights Reserved
Chips – Specification Sheet
Voltage

The voltage and ground pins


must be connected for the
device to function. Check the
specification sheet to make
sure.

Ground

Page 2 of 2 Copyright 2010., Kacper Technologies Pvt Ltd. All Rights Reserved
Chips – Specification Sheet

Page 2 of 2 Copyright 2010., Kacper Technologies Pvt Ltd. All Rights Reserved
Combinational vs. Sequential Logic

Logic Logic
Circuit Circuit

(a) Combinational State

(b) Sequential
Output = f(In) Output = f(In, Previous In)

Page 2 of 2 Copyright 2010., Kacper Technologies Pvt Ltd. All Rights Reserved
Combinational logic
• outputs logical functions of inputs new
outputs appear shortly after changed inputs
(propagation delay)
• no feedback loops
• no clock

Sequential logic
• outputs logical functions of inputs and previous
history of circuit (memory)
• after changed inputs, new outputs appear in
the next clock cycle
• frequent feedback loops

Page 2 of 2 Copyright 2010., Kacper Technologies Pvt Ltd. All Rights Reserved
What is a state machine?
 A state machine is a different way of thinking about
computation
 A state machine has some number of states, and
transitions between those states
 Transitions occur because of inputs
 A ―pure‖ state machine only knows which state it is
in—it has no other memory or knowledge
• This is the kind of state machine you learn about in your
math classes
• When you program a state machine, you don’t have that
restriction

Page 2 of 2 Copyright 2010., Kacper Technologies Pvt Ltd. All Rights Reserved
State machine I/O

State machines are designed to respond to a sequence of


inputs, such as
• The individual characters in a string
• A series of external events
 State machines may produce output (often as a result of
transitions)
 Alternatively, the ―result‖ of a state machine may be the state
it ends up in

Page 2 of 2 Copyright 2010., Kacper Technologies Pvt Ltd. All Rights Reserved
Example
The following machine determines whether the number of As in a
string is even or odd
• Circles represent states; arrows represent transitions
A

start even odd


A

anything but A anything but A

 Inputs are the characters of a string


 The ―output‖ is the resultant state

Page 2 of 2 Copyright 2010., Kacper Technologies Pvt Ltd. All Rights Reserved

You might also like