1 Computer Basics How exactly does a computer work? © Lawrence Snyder, 2004.
-
Upload
myron-taylor -
Category
Documents
-
view
234 -
download
7
Transcript of 1 Computer Basics How exactly does a computer work? © Lawrence Snyder, 2004.
![Page 1: 1 Computer Basics How exactly does a computer work? © Lawrence Snyder, 2004.](https://reader036.fdocuments.net/reader036/viewer/2022062301/56649ecf5503460f94bdcf26/html5/thumbnails/1.jpg)
1
FIT100FIT100
Computer Basics
How exactly does a computer work?
© Lawrence Snyder, 2004
![Page 2: 1 Computer Basics How exactly does a computer work? © Lawrence Snyder, 2004.](https://reader036.fdocuments.net/reader036/viewer/2022062301/56649ecf5503460f94bdcf26/html5/thumbnails/2.jpg)
2
FIT100FIT100Echoes of Project 1?
Understandably, Martha Stewart has a few things occupying her that might keep her away from a Newsweek photo shoot. But that didn't keep the news magazine from throwing her on the cover and proclaiming she'll exit prison "thinner, wealthier and ready for prime time" along with a photo (illustration) to match.
Photo editors cropped her head onto a model's slimmer body to create the visual effect, which even the New York Post knows is an ethical black hole (err, maybe they don't). A footnote does appear on page three with the credits: "Cover: Photo illustration by Michael Elins ... head shot by Marc Bryan-Brown."
![Page 3: 1 Computer Basics How exactly does a computer work? © Lawrence Snyder, 2004.](https://reader036.fdocuments.net/reader036/viewer/2022062301/56649ecf5503460f94bdcf26/html5/thumbnails/3.jpg)
3
FIT100FIT100Integrated 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 ideasIntegration -- circuits built as a unit from like parts
Photolithography -- printing process to make chips
![Page 4: 1 Computer Basics How exactly does a computer work? © Lawrence Snyder, 2004.](https://reader036.fdocuments.net/reader036/viewer/2022062301/56649ecf5503460f94bdcf26/html5/thumbnails/4.jpg)
4
FIT100FIT100Intel Pentium Processor
![Page 5: 1 Computer Basics How exactly does a computer work? © Lawrence Snyder, 2004.](https://reader036.fdocuments.net/reader036/viewer/2022062301/56649ecf5503460f94bdcf26/html5/thumbnails/5.jpg)
5
FIT100FIT100Photolithography
Consider process for depositing wires
Mask
Photoresist
Silicon
Ultraviolet Light
Aluminum
![Page 6: 1 Computer Basics How exactly does a computer work? © Lawrence Snyder, 2004.](https://reader036.fdocuments.net/reader036/viewer/2022062301/56649ecf5503460f94bdcf26/html5/thumbnails/6.jpg)
6
FIT100FIT100Remove Resist
Etch away changed-by-light resist
Etch away remaining resist
The cost of the circuit is not related to complexity
![Page 7: 1 Computer Basics How exactly does a computer work? © Lawrence Snyder, 2004.](https://reader036.fdocuments.net/reader036/viewer/2022062301/56649ecf5503460f94bdcf26/html5/thumbnails/7.jpg)
7
FIT100FIT100R4400 NEC/MIPS Processor
![Page 8: 1 Computer Basics How exactly does a computer work? © Lawrence Snyder, 2004.](https://reader036.fdocuments.net/reader036/viewer/2022062301/56649ecf5503460f94bdcf26/html5/thumbnails/8.jpg)
8
FIT100FIT100Semiconductors
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
![Page 9: 1 Computer Basics How exactly does a computer work? © Lawrence Snyder, 2004.](https://reader036.fdocuments.net/reader036/viewer/2022062301/56649ecf5503460f94bdcf26/html5/thumbnails/9.jpg)
9
FIT100FIT100Field 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 key• Neutral gate, channel doesn’t conduct• Charged gate, channel conducts
A transistor has 3 wires
ChannelGate
![Page 10: 1 Computer Basics How exactly does a computer work? © Lawrence Snyder, 2004.](https://reader036.fdocuments.net/reader036/viewer/2022062301/56649ecf5503460f94bdcf26/html5/thumbnails/10.jpg)
10
FIT100FIT100MIPS R10000 Processor
Notice that wires cross over other wires ...
![Page 11: 1 Computer Basics How exactly does a computer work? © Lawrence Snyder, 2004.](https://reader036.fdocuments.net/reader036/viewer/2022062301/56649ecf5503460f94bdcf26/html5/thumbnails/11.jpg)
11
FIT100FIT100MOS Transistors
The field effect idea is implemented in metal-oxide-semiconductor transistors
Wire Wire
GateInsulator
Channel
Cross section view View from above
Silicon
![Page 12: 1 Computer Basics How exactly does a computer work? © Lawrence Snyder, 2004.](https://reader036.fdocuments.net/reader036/viewer/2022062301/56649ecf5503460f94bdcf26/html5/thumbnails/12.jpg)
12
FIT100FIT100Operation
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
![Page 13: 1 Computer Basics How exactly does a computer work? © Lawrence Snyder, 2004.](https://reader036.fdocuments.net/reader036/viewer/2022062301/56649ecf5503460f94bdcf26/html5/thumbnails/13.jpg)
13
FIT100FIT100Computers ...
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
![Page 14: 1 Computer Basics How exactly does a computer work? © Lawrence Snyder, 2004.](https://reader036.fdocuments.net/reader036/viewer/2022062301/56649ecf5503460f94bdcf26/html5/thumbnails/14.jpg)
14
FIT100FIT100Fetch/Execute Cycle
Computer = instruction execution engine• The fetch/execute cycle is the process that
executes instructions
Instruction Fetch (IF)Instruction Decode (ID)Data Fetch (DF)Instruction Execution (EX)Result Return (RR)
![Page 15: 1 Computer Basics How exactly does a computer work? © Lawrence Snyder, 2004.](https://reader036.fdocuments.net/reader036/viewer/2022062301/56649ecf5503460f94bdcf26/html5/thumbnails/15.jpg)
15
FIT100FIT100Anatomy of a Computer
Memory Output
ALU Control Input
MouseKeyboardScanner
Hard DiskFloppy Disk
MonitorPrinterSpeakers
The Hard Disk is the -device
![Page 16: 1 Computer Basics How exactly does a computer work? © Lawrence Snyder, 2004.](https://reader036.fdocuments.net/reader036/viewer/2022062301/56649ecf5503460f94bdcf26/html5/thumbnails/16.jpg)
16
FIT100FIT100Memory ...
Programs and their data must be in the memory while they are running
0
G1
o2
L3
o4
b5
o6
s7
!8
!9
010
...11
0
byte=8 bits
1 0 0 1 1 0 0
memory addressesMemory locations
memory contents
Groups of four bytes are a word
![Page 17: 1 Computer Basics How exactly does a computer work? © Lawrence Snyder, 2004.](https://reader036.fdocuments.net/reader036/viewer/2022062301/56649ecf5503460f94bdcf26/html5/thumbnails/17.jpg)
17
FIT100FIT100Control
The Fetch/Execute cycle is hardwired into the computer’s control, i.e. it is the actual “engine”The instructions executed have the form
ADDB 10, 16, 20
6 10
11
12
13
14
15
1216 17 18 19
1820
...21
Put in memory location 20 the contents of memory location 10 + contents of memory location 16
![Page 18: 1 Computer Basics How exactly does a computer work? © Lawrence Snyder, 2004.](https://reader036.fdocuments.net/reader036/viewer/2022062301/56649ecf5503460f94bdcf26/html5/thumbnails/18.jpg)
18
FIT100FIT100Indirect Data Reference
Instructions tell where the data is, not what the data is … contents changeOne instruction has many effects
ADDB 10, 16, 20
8 10
11
12
13
14
15
716 17 18 19
1520
...21
60 10
11
12
13
14
15
-5516 17 18 19
520
...21
![Page 19: 1 Computer Basics How exactly does a computer work? © Lawrence Snyder, 2004.](https://reader036.fdocuments.net/reader036/viewer/2022062301/56649ecf5503460f94bdcf26/html5/thumbnails/19.jpg)
19
FIT100FIT100ALU
The Arithmetic/Logic Unit does the actual computation
Most computers have only about a 100-150 instructions hard wired
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
![Page 20: 1 Computer Basics How exactly does a computer work? © Lawrence Snyder, 2004.](https://reader036.fdocuments.net/reader036/viewer/2022062301/56649ecf5503460f94bdcf26/html5/thumbnails/20.jpg)
20
FIT100FIT100Input/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
![Page 21: 1 Computer Basics How exactly does a computer work? © Lawrence Snyder, 2004.](https://reader036.fdocuments.net/reader036/viewer/2022062301/56649ecf5503460f94bdcf26/html5/thumbnails/21.jpg)
21
FIT100FIT100The PC’s PC
The program counter (PC) tells where the next instruction comes from
• Instructions are a word long, so add 4 to the PC to find the next instruction
110
111
112
113
114
115 116 117 118 119 120
...121
ADD 210,216,220 AND 414,418,720
Program Counter: 112
OR688,724
![Page 22: 1 Computer Basics How exactly does a computer work? © Lawrence Snyder, 2004.](https://reader036.fdocuments.net/reader036/viewer/2022062301/56649ecf5503460f94bdcf26/html5/thumbnails/22.jpg)
22
FIT100FIT100Clocks Run The Engine
The rate a computer “spins around” the Fetch/Execute cycle is controlled by it’s clock
• Current clocks run 2-3 GHz• In principle, the computer should do one
instruction per cycle, but often it fails to• Modern processors try to do more than
one instruction per cycle, and often succeed
Clock rate is not a good indicator of speed
![Page 23: 1 Computer Basics How exactly does a computer work? © Lawrence Snyder, 2004.](https://reader036.fdocuments.net/reader036/viewer/2022062301/56649ecf5503460f94bdcf26/html5/thumbnails/23.jpg)
23
FIT100FIT100Summary
Semiconductors make Info Revolution Semiconductors properties ...
Fields controls when semiconductor conductsOn/off of conductors allows us to compute
Fetch/execute cycle runs instructions 5 steps to interpret machine instructions Programs must be in the memory Data is moved in and out of memory
Instructions, data are represented in binary