Building a 1-Bit Full Adder with Verilog and FPGA

Table of Contents

Introduction

Among all digital circuits, the adder stands out as one of the most essential building blocks. It performs arithmetic operations that underpin every modern computing and processing unit. In this article, we will focus on the simplest yet complete version: the 1-bit full adder. You will explore its logic principles, implement it in Verilog, map it onto an FPGA, and finally validate the design through hands-on experiments. This project is also featured in Chapter 3 of Fundamental Digital Circuits and FPGAs, where the full learning kit is available.

Understanding the Role of Adders in Digital Systems

A half adder is the simplest arithmetic circuit. It adds two binary digits (A and B) and produces a Sum and a Carry. Unlike decimal numbers where digits range from 0 to 9, binary arithmetic uses only 0 and 1, so even the simplest addition can generate a carry into the next higher bit.

Four cases when adding two 1-bit binary numbers

However, in real systems, addition usually involves more than just two bits. That is where the full adder comes in. The full adder extends the logic by including a third input, called the carry-in (Cin). This allows multiple adders to be chained together, enabling multi-bit addition.

Addition mechanism of a 4-bit Full Adder

module full_adder(
    input wire a,
    input wire b,
    input wire cin,
    output wire sum,
    output wire co
);
    assign sum = a^b^cin;
    assign co = ((a^b)&cin)|(a&b);
endmodule
InputInputInputOutputOutput
CINABSumCOUT
00000
00110
01010
01101
10010
10101
11001
11111

KC22 – STEPFPGA

Digital Circuits and FPGA Learning Kit

$183 $220

EIM TECHNOLOGY

Founder & Engineering Education Innovator

Daniel Cao is the Founder of EIM Technology and holds a Master of Applied Science in Engineering. With experience in engineering research, product development, PCB design, and technical education, he is the author of several books on electronics engineering. His work focuses on developing practical learning systems that integrate engineering hardware, lab instruments, curriculum, and project-based learning. Through EIM Technology, Daniel aims to make electronics and computer engineering more accessible and engaging, helping students build real experience in designing, measuring, testing, and troubleshooting electronic systems.

BECOME A PIONEER

Subscribe our monthly newsletter to gain access to exclusive hardware deep-dives and priority testing for new EIM innovations.

One high-value briefing per month. No spam, just pure engineering. Unsubscribe anytime.