Introduction To Quartus
Introduction To Quartus
ELET 3405
MICROPROCESSOR ARCHITECTURE LAB
LAB ASSISTANT: NAVEEN MILIND CHALAWADI
INTRODUCTION
What is it?
Quartus II is a programmable logic device design software by Altera.
It enables analysis and synthesis of HDL designs
And allows us to program the board.
QUARTUS II
INSTALL QUARTUS II WEB EDITION SOFTWARE
D:\ELET3405\Lab1\
Device Family -> Cyclone IV GX
Available devices -> EP4CGX150DF31C7
EDA Tools and Settings -> Click next
Dont worry about Simulation
Summary -> Click Finish
CREATING A VHDL FILE AND COMPILING IT
File -> New -> VHDL File -> Click OK
Write your code and click on save. The filename should be entity name.
To compile your code
Processing -> Start Compilation (or just press CTRL+L)
When the compilation is complete you will get the following pop-up. Click ok (Ignore the warnings)
Dont worry if you get errors after compilation, because that is where the learning starts.
ASSIGNING PINS
Before you assign Pins, Select the device.
Assignments -> Device
Click on Configuration -> Use configuration device -> EPCS64 -> OK
Before you assign Pins, open the manual for the DE2i150 board.
Assignment -> Pin Planner
Type in the location for each input/output pin. (Refer the DE2i150 User Manual)
After the pin assignment, close the Pin Planner and compile the project again
Type in the location for each input/output pin. (Refer the DE2i150 User Manual)
After the pin assignment, close the Pin Planner and compile the project again
PROGRAMMING THE BOARD
Before Powering up the board, make sure the board is in Programming mode (The switch should be on PROG side)
Open Tools -> Programmer
Select Hardware Setup -> USB-Blaster [USB-0]
Select Mode -> Active Serial Programming
If the USB-Blaster is not installed on your system, then open DEVICE MANAGER -> Right Click on USB-Blaster ->
Update Driver Software -> Browse my computer for driver software -> Go to Altera Installation folder-> under
Quartus\drivers -> Click OK
Add File -> output_files -> entityname.pdf -> Open
Check Progran/Configure and Verify
Click on Start
After the programming is complete, Switch off the board. Change the switch to RUN mode and turn the board on.
Output
When the inputs A and B are 0, the output is 0 When A is 0 and B is 1, the output is 1
When A is 1 and B is 0, the output is 0 When A and B both are 1, the output is 1