36
Announcements Chapter 9 for today Chapter 11 was for Wednesday No clickers today Guest speaker on Monday Ian King from the Living Computer Museum 06/24/22 1 D.A. Clements, UW Information School

Announcements Chapter 9 for today Chapter 11 was for Wednesday No clickers today Guest speaker on Monday Ian King from the Living Computer Museum 2/19/2016

Embed Size (px)

DESCRIPTION

Announcements Clicker scoring 2 points for correct answers 1 point for incorrect answers 2/19/ D.A. Clements, UW Information School

Citation preview

Page 1: Announcements Chapter 9 for today Chapter 11 was for Wednesday No clickers today Guest speaker on Monday Ian King from the Living Computer Museum 2/19/2016

Announcements

Chapter 9 for todayChapter 11 was for Wednesday

No clickers todayGuest speaker on Monday

Ian King from the Living Computer Museum

05/04/23 1D.A. Clements, UW Information School

Page 2: Announcements Chapter 9 for today Chapter 11 was for Wednesday No clickers today Guest speaker on Monday Ian King from the Living Computer Museum 2/19/2016

Announcements

Project 1A due Monday at 10pm1-1-1 rule: Tuesday at 10pm

05/04/23 2D.A. Clements, UW Information School

Page 3: Announcements Chapter 9 for today Chapter 11 was for Wednesday No clickers today Guest speaker on Monday Ian King from the Living Computer Museum 2/19/2016

Announcements

Clicker scoring2 points for correct answers1 point for incorrect answers

05/04/23 3D.A. Clements, UW Information School

Page 4: Announcements Chapter 9 for today Chapter 11 was for Wednesday No clickers today Guest speaker on Monday Ian King from the Living Computer Museum 2/19/2016

AnnouncementsHow does that work when there are 5 points

possible per day?Random number of questions each day1. Total your score

12 correct out of 15

2. Find the percentage correct .80

3. Multiply the percentage by 5 .80 x 5 = 4

4. Record your score 4 points

05/04/23 4D.A. Clements, UW Information School

Page 5: Announcements Chapter 9 for today Chapter 11 was for Wednesday No clickers today Guest speaker on Monday Ian King from the Living Computer Museum 2/19/2016

Announcements

Guest speaker on Monday and Friday Ian King, Curator of the Living Computer

MuseumPaul Allen's computer museumHistory of computers and the various

breakthroughs Next week's schedule on the calendar has been

re-arranged

05/04/23 5D.A. Clements, UW Information School

Page 6: Announcements Chapter 9 for today Chapter 11 was for Wednesday No clickers today Guest speaker on Monday Ian King from the Living Computer Museum 2/19/2016

Vocabulary for Monday

No readingLearn vocabulary for Monday lecture

See the GoPost under VocabularyMore terms coming!

Learn vocabulary for Chapter 9

05/04/23 D.A. Clements, UW Information School 6

Page 7: Announcements Chapter 9 for today Chapter 11 was for Wednesday No clickers today Guest speaker on Monday Ian King from the Living Computer Museum 2/19/2016

Announcements

WednesdayAlgorithmsHigh- and low-level programming languages

05/04/23 D.A. Clements, UW Information School 7

Page 8: Announcements Chapter 9 for today Chapter 11 was for Wednesday No clickers today Guest speaker on Monday Ian King from the Living Computer Museum 2/19/2016

Project 1

Misinformation Site

05/04/23 D.A. Clements, UW Information School 8

Page 9: Announcements Chapter 9 for today Chapter 11 was for Wednesday No clickers today Guest speaker on Monday Ian King from the Living Computer Museum 2/19/2016

Copyright

Copyleft Creative Commons Fair Use Doctrine Public domain

Copyright has expired (28 yrs x 2 + 50) Created by a government agency

Copyright not listed anywhere Copyright because someone made it Be sure to check the fine print at bottom of Web page

05/04/23 9D.A. Clements, UW Information School

Page 10: Announcements Chapter 9 for today Chapter 11 was for Wednesday No clickers today Guest speaker on Monday Ian King from the Living Computer Museum 2/19/2016

Project 1A

Do not make any changes in Project 1A after the due date!

If you need something from 1A for 1BCopy it to your project 1B folder

05/04/23 D.A. Clements, UW Information School 10

Page 11: Announcements Chapter 9 for today Chapter 11 was for Wednesday No clickers today Guest speaker on Monday Ian King from the Living Computer Museum 2/19/2016

Project 1B

The Misinformation SiteClearly labeled hoax or bogus or fake with

the logo you created in 1ATwo pages (linked)

1. Misinformation2. Disclaimer

Do not make any changes

05/04/23 D.A. Clements, UW Information School 11

Page 12: Announcements Chapter 9 for today Chapter 11 was for Wednesday No clickers today Guest speaker on Monday Ian King from the Living Computer Museum 2/19/2016

12

Computer Basics

How exactly does a computer work?

© Lawrence Snyder, 2004

05/04/23 D.A. Clements, UW Information School

Page 13: Announcements Chapter 9 for today Chapter 11 was for Wednesday No clickers today Guest speaker on Monday Ian King from the Living Computer Museum 2/19/2016

13

Integrated Circuits

Integrated circuits (ICs) are the power source of the information revolution

When computers were made of discrete parts, wires of every transistor (3), capacitor (2), resistor (2), etc. had to be hand-connected

Labor intensive, expensive, error prone, unreliable, cumbersome, … even with robots!

Integrated circuits solved that by 2 ideas Integration—circuits built as a unit from like parts Photolithography—printing process to make chips

05/04/23 D.A. Clements, UW Information School

Page 14: Announcements Chapter 9 for today Chapter 11 was for Wednesday No clickers today Guest speaker on Monday Ian King from the Living Computer Museum 2/19/2016

Videos—How they're made

Integrated Circuits (5:21)

Microprocessor (6:48)

Printed Circuit Boards (5:26)

05/04/23 14D.A. Clements, UW Information School

Page 15: Announcements Chapter 9 for today Chapter 11 was for Wednesday No clickers today Guest speaker on Monday Ian King from the Living Computer Museum 2/19/2016

15

Intel Pentium Processor

05/04/23 D.A. Clements, UW Information School

Page 16: Announcements Chapter 9 for today Chapter 11 was for Wednesday No clickers today Guest speaker on Monday Ian King from the Living Computer Museum 2/19/2016

16

Photolithography

Consider process for depositing wires

Mask

Photoresist

Silicon

Ultraviolet Light

Aluminum

05/04/23 D.A. Clements, UW Information School

Page 17: Announcements Chapter 9 for today Chapter 11 was for Wednesday No clickers today Guest speaker on Monday Ian King from the Living Computer Museum 2/19/2016

17

Remove Resist

Etch away changed-by-light resist

Etch away remaining resist

The cost of the circuit is not related to complexity05/04/23 D.A. Clements, UW Information School

Page 18: Announcements Chapter 9 for today Chapter 11 was for Wednesday No clickers today Guest speaker on Monday Ian King from the Living Computer Museum 2/19/2016

18

R4400 NEC/MIPS Processor

05/04/23 D.A. Clements, UW Information School

Page 19: Announcements Chapter 9 for today Chapter 11 was for Wednesday No clickers today Guest speaker on Monday Ian King from the Living Computer Museum 2/19/2016

19

Semiconductors

Silicon, a semiconductor -- sometimes it conducts and sometimes it doesn’t

It’s possible to control when semiconductors do and don’t conduct

Ex.: Use control to test Mars AND rover

Send “yes” signal on wire

Make semiconductor conduct if “Mars” is found

Detect presence/absence of “yes”

Make semiconductor conduct if “rover” is found

Compute by controlling conducting

05/04/23 D.A. Clements, UW Information School

Page 20: Announcements Chapter 9 for today Chapter 11 was for Wednesday No clickers today Guest speaker on Monday Ian King from the Living Computer Museum 2/19/2016

20

Field Effect

Charged objects are familiar -- use a nylon comb on a dry day

A charged field can control whether a semiconductor conducts or not

The charge of the control wire (gate) is keyNeutral gate, channel doesn’t conductCharged gate, channel conducts

A transistor has 3 wires

ChannelGate

05/04/23 D.A. Clements, UW Information School

Page 21: Announcements Chapter 9 for today Chapter 11 was for Wednesday No clickers today Guest speaker on Monday Ian King from the Living Computer Museum 2/19/2016

21

MIPS R10000 Processor

Notice that wires cross over other wires ...

05/04/23 D.A. Clements, UW Information School

Page 22: Announcements Chapter 9 for today Chapter 11 was for Wednesday No clickers today Guest speaker on Monday Ian King from the Living Computer Museum 2/19/2016

22

MOS Transistors

The field effect idea is implemented in metal-oxide-semiconductor transistors

Wire WireGateInsulator

Channel

Cross section view View from above

Silicon

05/04/23 D.A. Clements, UW Information School

Page 23: Announcements Chapter 9 for today Chapter 11 was for Wednesday No clickers today Guest speaker on Monday Ian King from the Living Computer Museum 2/19/2016

23

Operation

The two cases: the gate is neutral or the gate is charged

Wire WireGate

Channel

Notice key points of integrated circuits: Constructed as a unit of compatible partsFabricated in layers by photolithography

Wire WireGate

Channel

Charged gate attracts electrons to channel

05/04/23 D.A. Clements, UW Information School

Page 24: Announcements Chapter 9 for today Chapter 11 was for Wednesday No clickers today Guest speaker on Monday Ian King from the Living Computer Museum 2/19/2016

24

Computers ...

Deterministically execute instructions to process information

“Deterministically” means that when a computer chooses the next instruction to perform it is required by its construction to execute a specific instruction based only on the program and input it is given

Computers have no free will and they are not cruel

05/04/23 D.A. Clements, UW Information School

Page 25: Announcements Chapter 9 for today Chapter 11 was for Wednesday No clickers today Guest speaker on Monday Ian King from the Living Computer Museum 2/19/2016

Computer = instruction execution engine The fetch/execute cycle is the process that executes

instructions

25

Fetch/Execute Cycle

Instruction Fetch (IF)Instruction Decode (ID)Data Fetch (DF)Instruction Execution (EX)Result Return (RR)

05/04/23 D.A. Clements, UW Information School

Page 26: Announcements Chapter 9 for today Chapter 11 was for Wednesday No clickers today Guest speaker on Monday Ian King from the Living Computer Museum 2/19/2016

26

Anatomy of a Computer

Memory Output

ALU Control Input

MouseKeyboardScanner

Hard DiskFloppy Disk

MonitorPrinterSpeakers

The Hard Disk is the -device

05/04/23 D.A. Clements, UW Information School

Page 27: Announcements Chapter 9 for today Chapter 11 was for Wednesday No clickers today Guest speaker on Monday Ian King from the Living Computer Museum 2/19/2016

27

Memory ...

Programs and their data must be in the memory while they are running

0

G

1

o

2

D

3

a

4

w

5

g

6

s

7

!

8

!

9

0

10

...

11

0

byte=8 bits

1 0 0 0 1 0 0

memory addressesMemory locations

memory contents

Groups of four bytes are a word

05/04/23 D.A. Clements, UW Information School

Page 28: Announcements Chapter 9 for today Chapter 11 was for Wednesday No clickers today Guest speaker on Monday Ian King from the Living Computer Museum 2/19/2016

28

Control

The Fetch/Execute cycle is hardwired into the computer’s control, i.e., it is the actual “engine”

The instructions executed have the formADDB 10, 16, 20

6

10

11

12

13

14

15

12

16 17 18 19

18

20

...

21

Put in memory location 20 the contents of memory location 10 + contents of memory location 16

05/04/23 D.A. Clements, UW Information School

Page 29: Announcements Chapter 9 for today Chapter 11 was for Wednesday No clickers today Guest speaker on Monday Ian King from the Living Computer Museum 2/19/2016

29

Indirect Data Reference

Instructions tell where the data is, not what the data is … contents change

One instruction has many effects ADDB 10, 16, 20

8

10

11

12

13

14

15

7

16 17 18 19

15

20

...

21

60

10

11

12

13

14

15

-55

16 17 18 19

5

20

...

21

05/04/23 D.A. Clements, UW Information School

Page 30: Announcements Chapter 9 for today Chapter 11 was for Wednesday No clickers today Guest speaker on Monday Ian King from the Living Computer Museum 2/19/2016

30

ALU

The Arithmetic/Logic Unit does the actual computation

Most computers have only about 100-150 hard-wired instructions

Each type of data has its own separate instructions ADDB : add bytes ADDBU : add bytes unsignedADDH : add half words ADDHU : add halves unsignedADD : add words ADDU : add words unsignedADDS : add short decimal numbersADDD : add long decimal numbers

05/04/23 D.A. Clements, UW Information School

Page 31: Announcements Chapter 9 for today Chapter 11 was for Wednesday No clickers today Guest speaker on Monday Ian King from the Living Computer Museum 2/19/2016

31

Input/Output

Input units bring data to memory from outside world; output units send data to outside world from memory

Most peripheral devices are “dumb” meaning that the processor assists in their operation

Disks are memory devices because they can output information and input it back again

05/04/23 D.A. Clements, UW Information School

Page 32: Announcements Chapter 9 for today Chapter 11 was for Wednesday No clickers today Guest speaker on Monday Ian King from the Living Computer Museum 2/19/2016

110

The program counter (PC) tells where the next instruction comes from

Instructions are a word long Recall that 4 bytes is a word

Add 4 to the PC to find the next instruction

111

112

113

114

115 116 117 118 119 120 121

AND 414,418,720

Program Counter: 112

OR

32

The PC’s PC

688724 ADD 210,216,220

05/04/23 D.A. Clements, UW Information School

Page 33: Announcements Chapter 9 for today Chapter 11 was for Wednesday No clickers today Guest speaker on Monday Ian King from the Living Computer Museum 2/19/2016

33

Clocks Run The Engine

The rate a computer “spins around” the Fetch/Execute cycle is controlled by its clock

Current clocks run 2-3 GHz In principle, the computer should do one

instruction per cycle, but often it fails toModern processors try to do more than one

instruction per cycle, and often succeed

Clock rate is not a good indicator of speed

05/04/23 D.A. Clements, UW Information School

Page 34: Announcements Chapter 9 for today Chapter 11 was for Wednesday No clickers today Guest speaker on Monday Ian King from the Living Computer Museum 2/19/2016

Animation

Fetch-Execute Cycle

05/04/23 34D.A. Clements, UW Information School

Page 35: Announcements Chapter 9 for today Chapter 11 was for Wednesday No clickers today Guest speaker on Monday Ian King from the Living Computer Museum 2/19/2016

35

Summary

Semiconductors made Info RevolutionSemiconductor properties ...

Fields control when semiconductor conductsOn/off of conductors allows us to compute

Fetch/execute cycle runs instructions 5 steps to interpret machine instructionsPrograms must be in the memoryData is moved in and out of memory

Instructions, data are represented in binary05/04/23 D.A. Clements, UW Information School

Page 36: Announcements Chapter 9 for today Chapter 11 was for Wednesday No clickers today Guest speaker on Monday Ian King from the Living Computer Museum 2/19/2016

Quiz topics

Bit, Byte, KB, MB, GB, TB ALU, PC Memory Peripheral Driver Binary Compression IC JPG, GIF, TIFF

05/04/23 36D.A. Clements, UW Information School