š¾ 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