LU11-12 Instruction Execution
LU11-12 Instruction Execution
Processing Unit
• A processor is responsible for reading program
instructions from the computer’s memory and
executing them.
• It fetches one instruction at a time.
• It decodes (interprets) the instruction.
• Then, it carries out the actions specified.
Some Fundamental Concepts
• Consider a 32-bit computer in which each instruction is contained in
one word in the memory ( RISC-style instruction set architecture)
To execute an instruction, the processor has to perform the following
steps:
1. Fetch the contents of the memory location pointed to by the PC.
The contents of this location are the instruction to be executed; hence
they are loaded into the IR. In register transfer notation, the required
action is IR←[[PC]]
2. Increment the PC to point to the next instruction. Assuming that the
memory is byte addressable, the PC is incremented by 4; that is
PC←[PC] + 4
3. Carry out the operation specified by the instruction in the IR.
Hardware Components of a Processor
• PC provides
instruction address.
• Instruction is fetched
into IR
• Instruction address
generator updates PC
• Control circuitry
interprets instruction
and generates control
signals to perform the
actions needed.
Data Processing Hardware