Computer Org. WRK 1
Computer Org. WRK 1
Computer Org. WRK 1
COMPUTER ORGANIZATION #1
COMPUTER SCIENCE
MODULE 1
2. MAR: The memory address register (MAR) is the CPU register that either stores
the memory address from which data will be fetched to the CPU, or the address to which data
will be sent and stored.
3. MDR: Memory data register holds the contents found at the address held in the MAR or
data which is to be transferred to primary memory.
4. CIR: Current instruction register holds the instruction that is currently being decoded and
executed.
Cache speeds up processing time because it stores frequently used instructions and data.
[iii] Describe the MAIN activities that take place in an instruction cycle.
The CPU fetches the information one at a time from the main memory into registers.
The CPU decodes the instruction.
The CPU executes the instruction.
Repeat until there are no more instructions.
[3i] Name and state the function of THREE registers found in the Central Processing Unit
(CPU).
MDR: Memory data register holds the contents found at the address held in the MAR or data
which is to be transferred to primary memory.
IR: An instruction register is an element in the central processing unit (CPU) of a computer
or other device that holds the programming instruction that will be executed at the start of the
next clock cycle as dictated by other parts of the CPU.
MAR: The memory address register (MAR) is the CPU register that either stores
the memory address from which data will be fetched to the CPU, or the address to which data
will be sent and stored.
[ii] Besides registers name TWO other components in the CPU and state the function of EACH.
CU – This unit controls the operations of all parts of the computer but does not carry out any
actual data processing operations.
Functions of this unit are −
It is responsible for controlling the transfer of data and instructions among other units of
a computer.
It manages and coordinates all the units of the computer.
It obtains the instructions from the memory, interprets them, and directs the operation of
the computer.
It communicates with Input/Output devices for transfer of data or results from storage.
It does not process or store data.
Function of logic section is to perform logic operations such as comparing, selecting, matching,
and merging of data.
[iii] Define the term ‘cache memory’ and explain how it increases the efficiency of data retrieval.
A CPU cache is a hardware cache used by the central processing unit of a computer to reduce the
average cost to access data from the main memory. A cache is a smaller, faster memory, located
closer to a processor core, which stores copies of the data from frequently used main memory
locations.
Cache memory increases a computer’s performance. The cache memory is located very close to
the CPU, either on the CPU chip itself or on the motherboard in the immediate vicinity of the
CPU and connected by a dedicated data bus. So instructions and data can be read from it (and
written to it) much more quickly than is the case with normal RAM. That means that the CPU is
much less likely to be kept waiting or waiting times will be dramatically reduced. The result is
that a very small amount of cache memory can result in a significant increase in the computer’s
performance.
[4] Explain how the ‘fetch’ ‘decode’ ‘execute’ cycle works in a computer.
The processor checks the program counter to see which instruction to run next.
The program counter gives an address value in the memory of where the next instruction is.
The processor fetches the instruction value from this memory location.
Once the instruction has been fetched, it needs to be decoded and executed. For example, this
could involve taking one value, putting it into the ALU, then taking a different value from
a register and adding the two together.
Once this is complete, the processor goes back to the program counter to find the next
instruction.
This cycle is repeated until the program ends.
[5i] Describe TWO main functions of the CPU. Include in your description a definition of the
CPU.
The purpose of the fetch operation is that the computer retrieves a program instruction from its
memory.
The purpose of the decode operation is to establish the action that needs to be done and the
execute operation carries out the instructions.
[ii] Name THREE registers found in the CPU and for EACH describe its function.
MDR: Memory data register holds the contents found at the address held in the MAR or data
which is to be transferred to primary memory.
IR: An instruction register is an element in the central processing unit (CPU) of a computer
or other device that holds the programming instruction that will be executed at the start of the
next clock cycle as dictated by other parts of the CPU.
MAR: The memory address register (MAR) is the CPU register that either stores
the memory address from which data will be fetched to the CPU, or the address to which data
will be sent and stored.
[7] Define the term clock speed as it relates to the processor. Give two examples of CPU clock
speed using different units of measure.
The speed at which the CPU can carry out instructions is called the clock speed. This is
controlled by a clock. With every tick of the clock, the CPU fetches and executes one
instruction. The clock speed of computers is usually measured in megahertz (MHz) or gigahertz
(GHz). One megahertz equals one million ticks per second, and one gigahertz equals one billion
ticks per second.