Lecture04 VonNuemann
Lecture04 VonNuemann
Lecture04 VonNuemann
Fetch
Execu Decod
te e
PARTS OF THE MICROPROCESSOR
Register Array
This is a small amount of internal memory that is used
for the quick storage and retrieval of data and
instructions. All processors include some common
registers used for specific functions, namely the program
counter, instruction register, accumulator, memory
address register and stack pointer.
System Bus
This is comprised of the control bus, data bus and
address bus. It is used for connections between the
processor, memory and peripherals, and transferal of
data between the various parts. Click the title above for
more.
PARTS OF THE MICROPROCESSOR
Memory
The memory is not an actual part of the CPU itself,
and is instead housed elsewhere on the
motherboard. However, it is here that the program
being executed is stored, and as such is a crucial part
of the overall structure involved in program
execution.
PARTS OF THE MICROPROCESSOR
THE CONTROL UNIT
Timer or clock
The timer or clock ensures that all processes and instructions are carried
out and completed at the right time. Pulses are sent to the other areas of
the CPU at regular intervals (related to the processor clock speed), and
actions only occur when a pulse is detected. This ensures that the actions
themselves also occur at these same regular intervals, meaning that the
operations of the CPU are synchronised.
Control logic circuits
The control logic circuits are used to create the control signals themselves,
which are then sent around the processor. These signals inform the
arithmetic and logic unit and the register array what they actions and
steps they should be performing, what data they should be using to
perform said actions, and what should be done with the results.
Further detail is not required at this stage on the control unit, though it is
clear that there is much detail at lower levels that has yet to be touched
on. However, to move on to the next element of the processor (the
register array), please click the next button below
REGISTERS
Program
Instruction
Counter
Register (IR)
(PC)
Memory
Accumulator Address
(A) Register
(MAR)
Memory
Buffer Flag
Register(MB Registers
R)
REGISTERS
Control Bus
The control bus carries the signals relating to the control and co-
ordination of the various activities across the computer, which can be
sent from the control unit within the CPU. This is a bidirectional bus.
Data Bus
This is used for the exchange of data between the processor, memory
and peripherals, and is bi-directional so that it allows data flow in both
directions along the wires.
Address Bus
The address bus contains the connections between the microprocessor
and memory that carry the signals relating to the addresses which the
CPU is processing at that time, such as the locations that the CPU is
reading from or writing to. The maximum address capacity is equal to
two to the power of the number of lines present (2^lines).
NOTE
The fetch cycle takes the address required from memory, stores it in
the instruction register, and moves the program counter on one so
that it points to the next instruction.
Decode Cycle
Here, the control unit checks the instruction that is now stored
within the instruction register. It determines which opcode and
addressing mode have been used, and as such what actions need to
be carried out in order to execute the instruction in question.
Execute Cycle
For example,
MOV, AL, 34h
Mnemonic Description
MOV Moves a data value from one location to
another
ADD Adds to data values using the ALU, and
returns the result to the accumulator
STO Stores the contents of the accumulator in
the specified location
END Marks the end of the program in memory
IMMEDIATE ADDRESSING