ch11 TE
ch11 TE
Let’s Think
1. Fan, heat sink and water cooling system
2. It may increase the heat produced by the CPU and also shorten the lifespan of the CPU.
It may affect the stability of the system, i.e. the operation system may not work properly.
Activity 2
3.
Mailboxes
I/O
Calculator Control unit
Hand counter Program counter
5.
Mail Box Instruction/address Purpose
00 IN; Load data from Input basket into calculator.
01 STA 11; Store the data located in the calculator into location 11.
02 IN; Load data from Input basket into calculator.
03 STA 12; Store the data located in the calculator into location 12.
04 ADD 11; Add data at location 11 to calculator contents.
05 STA 13; Store the data located in the calculator into location 13.
6.
Mailbox Content
11 33
12 66
13 99
Concept Checker
1. F
2. F
3. T
4. F
5. T
3. (a) A program instruction is loaded into the CPU from the main memory. (2)
(b) Fetch (1) and decode (1)
4. (a) The arithmetic and logic unit (ALU), (1) the control unit (CU) (1) and the registers
(1).
(b) (i) (1) = 5 times (1)
(ii) It is because when an instruction involves operand fetch and/or storing result
into the main memory, the time taken for data transmission for both computers
are the same. As a result, the total time taken for completion of such
instruction for Computer Y cannot be 5 times as Computer X. (2)
5. (a) ‧It stores operands and results temporarily for the instruction being executed. (1)
‧It stores results temporarily for the instruction being executed. (1)
‧It stores addresses of operands. (1)
(b) Instruction register (IR) contains the instruction to be executed by the CPU. (1)
Program counter (PC) contains the memory address of next instruction to be
executed. (1)
(c) The memory address in program counter is loaded to memory address register. (1)
The control unit issues a READ command. (1) The required instruction is then
loaded into memory data register. (1) The instruction is further moved to the
program counter. (1)
Long Questions
1. (a) Machine cycle is the process of executing an instruction in a CPU. (1)
(b) (i) Fetch, (0.5) decode, (0.5) execute, (0.5) detect whether an interrut has
occurred. (0.5)
(ii) Fetch (1) and execute (1)
(c) Data bus (1)
(d) (i) After executing each instruction, the CPU will detect if there are any
interrupts. (1) If so, the CPU will save the current process in some special
memory location called stack and handle the interrupts immediately. (1) After
the interrupts havebeen served, the CPU will load all the data from stack and
resume the process. (1)
(ii) Input process: user interrupt (by keyboard) / disk reading error / file not found
(any one 1)
ALU operation: divide by zero / overflow / underflow (any one 1)
Output process: disk full / out of printer paper (any one 1)
= 500,000,000 (1)
(c) second (2) = 1 10-8 second (1)