44 total
By the end of this subtopic, you should be able to:
Every processor has an instruction set — this is the collection of basic commands (instructions) that the processor knows how to carry out. Over time, two very different design philosophies emerged for how these instruction sets should be built.
The CISC design philosophy says: give the processor a large set of powerful, complex instructions so that programmers can write programs using as few lines of code as possible.
In a CISC processor, a single instruction can do many things at once. For example, a single ADD x, y instruction might automatically fetch the value from memory location x, fetch the value from memory location y, add them together, and store the result — all in one instruction. The processor has to break this complex instruction down into several smaller sub-instructions internally before it can carry it out.
Because of this, CISC instructions often take multiple clock cycles (a clock cycle is one "tick" of the processor's internal timer). The instructions can also be variable in length — some are short, some are long, depending on how complex they are.
Key features of CISC:
CISC processors are commonly found in desktop computers and laptops.
The RISC design philosophy takes the opposite approach: give the processor a small set of simple, fast instructions. Each instruction does only one small thing, but it does it very quickly — in exactly one clock cycle.
Because instructions are simpler, the processor does not need to break them down. This makes execution faster and more predictable. If a RISC processor needs to add two numbers, it uses multiple separate instructions:
LOAD A, x → Load the value from memory location x into register A
LOAD B, y → Load the value from memory location y into register B
ADD A, B → Add the values in A and B
STORE z → Store the result in memory location z
Each of these four instructions takes exactly one clock cycle. Although you need more instructions to do the same task compared to CISC, each one runs so quickly that overall performance is better.
Key features of RISC:
RISC processors are commonly found in smartphones and tablets (for example, ARM processors use RISC principles).
| Feature | RISC | CISC |
|---|---|---|
| Instruction set size | Fewer instructions | More instructions |
| Instruction complexity | Simple | Complex |
| Clock cycles per instruction | One | Multiple |
| Instruction length | Fixed | Variable |
| General-purpose registers | Many | Few |
| Addressing modes | Fewer | More |
| Control unit type | Hardwired | Microprogrammed |
| Pipelining | Easier | Harder |
| Circuit complexity | Simpler | More complex |
| Design emphasis | Software | Hardware |
| Typical devices | Smartphones, tablets | Desktops, laptops |
Sign in to view full notes