Docsity

Gray Code to 7-Segment Decoder - Experiment 12 | ECE 140, Lab Reports of Electrical and Electronics Engineering

Toggle sidebar
bg1
EXPERIMENT 12. Gray-Code to 7-Segment Decoder
Equipment and parts required:
1 GAL (16v8 or equivalent)
1 Seven-Segment Display
1 Power Supply
1 Digital Voltmeter
1. Write a truth table
Write a truth table for 4-bit gray code to 7 segment decoder.
2. Write a VHDL program for the decoder
Write a VHDL code to implement the gray code to 7 segment decoder defined by the truth table
in Step 1. Print the source code from the Synario editor window and attach it to the report.
3. Compile the VHDL code using Synario for 16V8 target, and create a JEDEC file.
Describe detailed steps to compile your source code on Synario.
4. Find out pin numbers of input and output ports in 16V8 after compilation.
Signals Pin Number
G3
G2
G1
G0
a
b
c
d
e
f
g
5. Program GAL chip using JEDEC file created in Step2.
6. Experiment with Programmed GAL.
Connect the decoder and 7-segment display and check if your circuit displays correct results for
different input codes.

Partial preview of the text

Download Gray Code to 7-Segment Decoder - Experiment 12 | ECE 140 and more Lab Reports Electrical and Electronics Engineering in PDF only on Docsity!

EXPERIMENT 12. Gray-Code to 7-Segment Decoder

Equipment and parts required:

1 GAL (16v8 or equivalent) 1 Seven-Segment Display 1 Power Supply 1 Digital Voltmeter

1. Write a truth table

Write a truth table for 4-bit gray code to 7 segment decoder.

2. Write a VHDL program for the decoder

Write a VHDL code to implement the gray code to 7 segment decoder defined by the truth table in Step 1. Print the source code from the Synario editor window and attach it to the report.

3. Compile the VHDL code using Synario for 16V8 target, and create a JEDEC file.

Describe detailed steps to compile your source code on Synario.

4. Find out pin numbers of input and output ports in 16V8 after compilation.

Signals Pin Number G G G G a b c d e f g

5. Program GAL chip using JEDEC file created in Step2.

6. Experiment with Programmed GAL.

Connect the decoder and 7-segment display and check if your circuit displays correct results for different input codes.