CISC vs RISC
CISC vs RISC
CISC eliminates the need for generating machine instructions to the processor. For example,
instead of having to make a compiler, write lengthy machine instructions to calculate a square-
root distance, a CISC processor offers a built-in ability to do this.
Many of the early computing machines were programmed in assembly language. Computer
memory was slow and expensive. CISC was commonly implemented in such large computers,
such as the PDP-11 and the DEC system.
What is CISC?
What is RISC?
Characteristics of CISC
Characteristics of RISC
Difference between CISC and RISC
CISC Advantages
RISC Advantages
CISC Disadvantages
RISC Disadvantages
What is RISC?
RISC is designed to perform a smaller number of types of computer instruction. Hence, it can
operate at a higher speed. The full form of RISC is Reduced Instruction Set Computers. It is a
microprocessor that is designed to perform smaller number of computer instruction so that it can
operate at a higher speed.
RISC instruction sets hold less than 100 instructions and use a fixed instruction format. This
method uses a few simple addressing modes that use a register-based instruction. In this compiler
development mechanism, LOAD/STORE is the only individual instructions for accessing
memory.
KEY DIFFERENCES:
In CISC, the instruction set is very large that can be used for complex operations while in RISC
the instruction set is reduced, and most of these instructions are very primitive.
CISC computer's execution time is very high whereas RISC computer's execution time is very
less.
In, CISC code expansion is not a problem while in RISC code expansion may create a problem.
In CISC, decoding of instructions is complex whereas, in RISC, the decoding of instructions is
simple.
CISC requires external memory for calculations, but RISC requires external memory for
calculations.
CISC has only a single register set while RISC has multiple register sets are present.
Characteristics of CISC
Here, are important characteristics Of CISC
Characteristics of RISC
Here, are an important characteristic of RICS:
The instruction set has various different instructions The instruction set is reduced, and most of these
that can be used for complex operations. instructions are very primitive.
They are mostly less or not pipelined This type of processors are highly pipelined
It requires external memory for calculations It doesn't require external memory for calculations
Examples of CISC processors are the System/360, Common RISC microprocessors are ARC, Alpha, ARC,
VAX, AMD, and Intel x86 CPUs. ARM, AVR, PA-RISC, and SPARC.
Single-cycle for each instruction Instructions can take several clock cycles
Important applications are Security systems, Home Important applications are : Smartphones, PDAs.
automation.
Varying formats (16-64 bits for each instruction). fixed (32-bit) format
Unified cache for instructions and data. Separate data and instruction cache.
CISC Advantages
Here, are pros/benefits of CISC
In CISC it is easy to add new commands into the chip without need to change the structure of
the instruction set
This architecture allows you to make efficient use of main memory
The compiler should not be very complicated, as with the case of CISC. The instruction sets can
be written to match the structures of high-level languages.
RISC Advantages
Here, are pros/benefits of RISC
CISC Disadvantages
Here, are Cons/ Drawbacks of CISC
Earlier generations of a processor family mostly contained as a subset in every new version.
Hence, instruction set & chip hardware becomes complex with each generation of computers.
The performance of the machine slows down because of clock time taken by different
instructions will never be similar.
They are larger as they require more transistors
RISC Disadvantages
Here, are Cons/Drawbacks of RISC
The performance of the RISC processors depends on the programmer or compiler. Compiler
plays an important role while converting the CISC code to a RISC code
RISC processors have large memory caches on the chip itself.
RISC architecture necessitates on-chip hardware to be continuously reprogrammed.
vs.
SRAM, or static RAM, offers better performance than DRAM because DRAM needs to be
refreshed periodically when in use, while SRAM does not. However, SRAM is more expensive
and less dense than DRAM, so SRAM sizes are orders of magnitude lower than DRAM.
Comparison chart
Dynamic random-access memory versus Static random-access memory comparison chart
Each memory cell in a DRAM chip holds one bit of data and is composed of a transistor and a
capacitor. The transistor functions as a switch that allows the control circuitry on the memory
chip to read the capacitor or change its state, while the capacitor is responsible for holding the bit
of data in the form of a 1 or 0.
In terms of function, a capacitor is like a container that stores electrons. When this container is
full, it designates a 1, while a container empty of electrons designates a 0. However, capacitors
have a leakage that causes them to lose this charge, and as a result, the “container” becomes
empty after just a few milliseconds.
Thus, in order for a DRAM chip to work, the CPU or memory controller must recharge the
capacitors that are filled with electrons (and therefore indicate a 1) before they discharge in order
to retain the data. To do this, the memory controller reads the data and then rewrites it. This is
called refreshing and occurs thousands of times per second in a DRAM chip. This is also where
the “Dynamic” in Dynamic RAM originates, since it refers to the refreshing necessary to retain
the data.
Because of the need to constantly refresh data, which takes time, DRAM is slower.
Static RAM, on the other hand, uses flip-flops, which can be in one of two stable states that the
support circuitry can read as either a 1 or a 0. A flip-flop, while requiring six transistors, has the
advantage of not needing to be refreshed. The lack of a need to constantly refresh makes SRAM
faster than DRAM; however, because SRAM needs more parts and wiring, an SRAM cell takes
up more space on a chip than a DRAM cell does. Thus, SRAM is more expensive, not only
because there is less memory per chip (less dense) but also because they are harder to
manufacture.
Speed
Because SRAM does not need to refresh, it is typically faster. The average access time of DRAM
is about 60 nanoseconds, while SRAM can give access times as low as 10 nanoseconds.
Power Consumption
Typically, an SRAM module consumes less power than a DRAM module. This is because
SRAM only requires a small steady current while DRAM requires bursts of power every few
milliseconds to refresh. This refresh current is several orders of magnitude greater than the low
SRAM standby current. Thus, SRAM is used in most portable and battery-operated equipment.
However, the power consumption of SRAM does depend on the frequency at which it is
accessed. When SRAM is used at a slower pace, it draws nearly negligible power while idled.
On the other hand, at higher frequencies, SRAM can consume as much power as DRAM.
Price
SRAM is much more expensive than DRAM. A gigabyte of SRAM cache costs around $5000,
while a gigabyte of DRAM costs $20-$75. Since SRAM uses flip-flops, which can be made of
up to 6 transistors, SRAM needs more transistors to store 1 bit than DRAM does, which only
uses a single transistor and capacitor. Thus, for the same amount of memory, SRAM requires a
higher number of transistors, which increases the production cost.
Applications
Computer memory types
Like all RAM, DRAM and SRAM are volatile and therefore cannot be used to store "permanent"
data such as operating systems or data files like pictures and spreadsheets.
The most common application of SRAM is to serve as cache for the processor (CPU). In
processor specifications, this is listed as L2 cache or L3 cache. SRAM performance is really fast
but SRAM is expensive, so typical values of L2 and L3 cache are 1MB to 8MB.
The most common application of DRAM — such as DDR3 — is volatile storage for computers.
While not as fast as SRAM, DRAM is still very fast and can connect directly to the CPU bus.
Typical sizes of DRAM are about 1 to 2GB in smartphones and tablets, and 4 to 16GB in
laptops.
Introduction to Instruction Cycle
The instruction cycle is related to the CPU (Central processing unit), a list of steps that follows
when the computer system starts until the computer system is shut down. The other name of the
instruction cycle is the fetch-decode-execute cycle. There are basically four phases in the
instruction cycle: fetching an instruction from memory, decoding of the fetched instruction,
reading of the address from memory, and the last phase include the instruction execution. The
computer processor executes it.
It is defined as the basic cycle carried out in a computer system in which the computer system
fetched the instruction from memory, decodes the instruction and then executes the instruction. It
is also known as Fetch-Execute-Cycle. In the computer system, all the instructions are executed
in the RAM of the computer system. The CPU is responsible for executing the instruction. The
CPU system first fetches the data and instruction from the main memory and store in the
temporary memory, which is known as registers. This phase is known as the fetch cycle. After
fetching an instruction from memory, the next step taken by the CPU is decoding of fetched
instruction. This phase is known as the decode phase.
The CPU contains an instructions set which contain all the predefined list of instructions. In the
last phase of the instruction cycle, data processing takes place. The instruction executes in this
phase, and the result is stored in another register. After the fetch-decode-execute cycle, the CPU
reset itself for another instruction cycle. The CPU system is considered the basic operation cycle,
which is carried out in RAM of the central processing unit and executes the instruction. It is
repeatedly continuously in the CPU when the computer system boots and then shut down. It is
executed in a sequential manner means when one instruction cycle is completed, then only the
next instruction cycle begins. But in the modern era central processing unit, the instructions can
be executed in a parallel manner.
There are basically five stages of the instruction cycle which are described below:
1. Initiating Cycle
In this phase, the computer system boots up, and the operating system loads in the main memory
(read-only memory) of the central processing unit. It immediately begins when the computer
system starts.
2. Fetching of Instruction
The fetching of instruction is the first phase. The fetch instruction is common for each instruction
executes in a central processing unit. In this phase, the central processing unit sends the PC to
MAR and then sends the READ command into a control bus. After sending a read command on
the data bus, the memory returns the instruction, which is stored at that particular address in the
memory. Then, the CPU copies data from the data bus into MBR and then copies the data from
MBR to registers. After all this, the pointer is incremented to the next memory location so that
the next instruction can be fetched from memory.
Software Testing Training (9 Courses, 2 Projects)9 Online Courses | 2 Hands-on Projects | 60+ Hours |
Verifiable Certificate of Completion | Lifetime Access
4.5 (6,057 ratings)
Course Price
$29 $399
View Course
Related Courses
3. Decoding of Instruction
The decoding of instruction is the second phase. In this phase, the CPU determines which
instruction is fetched from the instruction and what action needs to be performed on the
instruction. The opcode for the instruction is also fetched from memory and decodes the related
operation which needs to be performed for the related instruction.
The reading of an effective address is the third phase. This phase deals with the decision of the
operation. The operation can be of any type of memory type non-memory type operation.
Memory instruction can be categorized into two categories direct memory instruction and
indirect memory instruction.
5. Executing of Instruction
The executing of instruction is the last phase. In this stage, the instruction is finally executed.
The instruction is executed, and the result of the instruction is stored in the register. After the
execution of an instruction, the CPU prepares itself for the execution of the next instruction. For
every instruction, the execution time is calculated, which is used to tell the processing speed of
the processor.
There is a need for an instruction cycle for the computer system so that proper understanding
can be done to understand the flow of instructions and execution of an instruction in a
computer processor.
It deals with the complete flow of instruction when the computer system boots up until the
computer system is shut down. By the instruction cycle, the internal flow of the central
processing unit can be better understand so that if there is an issue, it can be easily resolved.
It deals with basic operations of computer processor there is a need for proper understanding of
various stages involved in it.
The fetch-decode-execute cycle is common for all types of instructions for the computer
processor system.
It is important for the processor system for the central processing unit as the instructions are
the basic operations that are performed in the main memory of the central processing unit.
It is a set of steps that help to understand the flow of instruction. By the instruction cycle, the
end to end the flow of instructions can be visualized in the computer processor.
It is common for all instruction set it needs to properly understand so that all the operations can
be performed easily.
By the instruction cycle, the processing time of the program can be easily calculated, which
helps to determine the speed of the processor.
As the speed of the processor tells how many instructions can be simultaneously executed in the
central processing unit.
Conclusion
The instruction cycle is the basic operation cycle related to the computer system, which deals
with the basic operation in the central processing unit. The other name of the instruction cycle is
fetched decode execute cycle. It is continuously repeated until the system goes into the shutdown
phase. It is common for all types of instructions defined for computer processor system.
Recommended Articles
This is a guide to What is Instruction Cycle? Here we discuss the introduction; why we need an
instruction cycle? And importance. You may also have a look at the following articles to learn
more –