COSC323 Module 3
COSC323 Module 3
Microprocessor
Organization &
Introduction to
Programming languages
Microprocessor Organization & Introduction to Programming languages
Outline:
Specific Objectives:
To do these things:
• The processor needs to store some data temporarily.
• It must remember the location of the last instruction so that it can know where to get the next instruction.
• It needs to store instructions and data temporarily while an instruction is being executed.
• The processor needs a small internal memory known as the register to temporarily store instruction as
depicted in the next figure
Arithmetic Logic Unit (ALU)
• All logical operations such as comparison of two sets of data based on specified relationships like
greater than, less than, equal or greater than, equal or less than, equal to, etc and given
parameters are carried out by this unit.
Therefore;
• It is required that these data are fetched from the memory by ALU under the directive of the Control Unit at the
beginning of every operation of ALU.
• First, the data fetched is deposited into a register called Memory Data Register (MDR), which is located within
ALU Later the same data is stored in another data registers called the Accumulators, which are also located
within ALU.
• Prior to the above process (normally referred to as Loading Data), the address of the data item would have
been fetched from the Instruction Register (IR) to be located on Memory Address Register (MAR).
The complete process of how ALU carries out its functions is shown in the flow chart below
When the results of the operation of
ALU are still required for further
processing;
• They are temporarily stored in
data registers located within ALU
hardware such as OPERAND,
RESULT.
• It is the nerve center of computer responsible for directing all computer operations from the inputs
to the outputs.
• No part of the computer hardware can function without a prior instruction/command from CU.
• By so doing, the functions of every part of the computer are coordinated and synchronized just like
the human body parts function in agreement with one another.
• It determines what to do by interpreting the instructions and appoints which hardware does what
is required.
Computer is made to carry out its functions step-by-step
through organized instructions, which are loaded into the
main memory.
These registers serve as input and output registers for the ALU and exchange data with the MBR and
user-visible registers.
Bus Systems
A Computer Bus System is defined as a common pathway or channel between multiple devices. This
internal bus of a computer also known as the local bus, host bus, or processor bus provides a parallel data
transfer path between the CPU and main memory and to the peripheral buses