Sunteți pe pagina 1din 6

Adamson University

College of Engineering
Electronics Engineering Department

Experiment 1:
Introduction to the Max II Starter Kit

SCORE

Members:
1. Salvador, John Jason O.
2. Solina, John Carlo
3. Tamisen, Daniel Joshua
4. Tiongson, Armin Jude S.
5. Velasco, Ferdinand Alerick B.
6. Virata, Jeremy Lorenzo T.

ENGR. DEAN MART ANCHETA


Instructor

I.

Objectives
This exercise aims to familiarize the student with the basic operation of
the MAX II
Starter Kit (M2SK) and the Quartus II 7.0 Web Edition Integrated Development
Environment (IDE). By the end of this exercise, the student should be able to
know the basic functionalities of the IDE and he/she will already be able to
design Verilog programs that can control thedifferent peripherals of the M2SK.

II.

Procedures
A. Creating A Project
1. Navigate to the Desktop and double-click the Quartus II 7.0 Web
Edition icon. This will open up the IDE.
2. Create a new project by selecting File> New project Wizard. This
will guide you in creating your project.
3. A dialog box will pop up, click Next.
4. Another dialog box will pop up asking for your working directory.
The working directory is where all of your projects will be saved.
Type C:\FPGAprojects\exercise1 for the working directory and
exercise1 for both the project name and the top-level design entity.
Click Next.
Note: The module name should exactly match the name of the toplevel design entity. It is case sensitive.
5. A warning dialog box will then appear stating that the directory you
typed does not exist. Click Yes. The directory that you have
specified will automatically be created for you. Click Next.
6. Select the device to be used from the drop down list. Click Max II.
7. From the list of devices, choose EPM1270TI44C5. Click Next.
8. Click Next.
9. Click Finish to complete the creation of the new project.
B. Creating a Program File
10.Select File > New or press <Ctrl+N> to create a new blank file. A
dialog box will pop up asking you the type of file you want to create
Select Verifying HDL file. Click OK.
11.Save (File > Save As) this new file as exercise 1.v Make sure
that the Add File to Project check box below is selected.
12.Type the following code on the exercise1.v panel (Ignore the
numbers o the left side).
13.Save your file by pressing <Ctrl+S> or select File > Save in the
main menu.

Figure 1.1 Syntax

C. Pin Assignments
14.Create a new Tcl script file. File > New. A dialog box will pop up
asking you the type of file ou want to create Select Other files >
Tcl Script. Click Ok.
15.Save (File > Save As) this new file as pin_assign.tcl.
16.Type the following code on the pin_assign.tcl panel (ignore the
numbers on the left side).
Note: The port names written in the Tcl script file should match
with the port names written in the program file.
17.Type source pin_assign.tcl in the TCL console box located inside
Quartu. Pre <Enter> to finish the pin assignments.

Figure 1.2 Pin Assignments

D. Program compilation
18. Perform compilation by seleting in the main menu. Processing >
Start Compilation or clicking on the icon as shown below to
compile your file.
19.Wait for the compilation to finish. When the compilation is
successful, click Ok.
E. Program Download
20.Check if the Max II Starter kit is turned on and connected to your
PC.
21. Open Programmer by selecting in the main menu Tools >
Programmer.
22.Select exercise1.pof and check Program/Configure. Click Start.
23.Once the program has finished downloading, you will be able to see
the results immediately on your board.
Pictures:

Figure 1.3 Compilation Process Completed

Figure 1.4 On and Off of LED


III.

Program w/tcl script (Pin Assignments)

S-ar putea să vă placă și