Skip to content

Gate-level implementation of a full-adder using Verilog, complete with a testbench, truth table validation, and waveform analysis for beginners in digital logic design.

License

Notifications You must be signed in to change notification settings

VarshithGovi/Full-Adder-Design-Verilog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Full-Adder Design Using Verilog 🚀

Welcome to the Full-Adder Design project! 🎉 This repository demonstrates the implementation of a full-adder using Verilog, focusing on gate-level modeling and functional verification. A must-have resource for beginners exploring digital logic design! 💻✨

🗂 File Overview

File Name Description
fa.v Verilog module implementing the full-adder with gate-level modeling.
fa_tb.v Testbench for full_adder.v to validate sum and carry functionality.
fa.vcd Value Change Dump file generated after simulation for waveform analysis.
fa.vvp Compiled simulation file created by Icarus Verilog.
LICENSE MIT License details.

📋 Full-Adder Implementation

The full_adder.v file implements the full-adder logic:

  • Sum (S): Outputs the XOR of inputs A, B, and Carry-In (Cin).
  • Carry-Out (Cout): Outputs the majority logic of inputs A, B, and Cin.

Truth Table:

A B Cin Sum (S) Carry-Out (Cout)
0 0 0 0 0
0 0 1 1 0
0 1 0 1 0
0 1 1 0 1
1 0 0 1 0
1 0 1 0 1
1 1 0 0 1
1 1 1 1 1

📜 Testbench Overview

The full_adder_tb.v file verifies the functionality of the full-adder through exhaustive test cases. Results are logged in the terminal and exported to a .vcd file for waveform analysis.

📸 Screenshots

gtkwave_fa

🌟 Highlights

  • Beginner-friendly gate-level design.
  • Comprehensive testbench for thorough validation.
  • Modular and readable Verilog code.

📚 Simulation Setup Reference

For a detailed guide on setting up simulations using Icarus Verilog and GTKWave, check out my Logic Gates Simulation Repository. It includes step-by-step instructions to compile, simulate, and visualize Verilog designs.

🤝 Contributions

Contributions are always welcome! Feel free to fork, clone, and enhance this project. 🚀

📜 License

📜 This project is licensed under the MIT License. See the LICENSE file for details.

⭐ Don’t forget to star this repo if you found it helpful! ⭐

About

Gate-level implementation of a full-adder using Verilog, complete with a testbench, truth table validation, and waveform analysis for beginners in digital logic design.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published