0% found this document useful (0 votes)
281 views14 pages

Lab 4 Introduction To Quartus II: Objective

1. This lab introduces students to the Quartus II software by having them create a project, add and compile design files, place components, wire the design, assign pins, compile and download the program to the DE2 development board to test a 4-bit counter design. 2. The tasks include creating a new project, adding a schematic file, placing 4 counter components and a D flip-flop, wiring the inputs and outputs, assigning pins to the board, compiling and downloading the program to the board to test the design. 3. Students will push two buttons on the board and observe the output LEDs to record the results in a timing diagram in their conclusion.

Uploaded by

Rabah Amidi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
281 views14 pages

Lab 4 Introduction To Quartus II: Objective

1. This lab introduces students to the Quartus II software by having them create a project, add and compile design files, place components, wire the design, assign pins, compile and download the program to the DE2 development board to test a 4-bit counter design. 2. The tasks include creating a new project, adding a schematic file, placing 4 counter components and a D flip-flop, wiring the inputs and outputs, assigning pins to the board, compiling and downloading the program to the board to test the design. 3. Students will push two buttons on the board and observe the output LEDs to record the results in a timing diagram in their conclusion.

Uploaded by

Rabah Amidi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 14

Lab 4 Introduction to Quartus II

Objective

This lab is designed to familiarize the student with many common aspects of the Quartus II
software through a complete design phase. The student will create a new project, create a new
schematic/block diagram file, compile the design, plan and manage I/O assignments and
program the design onto the Altera DE2 Development Board.

This lab consists of 7 tasks:


1. Create a New Project
2. Create, Add and Compile Design Files
3. Place Symbols/Components – Design Capture
4. Wire the Design
5. Assign Pins to the DE2 Board
6. Compile the Design
7. Download to the DE2 Board and Test the Design

Conclusion:

A paragraph or two detailing the difficulties experienced with the lab.


A demonstration of successful completion of the tutorial to the instructor complete with sign-
off.

1. Start the Quartus II Software.

Click on the above icon on your desktop or choose Quartus II 13.0 (64-bit) from the program
choice menu.

You should have a thumb-drive in one of the USB ports ready to create and store your program.
The following example shows the project saved on the D:\ folder using a thumb drive. When
starting the program, the first step is to set up the new project.

Lab 4 – Introduction to Quartus II 1


Choose “Create a New
Project”

In the New Project Wizard, the first page is the following – click Next.

At the following page, select your thumb drive and a folder (in this case /). Our file name
selected here is ‘Lab1’.

Lab 4 – Introduction to Quartus II 2


At this screen (page 2 of 5), click Next.

At this screen (page 3 of 5), choose the processor – EP4CE115F29C7. This is the number found
on the large processor chip labelled Cyclone IV on your prototype board.

If the name is not visible, it can be re-selected when the start-up is complete by clicking on the
processor and changing to the proper one. Then clock Next.

Lab 4 – Introduction to Quartus II 3


At this screen (page 4 of 5), click Next.

At this screen (page 5 of 5), click Finish.

Lab 4 – Introduction to Quartus II 4


2. Create, Add and Compile Design Files

Create a new Design File.


Select File -> New from Menu Bar
Select Block Diagram/Schematic File from the Design Files list and click ok.

The new white page with grid is your file workspace. This is where we place and connect
components.

Choose the symbol tool for selection


of components for your circuit:

Lab 4 – Introduction to Quartus II 5


First choose Symbol Tool -> Libraries -> Megafunctions -> Arithmetic -> lpm counter, click ok.

At this wizard, choose VHDL -> Next

Lab 4 – Introduction to Quartus II 6


On Page 3, set ‘q’ to 1 and ‘up only’, then Next.

Set ‘Plain Binary’ and check boxes ‘Carry In’ and ‘Carry Out’, then Next.

Click Next at this screen:

Lab 4 – Introduction to Quartus II 7


And again click Next:

At this screen, click Finish:

Lab 4 – Introduction to Quartus II 8


3. Place Symbols/Components – Design Capture

Place four total lpm symbols on the screen as shown below. Change the names as shown to
Cnt0, Cnt1, Cnt2 and Cnt3.

Choose a D Flip-Flop using the following:

At Symbol Tool -> Libraries -> Primitives -> Storage -> dff

Place the D Flip-Flop on the grid as shown below:

Choose inputs using the following:

At Symbol Tool -> Libraries -> Primitives -> Pin -> Input

Lab 4 – Introduction to Quartus II 9


Choose outputs using the following:

At Symbol Tool -> Libraries -> Primitives -> Pin -> Output
Change names for inputs and outputs as shown on the following two figures. Double click on
one of the input pins and change the name to SW[0] and the other to KEY[0]. Then for the
outputs, name the left output pin LEDG[0], then LEDG[1], and LEDG[2]. For the last output pin
after the D Flip Flop, name the output LEDR[0].

4. Wire the Design

Wire the devices per the following two figures:

Lab 4 – Introduction to Quartus II 10


5. Assign Pins to the DE2 Board

From the Assignments -> Pin Planner menu, enter the following pin locations. Once these
input and output pins are given names in the previous step, they appear on the Node Name list.
To confirm this list of names, refer to the eng.utoledo.edu/~wevans website and the file: DE-2
Pin Assignments.

The Pin Addresses


Added Here

6. Compile the Design

Lab 4 – Introduction to Quartus II 11


In this step, the program generated in the schematic capture steps is compiled. After successful
compilation, the program will be downloaded to the Quartus board.

The compile function is initiated one of two ways:

Processing -> Start Compilation or using the shortcut button below:

7. Download to the DE2 Board and Test the Design

This step follows after successful compilation. The board must be set properly and the
download will follow successfully.

The Compile Shortcut Button The Start Download Button

After the Programmer Screen is set as follows, select Start and the download begins. When
complete, the download window is shown as follows:

Lab 4 – Introduction to Quartus II 12


To Download, Press
Start

The board must be set per the following figure.

Programmer Cable Attached

Power Cable

Run-Program set to Run SW[0] KEY[0]

Lab 4 – Introduction to Quartus II 13


Push the button KEY0 several times with the SW0 switch down. Then switch SW0 up and again
push KEY0 several times. Record your results. Use a timing diagram in your conclusion.

Key0

LEDR0

LEDG0

LEDG1

LEDG2

LEDG3

Lab 4 – Introduction to Quartus II 14

You might also like