1 / 19

RISC and CISC

RISC and CISC. RISC versus CISC. The world of microprocessors and CPUs can be divided into two parts: complex instruction set computers using CISC processors, and reduced instruction set computers with RISC processors. Example: Intel’s Pentium-class microprocessors – CISC

sibyl
Download Presentation

RISC and CISC

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. RISC and CISC

  2. RISC versus CISC The world of microprocessors and CPUs can be divided into two parts: complex instruction set computers using CISC processors, and reduced instruction set computers with RISC processors. Example: Intel’s Pentium-class microprocessors – CISC Sun’s SPARC microprocessors - RISC ais@aber.ac.uk and dap@aber.ac.uk

  3. Why RISC? • First microprocessors used very simple instruction sets. • As microprocessors became more complex, then more instructions incorporated. (>300 current CISC). • Some instructions used frequently, others are very specialised and used rarely. • In general, the more instructions there are in an instruction set, then the longer the propagation delay in the CPU. (More logic to decode instructions needed). • ANSWER: to speed up CPU, then reduce instruction set. (<100 current RISC). But, there is a problem with this. ais@aber.ac.uk and dap@aber.ac.uk

  4. The RISC Tradeoff • The eliminated instructions generally correspond to specific statements in higher-level languages. Eliminating these would force the CPU to use several instructions instead of one to perform the same function (if required by the program). This would invariably require more time. • Example: AND, OR, XOR, and NOT • Eliminate OR and XOR instructions because they can be constructed from AND and NOT instructions (DeMorgan’s etc. – think what we saw in LC-3). • SUB • Can be implemented using addition and 2’s complement ais@aber.ac.uk and dap@aber.ac.uk

  5. The RISC CPU - features • Reduced instruction set size • Fixed length instructions • Limited instructions for interaction with memory for loading and storing data • Fewer addressing modes • Instruction pipeline • Large number of registers • Hardwired control unit ais@aber.ac.uk and dap@aber.ac.uk

  6. Fixed length instructions In a RISC CPU, every instruction has the same number of bits. Each instruction is capable of being executed in a single clock cycle. You will have seen this with the LC-3 instructions/architecture. ais@aber.ac.uk and dap@aber.ac.uk

  7. Limited memory interaction instructions All processors can load and store data to and from memory, but CISC includes other capabilities, e.g. ANDing accumulator contents with memory. RISC first loads value into register, then performs AND operation ais@aber.ac.uk and dap@aber.ac.uk

  8. Fewer addressing modes Some addressing modes require several memory accesses which degrades performance. RISC CPUs allow only a few addressing modes that can be processed quickly ais@aber.ac.uk and dap@aber.ac.uk

  9. Instruction pipeline • One instruction is executed while the next instruction is being decoded and its operands are being loaded, while the next instruction is being fetched. By overlapping these operations (like assembly pipeline), the CPU executes one instruction per clock cycle ais@aber.ac.uk and dap@aber.ac.uk

  10. Many registers • Having a large number of registers allows the CPU to store many operands internally, rather than in memory. This reduces access time significantly ais@aber.ac.uk and dap@aber.ac.uk

  11. Hardwired Control Unit • A CISC processor uses microprogramming rather than a hard-wired CU • Microencoding of machine instructions is easy, and allows for backwards compatibility • But hardwired logic has a lower propagation delay, hence RISC CUs run faster, but are not as easy to modify ais@aber.ac.uk and dap@aber.ac.uk

  12. So, which is better? For RISC: • Control units are less complex, and easier to design, so they can run at higher clock frequencies than CISC. They are also smaller, allowing more room for extra registers and other components. Simpler design makes them easier to use in parallel ais@aber.ac.uk and dap@aber.ac.uk

  13. Which is better? For RISC: • Fewer instructions means compilers are less complex than for CISC processors (though will probably need many more machine code instructions); ideal for HLL programming (but CISC is better for Assembly Language programming) ais@aber.ac.uk and dap@aber.ac.uk

  14. Which is better? For CISC: • Maybe more complex to design, but latest chips are often built on previous ones (e.g. Intel Pentium), so development costs might not be higher, and may actually be lower. Also means technology is tried and tested ais@aber.ac.uk and dap@aber.ac.uk

  15. Which is better? For CISC: • Backwards compatibility – can run the same software as previous versions of the processor ais@aber.ac.uk and dap@aber.ac.uk

  16. Which is better? • The jury is still out • Some believe RISC will out-compete CISC • Others believe they will co-exist • Others foresee a hybrid CPU • But there are lots of heated debates going on! ais@aber.ac.uk and dap@aber.ac.uk

  17. Intermingling • Intermingling of RISC and CISC concepts is already underway, with CISC processors incorporating pipelining • CISC processors are incorporating more registers too, as improved technology allows • The PowerPC (now defunct) was an example of a hybrid ais@aber.ac.uk and dap@aber.ac.uk

  18. The LC-3 is RISC • How do you know this from your knowledge of LC-3 assembly language? • Very limited set of commands • Fixed length instructions • Limited addressing modes • Operands cannot be in memory ais@aber.ac.uk and dap@aber.ac.uk

  19. The 68HC11 is CISC • Full set of commands • Variable length instructions • Addressing modes • Operands can be in memory ais@aber.ac.uk and dap@aber.ac.uk

More Related