EE 367 Logic Design - PowerPoint PPT Presentation

1 / 26
About This Presentation
Title:

EE 367 Logic Design

Description:

Website: www.coe.montana.edu/ee/lameres/courses/ee367_spring08 ... EE 371 Microprocessor HW & SW Systems. Fall 2006. Digital Review ... – PowerPoint PPT presentation

Number of Views:41
Avg rating:3.0/5.0
Slides: 27
Provided by: profbrock
Category:

less

Transcript and Presenter's Notes

Title: EE 367 Logic Design


1
EE 367 Logic Design
  • Lecture 1
  • Agenda
  • Course Logistics
  • Course Content
  • Digital Review
  • Announcements (Wednesday, 1/16)
  • Welcome
  • Homework 1 Posted (due Friday, 1/25)
  • No Lab this Week

2
Course Overview
  • Instructor Brock J. LaMeres Office 533
    Cobleigh Hall Phone (406)-994-5987 Email
    lameres_at_ece.montana.edu Web
    www.coe.montana.edu/ee/lameres/
  • Time / Location Lecture MWF 1100am
    1150am 218 Roberts Lab -02 W
    210am 400am 601 Cobleigh Hall
    Lab -03 W 410am 600am 601
    Cobleigh Hall

3
Course Overview
  • Textbook Digital Design Principles and
    Practices", 4th Addition John F. Wakerly,
    Prentice Hall, 2006
  • Website www.coe.montana.edu/ee/lameres/courses/e
    e367_spring08 - all handouts, homework, and
    lab assignments are found here - it is your
    responsibility to download assignments

4
Course Overview
  • Office Hours 533 Cobleigh Hall M, 300pm
    400pm
  • F, 200pm 300pm
  • Also available by email appointment
  • Requisites EE262 / EE371
  • Grading Homework - 10
  • Lab - 30
  • Exam 1 - 20 Exam 2 - 20
  • Design Project - 20 - Homework
    Assignments are due at the beginning of class.
  • - Late homework will be accepted for one week
    after the due date with a penalty of 50
    point reduction. No credit will be given for
    assignments over one week late.
  • - No make up exams will be given. Plan on
    being available on the exam dates. - Final
    Design Project will be given instead of an
    in-class final.

5
Course Overview
  • Where does this course fit into the Electrical
    Engineering curriculum?

6
Course Overview
  • Where does this course fit into the Computer
    Engineering curriculum?

7
Course Content
  • What is this course?- In EE261 you learned
    - basic combinational logic design - basic
    sequential logic design- In EE262 you learned
    - how to implement logic circuits using
    off-the-shelf parts- EE367 is a follow-on
    course that looks at - Large scale digital
    designs - Performance of digital circuitry -
    Programmable Logic

8
Course Content
  • What does "Large" mean?
  • - Large means that you can't do it by hand. We
    need a way to design and simulate Millions of
    gates- K-maps for a Pentium would take too much
    paper

9
Course Content
  • We will learn VHDL in order to describe large
    digital designs - VHDL is a text based
    Hardware Description Language - We can
    simulate our digital designs created in VHDL

10
Course Content
  • We can also prototype our designs using an FPGA
    - FPGA Field Programmable Gate Array - An
    FPGA is a programmable logic device - In Lab,
    we will implement our designs and test them in
    FPGA hardware

11
Course Content
  • What topics will be covered? 1) VHDL
    (Exam 1 Topics)
  • 2) Medium Scale Combinational Logic Devices
  • 3) More Complex Finite State Machines (Exam
    2 Topics) 4) Computer Systems 5) FPGA Timing
    and Implementation
  • Instead of a final, we will have a final
    project ex) - 4-bit microprocessor -
    peripheral controller (USB, Ethernet, RS232) -
    memory controller (EEprom, DDR, SRAM)

12
Digital Review
  • Combinational Logic
  • Combinational Logic Gates
  • - Output depends on the logic value of the
    inputs
  • - no storage

13
Digital Review
  • NOT out in in f(in) in in
  • OR out ab f(a,b) ab
  • AND out ab f(a,b) ab

14
Digital Review
  • XOR out a?b f(a,b) a?b
  • NOR out ab f(a,b) ab
  • NAND out ab f(a,b) ab

15
Digital Review
  • XNOR out a?b f(a,b) a?b
  • Also remember about XOR Gates
  • f(a,b) a?b (ab ba)
  • Also remember the priority of logic operations
    (without parenthesis) is
  • NOT, AND, OR

16
Digital Review
  • DeMorgans Theorems
  • Inverting the output of any gate results in the
    same function as the opposite gate (AND/OR) with
    inverted inputs

17
Digital Review
  • DeMorgans Theorems
  • Graphically breaking the bar changes the logic
    function (AND-OR) under the break

out ab
1) Break bar
out ab
2) Change to under break
out ab
18
Digital Review
  • Boolean Expressions Using SOP
  • Logic functions can be described using a Sum of
    Products techniques
  • Sum of Products (SOP) is the summation of all
    minterms resulting in the truth table
  • A minterm is the expression for an input
    configuration which yields a TRUE output
  • A minterm expression is the ANDing of the input
    "1" signal configuration

Truth Table a b out 0 0 0 0 1 1 minterm m1
ab 1 0 1 minterm m2 ab 1 1 0
SOP Expression f(a,b) ab ab Note
un-minimized Boolean expression
19
Digital Review
  • Boolean Expressions Using POS
  • Logic functions can be described using a Product
    of Sums techniques
  • Product of Sums (POS) is the multiplication of
    all maxterms resulting in the truth table
  • A maxterm is the expression for an input
    configuration which yields a FALSE output
  • A maxterm expression is the ORing of the input
    "0" signal configuration

Truth Table a b out 0 0 0 maxterm m0 ab
(input configuration of 0's) 0 1 1 1 0 1 1 1 0
maxterm m3 a'b' (input configuration of 0's)
POS Expression f(a,b) (ab) (a'b')
20
Digital Review
  • Boolean Expressions Using SOP POS
  • SOP and POS functions are equivalent

SOP Expression f(a,b) ab ab
is equal to POS Expression f(a,b) (ab)
(a'b')
21
Digital Review
  • Karnaugh Maps
  • K-maps provide a graphical method to find SOP/POS
    expressions
  • K-maps also provide a graphical method to perform
    logic minimization
  • K-map SOP Process 1) Circle minterms to
    create SOP
  • 2) Circle in Horizontal Vertical manner
  • 3) Circle in groups with powers of 2
    (1,2,4,8,)

Truth Table a b out 0 0 0 0 1 1 1 0 1 1 1 1
No dependency on b, minterm a
No dependency on a, minterm b
SOP expression f(a,b) a b
22
Digital Review
  • Karnaugh Maps
  • K-maps provide a graphical method to find SOP/POS
    expressions
  • K-maps also provide a graphical method to perform
    logic minimization
  • K-map POS Process 1) Circle maxterms to
    create SOP
  • 2) Circle in Horizontal Vertical manner
  • 3) Circle in groups with powers of 2
    (1,2,4,8,)

Truth Table a b out 0 0 0 0 1 1 1 0 1 1 1 1
Dependency on a' and b', maxterm ab
POS expression f(a,b) a b
23
Digital Review
  • Sequential Logic
  • - Concept of Storage Element
  • - With Storage, logic functions can depend on
    current past values of inputs
  • - Sequential State Machines can be created
  • D-Flip-Flop
  • - on timing event (i.e., edge of clock input), D
    input goes to Q output

CLK
D
Q
tc2q
24
Digital Review
  • State Machines
  • - Moore Outputs depend on present state
  • - Mealy Outputs depend on present state and
    current inputs

25
Digital Review
  • State Machine Example Design a 2-bit Gray Code
    Counter

1) Number of States? 4 2) Number of bits to
encode states? 2n4, n2 3) Moore or Mealy?
Moore For this counter, we can make the outputs
be the state codes
26
Digital Review
  • State Machine Example Design a 2-bit Gray Code
    Counter

STATE Current Next Acur Bcur Anxt Bnxt 0
0 0 1 0 1 1 1 1 1 1 0 1
0 0 0
Anxt Logic
Bnxt Logic
Bcur 0 1
Bcur 0 1
Acur 0 1
Acur 0 1
0
1
1
1
0
1
0
0
Anxt Bcur
Bnxt Acur
A
counter output
B
A
B
CLK
Write a Comment
User Comments (0)
About PowerShow.com