Presentation is loading. Please wait.

Presentation is loading. Please wait.

Computer Systems. Computer System Components Computer Networks.

Similar presentations


Presentation on theme: "Computer Systems. Computer System Components Computer Networks."— Presentation transcript:

1 Computer Systems

2

3 Computer System Components

4 Computer Networks

5 CPU

6 The CPU contains a Control Unit, Arithmetic Logic Unit (ALU) and a small number of memory locations called Registers. Different registers perform different tasks such: –as manipulating data, –keeping track of the results of decision making operations, –and pointing to the next instruction to be executed

7 CPU Registers The Instruction Register (IR) contains the actual instruction which is currently being executed by the CPU. The Status Register records the result of comparing the contents of register A with the contents of register B. The Program Counter (PC) contains the address of the next instruction to be executed by the program.

8 CPU Registers Registers A & B hold the operands for each arithmetic operation (ie. the values on which the operation will be performed). After the operation has been carried out, the result is always stored in Register B. Therefore, after an arithmetic operation has been performed, the second operand is no longer stored in Register B, because it has been overwritten by the result of the operation.

9 Instructions An instruction is a sequence of bits. A simple instruction format consist of an operation code (Op code) and an address or operands. Op Code Operands / Address

10 Instructions The operation code specifies the operation the computer is to carry out., while the address allows the instruction to refer to a location in main memory.

11 Instruction Processing Each instruction is run in 3 steps, known as the fetch-decode-execute cycle. During the fetch part, the CPU fetches the next instruction from the address contained in the Program Counter and places it in the Instruction Register. As soon as an instruction is fetched, the CPU adds 1 to the contents of the Program Counter.

12 Instruction Processing Once an instruction has been placed in the instruction register, a decode unit within the CPU deciphers the instruction, determines what operations need to be done and what type of operands stored in the instruction ( decode part) During the execution part, the required operation is performed. After execution of the instruction has been completed the cycle starts all over again (unless the action of the instruction terminates the program).

13 Memory Computer memory consist of blocks of bits called words. Word sizes vary from computer to computer. Each word will hold either data or program instructions.

14 Computer Systems All programs (instructions) are stored in the secondary storage. The instructions are brought from the secondary storage, which is slow, and are placed into main memory to provide the CPU with instruction for the fetch- decode-execute cycle.

15 Computer Systems

16 As CPU speeds became faster, the main memory could don ’ t provide the CPU with the instructions at a high rate. Fast memory ( cache memory) is placed between the CPU and main memory to provide the instructions at a fast rate to the CPU.

17 Computer Systems

18 Current CPUs have a cache memory (L1),on the same silicon wafer, to provide the CPU with instructions at the same clock speed like the CPU.

19 Computer Systems

20 User view of Computer Systems


Download ppt "Computer Systems. Computer System Components Computer Networks."

Similar presentations


Ads by Google