Presentation is loading. Please wait.

Presentation is loading. Please wait.

The first change to your project files that is needed is to change the device to the correct FPGA. This is done by going to the Assignments tab on the.

Similar presentations


Presentation on theme: "The first change to your project files that is needed is to change the device to the correct FPGA. This is done by going to the Assignments tab on the."— Presentation transcript:

1 The first change to your project files that is needed is to change the device to the correct FPGA. This is done by going to the Assignments tab on the upper right hand corner of the page. Click on Device

2 You must make sure to change the Family of the device to the Cyclone II
Click Device and Pin Options… when done Scroll through the device name until you find the EP2C20F484C7 (the number is on the FPGA on the board)

3 Under the configuration
Tab, change the Configuration device From Auto to EPCS4. Click OK for both windows when done

4 If the project requires a clock, a VHDL program – called CLK_DIV – can be added to the project in order to get a smaller frequency clock than the onboard 27MHz or 50MHz clock. To add the clock divider, paste the CLK_DIV program into the project folder. Click Open in Quartus. Select CLK_DIV Click Open The VHDL file of CLK_DIV will open. Do NOT modify the code.

5 Go to File and click on Save As. Hit Save and replace the file
Go to File and click on Save As. Hit Save and replace the file. This step adds the CLK_DIV file you your project files. On the middle, left-hand side of the page, click on the Files tab. Right click on CLK_DIV and click on the Create Symbol Files for Current Files.

6 After the symbol file is done compiling, click on the Symbol Tool icon.
Under the Projects file will be the symbol for the clock divider. Select clk_div and click OK.

7 The clock divider is now able to be added to the program.
HINT: This clock divider was built for a 25MHz clock input. The DE1 boards have a 27MHz and a 50MHz onboard clock. If the program is supposed to operate at about 1 Hz, the 27MHz clock should be used. If the 50MHz clock is used, all the outputs of the clk_div will be doubled (i.e. 2MHz, 200kHz, 20kHz, … etc.) For troubleshooting the project, a faster clock time can be used. Ask Goomey what clock frequency should be used for presenting to the class (I’d think you’d want to increase the frequency for the Digital Clock program to show its functionality, but verify that first).

8 After you’re done making your project and it compiles successfully, go to back to the Assignments tab and click on Pin Planner. A window similar to this should pop up. At the bottom should be the pin names for the project in the left-most column and the next column shows whether they are input or output pins. The corresponding input or output pin’s FPGA pin should be entered under the location column. HINTS: Remember to hit enter after entering each pin number. You cannot have duplicate pin numbers and you cannot clear location. Quartus will yell at you. Be careful when entering the pin numbers. If you make a mistake, find an unused pin for an LED or switch and swap the pin number where the mistake was made. DO NOT USE A RANDOM PIN NUMBER. Make sure you know what the pin number is going to. If not, you could break the FPGA.

9 The PIN numbers are in the tables are below (pages 32-42 of the DE1 Manual).

10 HINTS: The push keys (KEY0-3) are active low. Add an inverter right after the input pin so that when the key is pushed, it generates a ‘1’. The Seven-Segment displays are also active low. Use the seven segment driver in Quartus with RBIN, BIN, LT pulled high. There are two ways to program the DE1 board: JTAG and Active Serial Programming. JTAG – Useful for testing the program. Only saves the program to flash memory, so once the board is powered off, the program is erased from the board. Active Serial Programming – Loads the program onto the board. More time consuming process. Do this with the final version of the project so that it can be presented to the class.

11 To program the DE1 board, connect the board to power and the USB to the computer. Power on the board. Then go to Tools and find Programmer. If No Hardware is shown, go to Hardware setup. Change it from No Hardware to USB-Blaster [USB-0] and hit close.

12 The default setting is JTAG programming
The default setting is JTAG programming. To program it this way, hit Start. The progress bar should go green (as shown). Your program is now on the board.

13 If you want to load the program to the board, go to Mode and select Active Serial Programming. Click Yes on the pop-up menu.

14 Click on Add File… Select the output_files folder and find the file that ends in .pof. Select it.

15 Check Program/Configure.
IMPORTANT: Before pressing Start, turn the DE1 board off. Locate switch SW12 and toggle it from RUN to PROG. Power the board back on. Hit Start and wait for the progress bar to go green. Toggle SW12 from PROG to RUN. The program should be saved on the board. Remember to turn the board off before unplugging it from power.


Download ppt "The first change to your project files that is needed is to change the device to the correct FPGA. This is done by going to the Assignments tab on the."

Similar presentations


Ads by Google