QUARTUS II GUIDE - Heriot-Watt Universityhome.eps.hw.ac.uk/~xw66/B33DV2/quartusII_intro.pdf ·...

18
QUARTUS II GUIDE QuartusII.doc 25/02/2005 Page 1 1 Start Icon ............................................................................................................................ 2 1.1 The Quartus II Screen ................................................................................................. 2 2 Project creation ................................................................................................................... 2 3 Schematic entry .................................................................................................................. 5 3.1 Create new drawing .................................................................................................... 5 3.2 Symbol selection ......................................................................................................... 7 3.3 Placement of an AND gate .......................................................................................... 8 3.4 Deleting a symbol ....................................................................................................... 8 3.5 Moving a symbol ........................................................................................................ 9 3.6 Selecting a group of symbols....................................................................................... 9 3.7 Drawing wires ........................................................................................................... 10 3.8 Adjusting a line ......................................................................................................... 11 3.9 Adding input/output points ........................................................................................ 12 3.10 Using the zoom tool .................................................................................................. 13 3.11 Saving files ............................................................................................................... 13 3.12 Closing a project ....................................................................................................... 14 3.13 Opening a project ...................................................................................................... 14 4 System compilation .......................................................................................................... 15 5 System Simulation ............................................................................................................ 17

Transcript of QUARTUS II GUIDE - Heriot-Watt Universityhome.eps.hw.ac.uk/~xw66/B33DV2/quartusII_intro.pdf ·...

Page 1: QUARTUS II GUIDE - Heriot-Watt Universityhome.eps.hw.ac.uk/~xw66/B33DV2/quartusII_intro.pdf · QUARTUS II GUIDE QuartusII.doc 25/02/2005 Page 15 4 System compilation The designed

QUARTUS II GUIDE

QuartusII.doc 25/02/2005 Page 1

1 Start Icon ............................................................................................................................ 2

1.1 The Quartus II Screen ................................................................................................. 2 2 Project creation................................................................................................................... 2 3 Schematic entry .................................................................................................................. 5

3.1 Create new drawing .................................................................................................... 5 3.2 Symbol selection......................................................................................................... 7 3.3 Placement of an AND gate .......................................................................................... 8 3.4 Deleting a symbol ....................................................................................................... 8 3.5 Moving a symbol ........................................................................................................ 9 3.6 Selecting a group of symbols....................................................................................... 9 3.7 Drawing wires........................................................................................................... 10 3.8 Adjusting a line......................................................................................................... 11 3.9 Adding input/output points........................................................................................ 12 3.10 Using the zoom tool .................................................................................................. 13 3.11 Saving files ............................................................................................................... 13 3.12 Closing a project ....................................................................................................... 14 3.13 Opening a project...................................................................................................... 14

4 System compilation .......................................................................................................... 15 5 System Simulation............................................................................................................ 17

Page 2: QUARTUS II GUIDE - Heriot-Watt Universityhome.eps.hw.ac.uk/~xw66/B33DV2/quartusII_intro.pdf · QUARTUS II GUIDE QuartusII.doc 25/02/2005 Page 15 4 System compilation The designed

QUARTUS II GUIDE

QuartusII.doc 25/02/2005 Page 2

1 Start Icon

1.1 The Quartus II Screen

2 Project creation Select ������������ ��� from ���� menu

��������

�� ����

� ���� �

� ��� ��� ���� �

� �������

Click the � �����������. check box to disable this dialogue box from appearing in future

Page 3: QUARTUS II GUIDE - Heriot-Watt Universityhome.eps.hw.ac.uk/~xw66/B33DV2/quartusII_intro.pdf · QUARTUS II GUIDE QuartusII.doc 25/02/2005 Page 15 4 System compilation The designed

QUARTUS II GUIDE

QuartusII.doc 25/02/2005 Page 3

For simple projects it is unlikely that you will need to add files to the project. Click the button to continue.

Quartus has all the features that you are likely to need, therefore click the button to continue.

� Choose a fresh directory for each Quartus project

� Provide suitable name

� continue

Page 4: QUARTUS II GUIDE - Heriot-Watt Universityhome.eps.hw.ac.uk/~xw66/B33DV2/quartusII_intro.pdf · QUARTUS II GUIDE QuartusII.doc 25/02/2005 Page 15 4 System compilation The designed

QUARTUS II GUIDE

QuartusII.doc 25/02/2005 Page 4

For simple projects, Quartus II contains all the necessary EDA (Electronic Design Automation) tools for design and implementation of Altera FPGA based systems.

Click the button to continue.

The two families of devices used in the department are

• Cyclone • MAX7000S

Click the button to continue. The devices used are : • Cyclone o EP1C20F324C7

� 324 pins � 7nS gate delay � 20,000 flip-flop equivalent � 256Kbits RAM � Design of complex systems

• MAX7000S o EPM7128SLC84-15

� 84 pins � 15nS gate delay � 128 flip-flop equivalent � Simple logic replacement

Click the button to continue.

� Select target family of devices

� Allow user to select a particular device.

EP1C20F324C7

Target list

Page 5: QUARTUS II GUIDE - Heriot-Watt Universityhome.eps.hw.ac.uk/~xw66/B33DV2/quartusII_intro.pdf · QUARTUS II GUIDE QuartusII.doc 25/02/2005 Page 15 4 System compilation The designed

QUARTUS II GUIDE

QuartusII.doc 25/02/2005 Page 5

Quartus finishes the ������������ ��� with a summary of your responses.

Click the button to complete wizard.

3 Schematic entry

3.1 Create new drawing

Create a new design file by clicking either the new file icon ( ) or the ����������� menu item.

For schematic entry (i.e. diagrams using logic symbols) choose the ������������� ����� ������ �� ��� ���������entry. The AHDL, Verilog, and VHDL allow the designer to describe the design in a computer language format.

� Choose

� continue

Page 6: QUARTUS II GUIDE - Heriot-Watt Universityhome.eps.hw.ac.uk/~xw66/B33DV2/quartusII_intro.pdf · QUARTUS II GUIDE QuartusII.doc 25/02/2005 Page 15 4 System compilation The designed

QUARTUS II GUIDE

QuartusII.doc 25/02/2005 Page 6

The main work area now looks as follows The main drawing tools are

Drawing area

Project files

Only one in this simple

project.

Drawing tools

Selection and smart drawing tool Text tool

Symbol tool Block tool

Orthogonal conduit tool Orthogonal bus tool

Wire drawing tool (Orthogonal node tool)

Use rubberbanding Use partial line selection

Full screen

Zoom tool

Find tool

Temporary file � ����� �! is created

Page 7: QUARTUS II GUIDE - Heriot-Watt Universityhome.eps.hw.ac.uk/~xw66/B33DV2/quartusII_intro.pdf · QUARTUS II GUIDE QuartusII.doc 25/02/2005 Page 15 4 System compilation The designed

QUARTUS II GUIDE

QuartusII.doc 25/02/2005 Page 7

3.2 Symbol selection

Left click the symbol tool button to open the logic symbol listing.

Primitives Description Notes buffer • Specialised buffer functions

logic • ���, ����, ��, ��� and ��, symbols.

• Symbols with various numbers of inputs

Standard logic symbols

other • Ground and Vcc points. • Schematic title area.

pin • Input • Output • Bidirectional

These can be connected to real input/output device pins

storage • D-type, JK, SR, Toggle, latch flip-flops

Full range of flipflops

Click the symbol to get a list

Display area for selected

components

Symbol list

Page 8: QUARTUS II GUIDE - Heriot-Watt Universityhome.eps.hw.ac.uk/~xw66/B33DV2/quartusII_intro.pdf · QUARTUS II GUIDE QuartusII.doc 25/02/2005 Page 15 4 System compilation The designed

QUARTUS II GUIDE

QuartusII.doc 25/02/2005 Page 8

3.3 Placement of an AND gate

A quick way to bring up the symbol selection window is to double left click mouse when pointer is over the drawing area

3.4 Deleting a symbol First, select the appropriate symbol.

� Select ��� gate � Display area shows symbol selected

� check this box if you will be placing more than one of the symbols on your drawing

� Click to insert into drawing

Left click mouse on your drawing area to place the symbol

If using ��"���������� ��� • left click to continue to place the

required set of symbols

• Right click and ���� to terminate process

� To select, move mouse over symbol and left click mouse

� Press DEL key on keyboard

Page 9: QUARTUS II GUIDE - Heriot-Watt Universityhome.eps.hw.ac.uk/~xw66/B33DV2/quartusII_intro.pdf · QUARTUS II GUIDE QuartusII.doc 25/02/2005 Page 15 4 System compilation The designed

QUARTUS II GUIDE

QuartusII.doc 25/02/2005 Page 9

3.5 Moving a symbol If you wish to move symbols while maintaining all is connections then ensure that the

system is set to �# �� ������ mode

Click button.

3.6 Selecting a group of symbols A group of symbols can be selected by enclosing them in a bounding box. Resulting screen display Selected group can be either moved or deleted.

� Select symbol by moving mouse over symbol and clicking left mouse button

$$����" � #���"�������

� move object to required position then release button.

� Move mouse to top corner of your bounded box and press left mouse button

� Drag box to lower left cornet of box and release mouse button.

Page 10: QUARTUS II GUIDE - Heriot-Watt Universityhome.eps.hw.ac.uk/~xw66/B33DV2/quartusII_intro.pdf · QUARTUS II GUIDE QuartusII.doc 25/02/2005 Page 15 4 System compilation The designed

QUARTUS II GUIDE

QuartusII.doc 25/02/2005 Page 10

3.7 Drawing wires

Left click button to set into wire drawing mode. To draw a wire between two points If two points are not in line then QuartusII will include right angle junctions in the connection.

In normal symbol layout mode, it is possible to draw single wires. If you move the mouse cursor to a symbol terminal point, then the wire drawing cursor ( ) is activated. Draw line as normal.

A junction between two lines is shown by a dot. Create a wire junction by drawing the wire to the line. A junction will be created automatically.

Wire drawing cursor

Symbol wiring points

� Move wire drawing cursor to start point

� Press and continue to press left mouse button

� Move cursor to end point and release mouse button

To exit wire drawing mode click the selection

button .

junction

crossover

Page 11: QUARTUS II GUIDE - Heriot-Watt Universityhome.eps.hw.ac.uk/~xw66/B33DV2/quartusII_intro.pdf · QUARTUS II GUIDE QuartusII.doc 25/02/2005 Page 15 4 System compilation The designed

QUARTUS II GUIDE

QuartusII.doc 25/02/2005 Page 11

3.8 Adjusting a line QuartusII drawn wires are not always take routes you would prefer. The lines can be moved and edited in a number of ways. 1.

If �# �� ������ has been enabled (use icon), then moving the symbols will also move the attached wires.

2. Select segment of line to be moved by placing mouse on line and clicking left mouse button.

3. Delete line and redraw.

• Select line (as above), then press � �� key.

Line with 3 segments

� Select segment

Indicates end of segment

� place mouse over selected line and press left mouse button. Keep button pressed and drag line to required position.

Release button when happy with position.

Page 12: QUARTUS II GUIDE - Heriot-Watt Universityhome.eps.hw.ac.uk/~xw66/B33DV2/quartusII_intro.pdf · QUARTUS II GUIDE QuartusII.doc 25/02/2005 Page 15 4 System compilation The designed

QUARTUS II GUIDE

QuartusII.doc 25/02/2005 Page 12

3.9 Adding input/output points The input output points to circuits need to be marked for a number of reasons

1. input points for the injection of signals (for test)

2. output points to monitor results from the injection of test signals

3. to provide points which can be connected to real chip pins when the design is transferred to a physical FPGA device.

Input/output pins are placed on your drawing in the same way as logic components A small wired circuit with 3 inputs and 1 output.

Input pin

3 input pins

1 output pin

� Double left click to bring up pin name edit window

Page 13: QUARTUS II GUIDE - Heriot-Watt Universityhome.eps.hw.ac.uk/~xw66/B33DV2/quartusII_intro.pdf · QUARTUS II GUIDE QuartusII.doc 25/02/2005 Page 15 4 System compilation The designed

QUARTUS II GUIDE

QuartusII.doc 25/02/2005 Page 13

3.10 Using the zoom tool

The zoom tool ( ) allows you to expand and contract your view of the drawing. � Left click zoom tool icon.

� Press selection tool ( ) to exit zoom mode.

3.11 Saving files On a regular basis use the �������� �%���or the���������� �%�������

menu options or the icon to save your design to disk. First execution with a new project will ask for a filename. The default name is often adequate for simple projects.

� Specify suitable signal name

� continue

RIGHT button Zoom OUT, centred on position of mouse

LEFT button Zoom IN, centred on position of mouse

mouse

Page 14: QUARTUS II GUIDE - Heriot-Watt Universityhome.eps.hw.ac.uk/~xw66/B33DV2/quartusII_intro.pdf · QUARTUS II GUIDE QuartusII.doc 25/02/2005 Page 15 4 System compilation The designed

QUARTUS II GUIDE

QuartusII.doc 25/02/2005 Page 14

3.12 Closing a project When you have finished your work it is necessary to close the project. Use the �������& ���������� menu item.

3.13 Opening a project Use one of the following methods � Select menu option ���������' "��������( to access file pick dialogue. You will

be looking for a ))))�*"! file qpf = +uartus �roject �ile

� Select menu option ���������, ����������

and left click on the appropriate entry.

Page 15: QUARTUS II GUIDE - Heriot-Watt Universityhome.eps.hw.ac.uk/~xw66/B33DV2/quartusII_intro.pdf · QUARTUS II GUIDE QuartusII.doc 25/02/2005 Page 15 4 System compilation The designed

QUARTUS II GUIDE

QuartusII.doc 25/02/2005 Page 15

4 System compilation The designed system must now be checked, which involves the use of the compiler tool.

or by left clicking the compiler tool icon ( ) on the top icon bar. The following progress window appears Pressing start gives an indication of how the compilation is progressing.

Invoke from the tools menu

OK Problems!

Page 16: QUARTUS II GUIDE - Heriot-Watt Universityhome.eps.hw.ac.uk/~xw66/B33DV2/quartusII_intro.pdf · QUARTUS II GUIDE QuartusII.doc 25/02/2005 Page 15 4 System compilation The designed

QUARTUS II GUIDE

QuartusII.doc 25/02/2005 Page 16

A circuit with a wire missing Gives this output in the lower information window

The concept of fault finding is central to many aspects of engineering. In general it is not easy, and requires the application of logical reasoning to the problem. Read the error messages carefully as these are the only pieces of evidence that you have to target the problem.

Missing wire

Error caused by missing wire

Page 17: QUARTUS II GUIDE - Heriot-Watt Universityhome.eps.hw.ac.uk/~xw66/B33DV2/quartusII_intro.pdf · QUARTUS II GUIDE QuartusII.doc 25/02/2005 Page 15 4 System compilation The designed

QUARTUS II GUIDE

QuartusII.doc 25/02/2005 Page 17

5 System Simulation Start simulator tool with menu item -�������� �� #�����-���.

� Set Functional mode

� open waveform editor window

� start simulator

� Right click mouse in this area to invoke selection mode

� select .�������������� #�( option

Page 18: QUARTUS II GUIDE - Heriot-Watt Universityhome.eps.hw.ac.uk/~xw66/B33DV2/quartusII_intro.pdf · QUARTUS II GUIDE QuartusII.doc 25/02/2005 Page 15 4 System compilation The designed

QUARTUS II GUIDE

QuartusII.doc 25/02/2005 Page 18

� Click here

� set filer to Pins: all

request list of nodes

Input/output nodes

Example circuit

3 inputs 1 output