Download presentation
Presentation is loading. Please wait.
Published byAlexina Fox Modified over 8 years ago
2
© 2005 Pearson Addison-Wesley. All rights reserved Figure 2.1 This chapter focuses on key hardware layer components.
3
© 2005 Pearson Addison-Wesley. All rights reserved Memory Holds active programs and data. Contents –Bit: one binary digit (0 or 1). –Byte: eight bits (1 character). –Word: a group of bytes.
4
© 2005 Pearson Addison-Wesley. All rights reserved Figure 2.2 In a computer’s memory, bits are grouped to form bytes, which in turn are grouped to form words.
5
© 2005 Pearson Addison-Wesley. All rights reserved Addressing Memory Each byte (or word) is assigned a unique address. The bytes (or words) are numbered sequentially. Bytes (or words) are the basic addressable units of memory.
6
© 2005 Pearson Addison-Wesley. All rights reserved Figure 2.3 Think of cache memory as a staging area for the processor.
7
© 2005 Pearson Addison-Wesley. All rights reserved Figure 2.4 The processor manipulates data stored in memory under the control of a program stored in memory.
8
© 2005 Pearson Addison-Wesley. All rights reserved Figure 2.5 Each instruction has an operation code and one or more operands. Program: a series of instructions.
9
© 2005 Pearson Addison-Wesley. All rights reserved Figure 2.6 The processor contains four key components.
10
© 2005 Pearson Addison-Wesley. All rights reserved Figure 2.7 A computer executes instructions by following a basic machine cycle. a. As the example begins, memory holds both instructions and data. The instruction counter points to the first instruction to be executed.
11
© 2005 Pearson Addison-Wesley. All rights reserved b. The first instruction is fetched from memory and stored in the instruction register. Note that the instruction counter points to the next instruction.
12
© 2005 Pearson Addison-Wesley. All rights reserved c. The arithmetic and logic unit executes the instruction in the instruction register.
13
© 2005 Pearson Addison-Wesley. All rights reserved d. The instruction control unit once again looks to the instruction counter for the address of the next instruction.
14
© 2005 Pearson Addison-Wesley. All rights reserved e. The next instruction is fetched into the instruction register. Note that the instruction counter points to the next instruction.
15
© 2005 Pearson Addison-Wesley. All rights reserved f. The arithmetic and logic unit executes the instruction in the instruction register.
16
© 2005 Pearson Addison-Wesley. All rights reserved Figure 2.8 During a machine cycle, an instruction is fetched during I-time and executed during E- time. I-time fetch E-time execute Clock speed –Cycles per second –Measured in MHz or GHz
17
© 2005 Pearson Addison-Wesley. All rights reserved Figure 2.9 A layer of microcode lies between memory and the processor. Also known as firmware.
18
© 2005 Pearson Addison-Wesley. All rights reserved Input and Output Input –The act of transferring data into memory from a peripheral device. Output –The act of transferring data from memory to a peripheral device. Input and Output –Support human interaction with a computer.
19
© 2005 Pearson Addison-Wesley. All rights reserved Secondary Storage Extension of main memory –Fast, accurate, inexpensive –High-capacity, nonvolatile Long-term storage –Contents must be transferred into main memory Machine-readable only –People cannot read contents directly Media –Hard disk and diskette –Magnetic tape –CD-ROM and DVD
20
© 2005 Pearson Addison-Wesley. All rights reserved Figure 2.10 The data on a disk are recorded on a series of concentric circles called tracks. The tracks are subdivided into sectors.
21
© 2005 Pearson Addison-Wesley. All rights reserved Figure 2.11 Reading a sector from disk. a. During seek time the access mechanism is positioned over the track that holds the desired data.
22
© 2005 Pearson Addison-Wesley. All rights reserved b. The system waits while the sector rotates to the read/write head (rotational delay) and the data are transferred into memory.
23
© 2005 Pearson Addison-Wesley. All rights reserved Figure 2.12 Each surface on a disk pack has its own read/write head. One position of the access mechanism defines a cylinder.
24
© 2005 Pearson Addison-Wesley. All rights reserved Figure 2.13 The programs and data files stored on a disk are listed in the disk’s directory.
25
© 2005 Pearson Addison-Wesley. All rights reserved Communication Hardware Modem –Communicate over standard telephone lines Cable modem –Communicate over high-speed cable See Part 5
26
© 2005 Pearson Addison-Wesley. All rights reserved Linking the Components Interface –Translates between internal and external form. Buffer –Temporary memory used to adjust for the speed differential between adjacent devices.
27
© 2005 Pearson Addison-Wesley. All rights reserved Figure 2.14 The functions of an interface board. a. Input from the keyboard is converted to internal form by the keyboard/display interface.
28
© 2005 Pearson Addison-Wesley. All rights reserved b. Data stored in memory are sent to the printer interface, converted to printer form, and output.
29
© 2005 Pearson Addison-Wesley. All rights reserved Channels and Control Units Channel –Performs peripheral device-independent functions on large computers. I/O control unit –Performs device-dependent functions.
30
© 2005 Pearson Addison-Wesley. All rights reserved Figure 2.15 On a mainframe, peripheral devices are linked to the system through a channel and an I/O control unit.
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.