Computer Architecture Flashcards
5 registers in Von Neumann architecture
Program counter (PC) Memory address register (MAR) Memory data register (MDR) Current instruction register (CIR) Accumulator (ACC)
ALU
Arithmetic Logic Unit
Carries out calculations on data
- arithmetic operations: add, subtract
- logical operations: AND, OR
Holds temporary values used during calculations in a register called the accumulator (ACC)
Control Unit (CU)
contains CIR and PC
Manages the flow of data and interaction between the components of the processor
Signals are generated along the control bus to tell the components of the computer what to do
Reads/fetches instructions from memory
IAS
Immediate Access Store
Used to hold data and instructions before they are processed
e.g. registers, RAM, cache
PC
Contains the address of the next instruction to be fetched
Increments to point to the address of the next instruction to be fetched
MAR
Holds the address(location) of the current instruction/data to be fetched
The contents of the PC are copied here and then transferred along the Address Bus
MDR
Temporary storage between the Central Processing (CPU) and primary memory
Contains the instructions/data after it is fetched from main memory
CIR
Contains the instructions to be decoded
It is copied from the MDR
ACC
Accumulator
Holds data (temporarily) that is currently being used in calculations by the Logic Unit
Address bus
Transports the memory address of the next item to be fetched between processor and memory
Data travels one way (unidirectional) from CPU to Memory
Control bus
Carries (transports) signals that control the actions of the CPU and that synchronise the fetch-execute cycle
Data can travel one way (unidirectional) or both ways (bidirectional)
Data bus
Carries (transports) data that is currently being processed between processor, memory and peripherals
Data travels both ways (bidirectional)
CPU 3 main stages
Fetch
Decode
Execute
Von Neumann cycle
- PC contains the address of the next instruction to be fetched
- The address held in the PC is placed on the address bus and copied onto the MAR
- The data bus fetches the instructions from main memory using the memory address contained in the MAR and then transfers it to the MDR
- The instruction in the MDR is copied to the CIR
- The PC is incremented by 1
- The instruction is then decoded and executed by the Control Unit
Stored program concept
- program is stored on secondary storage device
- data and instructions are moved to RAM
- data and instruction are stored in same memory
- data and instructions are moved to registers to be executed
- instructions are fetched one at a time and executed one after another