Docsity

Introduction to Digital Logic Design: EECS 303 Lecture 1, Lecture notes of Engineering

Partial preview of the text

Download Introduction to Digital Logic Design: EECS 303 Lecture 1 and more Lecture notes Engineering in PDF only on Docsity!

Lecture 1

Introduction to Digital Logic Design

Hai Zhou

EECS 303

Advanced Digital Design

Fall 2011

Outline

• Class administration

• Digital design methodology

• Representations of Digital Design

• Introduction to Mentor Graphics tools

• READING:

– Chapter 1

– Chapter 2

Class Prerequisites

• EECS 203: Introduction to Computer Engineering

– Need to have basic understanding of digital systems, logic gates,

combinational and sequential logic

• Need to have been exposed to UNIX since we will use the

Mentor Graphics tools on SUN workstations

• Class will form a background for other classes in Computer

Engineering

– EECS 357: Introduction to VLSI CAD

– EECS 355: ASIC & FPGA Design

– EECS 361: Computer Architecture

– EECS 391: Introduction to VLSI Design

Class Administration

• Required Textbooks:

– Mano and Kime, “Logic & Computer Design

Fundamentals”, Prentice Hall.

• Classnotes

– Copies of lecture transparencies to be made available

Lab Work

• You will be introduced to the use of a commercial computer

aided design tool from Mentor Graphics

• Will use the Sun workstations in the Wilkinson Lab (3rd floor

M wing of Tech)

• Lab Hours: Open

• There will be 5 labs

– Lab 1: Tutorial on Mentor Graphics (simple logic)

– Lab 2: Design of combinational logic (8-bit adder)

– Lab 3: Design of ALU and shifter

– Lab 4: Design of a simple 8-state finites state machine

– Lab 5: Use of VHDL for combinational and sequential design

The Process of Design

Design

Initial concept: what is the function performed by the object?

Constraints: How fast? How much area? How much cost?

Refine abstract functional blocks into more concrete realizations

Implementation

Assemble primitives into more complex building blocks

Composition via wiring

Choose among alternatives to improve the design

Debug

Faulty systems: design flaws, composition flaws, component flaws

Design to make debugging easier

Hypothesis formation and troubleshooting skills

Implementation

Design

Debug

Digital Hardware Systems

Algebra: variables, values, operations

In Boolean algebra, the values are the symbols 0 and 1

If a logic statement is false, it has value 0

If a logic statement is true, it has value 1

Operations: AND, OR, NOT

Boolean Algebra and Logical Operators

X Y X AND Y

X Y X OR Y

X NOT X

Digital Hardware Systems

Combinational logic

no feedback among inputs and outputs

outputs are a pure function of the inputs

e.g., full adder circuit:

(A, B, Carry In) mapped into (Sum, Carry Out)

Network implemented from

switching elements or logic

gates. The presence of feedback

distinguishes between sequential

and combinational networks.

Combinational vs. Sequential Logic

X 1

X 2

X n

Switching

Network

Z 1

Z 2

Z m

A

B

Cin

Full

Adder

Sum

Cout

L

L

L

L

L

L

L

Case Study of a Simple Logic Design:

Seven Segment Display

• Chip to drive digital display

B 3 B 2 B 1 B 0 Val L 1 L 2 L 3 L 4 L 5 L 6 L 7 0 0 0 0 0 1 0 1 1 1 1 1 0 0 0 1 1 0 0 0 0 0 1 1 0 0 1 0 2 1 1 1 0 1 1 0 0 0 1 1 3 1 1 1 0 0 1 1 0 1 0 0 4 0 1 0 1 0 1 1 0 1 0 1 5 1 1 1 1 0 0 1 0 1 1 0 6 1 1 1 1 1 0 1 0 1 1 1 7 1 0 0 0 0 1 1 1 0 0 0 8 1 1 1 1 1 1 1 1 0 0 1 9 1 1 1 1 0 1 1

L

L

L

L

L

L

L

Case Study (cont.)

Representations of Digital Design:

Switches

A switch connects two points under control signal.

when the control signal is 0 (false), the switch is open

when it is 1 (true), the switch is closed

when control is 1 (true), switch is open

when control is 0 (false), switch is closed

Normally Closed

Normally Open

Open

Switch

Control

Normally Open

Switch

Closed

Switch

True

False

Open

Switch

Control

Normally Closed

Switch

Closed

Switch

True

False

EECS 303 Lecture 1 17

Switch Representations

Examples: routing inputs to outputs through a maze

Floating nodes:

what happens if the car is not running?

outputs are floating rather than forced to be false

Under all possible control signal settings

(1) all outputs must be connected to some input through a path

(2) no output is connected to more than one input through any path

EXAMPLE: IF car in driveway OR (car in garage AND NOT garage door closed) AND car running THEN can back out car Car in garage (^) Car running True True Car can back out Garage door closed Car in driveway

EXAMPLE:

IF car in garage

AND garage door open

AND car running

THEN back out car

True

Car can

back out

Garage

door open

Car

running

Car in

garage

Representations of a Digital Design

Truth Tables

tabulate all possible input combinations and their associated

output values

Example: half adder

adds two binary digits

to form Sum and Carry

Example: full adder

adds two binary digits and

Carry in to form Sum and

Carry Out

NOTE: 1 plus 1 is 0 with a

carry of 1 in binary

A B

Sum Carry

A 0 0 0 0 1 1 1 1

B 0 0 1 1 0 0 1 1

Cin

Sum

C out

EECS 303 Lecture 1 20

Representations of Digital Design:

Boolean Algebra

NOT X is written as X

X AND Y is written as X & Y, or sometimes X Y

X OR Y is written as X + Y

values: 0, 1

variables: A, B, C,.. ., X, Y, Z

operations: NOT, AND, OR,...

A

B

Sum

Carry

Sum = A B + A B

Carry = A B

OR'd together product terms

for each truth table

row where the function is 1

if input variable is 0, it appears in

complemented form;

if 1, it appears uncomplemented

Deriving Boolean equations from truth tables: