Unit 5 1
Unit 5 1
Unit 5 1
Registers R1, R2, R3, and R4 hold the data and the combinational
circuits operate in a particular segment.
1. Arithmetic Pipeline
2. Instruction Pipeline
Arithmetic Pipeline
Arithmetic Pipelines are mostly used in high-speed computers. They are
used to implement floating-point operations, multiplication of fixed-
point numbers, and similar computations encountered in scientific
problems.
X = A * 2a = 0.9504 * 103
Y = B * 2b = 0.8200 * 102
X = 0.9504 * 103
Y = 0.08200 * 103
3. Add mantissas:
Z = X + Y = 1.0324 * 103
Z = 0.1324 * 104
Instruction Pipeline
Pipeline processing can occur not only in the data stream but in the
instruction stream as well.
Each step is executed in a particular segment, and there are times when
different segments may take different times to operate on the incoming
information. Moreover, there are times when two or more segments may
require memory access at the same time, causing one segment to wait
until another is finished with the memory.
The instruction fetch segment can be implemented using first in, first out
(FIFO) buffer.
Segment 2:
Segment 3:
Segment 4:
The instructions are finally executed in the last segment of the pipeline
organization.
Parallel Processing
Parallel processing can be described as a class of techniques which
enables the system to achieve simultaneous data-processing tasks to
increase the computational speed of a computer system.
WB (Write Back): Writes the result of the executed instruction back to the register file.
Each stage operates concurrently, and instructions move through the pipeline
stages in sequence. The pipeline stages are synchronized by a clock signal. As the
clock ticks, each stage processes the instruction currently in its pipeline stage and
passes it to the next stage on the next clock cycle. This overlapping of instruction
execution enables high throughput and efficient use of hardware resources.
RISC Processor
RISC stands for Reduced Instruction Set Computer Processor, a microprocessor
architecture with a simple collection and highly customized set of instructions. It is built
to minimize the instruction execution time by optimizing and limiting the number of
instructions. It means each instruction cycle requires only one clock cycle, and each cycle
contains three parameters: fetch, decode and execute. The RISC processor is also used
to perform various complex instructions by combining them into simpler ones. RISC
chips require several transistors, making it cheaper to design and reduce the execution
time for instruction.
Examples of RISC processors are SUN's SPARC, PowerPC, Microchip PIC processors,
RISC-V.
1. The RISC processor's performance is better due to the simple and limited number
of the instruction set.
2. It requires several transistors that make it cheaper to design.
3. RISC allows the instruction to use free space on a microprocessor because of its
simplicity.
4. RISC processor is simpler than a CISC processor because of its simple and quick
design, and it can complete its work in one clock cycle.
1. The RISC processor's performance may vary according to the code executed
because subsequent instructions may depend on the previous instruction for
their execution in a cycle.
2. Programmers and compilers often use complex instructions.
3. RISC processors require very fast memory to save various instructions that require
a large collection of cache memory to respond to the instruction in a short time.
RISC Architecture
It is a highly customized set of instructions used in portable devices due to system
reliability such as Apple iPod, mobiles/smartphones, Nintendo DS,
Features of RISC Processor
Some important features of RISC processors are:
ADVERTISEMENT
1. One cycle execution time: For executing each instruction in a computer, the
RISC processors require one CPI (Clock per cycle). And each CPI includes the
fetch, decode and execute method applied in computer instruction.
2. Pipelining technique: The pipelining technique is used in the RISC processors to
execute multiple parts or stages of instructions to perform more efficiently.
3. A large number of registers: RISC processors are optimized with multiple
registers that can be used to store instruction and quickly respond to the
computer and minimize interaction with computer memory.
4. It supports a simple addressing mode and fixed length of instruction for
executing the pipeline.
5. It uses LOAD and STORE instruction to access the memory location.
6. Simple and limited instruction reduces the execution time of a process in a RISC.
CISC Processor
The CISC Stands for Complex Instruction Set Computer, developed by the Intel. It has
a large collection of complex instructions that range from simple to very complex and
specialized in the assembly language level, which takes a long time to execute the
instructions. So, CISC approaches reducing the number of instruction on each program
and ignoring the number of cycles per instruction. It emphasizes to build complex
instructions directly in the hardware because the hardware is always faster than
software. However, CISC chips are relatively slower as compared to RISC chips but use
little instruction than RISC. Examples of CISC processors are VAX, AMD, Intel x86 and the
System/360.
1. CISC chips are slower than RSIC chips to execute per instruction cycle on each
program.
2. The performance of the machine decreases due to the slowness of the clock
speed.
3. Executing the pipeline in the CISC processor makes it complicated to use.
4. The CISC chips require more transistors as compared to RISC design.
5. In CISC it uses only 20% of existing instructions in a programming event.
RISC CISC
It is a hard wired unit of programming in the RISC Microprogramming unit in CISC Processor.
Processor.
It requires multiple register sets to store the It requires a single register set to store the
instruction. instruction.
RISC has simple decoding of instruction. CISC has complex decoding of instruction.
Uses of the pipeline are simple in RISC. Uses of the pipeline are difficult in CISC.
It uses a limited number of instruction that requires It uses a large number of instruction that
less time to execute the instructions. requires more time to execute the
instructions.
It uses LOAD and STORE that are independent It uses LOAD and STORE instruction in the
instructions in the register-to-register a program's memory-to-memory interaction of a
interaction. program.
RISC has more transistors on memory registers. CISC has transistors to store complex
instructions.
The execution time of RISC is very short. The execution time of CISC is longer.
RISC architecture can be used with high-end CISC architecture can be used with low-end
applications like telecommunication, image applications like home automation, security
processing, video processing, etc. system, etc.
The program written for RISC architecture needs to Program written for CISC architecture tends
take more space in memory. to take less space in memory.
Example of RISC: ARM, PA-RISC, Power Architecture, Examples of CISC: VAX, Motorola 68000
Alpha, AVR, ARC and the SPARC. family, System/360, AMD and the Intel x86
CPUs.
Here local memory interconnects main memory. Host computer is general purpose
computer. Attached processor is back end machine driven by the host computer.
The array processor is connected through an I/O controller to the computer & the
computer treats it as an external interface.
2. SIMD array processor :
This is computer with multiple process unit operating in parallel Both types of array
processors, manipulate vectors but their internal organization is different.
Master control unit controls the operation in the PEs. The function of master control
unit is to decode the instruction and determine how the instruction to be executed.
If the instruction is scalar or program control instruction then it is directly executed
within the master control unit.
Main memory is used for storage of the program while each PE uses operands
stored in its local memory.