Loading article...
Loading article...
Stream/Area:
-
Subject:
-
Paper ID:
IJSREM65199
Volume:
10 |
6 |
Jun 2026
Pages:
1-9
Publication Frequency:
Monthly (12 issues per year)
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.

Electronics and Communication Department
Sanketika Vidya Parishad Engineering College (SVPEC),

Electronics and Communication Department
Sanketika Vidya Parishad Engineering College (SVPEC),
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
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.
[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.
Publication Date
6/19/2026
Peer Review Type
Double-Blind Peer Review
Review Rounds: 2
Documents
Article Views
1
Total views since publication
PDF Downloads
3
Total downloads since publication
Geographic Reach
5
Digital Preservation: This article is permanently archived on Zenodo and complies with all data preservation standards across major indexing platforms.
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.
Related research in the same subject area
Loading similar articles...