Tutorial Quartus
Circuit design with VHDL
Tutorial Quartus 14
And the “Danjel” board.
Hans Stokkink January 2015 1 1
Tutorial Quartus
Tutorial adder.
Start Quartus II via de Icoon op het werkblad op.
result;
Open in het pull-down menu file de new project Wizard .
Hans Stokkink January 2015 2 2
Tutorial Quartus
Fill in your pat hand project name (here adder):
Hans Stokkink January 2015 3 3
Tutorial Quartus
next
skip the next page . (in case you want to add files of a previous project you add them here)
next
Hans Stokkink January 2015 4 4
Tutorial Quartus
Choose MAXII:
De EPM240T100C5 (3.3 Volt version) this is the chip we will use at the demonstration board.
Next
Skipp the EDA tools settings page
Hans Stokkink January 2015 5 5
Tutorial Quartus
Next
Finish ( to end the wizard)
Hans Stokkink January 2015 6 6
Tutorial Quartus
Design of an 2 bits adder.
Open the pull-down menu file > new.
Choose VHDL File.
Hans Stokkink January 2015 7 7
Tutorial Quartus
OK
Save the file.
Hans Stokkink January 2015 8 8
Tutorial Quartus
Write the contents of the file:
Control the syntax (or Processing> Analyze current file)
Hans Stokkink January 2015 9 9
Tutorial Quartus
If you copied the file exact as above :
Double click on the first fault red sentence and correct your VHDL file
(missing “;”)
Repeat the control.
Correct also the second fault.
If you do not have any mistakes anymore , you can compile:
From the pull down menu:
Processing > Start Compilation. (This takes some time)
Hans Stokkink January 2015 10 10
Tutorial Quartus
Simulation
For a simple logical simulation we will use the University Simulator.
Make a new .VWF file
OK
Hans Stokkink January 2015 11 11
Tutorial Quartus
File > save ([Link])
Right mouse click below ‘Name’ choose “insert node or bus..”.
Choose node Finder
List and click the “>>”
Hans Stokkink January 2015 12 12
Tutorial Quartus
OK
OK
Hans Stokkink January 2015 13 13
Tutorial Quartus
Click on the symbol next to a0. The timebalk is showed.
Make ‘Clock signal‘ klik ;
OK
Repeat this for the other signals so that : (20 ns,40 ns 80 ns)
Hans Stokkink January 2015 14 14
Tutorial Quartus
Try to zoom in and zoom out.
Another possibility to put a one is to select the time (keep left mouse click) and give a
Hans Stokkink January 2015 15 15
Tutorial Quartus
Simulation:
Simulation >run functional simulation.
After a short time :
Do you understand the results? Please check this!
Determ the results before you do the simulation!!!
Hans Stokkink January 2015 16 16
Tutorial Quartus
Programming the Danjel board
Hans Stokkink January 2015 17 17
Tutorial Quartus
Danjel Circuit
Hans Stokkink January 2015 18 18
Tutorial Quartus
1. Connect the board with the USB connection. (if the danjel board is not recognized
please install the driver)
Pin Assignment
To let know wich pins are connected to the signals of the chip pins, you have to do the
chiplanner.
Choose from the pull down menu:
Assignments > pin planner
Here you see. The pins of the chip and your signals of your design.
For testing te circuit we use the dipswitches of the board an 3 LED’s as output:
Signal name Chip pin Board
function
a0 51 DP8
a1 52 DP7
b0 53 DP6
b1 54 DP5
Sum0 81 Led 2
Sum1 82 Led 3
Carry 83 Led 4
Tabel 1 : connections of the 2 bits adder design.
Hans Stokkink January 2015 19 19
Tutorial Quartus
Select a node name and drag it into the picture to the right pin.
If you did al pins your screen looks like :
From the pull down menu:
File >Close
From the pull down menu:
Processing > Start Compilation. (This takes some time)
Now you can programm the FPGA;
Hans Stokkink January 2015 20 20
Tutorial Quartus
From the pull down menu:
Tools> Programmer.
Push button hardware setup:
select the USB blaster.
Close
Hans Stokkink January 2015 21 21
Tutorial Quartus
Push button add file:
Push button hardware setup:
Choose the [Link] file from the “output_files “directory
Check the checkboxes for program and verify:
Start
If everything is right there will be a green progress bar, taking some seconds while
programming . If ready you can test the adder on your danjel board.
End Tutorial.
Hans Stokkink January 2015 22 22