SlideShare a Scribd company logo
1 of 3
Download to read offline
International Journal Of Computational Engineering Research (ijceronline.com) Vol. 2 Issue. 5



  FPGA Implementation and Functional Verification of a Pipelined MIPS
                            Processor
                            1
                                  Balaji valli, 2 A. Uday Kumar, 3 B.Vijay Bhaskar
                                           1
                                             PG Scholor, 2 Asst. Professors, 3Assoc. Professor,
                       1, 2, 3
                                 Avanthi’s St. Theressa Institute of Engineering & Technology, Garividi ,A.P.



Abstract:
This project targets the implementation design of a pipelined MIPS RISC Processor using VHDL (Very high speed integrated
circuit Hardware Description Language). In this paper MIPS instruction format, instruction data path, decoder modules are
analyzed. Furthermore, instruction fetch (IF) module of a CPU is designed based on RISC CPU instruction set. Function of IF
module mainly includes fetch instruction and latch module address arithmetic module check validity of instruction module
synchronous control module.

Keywords: MIPS, RISC, CPU, VHDL, FPGA, ID, IF, EX, MEM

1. Introduction
Pipeline is one of the basic techniques to improve the CPU’s performance. This paper based on MIPS instruction set, designed
a five-stage pipeline CPU. MIPS processor is basically a RISC micro processor. RISC CPU has extensive use in embedded
system. Developing CPU with RISC structure is necessary choice. The MIPS Architecture defines thirty-two, 32-bit general
purpose registers (GPRs). Instruction Set Architecture (ISA) of processor is composed of instruction set and corresponding
registers. Program based on same ISA can run on the same instruction set. MIPS instruction has been developed from 32-bit
MIPSI to 64-bit MIPSIII and MIPSIV since it was created. To assure downward compatibility, every generation production of
MIPS instruction directly extends new instruction based on old instruction but not abnegates any old instruction, so MIPS
processor of 64-bit instruction set can execute 32-bit instruction.

2. Implementation of Pipelined MIPS Processor
There are three formats of MIPS instructions:
    (i) Register Format (R-type)

                                    OPCODE        RS          RT          RD          Shift      FUN
                                    (31 to 26)    (25to21)    (20to16)    (15to11)    (10to6)    (5to 0)

The first two 5-bit register specifications are the two read registers and the last 5-bit register specification is the destination
register, that the instruction will use. The last 6-bits in the instruction are used as function bits.
     (ii) Immediate Format (I-type)

                                    OPCODE        RS          RT          RD          Shift      FUN
                                    (31 to 26)    (25to21)    (20to16)    (15to11)    (10to6)    (5to 0)

The I-type is similar to the R-type except the second read register and the 5 function bits are replaced by a 16-bit immediate
value. Each I-type opcode can have only one instruction because it has no function bits like the R-type.
    (iii) Jump Type Format (J- type)
The J-type format consists of a 6-bit opcode and remaining bit indicates branching address.

                                     OPCODE        RS          RT          RD          Shift      FUN
                                     (31 to 26)    (25to21)    (20to16)    (15to11)    (10to6)    (5to 0)

3. Architecture
The MIPS pipelined processor involves five steps, the division of an instruction into five stages implies a five-stage pipeline:
                1. Instruction Fetch (IF): fetching the instruction from the memory
                2. Instruction Decode (ID): reading the registers and decoding the instruction
Issn 2250-3005(online)                                            September| 2012                               Page 1559
International Journal Of Computational Engineering Research (ijceronline.com) Vol. 2 Issue. 5


                 3. Execution (EX): executing an operation or calculating an address
                 4. Data Memory (MEM): accessing the data memory
                 5. Write Back (WB): writing the result into a register.

The key to pipelining the single-cycle implementation of the MIPS processor is the introduction of pipeline registers that are
used to separate the data path into the five sections IF, ID, EX, MEM and WB. Pipeline registers are used to store the values
used by an instruction as it proceeds through the subsequent stages. The MIPS pipelined registers are labeled according to the
stages they separate. (e.g. IF/ID, ID/EX, EX/MEM, MEM/WB)




                                               Fig.1. Pipelined MIPS Processor

 To implement the MIPS pipelined processor, pipeline registers are placed into the corresponding VHDL modules that generate
the input to the particular pipeline register. For example, the Instruction Fetch component will generate the 32-bit instruction
and the PC+4 value and store them into the IF/ID pipeline register. When that instruction moves to the Instruction Decode
stages it extracts those saved values from the IF/ID pipeline register.

4. RESULTS
Implementation is done using XILINX 10.1. RTL schematic and Floor plan view are shown in Fig.3 and Fig.4. Simulation
snap is shown in Fig.2.




                                                 Fig.2. Functional simulation




Issn 2250-3005(online)                                     September| 2012                                 Page 1560
International Journal Of Computational Engineering Research (ijceronline.com) Vol. 2 Issue. 5


                                                       Fig.3. RTL Schematic




                                                      Fig.4. Floor Plan View

Hardware utilization summery is reported in Table. 1.

                                       S.No.         Logic Utilization            Utilized
                                                                                 Hardware
                                         1.     Number of Slices                    354

                                         2.     Number of Slice Flip Flops           256

                                         3.     Number of 4input LUTs                458

                                         4.     Number of bonded IOBs                 85

                                               Table 1. Device Utilization Summery

5. Conclusion
In this paper, top-down design method adopted and VHDL is used for the implementation. Design is implemented on XILINX
11.1. Data Memory and Instruction Memory are generated using XILINX COREGEN.

REFERENCES
[1]    Hui Ma, Dinglei Wang, The Design of Five-stage Pipeline CPU Based on MIPS, 978-1-4244-8165-1/11, 2011 IEEE.
[2]    Mrs. Rupali S. Balpande, Mrs.Rashmi S. Keote, Design of FPGA based Instruction Fetch & Decode Module of 32-bit RISC (MIPS)
       Processor, 2011 International Conference on Communication Systems and Network Technologies, 978-0-7695-4437-3/11, 2011 IEEE,
[3]    Wang-Yuan Zhen, IBM-PC Macro Asm Program, Huazhong University of Science and Technology Press, 1996.9.
[4]    MIPS Technologies, Inc. MIPS32™ Architecture For Programmers Volume II: The MIPS32™ Instruction Set June 9, 2003.
[5]    Zheng-WeiMin, Tang-ZhiZhong. Computer System Structure (The second edition), Tsinghua University Press, 2006.
[6]    Pan-Song, Huang-JiYe, SOPC Technology Utility Tutorial, Tsinghua University Press, 2006.
[7]    MIPS32 4KTMProcessor Core Family Software User's Manual, MIPS Technologies Inc. [M]. BeiJing, Engine Industry Press. 2003.
[8]    Yi-Kui, Ding-YueHua, Application of AMCCS5933 Controller in PCI BUS, DCABES2007, 2007.7.759
[9]    “Rapid Prototyping of digital Systems, a tutorial approach “By – James O. Hamblen and Michael D.Furman.
[10]   Charles E. Gimarc, Veljko M. Mhtinovic, "RISC Principles, Architecture, and Design", Computer Science Press Inc., 1989.
[11]   Whte paper, "Wide range of comprehensive tools speed, Development of high-pafomance embedded system", MIPS Technologies
       Inc.,hnp:/lwww.mips.com/whitepapers/030399Wl .hml (current Sep. 30,2002).
[12]   S. Chen, B. Mulgrew, and P. M. Gran< "A clustering technique for digital communications channel equalization using radial basis
       function networks," EEE Trans. Neuml Nerworkr, vol. 4, pp. 570-578, July 1993.




Issn 2250-3005(online)                                        September| 2012                                   Page 1561

More Related Content

What's hot

Design & Simulation of RISC Processor using Hyper Pipelining Technique
Design & Simulation of RISC Processor using Hyper Pipelining TechniqueDesign & Simulation of RISC Processor using Hyper Pipelining Technique
Design & Simulation of RISC Processor using Hyper Pipelining TechniqueIOSR Journals
 
Risc cisc Difference
Risc cisc DifferenceRisc cisc Difference
Risc cisc DifferenceSehrish Asif
 
RISC Vs CISC, Harvard v/s Van Neumann
RISC Vs CISC, Harvard v/s Van NeumannRISC Vs CISC, Harvard v/s Van Neumann
RISC Vs CISC, Harvard v/s Van NeumannRavikumar Tiwari
 
1: Interfacing using ARM Cortex M4 || IEEE SSCS AlexSC
1: Interfacing using ARM Cortex M4 || IEEE SSCS AlexSC 1: Interfacing using ARM Cortex M4 || IEEE SSCS AlexSC
1: Interfacing using ARM Cortex M4 || IEEE SSCS AlexSC IEEE SSCS AlexSC
 
Applications - embedded systems
Applications - embedded systemsApplications - embedded systems
Applications - embedded systemsDr.YNM
 
Arm cortex-m3 by-joe_bungo_arm
Arm cortex-m3 by-joe_bungo_armArm cortex-m3 by-joe_bungo_arm
Arm cortex-m3 by-joe_bungo_armPrashant Ahire
 
MIPS Assembly Language I
MIPS Assembly Language IMIPS Assembly Language I
MIPS Assembly Language ILiEdo
 
Arm processors' architecture
Arm processors'   architectureArm processors'   architecture
Arm processors' architectureDr.YNM
 
02 : ARM Cortex M4 Specs || IEEE SSCS AlexSC
02 : ARM Cortex M4 Specs || IEEE SSCS AlexSC 02 : ARM Cortex M4 Specs || IEEE SSCS AlexSC
02 : ARM Cortex M4 Specs || IEEE SSCS AlexSC IEEE SSCS AlexSC
 
EMBEDDED SYSTEM DESIGN ARM architecture support for operating system by sanj...
 EMBEDDED SYSTEM DESIGN ARM architecture support for operating system by sanj... EMBEDDED SYSTEM DESIGN ARM architecture support for operating system by sanj...
EMBEDDED SYSTEM DESIGN ARM architecture support for operating system by sanj...D Y PATIL COLLEGE OF ENGINEERING PUNE
 
Arm Processors Architectures
Arm Processors ArchitecturesArm Processors Architectures
Arm Processors ArchitecturesMohammed Hilal
 
Risc and cisc eugene clewlow
Risc and cisc   eugene clewlowRisc and cisc   eugene clewlow
Risc and cisc eugene clewlowkaran saini
 
ARM architcture
ARM architcture ARM architcture
ARM architcture Hossam Adel
 
Realization of high performance run time loadable mips soft-core processor
Realization of high performance run time loadable mips soft-core processorRealization of high performance run time loadable mips soft-core processor
Realization of high performance run time loadable mips soft-core processoreSAT Publishing House
 
Complex instruction set computer ppt
Complex instruction set computer pptComplex instruction set computer ppt
Complex instruction set computer pptVenkatesh Pensalwar
 

What's hot (20)

Risc vs cisc
Risc vs ciscRisc vs cisc
Risc vs cisc
 
Design & Simulation of RISC Processor using Hyper Pipelining Technique
Design & Simulation of RISC Processor using Hyper Pipelining TechniqueDesign & Simulation of RISC Processor using Hyper Pipelining Technique
Design & Simulation of RISC Processor using Hyper Pipelining Technique
 
Risc cisc Difference
Risc cisc DifferenceRisc cisc Difference
Risc cisc Difference
 
RISC Vs CISC, Harvard v/s Van Neumann
RISC Vs CISC, Harvard v/s Van NeumannRISC Vs CISC, Harvard v/s Van Neumann
RISC Vs CISC, Harvard v/s Van Neumann
 
1: Interfacing using ARM Cortex M4 || IEEE SSCS AlexSC
1: Interfacing using ARM Cortex M4 || IEEE SSCS AlexSC 1: Interfacing using ARM Cortex M4 || IEEE SSCS AlexSC
1: Interfacing using ARM Cortex M4 || IEEE SSCS AlexSC
 
Applications - embedded systems
Applications - embedded systemsApplications - embedded systems
Applications - embedded systems
 
ARM Architecture
ARM ArchitectureARM Architecture
ARM Architecture
 
Arm cortex-m3 by-joe_bungo_arm
Arm cortex-m3 by-joe_bungo_armArm cortex-m3 by-joe_bungo_arm
Arm cortex-m3 by-joe_bungo_arm
 
Unit vi (2)
Unit vi (2)Unit vi (2)
Unit vi (2)
 
MIPS Assembly Language I
MIPS Assembly Language IMIPS Assembly Language I
MIPS Assembly Language I
 
Arm processors' architecture
Arm processors'   architectureArm processors'   architecture
Arm processors' architecture
 
02 : ARM Cortex M4 Specs || IEEE SSCS AlexSC
02 : ARM Cortex M4 Specs || IEEE SSCS AlexSC 02 : ARM Cortex M4 Specs || IEEE SSCS AlexSC
02 : ARM Cortex M4 Specs || IEEE SSCS AlexSC
 
Ip2616541659
Ip2616541659Ip2616541659
Ip2616541659
 
EMBEDDED SYSTEM DESIGN ARM architecture support for operating system by sanj...
 EMBEDDED SYSTEM DESIGN ARM architecture support for operating system by sanj... EMBEDDED SYSTEM DESIGN ARM architecture support for operating system by sanj...
EMBEDDED SYSTEM DESIGN ARM architecture support for operating system by sanj...
 
Arm Processors Architectures
Arm Processors ArchitecturesArm Processors Architectures
Arm Processors Architectures
 
Risc and cisc eugene clewlow
Risc and cisc   eugene clewlowRisc and cisc   eugene clewlow
Risc and cisc eugene clewlow
 
ARM architcture
ARM architcture ARM architcture
ARM architcture
 
Realization of high performance run time loadable mips soft-core processor
Realization of high performance run time loadable mips soft-core processorRealization of high performance run time loadable mips soft-core processor
Realization of high performance run time loadable mips soft-core processor
 
D031201021027
D031201021027D031201021027
D031201021027
 
Complex instruction set computer ppt
Complex instruction set computer pptComplex instruction set computer ppt
Complex instruction set computer ppt
 

Viewers also liked

Retail Luxury Strategy, Assembling Charisma Through Art & Magic
Retail Luxury Strategy, Assembling Charisma Through Art & Magic Retail Luxury Strategy, Assembling Charisma Through Art & Magic
Retail Luxury Strategy, Assembling Charisma Through Art & Magic LilyFroehlicher
 
Types of retailers
Types of retailersTypes of retailers
Types of retailersAmy Cole
 
Lecture 1 - Introduction to Retailing
Lecture 1 - Introduction to RetailingLecture 1 - Introduction to Retailing
Lecture 1 - Introduction to RetailingAARTEEROY
 
Ppt on retail management
Ppt on retail managementPpt on retail management
Ppt on retail managementpawan_sharma
 
Acute cholecystitis..
Acute cholecystitis..Acute cholecystitis..
Acute cholecystitis..Sarif Raza
 
Little Book of Leadership Powerpoint
Little Book of Leadership PowerpointLittle Book of Leadership Powerpoint
Little Book of Leadership PowerpointPhil Dourado
 

Viewers also liked (10)

Retail Luxury Strategy, Assembling Charisma Through Art & Magic
Retail Luxury Strategy, Assembling Charisma Through Art & Magic Retail Luxury Strategy, Assembling Charisma Through Art & Magic
Retail Luxury Strategy, Assembling Charisma Through Art & Magic
 
Types of retailers
Types of retailersTypes of retailers
Types of retailers
 
types of retailers.
types of retailers. types of retailers.
types of retailers.
 
Types of retailers
Types of retailersTypes of retailers
Types of retailers
 
Lecture 1 - Introduction to Retailing
Lecture 1 - Introduction to RetailingLecture 1 - Introduction to Retailing
Lecture 1 - Introduction to Retailing
 
Ppt on retail management
Ppt on retail managementPpt on retail management
Ppt on retail management
 
Retail Management
Retail ManagementRetail Management
Retail Management
 
Retail management
Retail managementRetail management
Retail management
 
Acute cholecystitis..
Acute cholecystitis..Acute cholecystitis..
Acute cholecystitis..
 
Little Book of Leadership Powerpoint
Little Book of Leadership PowerpointLittle Book of Leadership Powerpoint
Little Book of Leadership Powerpoint
 

Similar to IJCER (www.ijceronline.com) International Journal of computational Engineering research

Design and development of a 5-stage Pipelined RISC processor based on MIPS
Design and development of a 5-stage Pipelined RISC processor based on MIPSDesign and development of a 5-stage Pipelined RISC processor based on MIPS
Design and development of a 5-stage Pipelined RISC processor based on MIPSIRJET Journal
 
A 64-Bit RISC Processor Design and Implementation Using VHDL
A 64-Bit RISC Processor Design and Implementation Using VHDL A 64-Bit RISC Processor Design and Implementation Using VHDL
A 64-Bit RISC Processor Design and Implementation Using VHDL Andrew Yoila
 
A REVIEW ON ANALYSIS OF 32-BIT AND 64-BIT RISC PROCESSORS
A REVIEW ON ANALYSIS OF 32-BIT AND 64-BIT RISC PROCESSORSA REVIEW ON ANALYSIS OF 32-BIT AND 64-BIT RISC PROCESSORS
A REVIEW ON ANALYSIS OF 32-BIT AND 64-BIT RISC PROCESSORSIRJET Journal
 
RISC Implementation Of Digital IIR Filter in DSP
RISC Implementation Of Digital IIR Filter in DSPRISC Implementation Of Digital IIR Filter in DSP
RISC Implementation Of Digital IIR Filter in DSPiosrjce
 
IRJET- Design of Low Power 32- Bit RISC Processor using Verilog HDL
IRJET-  	  Design of Low Power 32- Bit RISC Processor using Verilog HDLIRJET-  	  Design of Low Power 32- Bit RISC Processor using Verilog HDL
IRJET- Design of Low Power 32- Bit RISC Processor using Verilog HDLIRJET Journal
 
Review paper on 32-BIT RISC processor with floating point arithmetic
Review paper on 32-BIT RISC processor with floating point arithmeticReview paper on 32-BIT RISC processor with floating point arithmetic
Review paper on 32-BIT RISC processor with floating point arithmeticIRJET Journal
 
Advanced Processor Power Point Presentation
Advanced Processor  Power Point  PresentationAdvanced Processor  Power Point  Presentation
Advanced Processor Power Point PresentationPrashantYadav931011
 
Ec6703 embedded and real time systems(1)
Ec6703 embedded and real time systems(1)Ec6703 embedded and real time systems(1)
Ec6703 embedded and real time systems(1)viswnathan
 
IRJET - Design of RISC-V Bit Manipulation Instruction IP using Bluespec S...
IRJET -  	  Design of RISC-V Bit Manipulation Instruction IP using Bluespec S...IRJET -  	  Design of RISC-V Bit Manipulation Instruction IP using Bluespec S...
IRJET - Design of RISC-V Bit Manipulation Instruction IP using Bluespec S...IRJET Journal
 
DESIGN AND IMPLEMENTATION OF 64-BIT ARITHMETIC LOGIC UNIT ON FPGA USING VHDL
DESIGN AND IMPLEMENTATION OF 64-BIT ARITHMETIC LOGIC UNIT ON FPGA USING VHDLDESIGN AND IMPLEMENTATION OF 64-BIT ARITHMETIC LOGIC UNIT ON FPGA USING VHDL
DESIGN AND IMPLEMENTATION OF 64-BIT ARITHMETIC LOGIC UNIT ON FPGA USING VHDLsateeshkourav
 
Design and simulation of a non pipelined multi cycle 16 bit risc educational ...
Design and simulation of a non pipelined multi cycle 16 bit risc educational ...Design and simulation of a non pipelined multi cycle 16 bit risc educational ...
Design and simulation of a non pipelined multi cycle 16 bit risc educational ...IAEME Publication
 
An Enhanced FPGA Based Asynchronous Microprocessor Design Using VIVADO and ISIM
An Enhanced FPGA Based Asynchronous Microprocessor Design Using VIVADO and ISIMAn Enhanced FPGA Based Asynchronous Microprocessor Design Using VIVADO and ISIM
An Enhanced FPGA Based Asynchronous Microprocessor Design Using VIVADO and ISIMjournalBEEI
 
Microcontroller pic 16f877 architecture and basics
Microcontroller pic 16f877 architecture and basicsMicrocontroller pic 16f877 architecture and basics
Microcontroller pic 16f877 architecture and basicsNilesh Bhaskarrao Bahadure
 

Similar to IJCER (www.ijceronline.com) International Journal of computational Engineering research (20)

Design and development of a 5-stage Pipelined RISC processor based on MIPS
Design and development of a 5-stage Pipelined RISC processor based on MIPSDesign and development of a 5-stage Pipelined RISC processor based on MIPS
Design and development of a 5-stage Pipelined RISC processor based on MIPS
 
11 2014
11 201411 2014
11 2014
 
A 64-Bit RISC Processor Design and Implementation Using VHDL
A 64-Bit RISC Processor Design and Implementation Using VHDL A 64-Bit RISC Processor Design and Implementation Using VHDL
A 64-Bit RISC Processor Design and Implementation Using VHDL
 
A REVIEW ON ANALYSIS OF 32-BIT AND 64-BIT RISC PROCESSORS
A REVIEW ON ANALYSIS OF 32-BIT AND 64-BIT RISC PROCESSORSA REVIEW ON ANALYSIS OF 32-BIT AND 64-BIT RISC PROCESSORS
A REVIEW ON ANALYSIS OF 32-BIT AND 64-BIT RISC PROCESSORS
 
IJCRT2006062.pdf
IJCRT2006062.pdfIJCRT2006062.pdf
IJCRT2006062.pdf
 
A044050107
A044050107A044050107
A044050107
 
20120140502007 2-3
20120140502007 2-320120140502007 2-3
20120140502007 2-3
 
RISC Implementation Of Digital IIR Filter in DSP
RISC Implementation Of Digital IIR Filter in DSPRISC Implementation Of Digital IIR Filter in DSP
RISC Implementation Of Digital IIR Filter in DSP
 
IRJET- Design of Low Power 32- Bit RISC Processor using Verilog HDL
IRJET-  	  Design of Low Power 32- Bit RISC Processor using Verilog HDLIRJET-  	  Design of Low Power 32- Bit RISC Processor using Verilog HDL
IRJET- Design of Low Power 32- Bit RISC Processor using Verilog HDL
 
Review paper on 32-BIT RISC processor with floating point arithmetic
Review paper on 32-BIT RISC processor with floating point arithmeticReview paper on 32-BIT RISC processor with floating point arithmetic
Review paper on 32-BIT RISC processor with floating point arithmetic
 
Advanced Processor Power Point Presentation
Advanced Processor  Power Point  PresentationAdvanced Processor  Power Point  Presentation
Advanced Processor Power Point Presentation
 
Risc processors
Risc processorsRisc processors
Risc processors
 
Ec6703 embedded and real time systems(1)
Ec6703 embedded and real time systems(1)Ec6703 embedded and real time systems(1)
Ec6703 embedded and real time systems(1)
 
IRJET - Design of RISC-V Bit Manipulation Instruction IP using Bluespec S...
IRJET -  	  Design of RISC-V Bit Manipulation Instruction IP using Bluespec S...IRJET -  	  Design of RISC-V Bit Manipulation Instruction IP using Bluespec S...
IRJET - Design of RISC-V Bit Manipulation Instruction IP using Bluespec S...
 
Ijet12 04-04-020
Ijet12 04-04-020Ijet12 04-04-020
Ijet12 04-04-020
 
DESIGN AND IMPLEMENTATION OF 64-BIT ARITHMETIC LOGIC UNIT ON FPGA USING VHDL
DESIGN AND IMPLEMENTATION OF 64-BIT ARITHMETIC LOGIC UNIT ON FPGA USING VHDLDESIGN AND IMPLEMENTATION OF 64-BIT ARITHMETIC LOGIC UNIT ON FPGA USING VHDL
DESIGN AND IMPLEMENTATION OF 64-BIT ARITHMETIC LOGIC UNIT ON FPGA USING VHDL
 
Design and simulation of a non pipelined multi cycle 16 bit risc educational ...
Design and simulation of a non pipelined multi cycle 16 bit risc educational ...Design and simulation of a non pipelined multi cycle 16 bit risc educational ...
Design and simulation of a non pipelined multi cycle 16 bit risc educational ...
 
An Enhanced FPGA Based Asynchronous Microprocessor Design Using VIVADO and ISIM
An Enhanced FPGA Based Asynchronous Microprocessor Design Using VIVADO and ISIMAn Enhanced FPGA Based Asynchronous Microprocessor Design Using VIVADO and ISIM
An Enhanced FPGA Based Asynchronous Microprocessor Design Using VIVADO and ISIM
 
Microcontroller pic 16f877 architecture and basics
Microcontroller pic 16f877 architecture and basicsMicrocontroller pic 16f877 architecture and basics
Microcontroller pic 16f877 architecture and basics
 
Es 2 mark
Es 2 markEs 2 mark
Es 2 mark
 

Recently uploaded

2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUK Journal
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...apidays
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyKhushali Kathiriya
 
Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024The Digital Insurer
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024SynarionITSolutions
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdflior mazor
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MIND CTI
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAndrey Devyatkin
 

Recently uploaded (20)

2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 

IJCER (www.ijceronline.com) International Journal of computational Engineering research

  • 1. International Journal Of Computational Engineering Research (ijceronline.com) Vol. 2 Issue. 5 FPGA Implementation and Functional Verification of a Pipelined MIPS Processor 1 Balaji valli, 2 A. Uday Kumar, 3 B.Vijay Bhaskar 1 PG Scholor, 2 Asst. Professors, 3Assoc. Professor, 1, 2, 3 Avanthi’s St. Theressa Institute of Engineering & Technology, Garividi ,A.P. Abstract: This project targets the implementation design of a pipelined MIPS RISC Processor using VHDL (Very high speed integrated circuit Hardware Description Language). In this paper MIPS instruction format, instruction data path, decoder modules are analyzed. Furthermore, instruction fetch (IF) module of a CPU is designed based on RISC CPU instruction set. Function of IF module mainly includes fetch instruction and latch module address arithmetic module check validity of instruction module synchronous control module. Keywords: MIPS, RISC, CPU, VHDL, FPGA, ID, IF, EX, MEM 1. Introduction Pipeline is one of the basic techniques to improve the CPU’s performance. This paper based on MIPS instruction set, designed a five-stage pipeline CPU. MIPS processor is basically a RISC micro processor. RISC CPU has extensive use in embedded system. Developing CPU with RISC structure is necessary choice. The MIPS Architecture defines thirty-two, 32-bit general purpose registers (GPRs). Instruction Set Architecture (ISA) of processor is composed of instruction set and corresponding registers. Program based on same ISA can run on the same instruction set. MIPS instruction has been developed from 32-bit MIPSI to 64-bit MIPSIII and MIPSIV since it was created. To assure downward compatibility, every generation production of MIPS instruction directly extends new instruction based on old instruction but not abnegates any old instruction, so MIPS processor of 64-bit instruction set can execute 32-bit instruction. 2. Implementation of Pipelined MIPS Processor There are three formats of MIPS instructions: (i) Register Format (R-type) OPCODE RS RT RD Shift FUN (31 to 26) (25to21) (20to16) (15to11) (10to6) (5to 0) The first two 5-bit register specifications are the two read registers and the last 5-bit register specification is the destination register, that the instruction will use. The last 6-bits in the instruction are used as function bits. (ii) Immediate Format (I-type) OPCODE RS RT RD Shift FUN (31 to 26) (25to21) (20to16) (15to11) (10to6) (5to 0) The I-type is similar to the R-type except the second read register and the 5 function bits are replaced by a 16-bit immediate value. Each I-type opcode can have only one instruction because it has no function bits like the R-type. (iii) Jump Type Format (J- type) The J-type format consists of a 6-bit opcode and remaining bit indicates branching address. OPCODE RS RT RD Shift FUN (31 to 26) (25to21) (20to16) (15to11) (10to6) (5to 0) 3. Architecture The MIPS pipelined processor involves five steps, the division of an instruction into five stages implies a five-stage pipeline: 1. Instruction Fetch (IF): fetching the instruction from the memory 2. Instruction Decode (ID): reading the registers and decoding the instruction Issn 2250-3005(online) September| 2012 Page 1559
  • 2. International Journal Of Computational Engineering Research (ijceronline.com) Vol. 2 Issue. 5 3. Execution (EX): executing an operation or calculating an address 4. Data Memory (MEM): accessing the data memory 5. Write Back (WB): writing the result into a register. The key to pipelining the single-cycle implementation of the MIPS processor is the introduction of pipeline registers that are used to separate the data path into the five sections IF, ID, EX, MEM and WB. Pipeline registers are used to store the values used by an instruction as it proceeds through the subsequent stages. The MIPS pipelined registers are labeled according to the stages they separate. (e.g. IF/ID, ID/EX, EX/MEM, MEM/WB) Fig.1. Pipelined MIPS Processor To implement the MIPS pipelined processor, pipeline registers are placed into the corresponding VHDL modules that generate the input to the particular pipeline register. For example, the Instruction Fetch component will generate the 32-bit instruction and the PC+4 value and store them into the IF/ID pipeline register. When that instruction moves to the Instruction Decode stages it extracts those saved values from the IF/ID pipeline register. 4. RESULTS Implementation is done using XILINX 10.1. RTL schematic and Floor plan view are shown in Fig.3 and Fig.4. Simulation snap is shown in Fig.2. Fig.2. Functional simulation Issn 2250-3005(online) September| 2012 Page 1560
  • 3. International Journal Of Computational Engineering Research (ijceronline.com) Vol. 2 Issue. 5 Fig.3. RTL Schematic Fig.4. Floor Plan View Hardware utilization summery is reported in Table. 1. S.No. Logic Utilization Utilized Hardware 1. Number of Slices 354 2. Number of Slice Flip Flops 256 3. Number of 4input LUTs 458 4. Number of bonded IOBs 85 Table 1. Device Utilization Summery 5. Conclusion In this paper, top-down design method adopted and VHDL is used for the implementation. Design is implemented on XILINX 11.1. Data Memory and Instruction Memory are generated using XILINX COREGEN. REFERENCES [1] Hui Ma, Dinglei Wang, The Design of Five-stage Pipeline CPU Based on MIPS, 978-1-4244-8165-1/11, 2011 IEEE. [2] Mrs. Rupali S. Balpande, Mrs.Rashmi S. Keote, Design of FPGA based Instruction Fetch & Decode Module of 32-bit RISC (MIPS) Processor, 2011 International Conference on Communication Systems and Network Technologies, 978-0-7695-4437-3/11, 2011 IEEE, [3] Wang-Yuan Zhen, IBM-PC Macro Asm Program, Huazhong University of Science and Technology Press, 1996.9. [4] MIPS Technologies, Inc. MIPS32™ Architecture For Programmers Volume II: The MIPS32™ Instruction Set June 9, 2003. [5] Zheng-WeiMin, Tang-ZhiZhong. Computer System Structure (The second edition), Tsinghua University Press, 2006. [6] Pan-Song, Huang-JiYe, SOPC Technology Utility Tutorial, Tsinghua University Press, 2006. [7] MIPS32 4KTMProcessor Core Family Software User's Manual, MIPS Technologies Inc. [M]. BeiJing, Engine Industry Press. 2003. [8] Yi-Kui, Ding-YueHua, Application of AMCCS5933 Controller in PCI BUS, DCABES2007, 2007.7.759 [9] “Rapid Prototyping of digital Systems, a tutorial approach “By – James O. Hamblen and Michael D.Furman. [10] Charles E. Gimarc, Veljko M. Mhtinovic, "RISC Principles, Architecture, and Design", Computer Science Press Inc., 1989. [11] Whte paper, "Wide range of comprehensive tools speed, Development of high-pafomance embedded system", MIPS Technologies Inc.,hnp:/lwww.mips.com/whitepapers/030399Wl .hml (current Sep. 30,2002). [12] S. Chen, B. Mulgrew, and P. M. Gran< "A clustering technique for digital communications channel equalization using radial basis function networks," EEE Trans. Neuml Nerworkr, vol. 4, pp. 570-578, July 1993. Issn 2250-3005(online) September| 2012 Page 1561