2.1 RISC CISC
2.1 RISC CISC
• RISC is a design philosophy for computer architectures that emphasizes optimizing the execution of
a small and highly optimized set of instructions, each taking a single clock cycle to execute.
• In a RISC architecture, the instruction set is deliberately kept simple, with a reduced number of
instructions
• The instruction set is composed of a few basic steps for loading, evaluating, and storing operations
just like a load command will load data, a store command will store the data.
• The goal is to enhance the performance and efficiency of the processor by streamlining the execution
of instructions.
• Characteristics of RISC
o Instruction comes undersize of one word (simplifying the instruction fetch and decode stages
in the pipeline.)
o Instruction takes a single clock cycle to get executed, promoting faster instruction
throughput.
o More general-purpose registers (Arithmetic and logic operations primarily involve data
stored in registers rather than memory, reducing the need for memory access.)
o Simple Addressing Modes.
o Fewer Data types.
o A pipeline can be achieved. (Allowing multiple instructions to be in different stages of
execution simultaneously.)
o Adopt a load-store model, where data is explicitly loaded from memory into registers,
processed within the registers, and then stored back into memory.
o Hardwired Control Unit (RISC processors commonly implement a hardwired control unit,
using fixed logic circuits for instruction decoding and execution control.)
Advantages
• High Performance:
The simplicity of instructions and single-cycle execution contribute to high-speed processing.
• Efficient Pipelining:
Pipelining is well-suited to RISC architectures, allowing the overlap of instruction execution stages.
Disadvantages
• Increased Code Size:
RISC instructions are simpler, but more of them may be needed to perform complex operations,
leading to larger code sizes. This can result in increased memory requirements and potentially impact
cache efficiency.
• Higher cost:
Developing and manufacturing RISC processors can be more expensive than CISC processors.
• Compatibility Challenges:
Transitioning from CISC to RISC architectures or across different RISC architectures may pose
compatibility challenges. Existing software optimized for CISC architectures may not run as
efficiently on RISC architectures without modifications.
• In CISC architectures, instructions can perform multiple low-level operations or tasks in a single
instruction.
• A single instruction will do all loading, evaluating, and storing operations just like a multiplication
command will do stuff like loading data, evaluating, and storing it, hence it’s complex.
• Characteristics
o Rich Instruction Set:
CISC architectures have a diverse and extensive set of instructions, ranging from simple
operations to complex tasks.
o Variable-Length Instructions:
Instructions in a CISC architecture may have variable lengths, and some instructions can be
quite lengthy.
o Memory-Operands Access:
CISC instructions often allow direct access to operands in memory, reducing the need for
explicit load and store instructions.
o Specialized Instructions:
CISC architectures may include specialized instructions designed for specific tasks, such as
string manipulation or decimal arithmetic.
Advantages
• Reduced code size:
CISC processors use complex instructions that can perform multiple operations, reducing the amount
of code needed to perform a task.
Disadvantages
• Complexity:
The complex instruction set leads to intricate control units and instruction decoding logic, potentially
impacting processor complexity.
• Power Consumption:
The inclusion of complex instructions and additional circuitry may result in higher power
consumption.
RISC CISC
Can perform only Register to Register Can perform REG to REG or REG to
Arithmetic operations MEM or MEM to MEM
An instruction executed in a single clock Instruction takes more than one clock
cycle cycle
RISC CISC
Simple and limited addressing modes. Complex and more addressing modes.
The number of instructions are less as The number of instructions are more
compared to CISC. as compared to RISC.
Here, Addressing modes are less. Here, Addressing modes are more.