4
Experiment No : 1 Aim: To design all the gates using VHDL. Apparatus: Xlinx 10.1 software , RAM : 512 MB Theory: Logic gates are sold state electronic circuits which are used to perform certain mathematical function ie multiplication, addition , inversion by using binary digits ( 0 or 1). There are various logic gates such as : 1. AND 2. OR 3. NOT 4. NAND 5. NOR 6. EXOR 7. EXNOR

LOGIC GATES USING VHDL

Embed Size (px)

Citation preview

Page 1: LOGIC GATES USING VHDL

Experiment No : 1

Aim: To design all the gates using VHDL.

Apparatus: Xlinx 10.1 software , RAM : 512 MB

Theory:

Logic gates are sold state electronic circuits which are used to perform certain mathematical function ie multiplication, addition , inversion by using

binary digits ( 0 or 1).

There are various logic gates such as :1. AND2. OR3. NOT4. NAND5. NOR6. EXOR7. EXNOR

All gates and their respective truth tables are given below.

AND GATE : It performs ANDing operation. C= A and B

A B C0 0 00 1 01 0 01 1 1

Page 2: LOGIC GATES USING VHDL

OR GATE : Performs ORing operation. C= A or B

A B C0 0 00 1 11 0 11 1 1

NOT GATE: Performs the INVERTing operation. B= not A

A B0 11 0

NAND GATE: Performs the NANDing operation. C= A nand B

A B C0 0 10 1 11 0 11 1 0

NOR GATE: Performs the NORing operation. C= A nor B

A B C0 0 10 1 01 0 01 1 0

Page 3: LOGIC GATES USING VHDL

EX-OR GATE: Performs the Exclusive ORing operation. C= A exor B

A B C0 0 10 1 01 0 01 1 1

EX-NOR GATE: Performs the Exclusive NORing operation.C= A exnor B

A B C0 0 00 1 11 0 11 1 0