Skip to content

Pavankumar0426-arch/power-optimized-riscv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

24 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

⚑ Power-Optimized 3-Stage Pipelined RISC-V Processor

This project is a complete design and implementation of a 3-stage pipelined RISC-V processor in Verilog HDL, optimized for energy-efficient computing. The design integrates enable control, latch-based clock gating, and data gating to minimize dynamic power consumption while preserving throughputβ€”making it highly suitable for low-power IoT and embedded applications.


πŸš€ Key Features

  • 3-Stage Pipeline: Instruction Fetch, Decode, Execute.

  • Power Optimization Techniques:

    • Enable Control
    • Latch-Based Clock Gating
    • Data Gating
  • Energy Efficiency: Reduced dynamic power from 0.71 W β†’ 0.03 W.

  • Implementation: Designed in Verilog HDL, verified via simulation, and tested on FPGA.


πŸ—οΈ Architecture Overview

  • Top-Level (pipeline.v): Integrates all processor stages.
  • Instruction Memory & Fetch Unit: Supplies instructions to the pipeline.
  • Instruction Decoder: Decodes RISC-V instructions for execution.
  • Execute Unit: Performs ALU operations and branching.
  • Clock Gating Module: Applies enable-control and latch-based gating.
  • Pipeline Registers: Preserve state across stages with power-aware design.

⚑ Power Optimization Results

Design Version Dynamic Power
3-Stage RISC-V (Baseline) 0.71 W
3-Stage RISC-V Pipelined 0.63 W
Pipeline with Enable Control 0.13 W
Pipeline with Latch-Based Clock Gating 0.10 W
Pipeline with Data Gating 0.03 W

πŸ“ Project Structure

power-optimized-riscv/
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ clock_gating.v
β”‚   β”œβ”€β”€ instruction_memory.v
β”‚   β”œβ”€β”€ instruction_fetch.v
β”‚   β”œβ”€β”€ instruction_decoder.v
β”‚   β”œβ”€β”€ execute.v
β”‚   └── pipeline.v
β”œβ”€β”€ test/
β”‚   └── testbench.v
└── README.md

πŸ›  Tools Used

  • EDA Playground – Simulation & Verification
  • Xilinx Vivado – FPGA Synthesis & Power Analysis
  • Verilog HDL – Hardware Description Language

πŸ§ͺ Verification

The provided testbench validates:

  • Correct pipeline execution
  • Functional correctness of enable-control & clock gating
  • Power reduction efficiency

πŸ‘¨β€πŸ’» Authors

  • M. Pavan Kumar
  • P. V. Satya Bala
  • M. Sai Likhith
  • M. Divya Teja

πŸ“œ License: MIT License – Free to use and modify for educational or research purposes.

About

3-Stage Pipelined RISC-V Processor optimized for low power using Verilog HDL

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published