Skip to content

Carry Save Adder on FPGA (DE2 Kit) • Designed a 64-bit Carry Save Adder (CSA) using Verilog HDL. • Simulated in ModelSim and synthesized using Quartus; output displayed via 7-segment display.

Notifications You must be signed in to change notification settings

Bhavin-umatiya/Carry-save-FPGA

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Carry Save Adder (CSA) – Verilog HDL

📌 Project Description

This repository contains a 5-bit Carry Save Adder (CSA) implemented using Verilog HDL.
The design efficiently adds three 5-bit binary numbers using a carry-save technique and produces a 6-bit final sum.

Carry Save Adders are commonly used in high-speed arithmetic circuits, especially in multipliers, DSP systems, and FPGA-based designs, because they reduce carry propagation delay.


🧠 Working Principle

Instead of propagating carry bits immediately, the Carry Save Adder:

  1. Adds three input bits at each position using Full Adders
  2. Produces Sum and Carry separately
  3. Shifts carry bits left by one position
  4. Uses a Ripple Carry Adder (RCA) in the final stage to compute the result

This approach improves speed compared to conventional ripple carry addition.


🧩 Module Overview

🔹 Top Module: csa

Inputs

  • A[4:0] – First 5-bit operand
  • B[4:0] – Second 5-bit operand
  • C[4:0] – Third 5-bit operand

Output

  • Final_Sum[5:0] – 6-bit sum output (includes carry)

🔹 Internal Architecture

  • Stage 1: Five Full Adders (Carry Save Stage)
  • Stage 2: Carry bits shifted left by one bit
  • Stage 3: Ripple Carry Adder for final addition

🧱 Submodules

1️⃣ Full Adder

Used in the carry-save stage to add three bits simultaneously.

Logic

  • Sum = A ⊕ B ⊕ Cin
  • Carry = (A & B) | (B & Cin) | (Cin & A)

2️⃣ Ripple Carry Adder

Used in the final stage to add the partial sum and shifted carry.


📐 Bit Width Details

Signal Width Description
A, B, C 5-bit Input operands
S 5-bit Partial sum
Carry 5-bit Carry outputs
Final_Sum 6-bit Final result

🚀 Applications

  • FPGA arithmetic units
  • Digital signal processing (DSP)
  • Multipliers and accumulators
  • VLSI and computer architecture projects

🛠 Tools & Simulation

  • HDL Language: Verilog
  • Simulation: ModelSim / Vivado Simulator
  • Synthesis: Xilinx Vivado / Intel Quartus
  • Target: FPGA / RTL verification

✅ Advantages

  • Reduced carry propagation delay
  • Modular and reusable design
  • Simple and readable RTL code

🔮 Future Improvements

  • Parameterized N-bit CSA
  • Pipelined CSA architecture
  • Testbench with random vectors

👨‍💻 Author

Developed for Bhavin umatiya.

About

Carry Save Adder on FPGA (DE2 Kit) • Designed a 64-bit Carry Save Adder (CSA) using Verilog HDL. • Simulated in ModelSim and synthesized using Quartus; output displayed via 7-segment display.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published