






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
A tutorial for students of ece 465 at university of illinois at chicago on using quartus ii for hardware description language (hdl) based design entry and functional & timing simulation. It covers creating a new hdl project, writing vhdl code, compiling the design file, and running functional and timing simulations.
Typology: Assignments
1 / 11
This page cannot be seen from the preview
Don't miss anything!







The first part of Quartus ®^ II tutorial illustrates schematic diagram based entry for the desired circuit. It becomes very difficult to use this method for a large design with hundreds of primitive gates. Hardware description languages (HDLs) provides standard text based expressions of the structure and behavior of digital circuits. The second part of Quartus ®^ II tutorial is aimed at introducing HDL based design entry method. In this case, VHDL, Verilog or other HDL design files are used to synthesize and simulate the desired design. This tutorial will also introduce two types of simulation, namely, functional simulation and timing simulations, to assess the behavior and performance of the desired design.
Please note that this tutorial is based on Altera Quartus ®^ II 8.1 web edition version.
Content
**1. VHDL design Entry
In this section, a new HDL project containing an 2-to-4 decoder will be designed and compiled with Quartus ®^ II. Design file will be written in VHDL. Please note that VHDL syntax and semantics are beyond the scope of this tutorial. The circuit configuration and VHDL code for an 2-to-4 decoder are shown below
A
B
D 0
D 1
D (^2)
D (^3)
library ieee; -- use the IEEE library use ieee.std_logic_1164.all; -- specify which package in the library to include entity Decoder_2_to_4 is port (A,B : in bit; D0, D1, D2, D3 : out bit); end Decoder_2_to_4; architecture DECODER of Decoder_2_to_4 is begin D0 <= (not A) and (not B); D1 <= (not A) and B; D2 <= A and (not B); D3 <= A and B; end DECODER; Figure 1. circuit configuration and VHDL code for an 2-to-4 decoder
HDL based design entry in Quartus II follows most of the steps mentioned in first part for schematic based design. After opening a new project using new project wizard we will choose VHDL design file by clicking
File> New>VHDL file
Once we choose VHDL file, Quartus II will open a text editor file vhdl1.vhd to put our design file. We will write the VHDL code for 2-to-4 decoder in the window. Please note that VHDL file name has to be the same as the entity name. As shown in the following figure VHDL file has been saved as Decoder_2_to_4.vhd.
Figure 3. Saving VHDL based design file
Having saved VHDL file, we need to compile the design file for simulation. Compiler will process Decoder_2_to_4.vhd file. It is possible to run the full compilation or run individual module (Analysis & Synthesis, the Fitter, and Timing Analyzer). We could run partial compilation by selecting Start Analysis and Elaboration command to check Decoder_2_to_4.vhd file for syntax and semantics error. The following figures illustrate the command and also the out of the partial compilation.
(a)
(b)
Figure 4. Start Analysis and Elaboration command
Having successfully compiled our design file, we need a vector waveform file to simulate out design file. Please follow the steps shown in part I of this tutorial.
Before running functional simulation, a functional simulation netlist for the synthesized circuit needs to be generated. This is done by selecting Processing > Generate functional Simulation Netlist. Figure 6 shows the screen capture of the command and output.
(a)
(b)
Figure 6. Functional simulation netlist generation
At this point, we are ready to run functional simulation. Simulation will use a vector waveform file created earlier. We will select Process > Start Simulation to begin the simulation. Successful simulation will generate simulation waveform (Figure 7)
(a)
(b)
Figure 7. Simulation output
As shown in the above figure, our design file correctly generates the output variables. It is also seen that there is no time delay between input and output switching.
(a)
(b)
Figure 9. Timing analyzer output