You are on page 1of 3

EC582 FPGA Design with Verilog Hardware Description Language

University of Tripoli
College of Engineering
Department of Computer Engineering
Fall 2020

EXPERIMENT NO. 0

Title: Design of logic gates

Objective: The purpose of this experiment is to simulate the structural, data flow, and
behavior of several of the basic logic gates and you will connect several logic gates
together to create simple digital model, to check the functionality by simulating the
design.

Theory: Logic gates are the basic building blocks of any digital system. It is an
electronic circuit having one or more input and only one output. The
relationship between the input and the output is based on a certain logic. Based on this,
logic gates are named as AND gate, OR gate, NOT gate, etc..

Procedural:
1. Create a module with required number of variables and mention it’s input/output.
2. Write the description of given Boolean function using operators or by using the
built in primitive gates.
3. Create another module referred as test bench to verify the functionality.
4. Follow the steps required to simulate the design and compare the obtained output
with the corresponding truth table.
EC582 FPGA Design with Verilog Hardware Description Language
EC582 FPGA Design with Verilog Hardware Description Language

Pre lab questions


1. What is truth table?
2. Which gates are called universal gates?
3. What is the difference b/w HDL and software language?
4. Define identifiers?
5. A basic 2-input logic circuit has a HIGH on one input and a LOW on the other input,
and the output is HIGH. What type of logic circuit is it?
6. A logic circuit requires HIGH on all its inputs to make the output HIGH. What type of
logic circuit is it?
7. Develop the truth table for a 3-input AND gate and also determine the total number of
possible combinations for a 4-input AND gate.

Post lab questions


1. What is meant by ports?
2. Write the different types of port modes.
3. What are different types of operators?
4. What is difference b/w <= and:= operators?
5. What is meant by simulation?
6. How to give the inputs in modelsim software.

You might also like