SlideShare a Scribd company logo
2
Most read
3
Most read
4
Most read
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 09 Issue: 10 | Oct 2022 www.irjet.net p-ISSN: 2395-0072
© 2022, IRJET | Impact Factor value: 7.529 | ISO 9001:2008 Certified Journal | Page 954
Design and development of a 5-stage Pipelined RISC processor based
on MIPS
Ankitha C.S1, Dr. Kiran V2
1MTECH 1st year, Dept. of ECE, RV college of Engineering, Karnataka, India
2Associate Professor, Dept. of ECE, RV college of Engineering, Karnataka, India
---------------------------------------------------------------------***---------------------------------------------------------------------
Abstract - The MIPS-based RISC processor has a
extensive applications due to its outstanding performance
as well as lesser power consumption. Here, is the concept
of a MIPS processor built on a pipeline is suggested, using
the forwarding and stopping processes. The majority of
modern processors feature a pipelined architecture. The
design of pipelined processors enables the execution of
several instructions at a single clock pulse. The processors
are built with numerous stages to produce this
phenomenon of multiple processing. Under a shared clock
pulse, these stages operate as a single entity to produce
the effect of multiple processing. A five stage pipelined
RISC processor typically has the following stages:
instruction fetch, instruction decode, execution, memory,
and Wright back stages. Each of these steps functions as a
separate processor coupled to the preceding one so that
each of them processes one instruction and sends it to the
following step in the sequence with each clock pulse. A 32
bit RISC processor with a 5-stage pipeline has been
designed in the proposed project. By considering a
minimal set of instructions from the instruction set
architecture of the popular RISC processor MIPS32 for
implementation. The behavioral model of the processor is
written in Verilog HDL and the operation of the processor
and the pipeline structure are studied and verified.
Key Words: MIPS Processor, Pipeline, RISC, Verilog.
1. INTRODUCTION
There are numerous types of processors available today.
The majority of them are created using a hardware
descriptive language, such as Verilog or VHDL. There are
two different types of processors: RISC and CISC based. As
a replacement for CISC, RISC processors are thought to be
the most efficient CPU architecture.It comprises of
streamlined instructions that perform fewer tasks yet
more quickly. The ability of RISC processors to use thread
level parallelism and instruction level parallelism to
enhance the register set and internal parallelism is its
core feature. Additionally, it enables the CPU to execute
instructions at a faster rate. Smartphones, tablets,
computers, and many other intelligent gadgets use RISC
architecture.
RISC processor components not only perform better but
are typically less expensive to develop and manufacture
since they use fewer transistors.Because of the previously
described factors, system on chips (SoCs) are the ideal fit
for RISC architectures. MIPS architecture designs remain
constant, however they could change according on
whether the pipeline is single-cycle or multi-cycle
implemented [2]. Routers and other similar tiny
computing devices employ MIPS.
The MIPS design has three sorts of instruction sets:
Register type , Immediate type and jump type
1.1 Register type ( R type )
Here the opcode is indicated by the last 6 bits. The next 15
bits stand for the three registers Rs, Rt, and Rd, which are
used for operations. Source registers are Rs, Rt, and
destination registers are Rd, respectively. The next five
bits are the shift amount, which indicates how many bits
need to be shifted. The function field in the last six bits
identifies the operation to be executed on the registers.
Fig. 1 illustrates the structure of a R type instruction.
Fig. 1. Format for R type instructions.
1.2 Immediate type ( I type )
When an instruction needs to operate on both a register
value and an immediate value, an I instruction is utilized.
The source and destination register operands, rs and rt,
are each 5 bits in size. The immediate value is 16 bits
long (0 to 15). This value may be stated in two's
complement depending on the instruction and is typically
used as the offset value in various instructions. Fig. 2
depicts the I type Instruction format.
Fig.2. Structure of I type instruction.
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 09 Issue: 10 | Oct 2022 www.irjet.net p-ISSN: 2395-0072
© 2022, IRJET | Impact Factor value: 7.529 | ISO 9001:2008 Certified Journal | Page 955
1.3 Jump type ( J type )
The first 5 bits of jump type Instruction structure specify
the type of jump operation that needs to be carried out.
The branch offset is represented by the 2's complement in
the remaining 26 bits. Instruction field for J-type is shown
in Fig. 3.
Fig. 3. Instruction field for a jump-instruction
2. RELATED WORK
The Harvard architecture, which Von Neumann
introduced, was used in the construction of the processor.
It has distinct program memory and data memory in the
CPU. Clock gating, an effective low power approach, is
employed at the architecture level to reduce RISC Core's
power usage. Low power usage reduces heat dissipation,
extending battery life and improving device dependability
[3]. Multiple executions of a single instruction can be
achieved
3. METHODOLOGY
Fig.4. Block diagram of MIPS processor’s architecture
Five steps of the pipelining procedure have been
completed using this specified methodology. They are
instruction fetch stage (IF), instruction decode stage
(ID), execute stage (EX), memory access stage (MEM),
and write back stage (WB). Utilizing bottom-up design
methodology, the processor's sub-module was initially
created, coded, and tested. At first when each of the
sub-modules had been generated and were confirmed
to be entirely functioning, these are incorporated into a
top module to produce the MIPS processors. A broad
set of MIPS instructions were then executed on the CPU
to assess its functionality and timing. The instructions
are executed, intentionally and methodically by moving
through each stage. Each phase completes its assigned
responsibilities and adds to the final project. Also
registers separating each stage of the pipeline
operation aid in buffering. One clock cycle is used to
represent the time provided for each stage.
3.1 Various Pipelining Stages
3.1.1 IF-stage:
At this point, the CPU reads instructions from memory at
the address represented by the value of the Instruction
Pointer (IP) or Program Counter (PC). The instruction's
Opcode is received from the Instruction Memory
which stores all of the instructions required for the
process.
3.1.2 Instruction Decode:
The decoder stage's objective is to transmit and decode
the fetched instructions to the control unit. The ID stage
receives the data from the IF stage. The Opcode is
acquired by the decoder unit via the fetch stage. In
accordance with the Opcode and its related functions,
ID stage regulates different components and modules
of the design. Four different sorts of instructions make
up the decode stage: Register-type, Immediate-type,
Jump-type, and I/O type instructions. Control unit's
actions are carried out in accordance with the Opcodes
of these instructions. One among the crucial
components as well as the brain of the processor and ID
phase is controller, which receives the instruction's
Opcode of size 6-bits as input and generates the
Execute instruction as the output and that is sent to the
Arithmetic and Logical Unit. The Execute Command
specifies a particular activity that ALU must carry out.
When a threat is identified, the controller stops all
writing operations to the register file / memory.
Instruction decode stage includes the Sign Extend unit.
This module converts the final 16 bits of the immediate
instruction—the immediate data—into a 32-bit value.
The Immediate Instruction's MSB bit value is added to
the remaining bits to perform sign extension.
3.1.3 Execute:
In the EX-stage, calculations are performed. The ALU is
the main part of the EX module. The central component
of a processor is the arithmetic logic unit. It is in charge
of all tasks that need to be done. ALU processes the
operations based on the Execute Command input. The
ALU performs shift operations both logical and
arithmetic, as well as arithmetic and logical operations
including ADD, SUB, AND, OR, NOR, and XOR.
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 09 Issue: 10 | Oct 2022 www.irjet.net p-ISSN: 2395-0072
© 2022, IRJET | Impact Factor value: 7.529 | ISO 9001:2008 Certified Journal | Page 956
registers is the main activity and function in the
memory stage. They are also in charge of retrieving and
transmitting the data from the memory module. The
main job of the data value is to be stored in the
appropriate destination registers in accordance with
the instruction.
3.1.5 Write-back (WB):
In this stage the calculated or retrieved value will be
written back to the register specified in the instructions. It
should be noted that two distinct stages are
simultaneously accessing the register file: the decode
stage is reading two source registers, and the WB stage is
writing the destination register of a previous
instruction.This phase is in charge of the outcome,
information storage, and data input into and out of the
register. Pipeline Registers or Buffers—separate types
of memory—divide these pipelined phases. Such
buffers are employed to divide the phases, preventing
problems from occurring when several instructions are
carried out simultaneously without any data dispute.
Since the purpose of the WB stage is to write data to the
destination register. For instance, the R1 register is
produced by the ADD R1, R2, and R3 instruction
memory to speed up programs.
4. RESULTS
Simulation results for different assembly programs loaded
ontothe processor.
Fig.6 Simulation result for the program to verify register
manipulation
Fig.8 Simulation result for the program to verify register
manipulation
Fig.9 Simulation result for the program to verify register
manipulation
3.1.4 Memory Access:
The loading and unloading of values into and out of
5. CONCLUSION
In the proposed project, a 32-bit MIPS-based RISC
processor is successfully designed, modelled, and
simulated. With a pipeline design and Verilog HDL, it is
effectively executed. It is determined that the
functionality is correct by comparing the simulation's
results to those that were predicted.
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 09 Issue: 10 | Oct 2022 www.irjet.net p-ISSN: 2395-0072
© 2022, IRJET | Impact Factor value: 7.529 | ISO 9001:2008 Certified Journal | Page 957
REFERENCES
[1] Preetam Bhosle, Hari Krishna Moorthy, "FPGA
implementation of low power pipelined 32-bit RISC
processor", International Journal of Innovative
Technology and Exploring Engineering (IJITEE),
August 2012.
[2] J.Poornima, G.V.Ganesh, M.Jyothi, M.Sahithi, A.Jhansi
Rani B. Raghu Kanth, “Design and implementation of
pipelined 32-bit Advanced RISC Processor for
Various D.S.P Applications", (IJCSIT) International
Journal of Computer Science and Information
Technologies, Vol. 3 (1) , 2012.
[3] Navneet kaur, Adesh Kumar, Lipika Gupta, “VHDL
Design and Synthesis of 64 bit RISC Processor System
on Chip (SoC)”, IOSR Journal of VLSI and Signal
Processing (IOSR-JVSP) Volume 3, Issue5 (Nov. – Dec.
2013),
[4] M. N. Topiwala and N. Saraswathi, "Implementation
of a 32-bit MIPS based RISC processor using
Cadence," 2014 IEEE International Conference on
Advanced Communications, Control and Computing
Technologies, 2014.
[5] N.Alekya ,P.Ganesh Kumar, “Design of 32-Bit Risc
CPU Based on MIPS”, JGRCS Volume 2,No
9,September 2011
[6] Sagar Bhavsar, Akhil Rao, Abhishek Sen, Rohan Joshi,
“A 16-bit MIPS Based Instruction Set Architecture for
RISC Processor”, International Journal of Scientific
and Research Publications, Volume 3, Issue 4, April
2013
[7] Bhardwaj, Priyavrat & Murugesan, Siddharth, “Design
& simulation of a 32-bit RISC based MIPS processor
using verilog”, IJRET, 2016.
[8] Anand Nandakumar Shardul,”16-Bit RISC Processor
Design for convolution Application”, International
Journal of Advancements in Research & Technology,
Volume 2,Issue 9,September-2013.
[9] K. P. K and V. Prakash A. M, "Designing and
Implementation of 32-bit 5 stage Pipelined MIPS
based RISC Processor Capable of Resolving Data
Hazards," 2021 IEEE International Conference on
Mobile Networks and Wireless Communications
(ICMNWC), 2021, pp. 1-6, doi:
10.1109/ICMNWC52512.2021.9688435.
[10] Balpande, Rupali S.,and Rashmi S. Keote. “Design of
FPGA Based Instruction Fetch & Decode Module of
32-bit RISC Processor”, 2011 International
Conference on Communication Systems and Network
Technologies, 2011

More Related Content

PDF
A REVIEW ON ANALYSIS OF 32-BIT AND 64-BIT RISC PROCESSORS
PDF
A044050107
PDF
An Enhanced FPGA Based Asynchronous Microprocessor Design Using VIVADO and ISIM
PDF
Design & Simulation of RISC Processor using Hyper Pipelining Technique
PDF
IRJET- Design of Low Power 32- Bit RISC Processor using Verilog HDL
PDF
Review paper on 32-BIT RISC processor with floating point arithmetic
PDF
11 2014
PDF
20120140502007 2-3
A REVIEW ON ANALYSIS OF 32-BIT AND 64-BIT RISC PROCESSORS
A044050107
An Enhanced FPGA Based Asynchronous Microprocessor Design Using VIVADO and ISIM
Design & Simulation of RISC Processor using Hyper Pipelining Technique
IRJET- Design of Low Power 32- Bit RISC Processor using Verilog HDL
Review paper on 32-BIT RISC processor with floating point arithmetic
11 2014
20120140502007 2-3

Similar to Design and development of a 5-stage Pipelined RISC processor based on MIPS (20)

PDF
IJCER (www.ijceronline.com) International Journal of computational Engineerin...
PDF
Design and simulation of a non pipelined multi cycle 16 bit risc educational ...
PDF
Design and Implementation of Pipelined 8-Bit RISC Processor using Verilog HDL...
PDF
IJCRT2006062.pdf
PDF
Hg3612911294
PDF
A 64-Bit RISC Processor Design and Implementation Using VHDL
PPTX
Design of a low power processor for Embedded system applications
PDF
Realization of high performance run time loadable mips soft-core processor
PDF
IJERD (www.ijerd.com) International Journal of Engineering Research and Devel...
PDF
16-bit Microprocessor Design (2005)
PDF
W04505116121
PPTX
Advanced Processor Power Point Presentation
PDF
A STUDY OF AN ENTRENCHED SYSTEM USING INTERNET OF THINGS
PPT
Design and implementation of five stage pipelined RISC-V processor using Ver...
PDF
Microcontroller pic 16f877 architecture and basics
PPT
Microprocessor Systems and Interfacing Slides
PDF
Design_amp_analysis_of_16_bit_RISC_processor_using_low_power_pipelining.pdf
PDF
Implementation Of MIPS Single Cycle Processor
DOCX
embeddeed real time systems 2 mark questions and answers
IJCER (www.ijceronline.com) International Journal of computational Engineerin...
Design and simulation of a non pipelined multi cycle 16 bit risc educational ...
Design and Implementation of Pipelined 8-Bit RISC Processor using Verilog HDL...
IJCRT2006062.pdf
Hg3612911294
A 64-Bit RISC Processor Design and Implementation Using VHDL
Design of a low power processor for Embedded system applications
Realization of high performance run time loadable mips soft-core processor
IJERD (www.ijerd.com) International Journal of Engineering Research and Devel...
16-bit Microprocessor Design (2005)
W04505116121
Advanced Processor Power Point Presentation
A STUDY OF AN ENTRENCHED SYSTEM USING INTERNET OF THINGS
Design and implementation of five stage pipelined RISC-V processor using Ver...
Microcontroller pic 16f877 architecture and basics
Microprocessor Systems and Interfacing Slides
Design_amp_analysis_of_16_bit_RISC_processor_using_low_power_pipelining.pdf
Implementation Of MIPS Single Cycle Processor
embeddeed real time systems 2 mark questions and answers
Ad

More from IRJET Journal (20)

PDF
Enhanced heart disease prediction using SKNDGR ensemble Machine Learning Model
PDF
Utilizing Biomedical Waste for Sustainable Brick Manufacturing: A Novel Appro...
PDF
Kiona – A Smart Society Automation Project
PDF
DESIGN AND DEVELOPMENT OF BATTERY THERMAL MANAGEMENT SYSTEM USING PHASE CHANG...
PDF
Invest in Innovation: Empowering Ideas through Blockchain Based Crowdfunding
PDF
SPACE WATCH YOUR REAL-TIME SPACE INFORMATION HUB
PDF
A Review on Influence of Fluid Viscous Damper on The Behaviour of Multi-store...
PDF
Wireless Arduino Control via Mobile: Eliminating the Need for a Dedicated Wir...
PDF
Explainable AI(XAI) using LIME and Disease Detection in Mango Leaf by Transfe...
PDF
BRAIN TUMOUR DETECTION AND CLASSIFICATION
PDF
The Project Manager as an ambassador of the contract. The case of NEC4 ECC co...
PDF
"Enhanced Heat Transfer Performance in Shell and Tube Heat Exchangers: A CFD ...
PDF
Advancements in CFD Analysis of Shell and Tube Heat Exchangers with Nanofluid...
PDF
Breast Cancer Detection using Computer Vision
PDF
Auto-Charging E-Vehicle with its battery Management.
PDF
Analysis of high energy charge particle in the Heliosphere
PDF
A Novel System for Recommending Agricultural Crops Using Machine Learning App...
PDF
Auto-Charging E-Vehicle with its battery Management.
PDF
Analysis of high energy charge particle in the Heliosphere
PDF
Wireless Arduino Control via Mobile: Eliminating the Need for a Dedicated Wir...
Enhanced heart disease prediction using SKNDGR ensemble Machine Learning Model
Utilizing Biomedical Waste for Sustainable Brick Manufacturing: A Novel Appro...
Kiona – A Smart Society Automation Project
DESIGN AND DEVELOPMENT OF BATTERY THERMAL MANAGEMENT SYSTEM USING PHASE CHANG...
Invest in Innovation: Empowering Ideas through Blockchain Based Crowdfunding
SPACE WATCH YOUR REAL-TIME SPACE INFORMATION HUB
A Review on Influence of Fluid Viscous Damper on The Behaviour of Multi-store...
Wireless Arduino Control via Mobile: Eliminating the Need for a Dedicated Wir...
Explainable AI(XAI) using LIME and Disease Detection in Mango Leaf by Transfe...
BRAIN TUMOUR DETECTION AND CLASSIFICATION
The Project Manager as an ambassador of the contract. The case of NEC4 ECC co...
"Enhanced Heat Transfer Performance in Shell and Tube Heat Exchangers: A CFD ...
Advancements in CFD Analysis of Shell and Tube Heat Exchangers with Nanofluid...
Breast Cancer Detection using Computer Vision
Auto-Charging E-Vehicle with its battery Management.
Analysis of high energy charge particle in the Heliosphere
A Novel System for Recommending Agricultural Crops Using Machine Learning App...
Auto-Charging E-Vehicle with its battery Management.
Analysis of high energy charge particle in the Heliosphere
Wireless Arduino Control via Mobile: Eliminating the Need for a Dedicated Wir...
Ad

Recently uploaded (20)

PDF
Embodied AI: Ushering in the Next Era of Intelligent Systems
PPTX
Sustainable Sites - Green Building Construction
PPTX
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
PPTX
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
PPTX
Fundamentals of safety and accident prevention -final (1).pptx
PDF
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
PPTX
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
PDF
Operating System & Kernel Study Guide-1 - converted.pdf
PDF
PPT on Performance Review to get promotions
DOCX
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
PPTX
Internet of Things (IOT) - A guide to understanding
PDF
Model Code of Practice - Construction Work - 21102022 .pdf
PPTX
web development for engineering and engineering
DOCX
573137875-Attendance-Management-System-original
PDF
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
PDF
737-MAX_SRG.pdf student reference guides
PDF
Unit I ESSENTIAL OF DIGITAL MARKETING.pdf
PDF
III.4.1.2_The_Space_Environment.p pdffdf
PPTX
CYBER-CRIMES AND SECURITY A guide to understanding
PDF
Human-AI Collaboration: Balancing Agentic AI and Autonomy in Hybrid Systems
Embodied AI: Ushering in the Next Era of Intelligent Systems
Sustainable Sites - Green Building Construction
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
Fundamentals of safety and accident prevention -final (1).pptx
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
Operating System & Kernel Study Guide-1 - converted.pdf
PPT on Performance Review to get promotions
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
Internet of Things (IOT) - A guide to understanding
Model Code of Practice - Construction Work - 21102022 .pdf
web development for engineering and engineering
573137875-Attendance-Management-System-original
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
737-MAX_SRG.pdf student reference guides
Unit I ESSENTIAL OF DIGITAL MARKETING.pdf
III.4.1.2_The_Space_Environment.p pdffdf
CYBER-CRIMES AND SECURITY A guide to understanding
Human-AI Collaboration: Balancing Agentic AI and Autonomy in Hybrid Systems

Design and development of a 5-stage Pipelined RISC processor based on MIPS

  • 1. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 09 Issue: 10 | Oct 2022 www.irjet.net p-ISSN: 2395-0072 © 2022, IRJET | Impact Factor value: 7.529 | ISO 9001:2008 Certified Journal | Page 954 Design and development of a 5-stage Pipelined RISC processor based on MIPS Ankitha C.S1, Dr. Kiran V2 1MTECH 1st year, Dept. of ECE, RV college of Engineering, Karnataka, India 2Associate Professor, Dept. of ECE, RV college of Engineering, Karnataka, India ---------------------------------------------------------------------***--------------------------------------------------------------------- Abstract - The MIPS-based RISC processor has a extensive applications due to its outstanding performance as well as lesser power consumption. Here, is the concept of a MIPS processor built on a pipeline is suggested, using the forwarding and stopping processes. The majority of modern processors feature a pipelined architecture. The design of pipelined processors enables the execution of several instructions at a single clock pulse. The processors are built with numerous stages to produce this phenomenon of multiple processing. Under a shared clock pulse, these stages operate as a single entity to produce the effect of multiple processing. A five stage pipelined RISC processor typically has the following stages: instruction fetch, instruction decode, execution, memory, and Wright back stages. Each of these steps functions as a separate processor coupled to the preceding one so that each of them processes one instruction and sends it to the following step in the sequence with each clock pulse. A 32 bit RISC processor with a 5-stage pipeline has been designed in the proposed project. By considering a minimal set of instructions from the instruction set architecture of the popular RISC processor MIPS32 for implementation. The behavioral model of the processor is written in Verilog HDL and the operation of the processor and the pipeline structure are studied and verified. Key Words: MIPS Processor, Pipeline, RISC, Verilog. 1. INTRODUCTION There are numerous types of processors available today. The majority of them are created using a hardware descriptive language, such as Verilog or VHDL. There are two different types of processors: RISC and CISC based. As a replacement for CISC, RISC processors are thought to be the most efficient CPU architecture.It comprises of streamlined instructions that perform fewer tasks yet more quickly. The ability of RISC processors to use thread level parallelism and instruction level parallelism to enhance the register set and internal parallelism is its core feature. Additionally, it enables the CPU to execute instructions at a faster rate. Smartphones, tablets, computers, and many other intelligent gadgets use RISC architecture. RISC processor components not only perform better but are typically less expensive to develop and manufacture since they use fewer transistors.Because of the previously described factors, system on chips (SoCs) are the ideal fit for RISC architectures. MIPS architecture designs remain constant, however they could change according on whether the pipeline is single-cycle or multi-cycle implemented [2]. Routers and other similar tiny computing devices employ MIPS. The MIPS design has three sorts of instruction sets: Register type , Immediate type and jump type 1.1 Register type ( R type ) Here the opcode is indicated by the last 6 bits. The next 15 bits stand for the three registers Rs, Rt, and Rd, which are used for operations. Source registers are Rs, Rt, and destination registers are Rd, respectively. The next five bits are the shift amount, which indicates how many bits need to be shifted. The function field in the last six bits identifies the operation to be executed on the registers. Fig. 1 illustrates the structure of a R type instruction. Fig. 1. Format for R type instructions. 1.2 Immediate type ( I type ) When an instruction needs to operate on both a register value and an immediate value, an I instruction is utilized. The source and destination register operands, rs and rt, are each 5 bits in size. The immediate value is 16 bits long (0 to 15). This value may be stated in two's complement depending on the instruction and is typically used as the offset value in various instructions. Fig. 2 depicts the I type Instruction format. Fig.2. Structure of I type instruction.
  • 2. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 09 Issue: 10 | Oct 2022 www.irjet.net p-ISSN: 2395-0072 © 2022, IRJET | Impact Factor value: 7.529 | ISO 9001:2008 Certified Journal | Page 955 1.3 Jump type ( J type ) The first 5 bits of jump type Instruction structure specify the type of jump operation that needs to be carried out. The branch offset is represented by the 2's complement in the remaining 26 bits. Instruction field for J-type is shown in Fig. 3. Fig. 3. Instruction field for a jump-instruction 2. RELATED WORK The Harvard architecture, which Von Neumann introduced, was used in the construction of the processor. It has distinct program memory and data memory in the CPU. Clock gating, an effective low power approach, is employed at the architecture level to reduce RISC Core's power usage. Low power usage reduces heat dissipation, extending battery life and improving device dependability [3]. Multiple executions of a single instruction can be achieved 3. METHODOLOGY Fig.4. Block diagram of MIPS processor’s architecture Five steps of the pipelining procedure have been completed using this specified methodology. They are instruction fetch stage (IF), instruction decode stage (ID), execute stage (EX), memory access stage (MEM), and write back stage (WB). Utilizing bottom-up design methodology, the processor's sub-module was initially created, coded, and tested. At first when each of the sub-modules had been generated and were confirmed to be entirely functioning, these are incorporated into a top module to produce the MIPS processors. A broad set of MIPS instructions were then executed on the CPU to assess its functionality and timing. The instructions are executed, intentionally and methodically by moving through each stage. Each phase completes its assigned responsibilities and adds to the final project. Also registers separating each stage of the pipeline operation aid in buffering. One clock cycle is used to represent the time provided for each stage. 3.1 Various Pipelining Stages 3.1.1 IF-stage: At this point, the CPU reads instructions from memory at the address represented by the value of the Instruction Pointer (IP) or Program Counter (PC). The instruction's Opcode is received from the Instruction Memory which stores all of the instructions required for the process. 3.1.2 Instruction Decode: The decoder stage's objective is to transmit and decode the fetched instructions to the control unit. The ID stage receives the data from the IF stage. The Opcode is acquired by the decoder unit via the fetch stage. In accordance with the Opcode and its related functions, ID stage regulates different components and modules of the design. Four different sorts of instructions make up the decode stage: Register-type, Immediate-type, Jump-type, and I/O type instructions. Control unit's actions are carried out in accordance with the Opcodes of these instructions. One among the crucial components as well as the brain of the processor and ID phase is controller, which receives the instruction's Opcode of size 6-bits as input and generates the Execute instruction as the output and that is sent to the Arithmetic and Logical Unit. The Execute Command specifies a particular activity that ALU must carry out. When a threat is identified, the controller stops all writing operations to the register file / memory. Instruction decode stage includes the Sign Extend unit. This module converts the final 16 bits of the immediate instruction—the immediate data—into a 32-bit value. The Immediate Instruction's MSB bit value is added to the remaining bits to perform sign extension. 3.1.3 Execute: In the EX-stage, calculations are performed. The ALU is the main part of the EX module. The central component of a processor is the arithmetic logic unit. It is in charge of all tasks that need to be done. ALU processes the operations based on the Execute Command input. The ALU performs shift operations both logical and arithmetic, as well as arithmetic and logical operations including ADD, SUB, AND, OR, NOR, and XOR.
  • 3. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 09 Issue: 10 | Oct 2022 www.irjet.net p-ISSN: 2395-0072 © 2022, IRJET | Impact Factor value: 7.529 | ISO 9001:2008 Certified Journal | Page 956 registers is the main activity and function in the memory stage. They are also in charge of retrieving and transmitting the data from the memory module. The main job of the data value is to be stored in the appropriate destination registers in accordance with the instruction. 3.1.5 Write-back (WB): In this stage the calculated or retrieved value will be written back to the register specified in the instructions. It should be noted that two distinct stages are simultaneously accessing the register file: the decode stage is reading two source registers, and the WB stage is writing the destination register of a previous instruction.This phase is in charge of the outcome, information storage, and data input into and out of the register. Pipeline Registers or Buffers—separate types of memory—divide these pipelined phases. Such buffers are employed to divide the phases, preventing problems from occurring when several instructions are carried out simultaneously without any data dispute. Since the purpose of the WB stage is to write data to the destination register. For instance, the R1 register is produced by the ADD R1, R2, and R3 instruction memory to speed up programs. 4. RESULTS Simulation results for different assembly programs loaded ontothe processor. Fig.6 Simulation result for the program to verify register manipulation Fig.8 Simulation result for the program to verify register manipulation Fig.9 Simulation result for the program to verify register manipulation 3.1.4 Memory Access: The loading and unloading of values into and out of 5. CONCLUSION In the proposed project, a 32-bit MIPS-based RISC processor is successfully designed, modelled, and simulated. With a pipeline design and Verilog HDL, it is effectively executed. It is determined that the functionality is correct by comparing the simulation's results to those that were predicted.
  • 4. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 09 Issue: 10 | Oct 2022 www.irjet.net p-ISSN: 2395-0072 © 2022, IRJET | Impact Factor value: 7.529 | ISO 9001:2008 Certified Journal | Page 957 REFERENCES [1] Preetam Bhosle, Hari Krishna Moorthy, "FPGA implementation of low power pipelined 32-bit RISC processor", International Journal of Innovative Technology and Exploring Engineering (IJITEE), August 2012. [2] J.Poornima, G.V.Ganesh, M.Jyothi, M.Sahithi, A.Jhansi Rani B. Raghu Kanth, “Design and implementation of pipelined 32-bit Advanced RISC Processor for Various D.S.P Applications", (IJCSIT) International Journal of Computer Science and Information Technologies, Vol. 3 (1) , 2012. [3] Navneet kaur, Adesh Kumar, Lipika Gupta, “VHDL Design and Synthesis of 64 bit RISC Processor System on Chip (SoC)”, IOSR Journal of VLSI and Signal Processing (IOSR-JVSP) Volume 3, Issue5 (Nov. – Dec. 2013), [4] M. N. Topiwala and N. Saraswathi, "Implementation of a 32-bit MIPS based RISC processor using Cadence," 2014 IEEE International Conference on Advanced Communications, Control and Computing Technologies, 2014. [5] N.Alekya ,P.Ganesh Kumar, “Design of 32-Bit Risc CPU Based on MIPS”, JGRCS Volume 2,No 9,September 2011 [6] Sagar Bhavsar, Akhil Rao, Abhishek Sen, Rohan Joshi, “A 16-bit MIPS Based Instruction Set Architecture for RISC Processor”, International Journal of Scientific and Research Publications, Volume 3, Issue 4, April 2013 [7] Bhardwaj, Priyavrat & Murugesan, Siddharth, “Design & simulation of a 32-bit RISC based MIPS processor using verilog”, IJRET, 2016. [8] Anand Nandakumar Shardul,”16-Bit RISC Processor Design for convolution Application”, International Journal of Advancements in Research & Technology, Volume 2,Issue 9,September-2013. [9] K. P. K and V. Prakash A. M, "Designing and Implementation of 32-bit 5 stage Pipelined MIPS based RISC Processor Capable of Resolving Data Hazards," 2021 IEEE International Conference on Mobile Networks and Wireless Communications (ICMNWC), 2021, pp. 1-6, doi: 10.1109/ICMNWC52512.2021.9688435. [10] Balpande, Rupali S.,and Rashmi S. Keote. “Design of FPGA Based Instruction Fetch & Decode Module of 32-bit RISC Processor”, 2011 International Conference on Communication Systems and Network Technologies, 2011