Top Banner
Chapter 3 Digital Logic Structures
13

Chapter 3 Digital Logic Structures. 3-2 Transistor: Building Block of Computers Microprocessors contain millions of transistors Intel Pentium 4 (2000):

Dec 27, 2015

Download

Documents

Kelley Young
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Chapter 3 Digital Logic Structures. 3-2 Transistor: Building Block of Computers Microprocessors contain millions of transistors Intel Pentium 4 (2000):

Chapter 3Digital LogicStructures

Page 2: Chapter 3 Digital Logic Structures. 3-2 Transistor: Building Block of Computers Microprocessors contain millions of transistors Intel Pentium 4 (2000):

3-2

Transistor: Building Block of ComputersMicroprocessors contain millions of transistors

• Intel Pentium 4 (2000): 48 million• IBM PowerPC 750FX (2002): 38 million• IBM/Apple PowerPC G5 (2003): 58 million

Logically, each transistor acts as a switch (open/closed)

Combined to implement logic functions • AND, OR, NOT

Combined to build higher-level structures• Adder, multiplexer, decoder, register, …

Combined to build processor• LC-3

Page 3: Chapter 3 Digital Logic Structures. 3-2 Transistor: Building Block of Computers Microprocessors contain millions of transistors Intel Pentium 4 (2000):

3-3

Simple Switch Circuit

Switch open:• No current through circuit• Light is off

• Vout is +2.9V

Switch closed:• Short circuit across switch• Current flows• Light is on

• Vout is 0V

Switch-based circuits can easily represent two states:on/off, open/closed, voltage/no voltage.

Voltagesource

Page 4: Chapter 3 Digital Logic Structures. 3-2 Transistor: Building Block of Computers Microprocessors contain millions of transistors Intel Pentium 4 (2000):

3-4

n-type MOS TransistorMOS = Metal Oxide Semiconductor

• two types: n-type and p-type

n-type• when Gate has positive voltage,

short circuit between #1 and #2(switch closed)

• when Gate has zero voltage,open circuit between #1 and #2(switch open)

Gate = 1

Gate = 0

Terminal #2 must beconnected to GND (0V).

Page 5: Chapter 3 Digital Logic Structures. 3-2 Transistor: Building Block of Computers Microprocessors contain millions of transistors Intel Pentium 4 (2000):

3-5

p-type MOS Transistorp-type is complement to n-type

• when Gate has positive voltage,open circuit between #1 and #2(switch open)

• when Gate has zero voltage,short circuit between #1 and #2(switch closed)

Gate = 1

Gate = 0

Terminal #1 must beconnected to +2.9V.

Page 6: Chapter 3 Digital Logic Structures. 3-2 Transistor: Building Block of Computers Microprocessors contain millions of transistors Intel Pentium 4 (2000):

3-6

Logic GatesUse switch behavior of MOS transistorsto implement logical functions: AND, OR, NOT.

Digital symbols:• recall that we assign a range of analog voltages to each

digital (logic) symbol

• assignment of voltage ranges depends on electrical properties of transistors being used

typical values for "1": +5V, +3.3V, +2.9Vfrom now on we'll use +2.9V

Page 7: Chapter 3 Digital Logic Structures. 3-2 Transistor: Building Block of Computers Microprocessors contain millions of transistors Intel Pentium 4 (2000):

3-7

CMOS CircuitComplementary MOS

Uses both n-type and p-type MOS transistors• p-type

Attached to + voltagePulls output voltage UP when input is zero

• n-typeAttached to GNDPulls output voltage DOWN when input is one

For all inputs, make sure that output is either connected to GND or to +,but not both!

Page 8: Chapter 3 Digital Logic Structures. 3-2 Transistor: Building Block of Computers Microprocessors contain millions of transistors Intel Pentium 4 (2000):

3-8

Inverter (NOT Gate)

In Out

0v 2.9v

2.9v 0v

In Out

0 1

Truth table

In Out

1 0

2.9v

GND

Page 9: Chapter 3 Digital Logic Structures. 3-2 Transistor: Building Block of Computers Microprocessors contain millions of transistors Intel Pentium 4 (2000):

3-9

NOR Gate (OR-NOT)

A B C

0 0 1

0 1 0

1 0 0

1 1 0Note: Serial structure on top, parallel on bottom.

Truth table

01

Page 10: Chapter 3 Digital Logic Structures. 3-2 Transistor: Building Block of Computers Microprocessors contain millions of transistors Intel Pentium 4 (2000):

3-10

OR Gate (NOR-NOT)

Add inverter to NOR.

A B C

0 0 0

0 1 1

1 0 1

1 1 1NOR

NOT

A B C

0 0 1

0 1 0

1 0 0

1 1 0

NOR

OR = NOR-NOT

Page 11: Chapter 3 Digital Logic Structures. 3-2 Transistor: Building Block of Computers Microprocessors contain millions of transistors Intel Pentium 4 (2000):

3-11

NAND Gate (AND-NOT)

A B C

0 0 1

0 1 1

1 0 1

1 1 0

Note: Parallel structure on top, serial on bottom.

0

Page 12: Chapter 3 Digital Logic Structures. 3-2 Transistor: Building Block of Computers Microprocessors contain millions of transistors Intel Pentium 4 (2000):

3-12

AND Gate

Add inverter to NAND.

A B C

0 0 0

0 1 0

1 0 0

1 1 1

NAND

NOT

Page 13: Chapter 3 Digital Logic Structures. 3-2 Transistor: Building Block of Computers Microprocessors contain millions of transistors Intel Pentium 4 (2000):

3-13

Basic Logic Gates