Crossref DOIMemberCiteFactoropen accessissn
SJIF Impact Factor 8.659 | ISSN: 2582-3930
IJSREM Logo

International Journal of Scientific Research in Engineering and Management

(Gateway to Global Scholars - An International, Scholarly, Multi-Disciplinary, Open Access Journal)

Peer-Reviewed Journal Designed to Meet UGC's Quality Parameters

HomeCurrent IssuePast IssuesPay OnlineConferencesEditorial BoardAbout UsContact Us
IJSREM

Loading article...

Follow Us

  • Google Scholar
  • ResearchGate
  • Academia.edu
  • Mendeley
  • LinkedIn
  • Facebook
  • Instagram

Journal Policies

  • Peer Review Policy
  • Publication Ethics
  • Copyright Infringement
  • Refund & Cancellation Policy
  • Terms and Conditions
  • Privacy Policy

Journal Identifiers & Licenses

  • ISSN Verified: 2582-3930ISSN Verified: 2582-3930
  • Crossref DOI: 10.55041Crossref DOI: 10.55041
  • SJIF Ranking: 08.659SJIF Ranking: 08.659
  • Licensed under CC BY 4.0Licensed under CC BY 4.0
  • ISO Certification: 9001:2015ISO Certification: 9001:2015
  • Indexed & Cited In: Google ScholarIndexed & Cited In: Google Scholar

Contact Us

International Journal of Scientific Research in Engineering and Management (IJSREM)

#62/1, New No 7, 1st Cross, 2nd Main, Ganganagar, R T Nagar, Bangalore North, Bangalore, Karnataka, India – 560032
[email protected]+91 93911 67991
logos
logos
Working Hours

Mon – Sat: 9:00 AM – 6:00 PM

Sunday: 10:00 AM – 4:00 PM

+91 93911 67991

© 2026 IJSREM – International Journal of Scientific Research in Engineering and Management. This is an open-access journal. Articles are published under the Creative Commons Attribution (CC BY 4.0) License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.

DisclaimerPrivacy PolicyTerms and Conditions
ArticlePeer ReviewedOpen AccessPlagiarism Passed
Paper ID:IJSREM65199

Design and implementation of a 5-stage pipelined risc-v processor with hazard detection and forwarding unit using Verilog HDL

Stream/Area:

-

Subject:

-

Paper ID:

IJSREM65199

Volume:

10 |

6 |

Jun 2026

Pages:

1-9

Publication Frequency:

Monthly (12 issues per year)

DOI
Digital Object Identifier
10.55041/IJSREM65199

License:International Journal of Scientific Research in Engineering and Management follows the Creative Commons Attribution 4.0 (CC BY 4.0) License, allowing free use and distribution with proper attribution.

Share this article:

Authors

Kanithi Santoshi Bharathi

Kanithi Santoshi Bharathi

Electronics and Communication Department

Sanketika Vidya Parishad Engineering College (SVPEC),

Download Author Certificate
Velaga Suryakala

Velaga Suryakala

Electronics and Communication Department

Sanketika Vidya Parishad Engineering College (SVPEC),

Download Co-Author Certificate

Author Services & Downloads

Full ArticlesAcceptance Certificate

Abstract

The RISC-V instruction set architecture has emerged as a modern open-source processor architecture for embedded systems, IoT devices, edge computing platforms, and FPGA-based applications. Due to the increasing demand for high-performance and energy-efficient processors, pipelining has become one of the most widely adopted techniques for improving processor throughput and hardware utilization. Traditional single-cycle and multi-cycle processors execute instructions sequentially, resulting in lower performance and inefficient hardware resource utilization. Although pipelined processors improve instruction throughput, they introduce challenges such as data hazards, control hazards, and structural hazards that may degrade performance. This project presents the design and implementation of a 5-stage pipelined RISC-V processor using Verilog HDL. The proposed architecture consists of Instruction Fetch (IF), Instruction Decode (ID), Execute (EX), Memory Access (MEM), and Write Back (WB) stages. To improve pipeline efficiency, a Forwarding Unit and Hazard Detection Unit are incorporated into the design. The Forwarding Unit minimizes unnecessary stalls by forwarding results directly between pipeline stages, while the Hazard Detection Unit identifies load-use hazards and inserts stalls whenever required. The processor is simulated and verified using Icarus Verilog and GTKWave. Experimental results demonstrate successful instruction execution, correct pipeline operation, hazard mitigation, and improved processor throughput. The proposed architecture provides a balanced trade-off between hardware complexity and performance, making it suitable for FPGA-based embedded systems, educational processor design, and future RISC-V research platforms.

KEYWORDS

Instruction Fetch (IF) Instruction Decode (ID) Execute (EX) Memory Access (MEM) and Write Back (WB)

Cite This Article

Kanithi Santoshi Bharathi, Velaga Suryakala, "Design and implementation of a 5-stage pipelined risc-v processor with hazard detection and forwarding unit using Verilog HDL," International Journal of Scientific Research in Engineering and Management, vol. 10, no. 6, pp. 1-9, Jun 2026. https://doi.org/10.55041/IJSREM65199

Full Article/Conclusion

The increasing demand for high-performance and energy-efficient computing systems has created the need for advanced processor architectures capable of executing instructions quickly and efficiently. Pipelining is one of the most effective techniques used in modern processors to improve instruction throughput and maximize hardware utilization. In this project, a 5-Stage Pipelined RISC-V Processor with Hazard Detection and Forwarding Unit has been successfully designed and implemented using Verilog HDL. The proposed processor architecture consists of the five classical pipeline stages: Instruction Fetch (IF), Instruction Decode (ID), Execute (EX), Memory Access (MEM), and Write Back (WB). To enhance processor performance and ensure correct instruction execution, pipeline registers were incorporated between consecutive stages. These registers enable multiple instructions to be processed simultaneously, thereby increasing instruction-level parallelism and improving overall system throughput.   One of the major challenges in pipelined processors is the occurrence of data hazards. To address this issue, a Forwarding Unit was implemented to forward data directly between pipeline stages, reducing unnecessary pipeline stalls and minimizing execution delays. In addition, a Hazard Detection Unit was integrated to identify instruction dependencies and generate stall signals whenever forwarding alone could not resolve the hazard. These mechanisms significantly improved pipeline efficiency and ensured reliable processor operation. The complete processor design was simulated and verified using Icarus Verilog and GTKWave. Simulation results demonstrated correct Program Counter operation, successful instruction fetching and decoding, proper ALU execution, accurate data propagation through pipeline registers, and successful operation of forwarding and hazard handling mechanisms. The processor correctly executed the test instruction sequence: ADDI x1, x0, 2 ADDI x2, x0, 3 ADD  x3, x1, x2 and produced the expected result: x1 = 2 x2 = 3 x3 = 5 The obtained results confirm the functional correctness of the proposed processor architecture. Compared with conventional pipelined implementations, the inclusion of forwarding and hazard detection mechanisms reduces pipeline stalls, improves instruction throughput, and enhances processor performance without significantly increasing hardware complexity. Therefore, the proposed 5-Stage Pipelined RISC-V Processor with Hazard Detection and Forwarding Unit provides an efficient and scalable processor architecture suitable for FPGA-based embedded systems, educational processor design, and advanced computer architecture research. The developed processor also serves as a strong foundation for future enhancements such as branch prediction, cache memory integration, superscalar execution, out-of-order processing, and FPGA implementation on Xilinx or Intel development boards. Key Achievements ·        Designed and implemented a complete 5-stage pipelined RISC-V processor. ·         Successfully developed IF, ID, EX, MEM, and WB stages. ·         Implemented pipeline registers for parallel instruction execution. ·         Integrated Forwarding Unit to reduce data hazards. ·         Integrated Hazard Detection Unit to improve pipeline reliability. ·        Verified processor functionality through simulation. ·         Achieved correct instruction execution and data propagation. ·         Improved processor throughput compared to basic non-pipelined architectures. ·         Developed a scalable architecture suitable for future research and FPGA implementation.

References

[1] David A. Patterson and John L. Hennessy, Computer Organization and Design RISC-V Edition: The Hardware Software Interface, 2nd Edition, Morgan Kaufmann Publishers, 2021. [2] David A. Patterson and John L. Hennessy, Computer Architecture: A Quantitative Approach, 6th Edition, Morgan Kaufmann Publishers, 2019. [3] John F. Wakerly, Digital Design: Principles and Practices, 5th Edition, Pearson Education, 2018. [4] M. Morris Mano and Michael D. Ciletti, Digital Design with RTL Design, Verilog HDL and VHDL, Pearson Education, 2017. [5] Samir Palnitkar, Verilog HDL: A Guide to Digital Design and Synthesis, 2nd Edition, Pearson Education, 2003. [6] Andrew Waterman and Krste Asanović, The RISC-V Instruction Set Manual, Volume I: User-Level ISA, RISC-V Foundation, Version 2.2, 2019. [7] Andrew Waterman, Yunsup Lee, David Patterson, and Krste Asanović, The RISC-V Instruction Set Manual Volume II: Privileged Architecture, RISC-V Foundation, 2019. [8] K. Asanović and D. Patterson, "Instruction Sets Should Be Free: The Case for RISC-V," Electrical Engineering and Computer Sciences Department, University of California, Berkeley, Technical Report No. UCB/EECS-2014-146, 2014. [9] A. Waterman, Y. Lee, D. Patterson, and K. Asanović, "The RISC-V Instruction Set Manual," University of California, Berkeley, 2019. [10] M. Gautschi, P. D. Schiavone, A. Traber, and L. Benini, "Near-Threshold RISC-V Core with DSP Extensions for Scalable IoT Endpoint Devices," IEEE Transactions on Very Large Scale Integration (VLSI) Systems, Vol. 25, No. 10, pp. 2700–2713, 2017.

Editorial & Review Transparency

Publication Date

6/19/2026

Peer Review Type

Double-Blind Peer Review

Review Rounds: 2

Documents

Review Report (Confidential)
Copyright Form (Office)

Article Metrics & Impact

Article Views

1

Total views since publication

PDF Downloads

3

Total downloads since publication

Geographic Reach

5

Indexing, Archiving & Preservation

Google Scholar
Academia
ResearchGate
Crossref
SSRN
Semantic Scholar
Thomson Reuters
WorldCat
Mendeley
OpenAlex
EBSCO
Zenodo

Digital Preservation: This article is permanently archived on Zenodo and complies with all data preservation standards across major indexing platforms.

Ethics, Compliance & Transparency

Plagiarism Screening

This manuscript has been checked for plagiarism using TurnitinPlagiarismChecker software.

Conflict of Interest

The authors declare no conflict of interest related to this research work.

Funding Information

No funding information available for this research.

Similar & Recommended Articles

Similar Articles by Topic

Related research in the same subject area

Loading similar articles...