1.1.1 // Structure & Function of the Processor: VN, Harvard, Contemporary Processor Architecture, and Factors Affecting CPU Performance Flashcards
What are the principles of the ‘Stored Program Concept?’
- Programs and Data are stored in the same memory (allowing for manipulation during execution)
- Instructions are FDE’d sequentially (one at a time)
Von Neumann Architecture is the most common implementation of the SPC.
Describe a simple layout for Von Neumann Architecture.
- Instructions and Data are stored in a common Main Memory with a single, simple Control Unit.
- They are transferred back and forth using a single shared bus.
(It’s the System Bus, which contains all 3 types of buses.)
Von Neumann Architecture has many applications…
What sort of computers might contain Von Neumann Architecture?
- High-Performance Computers
- Mobiles, Tablets
- Laptops, PCs
The Von Neumann Architecture has it’s problems.
What issues might occur with Von Neumann Architecture?
- Memory cannot be written/read from the CPU simultaneously, because of the single bus route.
- Accidental Overwrites can happen because Data and Instructions share the same memory.
(1) Is known as the Von Neumann Bottleneck.
The Von Neumann Architecture has it’s problems.
What’s the solution to the Von Neumann Bottleneck?
- Cache: Fast acting memory inside the CPU chip that holds frequently used data/instructions.
- Cache decreases the usage of RAM, increasing efficiency & speed.
Cache has it’s tradeoffs, however.
There are more than one type of CPU Architecture…
Describe a simple layout for Harvard Architecture.
- Separates Data and Instructions into two distinct memories, accessible with a dedicated bus of a necessary width.
- A more complex CPU with more circuitry, as well as seperate caches.)
Harvard Architecture has many applications…
What sort of computers might contain Harvard Architecture?
- Specialist Embedded Systems
- Digital System Processing (DSP), where speed is prioritised over complexity (Calculators, Oscilloscopes)
What are the Advantages of a CPU with Von Neumann Architecture?
- Less Circuitry in the CU, thus cheaper to manufacture.
- Data and Instructions are accessed from memory in the same way.
Both of these advantages decrease power usage, increasing longevity.
What are the Disadvantages of a CPU with Von Neumann Architecture?
- Memory Latency & Bandwidth: Since Data & Instructions use the same memory and bus, the latency can increase due to a bottleneck cause by a demand to accessing memory.
- Cache Inefficiency: Since Cache is handling 2 types of information, the effiency can decrease because of cache contention.
What are the Advantages of a CPU with Harvard Architecture?
- Simultaneous access to both Data and Instructions: This reduces the bottleneck as there is less competition for the same buses.
- Better Memory Stability/Security: Data is less likely to be overwritten, reducing any accidental Overwrites.
What are the Disadvantages of a CPU with Harvard Architecture?
- Increased Manufacturing Cost: Due to the CU’s complex circuitry, as well as exclusive buses and specialised CPU components.
- Less Flexibility: The size of Data and Instruction memory are fixed; This can be inefficient if a program needs more memory for one, and less for another.
In contrast, VNA can dynamically allocate memory to Instructions or Data
What is Contemporary Processor Architecture?
Modern CPUs feature:
- Multiple cores
- Out-of-order execution
- hyper-threading, and a multi-level cache hierarchy
all designed to enhance performance, handle multiple tasks simultaneously, and efficiently manage data.
Most are 64-bit, supporting more memory and complex computations.
What is Pipelining?
A technique in CPU design where instruction processing is divided into stages (like Fetch, Decode, Execute) to allow multiple instructions to be processed simultaneously at different stages, increasing overall throughput and efficiency.
What exactly is Clock Speed, and what is it measured in?
- The number of FDE cycles a CPU completes in a second.
- Measured in Hz, it’s usually 2-4GHz
How does the Clock in the CPU work, and how does it affect performance?
- The Clock produces signals oscillating between a low and high voltage to regulate circuits including the CPU.
- A cycle is the time period between 2 oscillations, which the CPU uses to determine the timing of operations in the computer.
Thus, the faster the cycles are (rate), the more instructions can be executed per second; Processing is faster.