Dhanush Ade Exp 6
Dhanush Ade Exp 6
Dhanush Ade Exp 6
Title of Experiment
Design and implementation of Binary to gray code
converters and vice versa using logic gates
Name of the candidate TR DHANUSH
Marks Split Up
6.a. Design and implementation of Binary to gray code converters using logic gates
AIM
1. To design and implementation of Binary to gray code converters using Multisim-online
software.
2. Hardware Implementation of the same with virtual Lab - IIT Bombay
SOFTWARE REQUIRED
https://www.multisim.com/
APPARATUS REQUIRED
S.No Apparatus Type Range Quantity
1 IC IC 7486 1
2 LED 4
3 Switch 4
4 DC Power Source 1
follow this procedure until the final binary bit as well as note down the outcomes depending
on EX-OR logic operation to generate the corresponding gray coded binary digit.
PROCEDURE
1. Open Multisim. Sign in.
2. Open a new circuit file
3. Select the components
• Go to digital, choose digital constants
• Go to digital, choose XOR 2 input gate
• Go to indicator, choose LED bulbs
• Go to schematic connectors, choose ground
4. Duplicate the components and connect them as per circuit diagram.
5. From analysis and annotation choose digital probe and place them where the output bits
are to be seen
6. Run the simulation and verify the output
7. To change the input values, vary the values of high and low on the digital constants and
verify the complete truth table illustrated below.
CIRCUIT DIAGRAM:
TRUTH TABLE
BINARY GRAY CODE
B3 B2 B1 B0 G3 G2 G1 G0
0 0 0 0 0 0 0 0
0 0 0 1 0 0 0 1
0 0 1 0 0 0 1 1
0 0 1 1 0 0 1 0
0 1 0 0 0 1 1 0
0 1 0 1 0 1 1 1
0 1 1 0 0 1 0 1
0 1 1 1 0 1 0 0
1 0 0 0 1 1 0 0
1 0 0 1 1 1 0 1
1 0 1 0 1 1 1 1
1 0 1 1 1 1 1 0
1 1 0 0 1 0 1 0
1 1 0 1 1 0 1 1
1 1 1 0 1 0 0 1
1 1 1 1 1 0 0 0
G3 = ∑(8,9,10,11,12,13,14,15) G2 = ∑(4,5,6,7,8,9,10,11)
6.b. Design and implementation of Gray to Binary code converters using logic gates
AIM
CIRCUIT DIAGRAM
TRUTH TABLE
The Analog Discovery 2 transforms any PC into an electrical engineering workstation. This
USBpowered device enables students to build and test analog and digital circuits in any
environment with the functionality of traditional benchtop instruments. In addition to the 100 MS/s
two-channel oscilloscope, the Analog Discovery 2 provides a two-channel waveform generator, 16-
channel logic analyzer, 16-channel digital pattern generator, spectrum analyzer, network analyzer,
voltmeter, and ±5 VDC adjustable power supplies.
The objective of VLabsDev is to involve the community to re-think on the best practices
regarding pedagogy, storyboards, lab manuals, documentation and the technologies for building
a high-quality simulator.
The main activities of the VLabsDev portal currently are content creation through community,
hosting the community created content, the source codes, hackathons for code and content
development, events for instructors for pedagogy and storyboard design.
The academic community of students and instructors from Engineering, Science and Polytechnic
institutes are the potential stakeholders as well as the beneficiaries. The objective is to provide
quality Virtual Lab experiences for education.
The data collected through major universities in India indicates that, there are over 500 Labs
which need to be created; (only ~120 labs of the MHRD Virtual Labs project are available for
use). Therefore, there exists a huge gap in the syllabus which has to be filled by the community
itself.
AIM:
Hardware Implementation of the code converter using NI Analog Discovery 2.
APPARATUS REQUIRED
S.No Apparatus Types Range Quantity
1 IC IC 7486
2 NI Analog Discovery 2
3 Wires As Required
4 Bread board 1
PROCEDURE:
1. Build the Binary to Gray and Vice Versa Circuit in the breadboard.
2. Use the below pin diagram for circuit connection in breadboard.
15 Configure Digital I/O signal into a switch by selecting 0, Switch, Push/Pull (1/0) as seen in Figure
below for DIO 0-DIO3
RESULT
Thus, design and implementation of Binary to gray code converters and Vice Versa using
logic gates using Multisim and NI Analog Discovery 2.