Coder Social home page Coder Social logo

mohammedfaizal05 / exp-02-implementation-of-half-adder-and-full-adder-circuit Goto Github PK

View Code? Open in Web Editor NEW

This project forked from vasanthkumarch/exp-02-implementation-of-half-adder-and-full-adder-circuit

0.0 0.0 0.0 104 KB

License: BSD 3-Clause "New" or "Revised" License

exp-02-implementation-of-half-adder-and-full-adder-circuit's Introduction

Exp-02-Implementation-of-Half-Adder-and-Full-Adder-circuit

Implementation-of-Half-Adder-and-Full-Adder-circuit

AIM:

To design a half adder and full adder circuit and verify its truth table in Quartus using Verilog programming.

Equipments Required:

Hardware – PCs, Cyclone II , USB flasher Software – Quartus prime Theory Adders are digital circuits that carry out addition of numbers.

Half Adder:

Half adder is a combinational circuit that performs simple addition of two binary numbers. The input variables designate the augend and addend bits; the output variables produce the sum and carry. It is necessary to specify two output variables because the result may consist of two binary digits.

Sum = A’B+AB’ =A ⊕ B Carry = AB

Full Adder:

Full adder is a digital circuit used to calculate the sum of three binary bits. It consists of three inputs and two outputs. Two of the input variables, denoted by A and B, represent the two significant bits to be added. The third input, Cin, represents the carry from the previous lower significant position. Two outputs are necessary because the arithmetic sum of three binary digits ranges in value from 0 to 3, and binary 2 or 3 needs two digits. The two outputs are sum and carry.

Sum =A’B’Cin + A’BCin’ + ABCin + AB’Cin’ = A ⊕ B ⊕ Cin Carry = AB + ACin + BCin

image

Figure -01 HALF ADDER

image

Figure -02 FULL ADDER

Procedure:

Connect the supply (+5V) to the circuit Switch ON the main switch If the output is 1, then the led glows.

Program:

/*
Program to design a half adder and full adder circuit and verify its truth table in quartus using Verilog programming.
Developed by: Mohammed Faizal.J
RegisterNumber:  212222100027
*/
# Half adder :
module halfadd(a,b,sum,carry);
input a,b;
output sum,carry;
xor(sum,a,b);
and(carry,a,b);
endmodule


# Full adder:
module fulladd(a,b,c,sum,carry);
input a,b,c;
output sum,carry;
assign sum=((a^b)^c);
assign carry=((a&b)|(b&c)|(c&a));
endmodule

OUTPUT:

RTL realization:

HALF ADDER

OUTPUT

FULL ADDER

OUTPUT

TIMING DIAGRAM:

HALF ADDER

OUTPUT

FULL ADDER

OUTPUT

LOGIC SYMBOL:

HALF ADDER

OUTPUT

FULL ADDER

OUTPUT

TRUTH TABLE :

HALF ADDER

OUTPUT

FULL ADDER

OUTPUT

Result:

Thus the half adder and full adder are studied and the truth table for different logic gates are verified.

exp-02-implementation-of-half-adder-and-full-adder-circuit's People

Contributors

mohammedfaizal05 avatar vasanthkumarch avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.