What does the CPU stand for?
The Central Processing Unit.
What is the CPU?
The brain of the computer system.
1/41
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
What does the CPU stand for?
The Central Processing Unit.
What is the CPU?
The brain of the computer system.
What does the CPU do?
Process Data and Executes Instructions that make the computer system work.
What does the processing power of a CPU depend on?
It's:
-Clock speed
-Number of cores
-Cache size
What does the CPU architecture describe?
The main components of the CPU, their interaction with one another, and their interaction with other parts of the computer system.
What are the two types of CPU architecture?
Von Neumann and Harvard.
How many main parts does a CPU have?
3
What are the names of the 3 main parts of a CPU?
-The control unit (CU)
-The arithmetic logic unit (ALU)
-The cache
Which main part of the CPU has the overall control of the CPU?
The control unit (CU)
What is the main job of the control unit (CU)?
To execute program instructions by following the fetch-decode-execute cycle.
"The Control Unit (CU) controls the flow of data __________ and __________ of the CPU."
"inside"
"outside"
The Control Unit controls the flow of data inside the CPU to where?
To the registers, the ALU and the cache.
The Control Unit controls the flow of data outside the CPU to where?
To the main memory and input/output devices.
What does ALU stand for?
The Arithmetic Logic Unit
What does the ALU do?
All the calculations - SImple addition and subtraction, compares the size of numbers and can do multiplications and divisions using repeated addition and subtraction.
What register does the ALU contain?
The accumulator register.
What type of operations does the ALU perform?
Logic operations such as AND, OR and NOT and binary shifts.
What is the cache?
The cache is very fast memory in the CPU.
"Cache is _____________ than registers, but _____________ than RAM"
"slower"
"Faster"
"The cache stores ____________________ used data"
"regularly"
Why does the cache store regularly used data?
So that the CPU can access it quickly the next time that it is needed.
When the CPU requests data, where does it first check?
The cache.
When the CPU requests data, and the data is not in the cache, where does it check next?
The RAM.
"Compared to RAM and secondary storage, caches have a very low _____________ and are ________________."
"capacity"
"expensive"
What are the three levels of cache size?
L1, L2 and L3.
"Compared to other cache sizes, L1 is the _________________ but has the lowest _____________."
"quickest"
"capacity"
"L2 cache size is _____________ than L1, but can hold _________."
"slower"
"more"
"L3 cache size is ____________ than L2, but can hold _________."
"slower"
"more"
The registers that the CPU contains do what?
Temporarily hold tiny bits of data needed by the CPU.
An advantage of registers is that they are...
Super quick to read/write, way quicker than any other form of memory.
When did Von Neumann come up with his CPU architecture?
1945
What does the Von Neumann architecture describe?
A system where the CPU runs programs stored in memory. Programs consist of instructions and data which are stored in memory addresses.
What is the function of the program counter (PC)?
To hold the memory address of the instruction for each cycle.
What is the function of the accumulator?
To store the immediate results of calculations in the ALU.
What is the function of memory?
To hold the program instructions and the program data.
Other than the accumulator, what other two registers are present in the CPU?
The Memory Address Register (MAR) and the Memory Data Register (MDR).
What is the function of the MAR?
To hold any memory address about to be used by the CPU. The address may point to data, or a CPU instruction.
What is the function of the MDR?
To hold actual data or instructions, which may have been fetched from the memory, or be waiting to be written to memory.
Which cycle do CPUs follow?
The fetch-decode-execute cycle.
What does the fetch instruction do?
1. Copies the memory address from the program counter to the MAR.
2. Copies the instruction which is stored in the MAR address to the MDR.
3. Increments the program counter to point to the address of the next instruction.
What does the decode instruction do?
The instruction in the MDR is decoded by the CU and the CU might prep for the next step by loading values into the MDR/MAR etc.
What does the execute instruction do?
The instruction is carried out.