DC Exp 1
DC Exp 1
EXPERIMENT-1
VERIFY HDL CODE TO REALIZE ALL THE LOGIC GATES.
Aim: To realize all logic gates using Xilinx ISE 9.2i with Verilog HDL programming
language.
Tools Required:
Software: ISE Xilinx vivado
Hardware: Personal Computer
Theory:
AND, OR, NOT gates are basic gates. NAND and NOR are Universal gates. Basically, logic
gates are electronic circuit because they are made up of electronic device and components.
AND GATE:
If both the inputs are high the output will be high means 1 otherwise 0.
OR GATE:
If any of the input is high or both the inputs are high the output will be high means 1
otherwise 0.
NOT GATE:
NOT gate is also known as Inverter. It has one input A and one output Y.
NAND GATE:
It is the compliment of AND Gate.
NOR GATE:
It is the compliment of OR Gate.
EX-OR GATE:
The output of an EX-OR Gate is the module sum of its two inputs.
Source code:
Procedure:
1. Open Xilinx Vivado software tool and click on new project.
2. Select Verilog HDL language and proceed to next.
3. Select the Constraints inputs and outputs used for design.
4. Select Zedboard. A file will be selected write the code and save the file.
5. Check for errors, if any correct them.
6. Now add a source file for writing test bench code.
7. Write Test bench code and run synthesis.
8. Now run behavioral simulation for output waveform.
Applications:
1. There are mainly two applications of AND gate as Enable gate and Inhibit gate.
2. Logic gates are used in generation of parity generation and checking units.
3. The CMOS inverters are commonly used to build square wave oscillators which are used
for generating clock signals.
Result: Thus, realized all logic gates using Xilinx vivado with Verilog HDL programming
language.
Output: