Presentation is loading. Please wait.

Presentation is loading. Please wait.

Computer Operation What basic hardware components are inside a personal computer?

Similar presentations


Presentation on theme: "Computer Operation What basic hardware components are inside a personal computer?"— Presentation transcript:

1

2 Computer Operation What basic hardware components are inside a personal computer?

3 System unit Input devices CPU Main memory (RAM, ROM) Output devices Secondary storage

4 Arithmetic and logic unit Control unit Memory unit Input/ output unit CPU control bus data bus address bus Simple Model Computer block diagram

5 There are some components in each unit. Address Decoder Memory Address Register Memory Data RegisterMemory Unit Arithmetic and Logic Unit Control Unit Logic Circuit Status Register Accumulator Instruction Decoder Instruction Register Program Counter

6 Arithmetic and logic unit SRACC ALU  It performs arithmetic(i.e. mathematic) manipulation.  Accumulator (ACC)  To hold the final result or intermediate result of the operation temporarily.  Status register (SR)  To describe the status of the current content in the accumulator.  Logic circuit  To perform arithmetic and logic operation.

7 Accumulator The accumulator acts as the rough work sheet. You can write down the intermediate result or final result of your calculation. For example, when evaluating (4 + 2) + (8 – 3) You better write down the result on the rough work sheet!! Exercises

8 Status Register It describes the current status of the accumulator. These flags include the zero flag, carry flag, overflow flag, negative flag, etc.

9 For example, 9 Accumulator oddintegernegative zero

10 0 Accumulator oddintegernegative zero

11 -1.8 Accumulator oddintegernegative zero

12 Instruction decoder PC IR Control unit It directs all operations within the computer Instruction register (IR) To hold the current instructions Instruction decoder To interprets the current instruction Program counter (PC) To hold the address of the next instruction. Exercises

13 Let’s see how the control unit works! For example, you are a soldier. The General Mr. Chan gives you several confidential envelops. Each envelop contains only one command from the General.

14 The Commander A knows the order to open the envelop and the Commander B reads the command inside each envelop. You cannot open the envelops or read the commands yourself. The Messenger translate the command to you.

15 The Commander A knows which envelop should be opened first and give it to Commander B.

16 The Commander B reads the command. At the same time, the Commander A prepares to give Commander B the command of the next envelop.

17 However, you don’t know English!!!!! The Messenger translate the command to you. 叫你走佬呀 !!!! Then you know the command from the General Mr. Chan. 我知啦 !!!!

18

19 The Messenger plays the role of instruction decoder. The Commander B acts as Instruction register. The Commander A acts as Program Counter.

20 Control unit +1 PC IR Instruction decoder Main memory 01 02 03 READ A 04 READ B 05 06 03 READ A Data flow among the IR, PC, instruction decoder and main memory

21 main memory address decoder MDR MAR Memory Unit  Memory Address register (MAR)  To hold the addresses of the data or instructions to be accessed.  Memory Data register (MDR)  To hold the data or instructions to be written to or fetched(read) from main memory.  Address Decoder  To interpret the address held in the MAR.

22 Control unit +1 PC IR Instruction decoder Memory unit 01 02 03 READ A 04 READ B 05  MAR MDR Address decoder Main memory 03 READ A 03 READ A Data flow among the IR, PC, instruction decoder, MAR, MDR, address decoder and main memory

23 Question 1 Work Harder Exercises Question 2 Question 3 Question 4 Question 5 Ans 1 Ans 2 Ans 4 Ans 3 Ans 5

24 Exercise One Exercises Which of the following registers is NOT in the control unit ? Instruction Register Program Counter Memory Data Register Accumulator Hint

25 Exercise One Which of the following registers is NOT in the control unit ? Instruction Register Program Counter Memory Data Register Accumulator Exercises

26 Exercise Two Decoder is a component of the Visual display unit. Main memory CU ALU Exercises Hint

27 Exercise Two Exercises Decoder is a component of the Visual display unit. Main memory CU ALU

28 Exercise Three Exercises What is the instruction register? The circuit required to decode the instruction The memory location of the next instruction to be executed The register to hold the address of the next instruction The register to hold the instruction to be executed Hint

29 Exercise Three Exercises What is the instruction register? The circuit required to decode the instruction The memory location of the next instruction to be executed The register to hold the address of the next instruction The register to hold the instruction to be executed

30 Exercise Four Exercises Which of the following about program counter is/are correct? (1) It holds the address of present instruction. (2) Its content changes automatically. (3) Its content cannot be altered by user. (1) only (2) and (3) only (1) and (3) only (2) only Hint

31 Exercise Four Exercises Which of the following about program counter is/are correct? (1) It holds the address of present instruction. (2) Its content changes automatically. (3) Its content cannot be altered by user. (1) only (2) and (3) only (1) and (3) only (2) only

32 Exercise Five Exercises Which of the following about accumulator is/are correct? (1) It is a general purpose register. (2) It is used to store the results temporary. (3) It is the register that the ALU acts on. (1) only (2) and (3) only (1) and (3) only (2) only Hint

33 Exercise Five Exercises Which of the following about accumulator is/are correct? (1) It is a general purpose register. (2) It is used to store the results temporary. (3) It is the register that the ALU acts on. (1) only (2) and (3) only (1) and (3) only (2) only

34 Exercises

35


Download ppt "Computer Operation What basic hardware components are inside a personal computer?"

Similar presentations


Ads by Google