• Structure Of The Processor ( 2 ) Flashcards
What are registers?
Special memory cells that operate at very high speed.
Where do the calculations of the ALU get stored?
Accumulator stores its data in a register called the accumulator.
Why are registers needed?
- Main memory is too slow for working data to be stored
* Processor will be then able to immediately access and re use these results in further calculations.
What are the various dedicated registers?
- Program Counter
- Current Instruction Register
- Memory address register
- Memory data register
What is the purpose of the program counter?
• Holds the memory address of the next instruction to be executed.
What is the purpose of the current instruction register?
• Holds the current instruction being executed
• Split into:
- Opcode
- Operand
What is the purpose of the memory address register?
• Holds the address of the memory location from which data is to be fetched, or to which data is to be written
What is the purpose of the memory data register?
- Temporarily store the data read from or written to memory.
* Temporarily holds data moving between the processor and main memory.
What is the purpose of the accumulator?
• hold intermediate results of an instruction
What is the purpose of the processor?
• Carry out out instructions from programs stored in memory.
What are the steps of the fetch decode execute cycle?
- Address of the next construction is copied from the PC to the Memory Address Register ( MAR )
- Instruction held at that address is copied to the memory data register
- Simultaneously, the contents of the program counter ( PC ) are incremented
- Contents of the MDR are copied to the current instruction register ( CIR ).
What are the steps of the decode stage?
- Instruction is held in the CIR, it is decoded.
- Split into operand, and opcode to determine the type of instruction, additional data where required is fetched from memory.
- Passed to the accumulator
What is the execute stage?
- Appropriate instruction/opcode is carried out on the operand
- Result held in accumulator or stored in memory.
What is the opcode?
Opcode is used to determine the type of instruction, and what hardware to use to execute it.
What is the operand?
Holds either:
• Address of the of the data to be used with the operation, which is copied to the MAR.
or
• Actual data to be operated on, which will be copied to the MDR
• The data to be operated on may be passed to the ALU/Accumulator.