Chapter 4 Converts data into information Control center Set of electronic circuitry that executes...
-
Upload
timothy-williams -
Category
Documents
-
view
216 -
download
0
Transcript of Chapter 4 Converts data into information Control center Set of electronic circuitry that executes...
![Page 1: Chapter 4 Converts data into information Control center Set of electronic circuitry that executes stored program instructions Two parts ◦ Control.](https://reader035.fdocuments.in/reader035/viewer/2022062421/56649da95503460f94a97684/html5/thumbnails/1.jpg)
Chapter 4
![Page 2: Chapter 4 Converts data into information Control center Set of electronic circuitry that executes stored program instructions Two parts ◦ Control.](https://reader035.fdocuments.in/reader035/viewer/2022062421/56649da95503460f94a97684/html5/thumbnails/2.jpg)
![Page 3: Chapter 4 Converts data into information Control center Set of electronic circuitry that executes stored program instructions Two parts ◦ Control.](https://reader035.fdocuments.in/reader035/viewer/2022062421/56649da95503460f94a97684/html5/thumbnails/3.jpg)
Converts data into information Control center Set of electronic circuitry that executes
stored program instructions Two parts
◦ Control Unit (CU)◦ Arithmetic Logic Unit (ALU)
![Page 4: Chapter 4 Converts data into information Control center Set of electronic circuitry that executes stored program instructions Two parts ◦ Control.](https://reader035.fdocuments.in/reader035/viewer/2022062421/56649da95503460f94a97684/html5/thumbnails/4.jpg)
Part of the hardware that is in-charge Directs the computer system to execute
stored program instructions Communicates with other parts of the
hardware
![Page 5: Chapter 4 Converts data into information Control center Set of electronic circuitry that executes stored program instructions Two parts ◦ Control.](https://reader035.fdocuments.in/reader035/viewer/2022062421/56649da95503460f94a97684/html5/thumbnails/5.jpg)
Performs arithmetic operations
Performs logical operations
![Page 6: Chapter 4 Converts data into information Control center Set of electronic circuitry that executes stored program instructions Two parts ◦ Control.](https://reader035.fdocuments.in/reader035/viewer/2022062421/56649da95503460f94a97684/html5/thumbnails/6.jpg)
AdditionSubtraction
MultiplicationDivision
![Page 7: Chapter 4 Converts data into information Control center Set of electronic circuitry that executes stored program instructions Two parts ◦ Control.](https://reader035.fdocuments.in/reader035/viewer/2022062421/56649da95503460f94a97684/html5/thumbnails/7.jpg)
Evaluates conditions Makes comparisons Can compare
◦ Numbers◦ Letters◦ Special characters
![Page 8: Chapter 4 Converts data into information Control center Set of electronic circuitry that executes stored program instructions Two parts ◦ Control.](https://reader035.fdocuments.in/reader035/viewer/2022062421/56649da95503460f94a97684/html5/thumbnails/8.jpg)
Secondary◦ Data that will eventually be used◦ Long-term
Memory◦ Data that will be used in the near future◦ Temporary◦ Faster access than storage
Registers◦ Data immediately related to the operation being
executed◦ Faster access than memory
![Page 9: Chapter 4 Converts data into information Control center Set of electronic circuitry that executes stored program instructions Two parts ◦ Control.](https://reader035.fdocuments.in/reader035/viewer/2022062421/56649da95503460f94a97684/html5/thumbnails/9.jpg)
KB – kilobyte•1024 bytes•Some diskettes•Cache memory
MB – megabyte•Million bytes•RAM
GB – gigabyte•Billion bytes•Hard disks•CDs and DVDs
TB – terabytes•Trillion bytes•Large hard disks
![Page 10: Chapter 4 Converts data into information Control center Set of electronic circuitry that executes stored program instructions Two parts ◦ Control.](https://reader035.fdocuments.in/reader035/viewer/2022062421/56649da95503460f94a97684/html5/thumbnails/10.jpg)
Primary storagePrimary memory
Main storageInternal storageMain memory
![Page 11: Chapter 4 Converts data into information Control center Set of electronic circuitry that executes stored program instructions Two parts ◦ Control.](https://reader035.fdocuments.in/reader035/viewer/2022062421/56649da95503460f94a97684/html5/thumbnails/11.jpg)
RAMRandom Access Memory
ROMRead Only Memory
![Page 12: Chapter 4 Converts data into information Control center Set of electronic circuitry that executes stored program instructions Two parts ◦ Control.](https://reader035.fdocuments.in/reader035/viewer/2022062421/56649da95503460f94a97684/html5/thumbnails/12.jpg)
Requires current to retain values Volatile Data and instructions can be read and
modified Users typically refer to this type of
memory
![Page 13: Chapter 4 Converts data into information Control center Set of electronic circuitry that executes stored program instructions Two parts ◦ Control.](https://reader035.fdocuments.in/reader035/viewer/2022062421/56649da95503460f94a97684/html5/thumbnails/13.jpg)
Operating System Program currently running Data needed by the program Intermediate results waiting to be output
![Page 14: Chapter 4 Converts data into information Control center Set of electronic circuitry that executes stored program instructions Two parts ◦ Control.](https://reader035.fdocuments.in/reader035/viewer/2022062421/56649da95503460f94a97684/html5/thumbnails/14.jpg)
Non-volatile Instructions for booting the computer Data and instructions can be read, but not
modified Instructions are typically recorded at factory
![Page 15: Chapter 4 Converts data into information Control center Set of electronic circuitry that executes stored program instructions Two parts ◦ Control.](https://reader035.fdocuments.in/reader035/viewer/2022062421/56649da95503460f94a97684/html5/thumbnails/15.jpg)
CU gets an instruction and places it in memory
CU decodes the instruction CU notifies the appropriate part of hardware
to take action Control is transferred to the appropriate part
of hardware Task is performed Control is returned to the CU
![Page 16: Chapter 4 Converts data into information Control center Set of electronic circuitry that executes stored program instructions Two parts ◦ Control.](https://reader035.fdocuments.in/reader035/viewer/2022062421/56649da95503460f94a97684/html5/thumbnails/16.jpg)
I-time CU fetches an instruction from memory
and puts it into a register CU decodes the instruction and
determines the memory location of the data required
![Page 17: Chapter 4 Converts data into information Control center Set of electronic circuitry that executes stored program instructions Two parts ◦ Control.](https://reader035.fdocuments.in/reader035/viewer/2022062421/56649da95503460f94a97684/html5/thumbnails/17.jpg)
E-time Execution
◦ CU moves the data from memory to registers in the ALU
◦ ALU is given control and executes the instruction
◦ Control returns to the CU CU stores the result of the operation in
memory or in a register
![Page 18: Chapter 4 Converts data into information Control center Set of electronic circuitry that executes stored program instructions Two parts ◦ Control.](https://reader035.fdocuments.in/reader035/viewer/2022062421/56649da95503460f94a97684/html5/thumbnails/18.jpg)
System clock produces pulses at a fixed rate
Each pulse is one Machine Cycle One program instruction may actually be
several instructions to the CPU Each CPU instruction will take one pulse CPU has an instruction set – instructions
that it can understand and process
![Page 19: Chapter 4 Converts data into information Control center Set of electronic circuitry that executes stored program instructions Two parts ◦ Control.](https://reader035.fdocuments.in/reader035/viewer/2022062421/56649da95503460f94a97684/html5/thumbnails/19.jpg)
Each location in memory has a unique address◦ Address never changes◦ Contents may change
Memory location can hold one instruction or piece of data
Programmers use symbolic names
![Page 20: Chapter 4 Converts data into information Control center Set of electronic circuitry that executes stored program instructions Two parts ◦ Control.](https://reader035.fdocuments.in/reader035/viewer/2022062421/56649da95503460f94a97684/html5/thumbnails/20.jpg)
Binary number system is used to represent the
state of the circuit
![Page 21: Chapter 4 Converts data into information Control center Set of electronic circuitry that executes stored program instructions Two parts ◦ Control.](https://reader035.fdocuments.in/reader035/viewer/2022062421/56649da95503460f94a97684/html5/thumbnails/21.jpg)
BIT◦Binary DigIT◦ On/off circuit◦ 1 or 0
BYTE◦ 8 bits◦ Store one alphanumeric character
WORD◦ Size of the register◦ Number of BITS that the CPU processes as a
unit
![Page 22: Chapter 4 Converts data into information Control center Set of electronic circuitry that executes stored program instructions Two parts ◦ Control.](https://reader035.fdocuments.in/reader035/viewer/2022062421/56649da95503460f94a97684/html5/thumbnails/22.jpg)
Houses electronic components◦ Motherboard ◦ Storage devices◦ Connections
Some Apple Macintosh models have system unit inside monitor
![Page 23: Chapter 4 Converts data into information Control center Set of electronic circuitry that executes stored program instructions Two parts ◦ Control.](https://reader035.fdocuments.in/reader035/viewer/2022062421/56649da95503460f94a97684/html5/thumbnails/23.jpg)
Motherboard Microprocessor chip Memory chips Connections to other
parts of the hardware Additional chips may be
added – math coprocessor
![Page 24: Chapter 4 Converts data into information Control center Set of electronic circuitry that executes stored program instructions Two parts ◦ Control.](https://reader035.fdocuments.in/reader035/viewer/2022062421/56649da95503460f94a97684/html5/thumbnails/24.jpg)
Storage Devices
Hard driveFloppy drive
CD-ROM driveDVD-ROM drive
![Page 25: Chapter 4 Converts data into information Control center Set of electronic circuitry that executes stored program instructions Two parts ◦ Control.](https://reader035.fdocuments.in/reader035/viewer/2022062421/56649da95503460f94a97684/html5/thumbnails/25.jpg)
CPU etched on a chip Chip size is ¼ x ¼ inch Composed of silicon Contains millions of transistors
◦ Electronic switches that can allow current to pass through
![Page 26: Chapter 4 Converts data into information Control center Set of electronic circuitry that executes stored program instructions Two parts ◦ Control.](https://reader035.fdocuments.in/reader035/viewer/2022062421/56649da95503460f94a97684/html5/thumbnails/26.jpg)
Control Unit – CU Arithmetic / Logic Unit – ALU Registers System clock
![Page 27: Chapter 4 Converts data into information Control center Set of electronic circuitry that executes stored program instructions Two parts ◦ Control.](https://reader035.fdocuments.in/reader035/viewer/2022062421/56649da95503460f94a97684/html5/thumbnails/27.jpg)
Intel Pentium Celeron Xeon and Itanium
Intel-compatible
Cyrix AMD
![Page 28: Chapter 4 Converts data into information Control center Set of electronic circuitry that executes stored program instructions Two parts ◦ Control.](https://reader035.fdocuments.in/reader035/viewer/2022062421/56649da95503460f94a97684/html5/thumbnails/28.jpg)
PowerPC◦ Cooperative efforts of Apple, IBM, and Motorola◦ Used in Apple Macintosh family of PCs◦ Found in servers and embedded systems
Alpha◦ Manufactured by Compaq◦ High-end servers and workstations
![Page 29: Chapter 4 Converts data into information Control center Set of electronic circuitry that executes stored program instructions Two parts ◦ Control.](https://reader035.fdocuments.in/reader035/viewer/2022062421/56649da95503460f94a97684/html5/thumbnails/29.jpg)
Keeps the instructions and data for current program
Data in memory can be accessed randomly
Easy and speedy access Volatile Erased Written over
![Page 30: Chapter 4 Converts data into information Control center Set of electronic circuitry that executes stored program instructions Two parts ◦ Control.](https://reader035.fdocuments.in/reader035/viewer/2022062421/56649da95503460f94a97684/html5/thumbnails/30.jpg)
Purchase memory modules that are packaged on circuit boards
SIMMS – Chips on one side DIMMS – Chips on both sides Maximum amount of RAM that can be
installed is based upon the motherboard design
![Page 31: Chapter 4 Converts data into information Control center Set of electronic circuitry that executes stored program instructions Two parts ◦ Control.](https://reader035.fdocuments.in/reader035/viewer/2022062421/56649da95503460f94a97684/html5/thumbnails/31.jpg)
Programs and data that are permanently recorded at the factory
Read Use Cannot be changed by the user Stores boot routine that is activated when
computer is turned on Nonvolatile
![Page 32: Chapter 4 Converts data into information Control center Set of electronic circuitry that executes stored program instructions Two parts ◦ Control.](https://reader035.fdocuments.in/reader035/viewer/2022062421/56649da95503460f94a97684/html5/thumbnails/32.jpg)
Programmable ROM ROM burner can change instructions on
some ROM chips
![Page 33: Chapter 4 Converts data into information Control center Set of electronic circuitry that executes stored program instructions Two parts ◦ Control.](https://reader035.fdocuments.in/reader035/viewer/2022062421/56649da95503460f94a97684/html5/thumbnails/33.jpg)
Paths that transport electrical signals System bus
◦ Transports data between the CPU and memory
Bus width◦ Number of bits of data that can be carried at
a time◦ Normally the same as the CPUs word size
Speed measured in MHz
![Page 34: Chapter 4 Converts data into information Control center Set of electronic circuitry that executes stored program instructions Two parts ◦ Control.](https://reader035.fdocuments.in/reader035/viewer/2022062421/56649da95503460f94a97684/html5/thumbnails/34.jpg)
CPU can support a greater number and variety of instructions
CPU can support a greater number and variety of instructions
Larger bus width = More powerful computer
CPU can transfer more data at a time = Faster computer
CPU can reference larger memory
addresses= More memory
available
![Page 35: Chapter 4 Converts data into information Control center Set of electronic circuitry that executes stored program instructions Two parts ◦ Control.](https://reader035.fdocuments.in/reader035/viewer/2022062421/56649da95503460f94a97684/html5/thumbnails/35.jpg)
Time to execute an instruction Millisecond Microsecond Nanosecond
◦ Modern computers Picosecond
◦ In the future
![Page 36: Chapter 4 Converts data into information Control center Set of electronic circuitry that executes stored program instructions Two parts ◦ Control.](https://reader035.fdocuments.in/reader035/viewer/2022062421/56649da95503460f94a97684/html5/thumbnails/36.jpg)
Clock speed◦ Megahertz (MHz) ◦ Gigahertz (GHz)
Number of instructions per second◦ Millions of Instructions Per Second (MIPS)
Performance of complex mathematical operations ◦ One million floating-point operations per second
(Megaflop )
![Page 37: Chapter 4 Converts data into information Control center Set of electronic circuitry that executes stored program instructions Two parts ◦ Control.](https://reader035.fdocuments.in/reader035/viewer/2022062421/56649da95503460f94a97684/html5/thumbnails/37.jpg)
Small block of very fast temporary memory
Speed up data transfer Instructions and data used most
frequently or most recently
![Page 38: Chapter 4 Converts data into information Control center Set of electronic circuitry that executes stored program instructions Two parts ◦ Control.](https://reader035.fdocuments.in/reader035/viewer/2022062421/56649da95503460f94a97684/html5/thumbnails/38.jpg)
Nonvolatile RAM Used in
◦ Cellular phones◦ Digital cameras◦ Digital music recorders◦ PDAs
![Page 39: Chapter 4 Converts data into information Control center Set of electronic circuitry that executes stored program instructions Two parts ◦ Control.](https://reader035.fdocuments.in/reader035/viewer/2022062421/56649da95503460f94a97684/html5/thumbnails/39.jpg)
Serial processing◦ Execute one instruction at a time◦ Fetch, decode, execute, store
Parallel Processing◦ Multiple processors used at the same time◦ Can perform trillions of floating-point
instructions per second (teraflops)◦ Ex: network servers, supercomputers
![Page 40: Chapter 4 Converts data into information Control center Set of electronic circuitry that executes stored program instructions Two parts ◦ Control.](https://reader035.fdocuments.in/reader035/viewer/2022062421/56649da95503460f94a97684/html5/thumbnails/40.jpg)
Pipelining◦ Instruction’s action need not be complete
before the next begins◦ Fetch instruction 1, begin to decode and
fetch instruction 2