Docsity

Basic Combinational Logic - Digital Logic Design Laboratory | ECE 272, Lab Reports of Electrical and Electronics Engineering

Partial preview of the text

Download Basic Combinational Logic - Digital Logic Design Laboratory | ECE 272 and more Lab Reports Electrical and Electronics Engineering in PDF only on Docsity!

E

EC

CE

E

D

D

IGI

GI

IT

TA

AL

L

L

L

O

OG

GI

IC

C

D

D

E

ES

SI

IG

GN

N

A TekBots Course

Copyright Information Copyright © 2007Oregon State UniversitySchool of Electrical Engineering & Computer Science (EECS)This document is the property of Oregon State University and the School of EECS. Limited use of this document is allowed,according to the following criteria:Materials are free to use, except for the cost of reproduction, and must always bear this statement in any reproduction.Materials created using this information may not be labeled as TekBots’ materials, without the prior written consent of bothOregon State University and the School of EECS. Disclaimer of Liability Oregon State University, Platforms for Learning, TekBots and other partner schools are not responsible for special,consequential, or incidental damages resulting from any breach of warranty, or under any legal theory, including lost profits,downtime, goodwill, damage to, or replacement of equipment or property, or any costs of recovering, reprogramming, orreproducing any data stored in or used with our products. The aforementioned parties are also not responsible for any personaldamage, including that to life and health, resulting from use of any of our products. You take full responsibility for yourproduct/ application, no matter how life-threatening it may be. Internet Access We maintain Internet systems for your use. They van be used to obtain free TekBots’ software and documentation and also topurchase TekBots’ products. These systems may also be used to communicate with members of TekBots and other customers.Access information is shown below: E-mail:

[email protected]

Web:

http://eecs.oregonstate.edu/education/tekbots.html

Contents

Page ii

ECE 272 Manual

© 2006 Oregon State University

S

S

E EC

CT

TI

IO

ON

N

T

T

W WO

O

B

BA

AS

SI

IC

C C

CO

OM

MB

BI

IN

NA

AT

TI

IO

ON

NA

AL

L L

LO

OG

GI

IC

C A

AN

ND

D T

TH

HE

E D

D_

_L

LO

OG

GI

IC

C B

BO

OA

AR

RD

D.

Section Overview..................................................................................................................................... 24

Objectives .................................................................................................................................................. 24Materials .................................................................................................................................................... 24

Procedure................................................................................................................................................. 25

Design High-Level Preparation (Use the Xilinx Software to Enter your Logic)................................. 26Schematic Design Entry ........................................................................................................................... 28

Create a Top-Level Schematic................................................................................................................... 29Add a 2-input AND gate............................................................................................................................. 29

Verifying the Design Files ........................................................................................................................ 33Design Adaptation to the Target Device (Digital Logic Board)............................................................ 34

Pick one LED pin (output) and three switch pins (inputs). ................................................................ 34

Update the synthesis tool with your choice of pins. ............................................................................. 35

Synthesize the design into a JEDEC file............................................................................................... 36

Study Questions/ Turn-In ...................................................................................................................... 37Challenge ................................................................................................................................................. 38

S

S

E EC

CT

TI

IO

ON

N

T

T

H HR

RE

EE

E

D

DI

IG

GI

IT

TA

AL

L A

AP

PP

PL

LI

IC

CA

AT

TI

IO

ON

NS

S (

(C

CU

US

ST

TO

OM

M R

RE

EM

MO

OT

TE

E C

CO

ON

NT

TR

RO

OL

L)

Section Overview..................................................................................................................................... 46

Objectives .................................................................................................................................................. 46Materials .................................................................................................................................................... 46

Procedure................................................................................................................................................. 47

The Design Process ................................................................................................................................... 47

Step One – Understand the problem......................................................................................................... 48Step Two - Identify Constraints ................................................................................................................ 49Step 3 - Incorporate Constraints............................................................................................................... 50Step 4 - Refining the Design....................................................................................................................... 50

Building the Design................................................................................................................................... 51

Study Questions/ Turn in ....................................................................................................................... 54Challenges................................................................................................................................................ 55

Contents

© 2006 Oregon State University

ECE 272 Manual

Page iii

S

S

E EC

CT

TI

IO

ON

N

F

F

O OU

UR

R

C

CO

OM

MB

BI

IN

NA

AT

TI

IO

ON

NA

AL

L S

SY

YS

ST

TE

EM

MS

S:

: B

BI

IN

NA

AR

RY

Y T

TO

O S

SE

EV

VE

EN

N S

SE

EG

GM

ME

EN

NT

T D

DI

IS

SP

PL

LA

AY

Y

E

EN

NC

CO

OD

DE

ER

R.

Section Overview..................................................................................................................................... 64

Objectives .................................................................................................................................................. 64Materials.................................................................................................................................................... 64

Procedure................................................................................................................................................. 65

Part One – Encoder Logic........................................................................................................................ 65Part Two – Build the system .................................................................................................................... 69

Study Questions/ Turn-In ...................................................................................................................... 74Challenges................................................................................................................................................ 74

S

S

E EC

CT

TI

IO

ON

N

F

F

I IV

VE

E

C

CO

OM

MB

BI

IN

NA

AT

TI

IO

ON

NA

AL

L S

SY

YS

ST

TE

EM

MS

S:

: S

SE

EM

MI

I-

-I

IN

NT

TE

EL

LL

LI

IG

GE

EN

NT

T R

RE

EM

MO

OT

TE

E C

CO

ON

NT

TR

RO

OL

L R

RO

OB

BO

OT

T

Section Overview..................................................................................................................................... 82

Objectives .................................................................................................................................................. 82Materials.................................................................................................................................................... 82

Procedure................................................................................................................................................. 83

Step One - Understand the Problem ....................................................................................................... 83Step Two – Identify Constraints, Incorporate Constraints and Refine the Design ............................ 84Step Three – .............................................................................................................................................. 85Step Three – .............................................................................................................................................. 85Build the Design ........................................................................................................................................ 85

Study Questions/ Turn-In ...................................................................................................................... 88Challenge ................................................................................................................................................. 88

S

S

E EC

CT

TI

IO

ON

N

S

S

I IX

X

S

S

TAT

AT

TE

E

M

M

ACA

CH

HI

IN

NE

ES

S

Section Overview..................................................................................................................................... 96

Objectives .................................................................................................................................................. 96Materials.................................................................................................................................................... 96

Procedure................................................................................................................................................. 97Study Questions/ Turn-In .................................................................................................................... 100Challenge ............................................................................................................................................... 100

Contents

© 2006 Oregon State University

ECE 272 Manual

Page v

A

A

P PP

PE

EN

ND

DI

IX

X

C

C

S

S

ILI

LK

K

SS

C CR

RE

EE

EN

NS

S A

AN

ND

D

P

P

INI

NO

OU

UT

TS

S

A

A

P PP

PE

EN

ND

DI

IX

X

D

D

P

P

ARA

RT

TS

S

A

A

P PP

PE

EN

ND

DI

IX

X

E

E

E

E

R RR

RA

AT

TA

A

Section Overview................................................................................................................................... 156

Espresso Logic Reduction Software --- Enter the Data in a Text-File............................................... 156Espresso Logic Reduction Software --- Run the file in Espresso........................................................ 157

Conclusion ............................................................................................................................................. 158

A

A

P PP

PE

EN

ND

DI

IX

X

F

F

S

S

UUP

PP

PL

LI

IE

ER

RS

S

Preface

Page viii

ECE 272 Manual

© 2006 Oregon State University

H

HO

OW

W T

TO

O U

US

SE

E T

TH

HI

IS

S M

MA

AN

NU

UA

AL

L

During this course, various tasks will be performed from the assembly of electronic devices, and through the developmentprocess of digital logic controllers and systems. These tasks are divided into individual lab documents that correspond to whatis being taught in the Digital Logic Design lecture.Everything learned in lecture is relevant and useful in later (related) courses and in your future career. As various tasks areperformed in these labs, try to pay attention to how the lecture material relates to these tasks. Understanding how the lecturematerial is used and applied will greatly improve your understanding of the topics as well.

I

IM

MP

PO

OR

RT

TA

AN

NT

T S

SY

YM

MB

BO

OL

LS

S

During this lab and other TekBots labs, you will encounter the following symbols. So, review or acquaint yourself with thesesymbols, as they are widely used in this lab manual.

This symbol indicates an

important note

that should be remembered/ memorized.

Paying attention to notes like these will make tasks easier and more efficient.This symbol designates

caution

, and the information in this caution-table should be

read thoroughly, and adhered to, before moving ahead.If the caution warning is ignored, the task may appear impossible and/ or can lead todamaged TekBots and systems.This symbol represents something that helps you make your task easier by remindingyou to perform a particular task before the next step. These

reminder

symbols are

not normally critical things to complete, but can make things easier.The

innovation

symbol will give information to enrich your experience. These

sections will give more insight into the what, why, and how of the task being done.Use these to learn more, or to get ideas for cool innovations.

Preface

© 2006 Oregon State University

ECE 272 Manual

Page ix

L

LA

AB

B S

ST

TR

RU

UC

CT

TU

UR

RE

E

The entire lab is divided into various sections, in order to break up the tasks. Typically, each section will have the SectionOverview as the introductory paragraphs and information detailing the task in the Procedure paragraphs. Towards the end,weave Study Questions/ Turn-Ins (which will be your homework from this lab), and/ or Challenges.

L

LA

AB

B S

SA

AF

FE

ET

TY

Y

Safety is always important when working with electricity and electronics. This includes both the safety for you as well assafety for the circuit components you are working with. Concerns such as high voltage or currents can affect the human body,while static safety and proper component use can affect the life of your circuits. Personal Safety When working with high voltage s and currents, it is important that you remember that you can be hurt, if your body becomesthe 'circuit', since the human body is a conductor of electricity.. This issue has long been combated by using the 'one hand rule.'Whenever you are working with a potentially dangerous circuit, turn it off, but if it cannot be turned off, use only one handwhen working on it. This will prevent a circuit from being made through your heart, which could be potentially fatal. Component Safety Many electrical components are likely to be damaged by static electricity. Static charge can build up to many thousands ofvolts, but with little energy. This cannot harm humans, but it can easily damage electronic components. To ensure static-safehandling, the best practice is to wear an anti-static strap and connect it to an earth ground such as a computer case or a waterpipe. If you do not have an anti-static wristband, you can instead touch a ground every few minutes to discharge your staticbuild up.

SectionOverview

The section overview briefly describes what will be learned in the section, and what will be done.

Procedure

The procedure portion of each section contains all of the tasks to be completed. All of these tasks arerelated to the corresponding lecture. Keeping this in mind will help in better understanding the lecture aswell as the lab material.

StudyQuestions

The study questions are intended to give more practice and insight into what has been learned in lab andlecture. Some of the study questions will be due in lab.

Challenges

The challenge sections of labs are for extra credit. Performing the tasks in the challenge sections willimprove understanding of what is being learned and will result in some cool TekBots and innovations.