B_Ch2_EMI
B_Ch2_EMI
A system unit
The following table shows some brief information on the components of a system unit.
Components Function
Motherboard
PCIe slot (Graphics card / sound card/ network card)
9
Central Processing Unit (CPU)
Number of cores:
Number of interconnected CPU cores working together to execute
different tasks at the same time.
Think About It
How to increase the performance of a CPU by design if its word length is fixed?
1. Increase the number of core, such as Dual core(2) / Quad core(4) / Hex core(6) / Octa core(8)
to support parallel computing.
2. Specialized CPU to complete certain tasks, in order to share the workload from general
purpose CPU.
A computer with 32-bit word length CPU (and system bus width) can only supports
up to 4GB of RAM memory address but unlimited hard disk memory size.
10
Central Processing Unit (CPU) (Core B, p.63-70)
Assembly languages
11
Structure of a CPU
BX Base Register
CX Counter
DX Data Register
Control Registers
Memory data register: contains the data to be written into or read from the
MDR
location specified in MAR.
Status register: contains a number of flag bits indicating the status after the
SR execution of instructions.
12
Status register
Think About It
It is known that the instruction SUB X, Y calculates the result X - Y and then stores the result to the
register AX.
Explain the purpose of each instruction, and predict how the flags will be changed after execution of each
instruction.
1. SUB 1, 5
Description: Calculates the result 1 – 5 and then stores the result (-4) to the register AX
0 1 0 0
2. SUB AX, AX
Description: Calculates the result AX – AX and then stores the result (0) to the register AX
1 0 0 0
13
Machine Cycle (Core B, p.65-67)
Sub-cycle Description
Fetch Read the next instruction from the main memory into instruction
register (IR).
Execute Interpret the operation code and perform the required operation.
Interrupt Sub-cycle
At the end of the execution of an instruction, the CPU detects whether an interrupt has occurred.
14
Example of a machine cycle
10000
LOAD AX, 8
Step 2: Increment PC
10001
15
Step 3: Decode instruction
https://youtu.be/MmQdg_QEM8w
16
Storage device (Core B, p.70-80)
Think About It
John has 12 video clips with each size 1 GB stored in a hard disk. He wants to directly store
the clips into regular singled-sided DVD-Rs (4.2 GB) for backup purpose. What is the
minimum number of DVD-Rs required?
The size of each regular singled-sided DVD-Rs is 4.2 GB, so we can store 4 videos on each of the
DVD-Rs.
In conclusion, we need 3 regular singled-sided DVD-Rs to store all the video clips.
17
o Main memory (RAM and ROM)
Volatile Non-volatile
Volatile Data removed when the computer is out Data does not disappear after turning off
of power. the computer.
o Secondary storage
Speed of a Secondary Storage Device
Access time
The average time taken for the device to search and read the required
data on the storage medium.
e.g. 8 ms (where 1ms = 0.001s)
Data transfer rate
The amount of data that can be transferred between main memory and
a storage device per second.
e.g. 111.4 MBps (where M = 220, B = 8 bit)
Types of Secondary Storage Devices
Magnetic Storage Devices
1. Magnetic tapes
Data access mode: sequential access
Large storage size, usually used for backup purpose
2. Hard disk
Data access mode: direct access
Factors effecting access speed
o Seek time
o Drive rotational speed (unit: rpm)
18
Solid-state storage
Consists of multiple storage devices, for improving data transfer rate, reduce data
loss and recover loss data
19
Comparison of HDD and SSD
Appearance
Comparison of Local Hard disk and Network attached storage (NAS) / Cloud storage
Store in local
NAS
computer
Google drive C:\
Example
NAS installed on school server D:\
Think About It
2019 HKDSE Paper1A (38% of candidates got it correct)
Arrange the following in ascending order by data transfer rate.
(1) Solid State Drive (SSD)
(2) Memory cache
(3) RAM
20
Bus (Core B, p.58-60)
System bus
Indicate the direction of the data transfer and coordinate the timing
Control bus One-way of the event during transfer.
Address bus Transfer the source address or the destination address of data.
One-way
21
Core – Compulsory B Chapter 2 Computer Hardware (Glossary)
English 中文 English 中文
22
Core – Compulsory B Chapter 2 Computer Hardware (Glossary)
English 中文
53 Contiguous 連續的
54 Magnetic tape 磁帶
23