👾 The CPU Flashcards
what does CPU stand for?
Central Processing Unit
ie. why is it important?
define the purpose of the CPU in a computer
- it is responsible for all of a computer’s processing (like a brain)
all connect to the CPU…
What are the main components of a computer (there are 4)?
- Main memory
- input devices
- secondary storage
- output devices
what is the Von Neumann architecture?
A computer architecture model proposed by John von Neumann in the mid-20th century, which forms the basis for most modern computers.
what are the components of the Von Neumann architecture (there are 5)?
- CPU
- memory unit
- control unit
- ALU
- input/output devices
what are the registers in the CPU (there are 4)?
- program counter
- ALU
- Control unit
- General Purpose Registers
explain a program counter
A special purpose register that holds the address of the next instruction to be executed
explain the general purpose registers
- they hold data, such as numbers during arithmetic calculations
- Some architectures have just a single register called the Accumulator
where is the program counter located?
in the control unit
How does the program counter work?
- The Program Counter points
to the next instruction that
needs to be executed - The Program Counter is
incremented after fetching
an instruction - This moves it on to point to
the next instruction to be
executed
Explain the accumulator
- The accumulator is where
arithmetic and logic results are
temporarily stored much like the
M+ function on a calculator - Speeds up the storage and retrieval of calculations
Why is the accumulator important?
Without the accumulator, it would
be necessary to write the result of
each calculation to main memory (aka. Would take much longer and is a waste of time, so the accumulator does this long, boring job for us instead!)
What does ALU stand for?
Arithmetic Logic Unit
Explain the ALU (has 3 functions)
It performs:
1. Logical operations
2. Shift operations
3. Arithmetic operations
what are the two memory registers to implement the von Neumann architecture?
MAR and MDR
what does MAR stand for?
Memory Address Register
what are the (3 main) functions of the MAR?
- Holds the address of the current instruction being done
- knows the location of data that needs to be accessed
- keeps track of where data is located
what does MDR stand for?
Memory Data Register
what are the (2 main) functions of the MDR?
- Holds the actual data being stored in RAM
- acts as a buffer and holds data that’s copied from RAM, ready for CPU to process it
How does the MDR and the MAR work together?
The MAR knows where to look for data in RAM, and the MDR keeps hold of that data until it’s ready to be used by CPU
explain the control unit
it coordinates all the activities taking place
like a comductor of an orchestra
what are the main parts of a processor register (6 of them)?
- accumulator
- MDR
- CIR
- PC
- MAR
- Main Memory
in a processor register…
what does the PC do?
points to the next instruction
in a processor register…
what does CIR stand for?
Current Instruction Register