Introduction To VHDL: Boumerdes University
Introduction To VHDL: Boumerdes University
(EE-221)
Lab Work # 6
Introduction to VHDL
Design, Simulation and Implementation of Combinational
Digital Circuits using VHDL Design Entry
Written by:
Cylia LEBAZ
Parteners’ name:
Lisa KEZMANE
Rayane GHERNAOUT
Groupe : 08
Lab Instructor: Mrs.AZZOUGUI
Objectives:
The objective of this laboratory experiment is to enhance our familiarity with
Altera Quartus II Schematic and VHDL design and also to practice writing VHDL
codes for basic combinational circuits using concurrent statements.
Getting Started:
We launch Quartus II → File → New Project Wizard → we set working
directory, project name ad Top-Level Design→ We choose Cyclone II as target
Device Family and from the list of available devices we choose the
EP2C35F672C6.
We set Pin Count to 672 and Speed Grade to 6 in order to limit the device
selection.
Problem 01 : Majority
T .T a b c d M F=
0 0 0 0 0 K-map
0 0 0 1 0
0 0 1 0 0
0 0 0 0
0 0 1 1 0
0 0 1 0
0 1 0 0 0
1 1 1 1
0 1 0 1 0
0 1 1 1
0 1 1 0 0
0 1 1 1 1
1 0 0 0 0
1 0 0 1 1 F = AB + AC + AD + BCD
1 0 1 0 1
1 0 1 1 1 F = A(B + C + D) + BCD
1 1 0 0 1
1 1 0 1 1
1 1 1 0 1
1 1 1 1 1
iii. After assigning the input and output pins, we downloaded our design
onto the EPGA of the DE2 board in order to test its functionality.
Everything was corrected and worked good.
iv. Circuit synthesized
Tools → Netlist Viewer → RTL Viewer
Problem 02 : Bar-Graph LED
T .T a b c LED0 LED1 LED2 LED3 LED4 LED5 LED6
0 0 0 0 0 0 0 0 0 0
0 0 1 1 0 0 0 0 0 0
0 1 0 1 1 0 0 0 0 0
0 1 1 1 1 1 0 0 0 0
1 0 0 1 1 1 1 0 0 0
1 0 1 1 1 1 1 1 0 0
1 1 0 1 1 1 1 1 1 0
1 1 1 1 1 1 1 1 1 1
Problem 03 : Displays
In this part, we are asked to design a 2-input 7-output logic circuit , using
when-else statement, to display the different shapes given in the handout
We assigned pins to inputs and outputs and then we download our code to the
DE2 board to test its functionality and it was succefull.
Problem 04 :
For this problem, we wrote a VHDL code for a combinational circuit that has six
inputs W and six outputs Y where an input Yk is to be ‘1’ if and only if Wk is ‘1’
and each Wi = ‘O’ for all i>j.
Problem 05 : Hexadecimal to 7-Segment Display Converter
For the last problem, we wrote a VHDL code of a 7-segment driver for a circuit
that takes 4-bit input and drives the 7-segment display on the DE2 board , using
with-select statement .
Unfortunately we didn’t have enough time during the lab session to download
the 2 last circuits on the DE2 board and test them
Conclusion :
By the end of this lab, which was well conducted, we get become more familiar
with the use of VHDL, with its different statements, to solve a variety of
problems.