Lab 9 Excess-3 To Gray Code Conversion Using Nand Gates
Lab 9 Excess-3 To Gray Code Conversion Using Nand Gates
Group No.:
Lab 09: Excess-3 to Gray Code Conversion using Nand Gates (Open Ended
Lab)
This Open ended Lab has been divided into two parts:
In first part you are required to design and implement a Excess-3 to gray code converter.
The next part is the Verilog Modeling and Simulation of the Circuit you implemented in you first
part.
Objectives:
Lab Instructions
This lab activity comprises three parts, namely Pre-lab, Lab tasks, and Post-Lab Viva
session.
The lab report will be uploaded on LMS three days before scheduled lab date. The
students will get hard copy of lab report, complete the Pre-lab task before coming to
the lab and deposit it with teacher/lab engineer for necessary evaluation.
The students will start lab task and demonstrate design steps separately for step-
wise evaluation(course instructor/lab engineer will sign each step after ascertaining
functional verification).
Remember that a neat logic diagram with pins numbered coupled with nicely
patched circuit will simplify trouble-shooting process.
After the lab, students are expected to unwire the circuit and deposit back
components before leaving.
The students will complete lab task and submit complete report to Lab Engineer
before leaving lab.
There are related questions at the end of this activity. Give complete answers.
1. In the lab you would be implementing an Excess-3 to gray code converter. Make a truth
table for both the codes by filling in the following tables and Simplify the expressions for
W,X,Y,Z in terms of A,B,C,D.( Use backside of the page if necessary). Use unused
combinations as don’t care conditions. Hint, u can take help from
http://engineeringproblemsandanswers.blogspot.com/2015/03/logic-circuits-1-digit-decimal-in-
excess-3-to-gray-code-converter.html
3
W=
4
5
X=
6 Y=
7
Z=
8
9
1 1 0 1 X X X X
3. Draw the logic diagram for Excess-3 to gray code converter using only NAND gates in
the space provided below, you can use 2,3,4 input Nand gates if required (3 Marks-
Individual. and Team Work)
4. Draw the logic diagram for Excess-3 to gray code converter using only NOR gates in
the space provided below, you can use 2,3,4 input Nor gates if required (3 Marks-
Individual. and Team Work)
Lab Task 1:
Implement Excess-3 to gray code converter using only NAND gates on hardware. Paste the
complete circuit diagram, depicting hardware results. (5 Marks - Analysis)
Design and simulate the circuit k-map equations you obtained in Pre-lab task 1 in Verilog
dataflow modeling. Give the code and testbench and waveform in the space provided below.
(3Marks – Modern tool
usage)