Systems Architecture, Memory, Storage Flashcards
(37 cards)
Purpose of the CPU
The Central Processing Unit is the hardware that executes program and manages the rest of the hardware
What does CPU stand for
Central Processing Unit
Von Nuemann architecture
The idea of holding programs in memory, and moving data between the data unit and the processor
Components of the CPU
Main memory, the processor and the cache memory
Components of the processor
The CU, the ALU, the accumulator and registers
What does CU stand for
Control Unit
What does ALU stand for
Arithmetic Logic Unit
Accumulators
Special purpose very fast memory locations in which all operations are carried out
Address bus
Carries addresses from the processor to memory and input/output devices
Data bus
Sends data between the processor, memory and input/output devices
Control bus
Carries signals to coordinate all the computer activities
Control Unit
- Controls the execution of instructions in the correct sequence
- Decodes instructions
- Regulates and controls processor timing using regular pulses from the system clock
- Sends and receives control signals to and from other devices within the computer
Arithmetic Logic Unit
- Performs logical, shift and arithmetic operations
- Logical operations: include AND, OR and NOT
- Shift operations: the bits in a computer word can be shifted left or right by a certain number of places
- Arithmetic operations: include addition, subtraction, multiplication and division
Special purpose registers
- Memory Address Register (MAR)
- Memory Data Register (MDR)
- Program Counter (PC)
- Current Instruction Register (CIR)
- Accumulator
Memory Address Register
Holds the address of the instruction/piece of data to be fetched/stored
Memory Data Register
Temporarily holds the data or instruction when it is fetched from memory
Program Counter
Holds the memory address of the next instruction to be executed
Current Instruction Register
Holds the current instruction to be executed, which has been fetched from memory and is temporarily held in the MDR before being copied to the CIR
Fetch (the fetch-execute cycle)
- The address of the next instruction to be executed is copied from the PC to the MAR
- The PC is incremented
- The instruction held in the location of the address is copied to the MDR
- The contents of the MDR are copied to the CIR
Decode (the fetch-execute cycle)
The CU decodes the instruction in the CIR
Execute (the fetch-execute cycle)
The instruction is executed
Factors affecting CPU performance
- Clock speed
- Type and size of memory
Clock speed
The number of electrical cycles per second, or the rate at which the electrical current changes in the circuits, measured in hertz/gigahertz
Caches
High-speed memory, which increases the speed of the CPU by holding frequently used data or instructions