You are on page 1of 3

QUAID-E-AWAM UNIVERSITY COLLEGE OF ENGINEERING SCIENCE AND TECHNOLOGY, LARKANA

DEPARTMENT OF ELECTRONIC ENGINEERING


Lab No. 1

Name: _____________________________________________Roll No: _____________

Signature:__________________________________________ Date:_______________

 Objective:
 Part I
 Introduction to hardware description language (HDL).
 Introduction to Verilog HDL.
 Part II
 Verilog simulation of D-flip flop.

Report

1. What is hardware description language?


2. What is simulation?
3. What is logic synthesis?
4. What is the difference between Verilog and VHDL?
5. Describe a module in Verilog.
6. Describe instantiation in Verilog.
7. Describe an instant in Verilog.
8. What is test bench?
9. List all the data types in Verilog.
10. Describe Modelsim.
 Part II
 Verilog simulation of D-flip flop.

 Theory:
D-flip flop: The flip flop is a basic building block of sequential logic circuits. The basic D Flip Flop
has a D (data) input and a clock input and outputs Q and Q’ (the inverse of Q). Optionally it may also
include the PR (Preset) and CLR (Clear) control inputs.
This flip-flop is a positive edge-triggered flip flop. This means that the flip flop changes output value
only when the clock is at a positive edge (or rising clock edge).

 Verilog code:
 Simulation:

 Discussion:

You might also like