ICT Theory Assignment
ICT Theory Assignment
ASSIGNMENT # 01
On
ICT
COURSE: ICT
Date: 20th-Nov-2021
1
20-Nov-2021
Umar Farooq 02-235212-053
2
20-Nov-2021
Umar Farooq 02-235212-053
3
20-Nov-2021
Umar Farooq 02-235212-053
Fetch
The program counter (PC) starts at 0000. This means that the first
address in RAM where the computer will look for an instruction is
0000.
The computer needs somewhere to store the current address in RAM
that it is looking for. This is what the memory address register (MAR)
is for. The address 0000 is therefore copied into the MAR.
As the first instruction has been fetched, the system is at the end of
the fetch stage of the cycle. The program counter can be incremented
by 1, so the system is ready to read the next instruction when the next
fetch cycle starts
Decode
Now, the instruction needs to be decoded. It is sent via the data bus to
the control unit, where it is split into two parts. The first part is the
operation code or opcode, which in this example CPU is the first four
bits. This is the command that the computer will carry out. The second
part, in this case the second four bits, is the operand. This is an
address in RAM where data will be read from or written to, depending
on the operation.
The control unit can translate opcodes into instructions. So here the
control unit translates the opcode 0101 into a LOAD FROM RAM
instruction.
Execute
Now, the command will be executed. The operand is copied to the
MAR, as it provides the address of the data to be loaded (0100 in this
case).
4
20-Nov-2021
Umar Farooq 02-235212-053
The data at address 0100 is then fetched from RAM and passed up
the data bus to the MDR. As it is not an instruction but simply data, it
is then passed to the accumulator (Acc).
5
20-Nov-2021
Umar Farooq 02-235212-053
Smartphones
Tablets
Laptop computers
Smart watches
E-readers
Handheld gaming consoles
6
20-Nov-2021
Umar Farooq 02-235212-053
THANK YOU
7
20-Nov-2021