Loading...
Compare instruction-set tendencies through decoding, memory access and program work. Use instruction count, average cycles and frequency together before declaring a design faster.
What you'll be able to do
RISC designs typically emphasise relatively regular instruction formats, many register operations and a load/store approach in which explicit instructions move data between registers and memory. Simpler or more uniform decoding can help pipeline organisation. The term does not mean that every current RISC architecture contains only a tiny handful of instructions.
CISC designs typically provide more varied instruction forms and more complex operations or addressing choices, sometimes expressing a task in fewer instructions. Their decoding can be more complicated. However, a complex instruction is not guaranteed to complete in one tick, and a larger instruction repertoire does not guarantee a shorter or faster program for every task. Tie a benefit to the actual mechanism.
For a simplified model, CPU time equals dynamic instruction count multiplied by average cycles per instruction and divided by clock frequency. Dynamic count is the number of executed instructions, including repetitions, rather than simply the number of source-code lines. Average cycles must describe the stated workload and assumptions.
Suppose processor A executes four instructions averaging three ticks each at 1 GHz. Its model time is twelve ticks, or 12 ns. Processor B executes eight instructions averaging one tick each at the same frequency, taking 8 ns. B is 1.5 times as fast for this workload despite executing more instructions. A different frequency, instruction mix, cache behaviour or stall rate can change the comparison.
Regular instructions can make a simple pipeline easier to organise, but dependencies, branches and memory access still constrain useful throughput. More instructions may increase instruction-fetch demand, while compact variable-length encodings can reduce code size in some designs. Register availability, compiler choices and the specific program also matter. Explain why a stated feature helps the given scenario rather than assigning an absolute ranking.
Modern processors can internally decode complex instructions into simpler operations and combine techniques associated with different traditions. A syllabus comparison therefore teaches useful models, not a claim that every current chip fits one pure category. For a complete recommendation, consider workload, software compatibility, power/thermal constraints and cost where the question supplies evidence. Do not invent measured product specifications to support a general architecture answer.
| Given workload | Executed instructions | Average cycles | Frequency | Model time |
|---|---|---|---|---|
| A | 4 | 3 | 1 GHz | 12 ns |
| B | 8 | 1 | 1 GHz | 8 ns |
Attempt the task before opening its worked response. Record each change of state, explain the rule used, and check the result against the original requirements. Code examples labelled Python 3 use that language’s conventions; pseudocode states its own assumptions.
Equation recap
Common mistakes to avoid
Key takeaways
Test yourself
Answer a few questions, then review anything you missed.
Start with the quiz above to check the key ideas. You can also choose another topic from the practice library.