53
CSCE 230, Fall 2013 Appendix A: Logic Circuits, part 1 dgement: Overheads adapted from those provided by the authors of the Logic Circuits Mehmet Can Vuran, Instructor University of Nebraska-Lincoln

CSCE 230, Fall 2013 Appendix A: Logic Circuits, part 1

  • Upload
    tekli

  • View
    53

  • Download
    0

Embed Size (px)

DESCRIPTION

Logic Circuits Mehmet Can Vuran , Instructor University of Nebraska-Lincoln. CSCE 230, Fall 2013 Appendix A: Logic Circuits, part 1. Acknowledgement: Overheads adapted from those provided by the authors of the textbook. Logic Design. Logic Design. Logic Implementation Choices. - PowerPoint PPT Presentation

Citation preview

Page 1: CSCE 230, Fall 2013 Appendix A: Logic Circuits, part 1

CSCE 230, Fall 2013Appendix A: Logic Circuits, part 1

Acknowledgement: Overheads adapted from those provided by the authors of the textbook

Logic CircuitsMehmet Can Vuran, Instructor University of Nebraska-Lincoln

Page 2: CSCE 230, Fall 2013 Appendix A: Logic Circuits, part 1

CSCE 230 - Computer Organization 2

Logic Design

Page 3: CSCE 230, Fall 2013 Appendix A: Logic Circuits, part 1

CSCE 230 - Computer Organization 3

Logic Design

Page 4: CSCE 230, Fall 2013 Appendix A: Logic Circuits, part 1

CSCE 230 - Computer Organization 4

Logic Implementation Choices Programmable

Software▪ Typically, use single-board microcontrollers to implement the

logic by a program Programmable logic devices (PLDs) and field

programmable gate arrays (FPGAs)▪ Devices in which the logic elements and the interconnect

(wiring) can be modified by programming.▪ Ideal for rapid prototyping and low-volume applications.

ROMsCustom Designs

How Intel designs microprocessors Cost-effective only for high-volume parts

Page 5: CSCE 230, Fall 2013 Appendix A: Logic Circuits, part 1

Logic circuits Operate on binary variables that assume one of two

distinct values, usually called 0 and 1

Implement functions of logic variables

Circuits have inputs and outputs

Circuits are implemented using electronic logic gates

Page 6: CSCE 230, Fall 2013 Appendix A: Logic Circuits, part 1

CSCE 230 - Computer Organization 6

Basic Gates

AND OR NOT

BA BAC

BA C

Page 7: CSCE 230, Fall 2013 Appendix A: Logic Circuits, part 1

CSCE 230 - Computer Organization 7

Truth Tables

A B C

0 0

0 1

1 0

1 1

BA BAC

BA C

AND

Page 8: CSCE 230, Fall 2013 Appendix A: Logic Circuits, part 1

CSCE 230 - Computer Organization 8

Basic Gates and Truth Tables

A B C

0 0 0

0 1 0

1 0 0

1 1 1

BA BAC

BA C

AND

Page 9: CSCE 230, Fall 2013 Appendix A: Logic Circuits, part 1

CSCE 230 - Computer Organization 9

Basic Gates and Truth Tables

A B C

0 0 0

0 1 0

1 0 0

1 1 1

BA BAC

BA C

A B C

0 0

0 1

1 0

1 1

AND OR

Page 10: CSCE 230, Fall 2013 Appendix A: Logic Circuits, part 1

CSCE 230 - Computer Organization 10

Basic Gates and Truth Tables

A B C

0 0 0

0 1 0

1 0 0

1 1 1

BA BAC

BA C

A B C

0 0 0

0 1 1

1 0 1

1 1 1

AND OR

Page 11: CSCE 230, Fall 2013 Appendix A: Logic Circuits, part 1

CSCE 230 - Computer Organization 11

Basic Gates and Truth Tables

NOTA B C

0 0 0

0 1 0

1 0 0

1 1 1

BA BAC

BA C

A B C

0 0 0

0 1 1

1 0 1

1 1 1

A B

0

1

AND OR

Page 12: CSCE 230, Fall 2013 Appendix A: Logic Circuits, part 1

CSCE 230 - Computer Organization 12

Basic Gates and Truth Tables

NOTA B C

0 0 0

0 1 0

1 0 0

1 1 1

BA BAC

BA C

A B C

0 0 0

0 1 1

1 0 1

1 1 1

A B

0 1

1 0

AND OR

Page 13: CSCE 230, Fall 2013 Appendix A: Logic Circuits, part 1

CSCE 230 - Computer Organization 13

Exclusive-Or

A B XOR

0 0

0 1

1 0

1 1

XOR

Page 14: CSCE 230, Fall 2013 Appendix A: Logic Circuits, part 1

CSCE 230 - Computer Organization 14

Exclusive-Or

A B XOR

0 0 0

0 1 1

1 0 1

1 1 0

XOR

Page 15: CSCE 230, Fall 2013 Appendix A: Logic Circuits, part 1

Light switch example

Page 16: CSCE 230, Fall 2013 Appendix A: Logic Circuits, part 1

Standard logic gate symbols

Page 17: CSCE 230, Fall 2013 Appendix A: Logic Circuits, part 1

Why? How?

Page 18: CSCE 230, Fall 2013 Appendix A: Logic Circuits, part 1

Logic circuits Operate on binary variables that assume one of two

distinct values, usually called 0 and 1

Why?

Let’s back up…

Page 19: CSCE 230, Fall 2013 Appendix A: Logic Circuits, part 1

Let’s Back up…

Page 20: CSCE 230, Fall 2013 Appendix A: Logic Circuits, part 1

Transistors

Page 21: CSCE 230, Fall 2013 Appendix A: Logic Circuits, part 1

Basic Building Block for all Logic Gates

A B NAND

0 0 1

0 1 1

1 0 1

1 1 0

Not AND NAND

Page 22: CSCE 230, Fall 2013 Appendix A: Logic Circuits, part 1

Basic Building Block for all Logic Gates - NAND

A B NAND

0 0 1

0 1 1

1 0 1

1 1 0

NAND

Page 23: CSCE 230, Fall 2013 Appendix A: Logic Circuits, part 1

NOT from NAND

NOT A B

0 1

1 0

Page 24: CSCE 230, Fall 2013 Appendix A: Logic Circuits, part 1

AND from NANDs

AND A B C

0 0 0

0 1 0

1 0 0

1 1 1

Page 25: CSCE 230, Fall 2013 Appendix A: Logic Circuits, part 1

OR from NAND

OR A B C

0 0 0

0 1 1

1 0 1

1 1 1

Page 26: CSCE 230, Fall 2013 Appendix A: Logic Circuits, part 1

OR from NAND

OR A B C

0 0 0

0 1 1

1 0 1

1 1 1

Page 27: CSCE 230, Fall 2013 Appendix A: Logic Circuits, part 1

XOR from NAND

XOR A B C

0 0 0

0 1 1

1 0 1

1 1 0

Page 28: CSCE 230, Fall 2013 Appendix A: Logic Circuits, part 1

NOR from NAND

NOR A B C

0 0 1

0 1 0

1 0 0

1 1 0

Page 29: CSCE 230, Fall 2013 Appendix A: Logic Circuits, part 1

XNOR from NAND

XNOR A B C

0 0 1

0 1 0

1 0 0

1 1 1

Page 30: CSCE 230, Fall 2013 Appendix A: Logic Circuits, part 1

Implementation of the XOR function using AND, OR, and NOT gates

A B XOR

0 0 0

0 1 1

1 0 1

1 1 0

XOR

Page 31: CSCE 230, Fall 2013 Appendix A: Logic Circuits, part 1

Implementation of the XOR function using AND, OR, and NOT gates

Page 32: CSCE 230, Fall 2013 Appendix A: Logic Circuits, part 1

Synthesis of logic functions Synthesis is the process of designing

and implementing a logic circuit defined by its functional specification.

The expression for f in the previous circuit is said to be in a sum-of-products form OR and AND operations are sometimes

called the sum and product functions.

Page 33: CSCE 230, Fall 2013 Appendix A: Logic Circuits, part 1

Implementation of a logic function

Page 34: CSCE 230, Fall 2013 Appendix A: Logic Circuits, part 1

Implementation of a logic function

Page 35: CSCE 230, Fall 2013 Appendix A: Logic Circuits, part 1

Implementation of a logic function

Page 36: CSCE 230, Fall 2013 Appendix A: Logic Circuits, part 1

Implementation of a logic function

Page 37: CSCE 230, Fall 2013 Appendix A: Logic Circuits, part 1

Proving equivalence of expressions

Page 38: CSCE 230, Fall 2013 Appendix A: Logic Circuits, part 1

Rules of binary logic

Page 39: CSCE 230, Fall 2013 Appendix A: Logic Circuits, part 1

CSCE 230 - Computer Organization 39

Example Show a logic equation for the three functions

shown in the following truth table:

Page 40: CSCE 230, Fall 2013 Appendix A: Logic Circuits, part 1

Minimization of logic expressions As illustrated in the previous

example, a logic function can be implemented with circuits of different complexities.

It is useful to minimize a logic expression to reduce the cost of the synthesized circuit.

Page 41: CSCE 230, Fall 2013 Appendix A: Logic Circuits, part 1

Karnaugh Maps

41

Page 42: CSCE 230, Fall 2013 Appendix A: Logic Circuits, part 1

Three-variable Karnaugh maps

Page 43: CSCE 230, Fall 2013 Appendix A: Logic Circuits, part 1

Four-variableKarnaugh maps

Page 44: CSCE 230, Fall 2013 Appendix A: Logic Circuits, part 1

Using don’t cares

Page 45: CSCE 230, Fall 2013 Appendix A: Logic Circuits, part 1

NAND and NOR gates

Page 46: CSCE 230, Fall 2013 Appendix A: Logic Circuits, part 1

Equivalence of NAND-NAND and AND-OR networks

Page 47: CSCE 230, Fall 2013 Appendix A: Logic Circuits, part 1

Cascading of gates

Page 48: CSCE 230, Fall 2013 Appendix A: Logic Circuits, part 1

Section A.5Practical Implementation of Logic GatesRead the Chapter in detail and study the following slides, we will skip most of them in class

48

Page 49: CSCE 230, Fall 2013 Appendix A: Logic Circuits, part 1

The voltage transfer characteristic for the CMOS inverter

Page 50: CSCE 230, Fall 2013 Appendix A: Logic Circuits, part 1

Definition of propagation delay and transition time

Page 51: CSCE 230, Fall 2013 Appendix A: Logic Circuits, part 1

Cascading Logic Gates

Cannot directly connect logic gates May damage the circuits in certain

input combinations May not need ALL the gates together If a gate is not SELECTED, it should

not provide 1 or 0 Need a third output – Z (high

impedance)

62

Page 52: CSCE 230, Fall 2013 Appendix A: Logic Circuits, part 1

Tri-state buffer

Page 53: CSCE 230, Fall 2013 Appendix A: Logic Circuits, part 1

Upcoming…

HW 3 – Chapter 3 Assign Friday, Sept. 27th

Due Wednesday, Oct. 9th Test 1 – Chapters 1-2

Monday, Oct. 7th (50 min) Quiz 3 – Chapter 3

Friday, Oct. 11th (15 min)

64