LCD Binary Adder Ckts
LCD Binary Adder Ckts
1 Objectives
1. To implement half adder on breadboard and mini FPGA and to verify
its truth table.
2. To implement full adder on breadboard and mini FPGA and to verify
its truth table.
3. To implement four bit adder with 7483 IC and mini FPGA
2 Observations
The observations of experiments done on discrete ICs and FPGA are detailed
below.
The K-maps obtained from the truth table are shown in Fig. 2.
Therefore the logic function for the sum bit and carry bit in half adder is
Sn = X n ⊕ Y n (1)
Cn = Xn · Y n (2)
The circuit is shown in Fig. 3.
Figure 1: Truth table of halfadder
Therefore the logic function for the sum bit and carry bit in one bit full
adder is
S n = X n ⊕ Y n ⊕ C n-1 (3)
C n = X n · Y n + Y n · C n-1 + X · C n-1 (4)
11 w i r e c0 , c1 , c2 ;
12
13 fadder f a 0 ( sum [ 0 ] , c0 , x [ 0 ] , y [ 0 ] , c i n ) ;
14 fadder f a 1 ( sum [ 1 ] , c1 , x [ 1 ] , y [ 1 ] , c0 ) ;
15 fadder f a 2 ( sum [ 2 ] , c2 , x [ 2 ] , y [ 2 ] , c1 ) ;
16 fadder f a 3 ( sum [ 3 ] , cout , x [ 3 ] , y [ 3 ] , c2 ) ;
17
18 endmodule
Listing 3: Verilog code for four bit full adder
The code is tested with a mini FPGA and verified the addition of two four
bit numbers.
3 Results
1. Verified half adder with discrete ICs and Verilog and mini FPGA board.
2. Verified full adder with discrete ICs and Verilog and mini FPGA board.
3. Verified fourbit adder with discrete ICs and Verilog and mini FPGA
board.