Digital Logic Design Lab - University of Engineering and Technology
Digital Logic Design Lab - University of Engineering and Technology Digital Logic Design Lab - University of Engineering and Technology
Digital Logic Design Lab DEPARTMENT OF ELECTRICAL ENGINEERING LAB BROCHURE
- Page 2 and 3: DIGITAL LOGIC DESIGN LABORATORY CON
- Page 4 and 5: DIGITAL LOGIC DESIGN LABORATORY Lab
- Page 6 and 7: DIGITAL LOGIC DESIGN LABORATORY Ver
- Page 8: DIGITAL LOGIC DESIGN LAB Computer I
<strong>Digital</strong> <strong>Logic</strong> <strong>Design</strong> <strong>Lab</strong><br />
DEPARTMENT OF ELECTRICAL ENGINEERING<br />
LAB BROCHURE
DIGITAL LOGIC DESIGN LABORATORY<br />
CONTENTS<br />
<strong>Lab</strong> Venue ...................................................................................................................... 3<br />
<strong>Lab</strong> Objectives & Courses ............................................................................................. 3<br />
<strong>Lab</strong> Description & Experiments ..................................................................................... 4<br />
Hardware Experiments .................................................................................................. 5<br />
Verilog Experiments ....................................................................................................... 6<br />
<strong>Lab</strong> Resources ............................................................................................................... 7<br />
Page 2
DIGITAL LOGIC DESIGN LABORATORY<br />
Objectives & Courses<br />
DLD <strong>Lab</strong> Venue:<br />
Computer Interfacing <strong>Lab</strong><br />
First Floor, Electrical Department<br />
<strong>Lab</strong> Venue<br />
The <strong>Digital</strong> <strong>Logic</strong> <strong>Design</strong> <strong>Lab</strong><br />
(DLD <strong>Lab</strong>) is one <strong>of</strong> the most<br />
important <strong>and</strong> well equipped lab <strong>of</strong><br />
the Department <strong>of</strong> Electrical<br />
<strong>Engineering</strong> at <strong>University</strong> <strong>of</strong><br />
<strong>Engineering</strong> <strong>and</strong> <strong>Technology</strong>, Lahore.<br />
This lab is conducted at the<br />
Computer Interfacing <strong>Lab</strong> situated at<br />
the first floor <strong>of</strong> the Electrical<br />
<strong>Engineering</strong> Department.<br />
Scope <strong>of</strong> the <strong>Lab</strong><br />
The DLD <strong>Lab</strong> is for<br />
undergraduate coursework related to<br />
the course EE131. It is one <strong>of</strong> the<br />
core modules <strong>of</strong> B. Sc. Electrical<br />
<strong>Engineering</strong> therefore the lab has a<br />
significant importance in the<br />
department.<br />
Related Courses<br />
This lab is designed such that the<br />
students get a h<strong>and</strong>s on familiarity<br />
with the concepts they come across<br />
in the course EE131 that is the <strong>Digital</strong><br />
Systems course. This is an<br />
undergraduate course which deals<br />
with the basics <strong>of</strong> digital systems<br />
design <strong>and</strong> is a core module <strong>of</strong> the<br />
B. Sc. Electrical <strong>Engineering</strong><br />
coursework as it provides the<br />
prerequisites for advance courses in<br />
digital electronics. Because <strong>of</strong> the<br />
significance <strong>of</strong> this course the DLD<br />
<strong>Lab</strong> has been carefully designed to<br />
meet the course requirement.<br />
Brief Overview <strong>of</strong> the <strong>Lab</strong><br />
The <strong>Lab</strong> is well equipped with<br />
both hardware <strong>and</strong> s<strong>of</strong>tware facilities<br />
required by the students to perform<br />
the necessary experiments designed<br />
for this lab. Details <strong>of</strong> the lab<br />
equipment has been discussed in a<br />
proceeding section.<br />
Experiments are designed in<br />
such a way that the students become<br />
well aware <strong>of</strong> the concepts they learn<br />
in the theory sessions. A list <strong>of</strong><br />
experiments that are conducted in<br />
this lab has also been mentioned in a<br />
proceeding section.<br />
Experiments are related to both<br />
digital hardware <strong>and</strong> Verilog<br />
Programming.<br />
Page 3
DIGITAL LOGIC DESIGN LABORATORY<br />
<strong>Lab</strong> Description & Experiments<br />
<strong>Lab</strong> Description<br />
The Experiments in the<br />
<strong>Lab</strong> have been divided into<br />
two major portions:<br />
• Hardware <strong>Lab</strong>s<br />
• Hardware Description<br />
Language (Verilog) <strong>Lab</strong>s<br />
Hardware <strong>Lab</strong>s have<br />
been designed to<br />
familiarize students with the<br />
Combinational <strong>Digital</strong> <strong>Logic</strong><br />
<strong>Design</strong> <strong>and</strong> Sequential<br />
<strong>Digital</strong> <strong>Logic</strong> <strong>Design</strong><br />
through the implementation<br />
<strong>of</strong> <strong>Digital</strong> <strong>Logic</strong> Circuits<br />
using ICs <strong>of</strong> basic logic<br />
gates <strong>and</strong> some simple<br />
digital logic circuits.<br />
HDL (Verilog) <strong>Lab</strong>s have<br />
been designed to<br />
familiarize students with the<br />
HDL based <strong>Digital</strong> <strong>Design</strong><br />
Flow. These labs introduce<br />
students with different<br />
levels <strong>of</strong> coding available in<br />
Verilog i.e. Gate level,<br />
Dataflow level <strong>and</strong><br />
Behavioral level. Xilinx ISE<br />
7.1 tools have been used in<br />
these labs. Finally, the<br />
skills learnt in the HDL<br />
labs are employed to<br />
implement some digital<br />
logic circuits on Spartan-3<br />
FPGA, using Xilinx Starter<br />
Kit Development Board.<br />
A <strong>Lab</strong> Demonstration<br />
Expected Outcomes<br />
With the help <strong>of</strong> the two<br />
threads <strong>of</strong> the lab<br />
mentioned above, students<br />
will have clear<br />
underst<strong>and</strong>ing <strong>of</strong> all the<br />
three paradigms <strong>of</strong><br />
implementation <strong>of</strong> digital<br />
logic circuits:<br />
• Implementation using<br />
ICs for basic logic gates<br />
<strong>and</strong> simple circuits<br />
• Implementation<br />
through the Development<br />
<strong>of</strong> Dedicated IC(ASIC)<br />
• Implementation<br />
through Reconfigurable<br />
<strong>Logic</strong> (i.e. FPGA)<br />
This makes students<br />
adept in basic concepts<br />
involved in digital logic<br />
design. The lab contributes<br />
a lot to the basic learning <strong>of</strong><br />
digital systems.<br />
This shows the<br />
indispensability <strong>of</strong> the<br />
DLD <strong>Lab</strong>.<br />
List <strong>of</strong> Experiments<br />
List <strong>of</strong> experiments is<br />
given on page 5 <strong>and</strong> 6. As<br />
mentioned before the lab<br />
has two major portions<br />
therefore there are two lists<br />
<strong>of</strong> experiments one related<br />
to the hardware labs <strong>and</strong><br />
the other related to the<br />
hardware description<br />
language (verilog) labs. All<br />
these experiments are<br />
m<strong>and</strong>atory <strong>and</strong> each lab is<br />
followed by specially<br />
designed assignments.<br />
A <strong>Digital</strong> Chip (inside view)<br />
Page 4
DIGITAL LOGIC DESIGN LABORATORY<br />
Hardware Experiments<br />
TITLE<br />
1 To Verify the Behavior <strong>of</strong> <strong>Logic</strong> Gates using Truth Table <strong>and</strong><br />
Familiarization with <strong>Digital</strong> Integrated Circuits<br />
TOPICS<br />
Basic <strong>Logic</strong> Gates,<br />
Truth Table,<br />
Integrated Circuits<br />
2 Implementation <strong>of</strong> Boolean Function using <strong>Logic</strong> Gates<br />
<strong>and</strong> Introduction to Hierarchical <strong>Design</strong> <strong>of</strong> <strong>Digital</strong> <strong>Logic</strong> Circuits<br />
Boolean Functions,<br />
Boolean Algebra,<br />
Hierarchical <strong>Design</strong> <strong>of</strong> <strong>Digital</strong> <strong>Logic</strong> Circuits<br />
3 Familiarization with the Different Portions <strong>of</strong> the Datasheet for<br />
a <strong>Digital</strong> IC <strong>and</strong> Using the Datasheet to Gather Relevant<br />
Information to Utilize the IC as a Component in another <strong>Digital</strong><br />
<strong>Logic</strong> Circuit<br />
Datasheet <strong>of</strong> a <strong>Digital</strong> <strong>Logic</strong> IC,<br />
Hierarchical <strong>Design</strong> <strong>of</strong> <strong>Digital</strong> <strong>Logic</strong> Circuits<br />
4 Implementation <strong>of</strong> 8 bit Binary Comparator using 4 bit Binary<br />
Comparators<br />
5 Implementation <strong>of</strong> 4bit into 3bit Binary Multiplier using 4bit<br />
Binary Adders<br />
Binary Comparator,<br />
Hierarchical <strong>Design</strong> <strong>of</strong> <strong>Digital</strong> <strong>Logic</strong> Circuits<br />
Binary Multiplication,<br />
Hierarchical <strong>Design</strong> <strong>of</strong> <strong>Digital</strong> <strong>Logic</strong> Circuits<br />
6 Implementation <strong>of</strong> BCD Adder using 4bit Binary Adders, 4 to 7<br />
Segment Decoder <strong>and</strong> 2Digit 7 Segment Display<br />
BCD addition,<br />
Hierarchical <strong>Design</strong> <strong>of</strong> <strong>Digital</strong> <strong>Logic</strong> Circuits<br />
7 Implementing a Full Adder using<br />
(a) Decoder<br />
(b) Multiplexer<br />
Implementation <strong>of</strong> Boolean function using<br />
Decoder,<br />
Implementation <strong>of</strong> Boolean function using<br />
Multiplexer<br />
8 Flip Flops Different Types <strong>of</strong> Flip Flops<br />
9 To study the fundamentals <strong>of</strong> basic counters <strong>and</strong> to construct<br />
various types <strong>of</strong> counters<br />
Counters<br />
Page 5
DIGITAL LOGIC DESIGN LABORATORY<br />
Verilog Experiments<br />
TITLE<br />
TOPICS<br />
1 Introduction to HDL based <strong>Digital</strong> <strong>Design</strong> Methodology HDL based <strong>Digital</strong> <strong>Design</strong> Flow using<br />
Verilog,<br />
Introduction to Outsourcing Business Model<br />
2 Introduction to Basic Syntax <strong>of</strong> Verilog <strong>and</strong> Gate level<br />
Modeling<br />
through implementation <strong>of</strong> half adder at gate level <strong>and</strong> its<br />
simulation using Xilinx ISE tools<br />
Basic Concepts <strong>of</strong> Verilog, Modules <strong>and</strong><br />
Ports, Gatelevel coding in Verilog,<br />
3 Introduction to the concepts <strong>of</strong> Instantiation <strong>and</strong> Hierarchical<br />
<strong>Design</strong> in Verilog through the implementation <strong>of</strong> full adder<br />
using the previously designed half adder modules<br />
Hierarchical <strong>Design</strong> in Verilog<br />
4 Introduction to the Concept <strong>of</strong> Vectors <strong>and</strong> Introduction to<br />
Dataflow modeling through implementation <strong>of</strong> half adder <strong>and</strong><br />
full adder at dataflow level<br />
Vectors in Verilog,<br />
Dataflow level coding in Verilog<br />
5 Consolidation <strong>of</strong> the concepts <strong>of</strong> Dataflow level modeling <strong>and</strong><br />
Introduction to the concept <strong>of</strong> Synthesis by the CAD tool<br />
Dataflow level coding in Verilog, <strong>Logic</strong><br />
Synthesis<br />
6 Introduction to Behavioral modeling through implementation <strong>of</strong><br />
half adder <strong>and</strong> full adder at behavioral level.<br />
7 Introduction to if else statement <strong>and</strong> case statement in<br />
Behavioral modeling through implementation <strong>of</strong> Multiplexer<br />
8 Introduction to the Concepts <strong>of</strong> Sequential Circuit <strong>and</strong><br />
a TestBench module (Stimulus Block)<br />
Behavioral level coding in Verilog<br />
if else <strong>and</strong> case statements in Verilog<br />
Sequential circuits in Verilog, Concept <strong>of</strong><br />
Testbench module in Verilog<br />
9 Behavioral Level Coding <strong>of</strong> Basic Sequential Circuits <strong>and</strong><br />
Consolidation <strong>of</strong> the concepts <strong>of</strong> TestBench module (Stimulus<br />
Block)<br />
10 Introduction to Field Programmable Gate Array(FPGA) <strong>and</strong><br />
Steps involved in its Programming<br />
Sequential circuits in Verilog<br />
Need for Reconfigurable <strong>Logic</strong>, Xilinx ISE<br />
Tools for Programming the Xilinx FPGAs<br />
Page 6
DIGITAL LOGIC DESIGN LABORATORY<br />
<strong>Lab</strong> Resources<br />
Hardware Resources<br />
The lab is fully<br />
equipped with all the<br />
hardware required to<br />
conduct the above<br />
mentioned experiments.<br />
The hardware resources <strong>of</strong><br />
the lab are:<br />
• Pentium-IV PCs (with<br />
MS WinXp OS)<br />
• Hardware trainers for<br />
logic circuit design <strong>and</strong><br />
analysis<br />
• Electronic Chips <strong>of</strong> all<br />
digital gates<br />
• Spartan-III FPGA<br />
board kits<br />
• Power Supplies<br />
These resources allow<br />
the students to have a<br />
h<strong>and</strong>s on experience <strong>of</strong><br />
basic digital logic design<br />
concepts. This activity<br />
greatly leverages what the<br />
students learn in the theory<br />
sessions.<br />
S<strong>of</strong>tware Resources<br />
The lab also consists <strong>of</strong><br />
the s<strong>of</strong>tware resources<br />
required by the students<br />
namely:<br />
• Veriwell<br />
• ModelSim<br />
• Xilinx IDE<br />
• Matlab<br />
A <strong>Digital</strong> Circuit Board<br />
S<strong>of</strong>tware resources are<br />
equally important as<br />
hardware resources are.<br />
These s<strong>of</strong>tware resources<br />
are sufficient for the<br />
students to perform<br />
experiments. These<br />
s<strong>of</strong>twares provide the<br />
students with the<br />
necessary platform to work<br />
on HDL that is the Verilog.<br />
These s<strong>of</strong>twares are also<br />
required to work with the<br />
sophisticated hardwares<br />
like Spartan-III FPGA<br />
boards.<br />
The lab has all the<br />
resources whether related<br />
to hardware or s<strong>of</strong>tware so<br />
that the students become<br />
adept in the basic field <strong>of</strong><br />
digital electronics.<br />
Students are<br />
encouraged to use the lab<br />
resources to perform<br />
activities <strong>and</strong><br />
experiments which help<br />
them strengthen their<br />
concepts.<br />
<strong>Lab</strong> Staff<br />
Like other labs <strong>of</strong> the<br />
department there is a<br />
trained <strong>and</strong> able staff<br />
consisting <strong>of</strong> skilled lab<br />
technicians that take care<br />
<strong>of</strong> the lab equipment.<br />
They also guide<br />
students about h<strong>and</strong>ling<br />
the lab equipment <strong>and</strong> the<br />
precautionary measures<br />
required for the students<br />
while working in the lab.<br />
A Simulation<br />
Page 7
DIGITAL LOGIC DESIGN LAB<br />
Computer Interfacing <strong>Lab</strong><br />
1st Floor, Department <strong>of</strong> Electrical <strong>Engineering</strong><br />
UNIVERSITY OF ENGINEERING & TECHNOLOGY, LAHORE-54890,<br />
PAKISTAN.<br />
Ph: + 92 42 9029229, Fax: + 92 42 9250224<br />
url: www.uet.edu.pk