Top Banner
QUIZ What do these bits represent? 1001 0110 1
90

What do these bits represent? · 2019-12-16 · some transistors thrown in for ... Abstractions and more abstractions … Computers. Made of lots of different circuits (CPU, memory,

Mar 03, 2020

Download

Documents

dariahiddleston
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: What do these bits represent? · 2019-12-16 · some transistors thrown in for ... Abstractions and more abstractions … Computers. Made of lots of different circuits (CPU, memory,

QUIZ

What do these bits represent?

1001 0110

1

Page 2: What do these bits represent? · 2019-12-16 · some transistors thrown in for ... Abstractions and more abstractions … Computers. Made of lots of different circuits (CPU, memory,

Fraction: …

SolutionIt depends on what is being represented!

1001 0110

2

Unsigned integer: …

Signed integer (2’s complement): …

IBM 437 character: …

Latin-1 character: …

Huffman-compressed text: …

R/G/B level of pixel in image: …Audio sample: …Video sample: …

Page 3: What do these bits represent? · 2019-12-16 · some transistors thrown in for ... Abstractions and more abstractions … Computers. Made of lots of different circuits (CPU, memory,

QUIZWhat do these bits represent as Huffman-compressed text?

1001 0110

3

Page 4: What do these bits represent? · 2019-12-16 · some transistors thrown in for ... Abstractions and more abstractions … Computers. Made of lots of different circuits (CPU, memory,

Solution

What do these bits represent as Huffman-compressed text?

1001 0110 …

4

L D ? Bits from the next byte

Page 5: What do these bits represent? · 2019-12-16 · some transistors thrown in for ... Abstractions and more abstractions … Computers. Made of lots of different circuits (CPU, memory,

Chapter 4

Gates and Circuits (with some transistors thrown in for

good measure)

All hail the HARDWARE!

Page 6: What do these bits represent? · 2019-12-16 · some transistors thrown in for ... Abstractions and more abstractions … Computers. Made of lots of different circuits (CPU, memory,

Abstractions and more abstractions …

6We are here

Page 7: What do these bits represent? · 2019-12-16 · some transistors thrown in for ... Abstractions and more abstractions … Computers. Made of lots of different circuits (CPU, memory,

Abstractions and more abstractions …ComputersMade of lots of different circuits (CPU, memory, controllers, etc.)

CircuitsMade from gates combined to perform more complicated tasks

GatesDevices that perform basic logical operations on electrical

signals. They’re built out of transistors

TransistorsVery small electronic switches

7

Page 8: What do these bits represent? · 2019-12-16 · some transistors thrown in for ... Abstractions and more abstractions … Computers. Made of lots of different circuits (CPU, memory,

There are 3 layers of computer abstraction that we examine in this

chapter:

8

Circuits

Gates

Transistors

Page 9: What do these bits represent? · 2019-12-16 · some transistors thrown in for ... Abstractions and more abstractions … Computers. Made of lots of different circuits (CPU, memory,

4.2 GatesThere are six basic gates:

– NOT– AND– OR– XOR– NAND– NOR

Real-life logic diagrams are black and white with gates distinguished only by their shape

We use color for emphasis (and fun) in this text

9

Page 10: What do these bits represent? · 2019-12-16 · some transistors thrown in for ... Abstractions and more abstractions … Computers. Made of lots of different circuits (CPU, memory,

How do we describe the behavior of gates and circuits?

1. Boolean expressionsUses Boolean algebra, a mathematical notation for expressing two-valued logic

2. Logic diagramsA graphical representation of a circuit; each gate has itsown symbol

3. Truth tablesA table showing all possible input value and the associatedoutput values

10

Page 11: What do these bits represent? · 2019-12-16 · some transistors thrown in for ... Abstractions and more abstractions … Computers. Made of lots of different circuits (CPU, memory,

NOT Gate (a.k.a. inverter)

A NOT gate accepts one input signal (0 or 1) and returns the opposite signal as output

11

Figure 4.1 Various representations of a NOT gate

Page 12: What do these bits represent? · 2019-12-16 · some transistors thrown in for ... Abstractions and more abstractions … Computers. Made of lots of different circuits (CPU, memory,

AND Gate

An AND gate accepts two input signalsIf both are 1, the output is 1; otherwise, the output is 0

12

Figure 4.2 Various representations of an AND gate

Page 13: What do these bits represent? · 2019-12-16 · some transistors thrown in for ... Abstractions and more abstractions … Computers. Made of lots of different circuits (CPU, memory,

AND gate quiz #1

The inputs to an AND gate have the values A = 1 and B = 0. What is the output?

13

Page 14: What do these bits represent? · 2019-12-16 · some transistors thrown in for ... Abstractions and more abstractions … Computers. Made of lots of different circuits (CPU, memory,

AND gate quiz #2

The input B to an AND gate has the value B = 0. What is the output?

14

Page 15: What do these bits represent? · 2019-12-16 · some transistors thrown in for ... Abstractions and more abstractions … Computers. Made of lots of different circuits (CPU, memory,

AND gate quiz #3

The input B to an AND gate has the value B = 1. What is the output?

15

Page 16: What do these bits represent? · 2019-12-16 · some transistors thrown in for ... Abstractions and more abstractions … Computers. Made of lots of different circuits (CPU, memory,

Conclusion: the AND gate has the following interesting properties

16

A AND 0 = 0, irrespective of BA AND 1 = A

Page 17: What do these bits represent? · 2019-12-16 · some transistors thrown in for ... Abstractions and more abstractions … Computers. Made of lots of different circuits (CPU, memory,

OR GateAn OR gate accepts two input signalsIf both are 0, the output is 0; otherwise,the output is 1

17

Figure 4.3 Various representations of a OR gate

Page 18: What do these bits represent? · 2019-12-16 · some transistors thrown in for ... Abstractions and more abstractions … Computers. Made of lots of different circuits (CPU, memory,

XOR Gate

18

XOR is called the exclusive ORPronunciations: zor, ex-or

If both inputs are the same, the output is 0;

otherwise, the output is 1

Page 19: What do these bits represent? · 2019-12-16 · some transistors thrown in for ... Abstractions and more abstractions … Computers. Made of lots of different circuits (CPU, memory,

QUIZ: recognize the gate and draw its symbol!

19

Page 20: What do these bits represent? · 2019-12-16 · some transistors thrown in for ... Abstractions and more abstractions … Computers. Made of lots of different circuits (CPU, memory,

Source: AP CS Principles – Course and Exam Descriptions

Page 21: What do these bits represent? · 2019-12-16 · some transistors thrown in for ... Abstractions and more abstractions … Computers. Made of lots of different circuits (CPU, memory,

QUIZ: elementary properties

21

A AND 0 = ?A AND 1 = ?1 AND B = ?A OR 1 = ?A XOR 0 = ?A XOR 1 = ?

Page 22: What do these bits represent? · 2019-12-16 · some transistors thrown in for ... Abstractions and more abstractions … Computers. Made of lots of different circuits (CPU, memory,

Quiz

22

For the following circuit diagram:• Find the Boolean expression• Find the truth table

X

X =

XOR

NOT

Page 23: What do these bits represent? · 2019-12-16 · some transistors thrown in for ... Abstractions and more abstractions … Computers. Made of lots of different circuits (CPU, memory,

NAND GateIf both inputs are 1, the output is 0;otherwise, the output is 1

Compare to AND:

Page 24: What do these bits represent? · 2019-12-16 · some transistors thrown in for ... Abstractions and more abstractions … Computers. Made of lots of different circuits (CPU, memory,

We can build an AND gate out of a NAND and an INVERTER!

24

(A⋅B)’ (A⋅B)’’ = A⋅B

Rule: Two “bubbles” next to each other cancel out!

Page 25: What do these bits represent? · 2019-12-16 · some transistors thrown in for ... Abstractions and more abstractions … Computers. Made of lots of different circuits (CPU, memory,

QUIZ

Can we build an inverter (NOT) from a NANDgate?

25

Page 26: What do these bits represent? · 2019-12-16 · some transistors thrown in for ... Abstractions and more abstractions … Computers. Made of lots of different circuits (CPU, memory,

Solution

Can we build an inverter (NOT) from a NANDgate?

26

Page 27: What do these bits represent? · 2019-12-16 · some transistors thrown in for ... Abstractions and more abstractions … Computers. Made of lots of different circuits (CPU, memory,

NOR Gate

27

If both inputs are 0, the output is 1;otherwise the output is 0

Compare to OR:

Page 28: What do these bits represent? · 2019-12-16 · some transistors thrown in for ... Abstractions and more abstractions … Computers. Made of lots of different circuits (CPU, memory,

Quiz

Can we make an OR gate out of a NOR and an INVERTER?

28

Page 29: What do these bits represent? · 2019-12-16 · some transistors thrown in for ... Abstractions and more abstractions … Computers. Made of lots of different circuits (CPU, memory,

Whatever happened withthe inverted XOR?

It’s called XNOR, pronounced [ex-nor]

29

Not in text

Page 30: What do these bits represent? · 2019-12-16 · some transistors thrown in for ... Abstractions and more abstractions … Computers. Made of lots of different circuits (CPU, memory,

Review of Gates

A NOT gate inverts its single input An AND gate produces 1 iff both input values are 1An OR gate produces 0 iff both input values are 0A XOR gate produces 0 iff input values are the same

All inverted gates have the opposite outputs

30

If and only if

It’s OK to put the gate representations on your memory-sheet, but you should be able to remember the word descriptions above!

Page 31: What do these bits represent? · 2019-12-16 · some transistors thrown in for ... Abstractions and more abstractions … Computers. Made of lots of different circuits (CPU, memory,

Gates with More Inputs

A three-input AND gate produces an output of 1 iff all input values are 1

31

Page 32: What do these bits represent? · 2019-12-16 · some transistors thrown in for ... Abstractions and more abstractions … Computers. Made of lots of different circuits (CPU, memory,

Remember: There are 3 layers of computer abstraction that we

examine in this chapter:

32

Circuits

Gates

Transistors√

Page 33: What do these bits represent? · 2019-12-16 · some transistors thrown in for ... Abstractions and more abstractions … Computers. Made of lots of different circuits (CPU, memory,

4.3 Constructing GatesTransistor = device that acts either as a wire that

conducts electricity or as a resistor that blocks the flow of electricity, depending on the voltage level of an input signal

Made of a semiconductor material• Neither good conductor of electricity nor a good insulator …• …but with a little help can be either!

Acts like a switch, but w/o moving parts:• Switch open• Switch closed

33

Page 34: What do these bits represent? · 2019-12-16 · some transistors thrown in for ... Abstractions and more abstractions … Computers. Made of lots of different circuits (CPU, memory,

How transistors operate as switches

34

High voltage, a.k.a. +

Low voltage, a.k.a. -

When 1 is applied on the base/gate, the switch closes

When 0 is applied on the base/gate, the switch opens

Base or gate

Page 35: What do these bits represent? · 2019-12-16 · some transistors thrown in for ... Abstractions and more abstractions … Computers. Made of lots of different circuits (CPU, memory,

Transistors

A transistor has three terminals:– A collector/source, typically

connected to the positive terminal of a power source (5 volts, 3.5 volts, etc.)

– An emitter/drain, typically connected to the “ground” (0 volts)

– A base/gate, which controls the flow of current between source and emitter

35

Figure 4.8 The connections of a transistor

Page 36: What do these bits represent? · 2019-12-16 · some transistors thrown in for ... Abstractions and more abstractions … Computers. Made of lots of different circuits (CPU, memory,

The names of transistor terminals-setting the record straight FYI-

36

Bipolar Junction Transistor (BJT)Collector, Base, Emmiter

Field-Effect Transistor (FET)Drain, Gate, Source

“Mongrel” transistor (our text)

Page 37: What do these bits represent? · 2019-12-16 · some transistors thrown in for ... Abstractions and more abstractions … Computers. Made of lots of different circuits (CPU, memory,

The easiest gates to create are NOT, NAND, and NOR

37

We can explain their operation for any combination of inputs!We do this by replacing the transistors with switches!

Page 38: What do these bits represent? · 2019-12-16 · some transistors thrown in for ... Abstractions and more abstractions … Computers. Made of lots of different circuits (CPU, memory,

If there is no path from output to Ground, Vout = 1If there is a path from output to Ground, Vout = 0

38

Page 39: What do these bits represent? · 2019-12-16 · some transistors thrown in for ... Abstractions and more abstractions … Computers. Made of lots of different circuits (CPU, memory,

Non-inverted gates:The AND gate is obtained as a NAND followed by an

inverter. Draw its transistor diagram!

39

Page 40: What do these bits represent? · 2019-12-16 · some transistors thrown in for ... Abstractions and more abstractions … Computers. Made of lots of different circuits (CPU, memory,

QUIZ What gate do we have below?

40

Page 41: What do these bits represent? · 2019-12-16 · some transistors thrown in for ... Abstractions and more abstractions … Computers. Made of lots of different circuits (CPU, memory,

QUIZ What gate do we have below?

41

Page 42: What do these bits represent? · 2019-12-16 · some transistors thrown in for ... Abstractions and more abstractions … Computers. Made of lots of different circuits (CPU, memory,

Quick work for next time:

Read pp.93-104 of text

Answer in notebook the end-of-chapter questions: 1 – 11, 18 – 29, 59

42EOL 1/2

Page 43: What do these bits represent? · 2019-12-16 · some transistors thrown in for ... Abstractions and more abstractions … Computers. Made of lots of different circuits (CPU, memory,

QUIZ: Review of gates’ operationA NOT gate …

An AND gate …

An OR gate …

A XOR gate …

All inverted gates …

43

Page 44: What do these bits represent? · 2019-12-16 · some transistors thrown in for ... Abstractions and more abstractions … Computers. Made of lots of different circuits (CPU, memory,

Quiz

44

For the following circuit diagram:• Find the Boolean expression• Find the truth table

X

X =

Page 45: What do these bits represent? · 2019-12-16 · some transistors thrown in for ... Abstractions and more abstractions … Computers. Made of lots of different circuits (CPU, memory,

Quiz

45

For the following circuit diagram:• Find the Boolean expression• Find the truth table

X

X =

Page 46: What do these bits represent? · 2019-12-16 · some transistors thrown in for ... Abstractions and more abstractions … Computers. Made of lots of different circuits (CPU, memory,

QUIZ: What gate is implemented below?

46

Page 47: What do these bits represent? · 2019-12-16 · some transistors thrown in for ... Abstractions and more abstractions … Computers. Made of lots of different circuits (CPU, memory,

QUIZ: Based on the switching behavior of transistors, verify the behavior of the OR gate when A=V1=1 and B=V2=0.

47

Remember: connection to Ground means

logical zero!

Page 48: What do these bits represent? · 2019-12-16 · some transistors thrown in for ... Abstractions and more abstractions … Computers. Made of lots of different circuits (CPU, memory,

4.4 Intro: From gates to circuits

48

We can go either way between gates and circuits:

AnalysisFind the truth table for the circuit:

X

Page 49: What do these bits represent? · 2019-12-16 · some transistors thrown in for ... Abstractions and more abstractions … Computers. Made of lots of different circuits (CPU, memory,

From gates to circuits

49

DesignFind the logic diagram of the circuit described by the following truth table:

Hint: The table is similar to which of the fundamental gates?

1

0?

Page 50: What do these bits represent? · 2019-12-16 · some transistors thrown in for ... Abstractions and more abstractions … Computers. Made of lots of different circuits (CPU, memory,

SOLUTION

Having only one 0 in the output column, the circuit most resembles the OR gate!It is different from the OR gate only in this respect: …

Write the Boolean expression:

50

Page 51: What do these bits represent? · 2019-12-16 · some transistors thrown in for ... Abstractions and more abstractions … Computers. Made of lots of different circuits (CPU, memory,

SOLUTION

Write the Boolean expression: X = A’ + BDraw the circuit diagram:

51

Page 52: What do these bits represent? · 2019-12-16 · some transistors thrown in for ... Abstractions and more abstractions … Computers. Made of lots of different circuits (CPU, memory,

SOLUTION

Write the Boolean expression: X = A’ + BDraw the diagram:

52

Page 53: What do these bits represent? · 2019-12-16 · some transistors thrown in for ... Abstractions and more abstractions … Computers. Made of lots of different circuits (CPU, memory,

4.4 CircuitsCombinational circuitThe input values explicitly determine the output

Remember: We describe the circuit operations using Boolean expressionsLogic diagramsTruth tables

53

Page 54: What do these bits represent? · 2019-12-16 · some transistors thrown in for ... Abstractions and more abstractions … Computers. Made of lots of different circuits (CPU, memory,

Combinational Circuit

Three inputs require 23 = 8 rows to describe all possible input combinations

Boolean expression is:

54

AB+AC

Page 55: What do these bits represent? · 2019-12-16 · some transistors thrown in for ... Abstractions and more abstractions … Computers. Made of lots of different circuits (CPU, memory,

Another Combinational Circuit

Boolean expression A(B + C)

55

Does this truth table look familiar?

Page 56: What do these bits represent? · 2019-12-16 · some transistors thrown in for ... Abstractions and more abstractions … Computers. Made of lots of different circuits (CPU, memory,

Circuit equivalence: Two circuits that produce the same output for identical input are called equivalent

Boolean algebra allows us to apply provable mathematical principles to help design circuits:

A(B + C) = AB + AC (distributive law) so circuits must be equivalent

56

Page 57: What do these bits represent? · 2019-12-16 · some transistors thrown in for ... Abstractions and more abstractions … Computers. Made of lots of different circuits (CPU, memory,

Each property (law) of Boolean Algebra translates directly into a property of equivalent circuits!

57

Null elements A · 0 = 0 A + 1 = 1Idempotency A · A = A A + A = ADouble complement (A’)’ = A

Page 58: What do these bits represent? · 2019-12-16 · some transistors thrown in for ... Abstractions and more abstractions … Computers. Made of lots of different circuits (CPU, memory,

De Morgan’s Laws

58

Null elements A · 0 = 0 A + 1 = 1Idempotency A · A = A A + A = ADouble complement (A’)’ = A

Page 59: What do these bits represent? · 2019-12-16 · some transistors thrown in for ... Abstractions and more abstractions … Computers. Made of lots of different circuits (CPU, memory,

DeMorgan’s law applied directly to gates

59

Page 60: What do these bits represent? · 2019-12-16 · some transistors thrown in for ... Abstractions and more abstractions … Computers. Made of lots of different circuits (CPU, memory,

DeMorgan’s law QUIZ

60

Apply DeMorgan’s Law directly on the gate diagram below to obtain equivalent circuits:

Page 61: What do these bits represent? · 2019-12-16 · some transistors thrown in for ... Abstractions and more abstractions … Computers. Made of lots of different circuits (CPU, memory,

DeMorgan’s law QUIZ

61

Apply DeMorgan’s Law directly on the gate diagram below to obtain equivalent circuits:

Page 62: What do these bits represent? · 2019-12-16 · some transistors thrown in for ... Abstractions and more abstractions … Computers. Made of lots of different circuits (CPU, memory,

Individual work (in notebook): Write the circuit forms for all Boolean properties in this table! (left and right)

62

Null elements A · 0 = 0 A + 1 = 1Idempotency A · A = A A + A = ADouble complement (A’)’ = A

Page 63: What do these bits represent? · 2019-12-16 · some transistors thrown in for ... Abstractions and more abstractions … Computers. Made of lots of different circuits (CPU, memory,

Very Useful Combinational Circuit:the Adder

At the digital logic level, addition is performed in binary

Addition operations are carried out by special circuits called adders

63

Page 64: What do these bits represent? · 2019-12-16 · some transistors thrown in for ... Abstractions and more abstractions … Computers. Made of lots of different circuits (CPU, memory,

Half-Adder truth table

The result of adding two binary digits could produce a carry value

Recall that 1 + 1 = 10 in base two

Half adderA circuit that computes the

sum of two bits and produces the correct carry bit

64

Truth table

Do you recognize these outputs?

Page 65: What do these bits represent? · 2019-12-16 · some transistors thrown in for ... Abstractions and more abstractions … Computers. Made of lots of different circuits (CPU, memory,

Half Adder

Circuit diagram

Boolean expressions

Sum = A ⊕ BCarry = A·B

65

How many transistors are in

this circuit?

Page 66: What do these bits represent? · 2019-12-16 · some transistors thrown in for ... Abstractions and more abstractions … Computers. Made of lots of different circuits (CPU, memory,

Full AdderThis adder takes the Carry-in value into account!

66

Do you recognize these circuits?

Page 67: What do these bits represent? · 2019-12-16 · some transistors thrown in for ... Abstractions and more abstractions … Computers. Made of lots of different circuits (CPU, memory,

Adding multiple bits- “Ripple Carry” Adder -

67

Page 68: What do these bits represent? · 2019-12-16 · some transistors thrown in for ... Abstractions and more abstractions … Computers. Made of lots of different circuits (CPU, memory,

SKIP Multiplexers

68

Page 69: What do these bits represent? · 2019-12-16 · some transistors thrown in for ... Abstractions and more abstractions … Computers. Made of lots of different circuits (CPU, memory,

There are 2 basic types of circuits

Combinational circuitThe input values explicitly determine the output

Sequential circuitThe output is a function of the input values and the

existing state of the circuit

69

Page 70: What do these bits represent? · 2019-12-16 · some transistors thrown in for ... Abstractions and more abstractions … Computers. Made of lots of different circuits (CPU, memory,

4.5 Circuits for Memorya.k.a. Sequential Circuits

A sequential circuit is one whose output depends not only on the current values of its inputs, but also on the past sequence of those inputs (history).

It can be used to store information, i.e. as memory.

70

Page 71: What do these bits represent? · 2019-12-16 · some transistors thrown in for ... Abstractions and more abstractions … Computers. Made of lots of different circuits (CPU, memory,

The S – R latch

There are several ways to build S – R latches using various kinds of gates, but there’s always feedback.

71

Figure 4.12 An S-R latchHow many

transistors are here?

Page 72: What do these bits represent? · 2019-12-16 · some transistors thrown in for ... Abstractions and more abstractions … Computers. Made of lots of different circuits (CPU, memory,

The state of an S – R latch

If X is 1, we say that the circuit is storing a 1; if X is 0, the circuit is storing a 0

The design guarantees that the two outputs X and Y are (almost always) complements of each other.

72

Figure 4.12 An S-R latch

The value of X is considered to be the state of the circuit.

Page 73: What do these bits represent? · 2019-12-16 · some transistors thrown in for ... Abstractions and more abstractions … Computers. Made of lots of different circuits (CPU, memory,

QUIZ

73

Figure 4.12 An S-R latch

If X = 1, S = 1, R = 1, what is Y?

If X = 0, S = 1, R = 1, what is Y?

Page 74: What do these bits represent? · 2019-12-16 · some transistors thrown in for ... Abstractions and more abstractions … Computers. Made of lots of different circuits (CPU, memory,

Digital lingo: Set means “make 1”, Reset means “make 0”

74

To cause X = 1, make S = 0 (while keeping R = 1).

To cause X = 0, make R = 0 (while keeping S = 1).

How the inputs control the outputs

Page 75: What do these bits represent? · 2019-12-16 · some transistors thrown in for ... Abstractions and more abstractions … Computers. Made of lots of different circuits (CPU, memory,

QUIZ

What happens if both S and R are made 0 at the same time?

75

Page 76: What do these bits represent? · 2019-12-16 · some transistors thrown in for ... Abstractions and more abstractions … Computers. Made of lots of different circuits (CPU, memory,

If both S and R are made 0 at the same time, the outputs X and Y are both 1.This goes against the interpretation of X and Y being opposites!For this reason, it is considered a forbiddencombination of inputs!

76

Solution

Page 77: What do these bits represent? · 2019-12-16 · some transistors thrown in for ... Abstractions and more abstractions … Computers. Made of lots of different circuits (CPU, memory,

Integrated Circuit (a.k.a. IC or chip) = A piece of silicon on which multiple gates have been embedded

Silicon pieces are mounted on a plastic or ceramic package with pins along the edges that can be soldered onto circuit boards or inserted into appropriate sockets

77

Page 78: What do these bits represent? · 2019-12-16 · some transistors thrown in for ... Abstractions and more abstractions … Computers. Made of lots of different circuits (CPU, memory,

Integrated Circuits

Integrated circuits (IC) are classified by the number of gates contained in them

78

VVLSI (?) more than 1B

3rd gen.

4th gen.5th gen.

Page 79: What do these bits represent? · 2019-12-16 · some transistors thrown in for ... Abstractions and more abstractions … Computers. Made of lots of different circuits (CPU, memory,

Integrated Circuits

79

Figure 4.13 An SSI chip containing NAND gates

VLSI chip: AMD Phenom II CPU contains 768 million transistors

How many transistors are here?

Page 80: What do these bits represent? · 2019-12-16 · some transistors thrown in for ... Abstractions and more abstractions … Computers. Made of lots of different circuits (CPU, memory,

80

As of 2017, the highest transistor counts in commercially available CPUs are:• 7.2 billion in Intel's Xeon E5 (22 cores).• >10 billion in Oracle’s Spark M7 and M8 (32 cores)• 19.2 billion in AMD’s Epyc (32 cores)

Nvidia GV100 GPU: 21.1 billion

Xilinx Virtex Ultrascale FPGAs >20 billion

Source: http://en.wikipedia.org/wiki/Transistor_count

AMD CEO Lisa Su, May 2017

Page 81: What do these bits represent? · 2019-12-16 · some transistors thrown in for ... Abstractions and more abstractions … Computers. Made of lots of different circuits (CPU, memory,

The most important integrated circuit in any computer is the Central Processing Unit, or CPU

Each CPU chip has a large number of pins through which communication takes place in a computer system

81

motherboard CPU

Page 82: What do these bits represent? · 2019-12-16 · some transistors thrown in for ... Abstractions and more abstractions … Computers. Made of lots of different circuits (CPU, memory,

Each CPU chip has a large number of pins (Pin Grid Array = PGA) through which communication takes place

82Image source: http://www.digitale-fotografien.com/freie-galerie/sonstiges/prozessor/

Page 83: What do these bits represent? · 2019-12-16 · some transistors thrown in for ... Abstractions and more abstractions … Computers. Made of lots of different circuits (CPU, memory,

Latest packaging technology: Ball Grid Array = BGA

83

Image source: http://www.electronicsweekly.com/news/design/test-and-measurement/boundary-scan-testing-grows-as-bgas-proliferate-2006-01/

Image source: http://www.etech-web.com/bga-reballing.htm

Page 84: What do these bits represent? · 2019-12-16 · some transistors thrown in for ... Abstractions and more abstractions … Computers. Made of lots of different circuits (CPU, memory,

The first midterm for this class is next week, during the lab

Homework - see next slideReview packetsBring: Notebook, Memory Sheet

84

Page 85: What do these bits represent? · 2019-12-16 · some transistors thrown in for ... Abstractions and more abstractions … Computers. Made of lots of different circuits (CPU, memory,

Homework for ch.4 is due Tue, Oct.9(after exam)

End-of-chapter 37, 48, 49, 50, 62, 66, 70, 72, 73

Thought question #4

Notes: • At #48, “grounded” means “connected directly to the

ground”.• In order to solve #50(e), you need to solve #73 first!

85

Page 86: What do these bits represent? · 2019-12-16 · some transistors thrown in for ... Abstractions and more abstractions … Computers. Made of lots of different circuits (CPU, memory,

86

QUIZ: Draw the equivalent circuits corresponding to the LHS and RHS of these Boolean algebra properties.

Name each property.

Page 87: What do these bits represent? · 2019-12-16 · some transistors thrown in for ... Abstractions and more abstractions … Computers. Made of lots of different circuits (CPU, memory,

QUIZ: Why is this circuit called Half Adder?

Boolean expressions

Sum = A ⊕ BCarry = A·B

87

Page 88: What do these bits represent? · 2019-12-16 · some transistors thrown in for ... Abstractions and more abstractions … Computers. Made of lots of different circuits (CPU, memory,

88

Page 89: What do these bits represent? · 2019-12-16 · some transistors thrown in for ... Abstractions and more abstractions … Computers. Made of lots of different circuits (CPU, memory,

Chapter review questions

• Identify the basic gates and describe the behavior of each– Includes the inverted gates!

• Describe how gates are implemented using transistors

• Combine basic gates into circuits– Analysis vs. design

• Describe the behavior of a gate or circuit using Boolean expressions, truth tables, and logic diagrams

89

Page 90: What do these bits represent? · 2019-12-16 · some transistors thrown in for ... Abstractions and more abstractions … Computers. Made of lots of different circuits (CPU, memory,

Chapter review questions

• Write deMorgan’s laws in Boolean form and in circuit form

• Compare and contrast a half adder and a full adder

• Explain how an S-R latch operates• Describe the characteristics of the four (five?)

generations of integrated circuits• What is the CPU?

90