Step 1: Open Quartus
Step 2: Folders
Create a parent folder on your flash drive. You want this on your flash drive because anything saved on the colleges hard-drives may not be there next class.
Create a parent folder where you want to keep all of your Labs! i.e. G:\Joe_Schmo_jumpdrive\EECT122\
Create a child folder this particular lab will be stored. i.e. G:\Joe_Schmo\EECT122\Lab_1-1\
You can do this either in windows explorer or directly in the program Quartus.
For quartus to work right, your build files(.bdf/.vhd/.etc) need to be in a folder(your child folder) that has the same name as the projects.
Step 3: New Project Wizard
After that's done, click next.
Step 4: Add Files
Step 5: Select the Right Board
Step 6: EDA Tools?
Step 7: Finish Your Set Up
Well hit finish and lets get started programming a FPGA.
Step 8: Block Diagram/ Schematic
Go to the FILE tab and hit New. Here you will have the option to create many different types of files. For this tutorial we will be creating a Block Diagram/Schematic File.
Step 9: Save the File
So for this example I saved it as "G:\tutorial.bdf
Step 10: Create a Schematic
The third picture in this series shows a diagram of a 4 bit comparator that was created rather quickly.
Step 11: Start Compilation
Up at the top tool bar, the button that looks like play button will start the compilation.
You can also navigate to the "Processing Tab" and hit "Start Compilation".
Step 12: Save
You must save the compiled BDF before proceeding to create a Vector Waveform.
Step 13: Vector Waveforms
Under the File tab, select New, and then Vector Waveform file.
This screen should look familiar, it is the same place where we created the Block Diagram file.
Step 14: SAVE
So for this tutorial it is saved as "G:\Joe_Schmo\EECT122\Lab_1-1\tutorial\tutorial.VCF"
Step 15: Setting Up the Waveform File-End Time
In this class, 16 micro-seconds will be a nice time frame to work with. Some labs might specify a different time, this is where you change that.
Step 16: Setting Up the Waveform File-Edit Grid Size
Inside the dialogue window, edit the boxes and double check that you have selected the right scale(nano, micro, milli).
After the settings are correct, Use the keyboard shortcut and press CTRL W to view the entire timeline. It should look like picture 3.
Step 17: Add Inputs and Outputs
Right click on the left panel. Scroll down to INSERT and over to INSERT NODE OR BUS.
This will bring up a new window with several options. Underneath the cancel button, is a button called NODE FINDER. Press that button and leave the other options alone.
This brings up a new window called NODE FINDER.
----At the top middle, scroll down and select "Pins: All"
----next, over to the right is a button that says list. It searches for the pins in your schematic. Hit that button.
----Once pins are in the left tab, we need to select them. This can be done individually if needed with the single arrow button, or all pins at once with the double arrow button.
-----Lastly, Click OK in the "Node Finder" window and also OK in the "Insert Node or Bus" window.
Step 18: Simulating
The first two pictures show my comparator circuit will no inputs. Both data streams here A and B have no data, thus they are equal and the "W" output goes high.
The next few pictures will show how to change the input and what happens to the output "W" when the two data streams are not equal.
Step 19: Changing the Input of the Circuit.
- Right click the input on the left hand column.
- Scroll down to Value and over to Count value or some other value(Like Clock).
- Shown is "count value." I will use Hex for this purpose
- This brings up a pop-up with option for how much to count by and when to count by. (Change time and value)
- Do the same thing for the "B" data stream.
- No highlight a few clock cycles and you can manually change them by right clicking on the highlighted area and selecting the value.
- Notice in this last picture that the two data stream are now no longer equal.
- And the result is a low where the two data streams do not match up.
Step 20: Download to Board
- First thing is to assign to the pins on the Alterra board that we are going to use. For this example we need 8 input pins and one output indicator. The DOC attached to this step has the Alterra pin assignments.
Step 21: Pin Planner
This brings up a new window. Go ahead and maximize it.
Step 22: Pin Planner 2
Step 23: Get It on the Board
Go to TOOLS and down to Programmer.
This will bring up a new window; check to make sure it says Blaster and click Start.
Congrats you're Done.