1. Trang chủ
  2. » Công Nghệ Thông Tin

QUARTUS II INTRODUCTION USING VERILOG DESIGN

82 610 6
Tài liệu đã được kiểm tra trùng lặp

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Tiêu đề Quartus II Introduction Using Verilog Design
Tác giả Ngo Duc Hoang
Trường học Vietnam National University of Ho Chi Minh City
Chuyên ngành Integrated Circuit Design
Thể loại Thesis
Năm xuất bản 2007
Thành phố Ho Chi Minh City
Định dạng
Số trang 82
Dung lượng 4,07 MB

Các công cụ chuyển đổi và chỉnh sửa cho tài liệu này

Nội dung

Programming and Configuration The design circuit is implemented in a physical FPGA chip by programming the configuration switches that configure the LEs and establish the required wiri

Trang 1

QUARTUS II INTRODUCTION

USING VERILOG DESIGN

VIETNAM NATIONAL UNIVERSITY OF HOCHIMINH CITYINTEGRATED CIRCUIT DESIGN RESEARCH AND EDUCATION CENTER

(ICDREC)

FEB – 18 - 2007

By NGO DUC HOANG DEPUTY DIRECTOR

Trang 2

A TYPICAL FPGA CAD FLOW

Design Entry Synthesis Functional Simulation Design correct?

Timing Analysis and Simulation Timing requirements met?

Fitting (Place and Route)

Yes No

Yes No

Trang 3

QUARTUS II DEVELOPMENT

SYSTEM

Trang 5

Design Entry (2 of 2)

Trang 6

Design Entry by a schematic diagram

Trang 7

Design Entry by a hardware description

language

Trang 8

 The entered design is synthesized into a circuit that consists of the logic elements (LEs) provided in the FPGA chip.

 LE is the smallest unit of logic of Altera’s FPGA It’s compact and provides advanced features with efficient logic ultilization.

 This course doesn’t cover the architecture

of Altera’s FPGA

Trang 9

LE logic element

Trang 10

Fitting (placement and routing)

 The placement of the LEs defined in the netlist into the LEs in an actual FPGA chip, also choose routing wires in the chip to

make the required connections between specific LEs

Trang 11

Timing Analysis

 Analyze the propagation delays along the various paths in the fitted circuit

Trang 12

Timing Simulation

 The fitted circuit is tested to verify both its functional correctness and timing

Trang 13

Programming and Configuration

 The design circuit is implemented in a

physical FPGA chip by programming the configuration switches that configure the LEs and establish the required wiring

connections

Trang 14

Quartus II Project Management

+ simulated (functional or timing)

+ analyzed for timing

+ used to generate programming file

 Quartus II works on one project at a time and keeps all information for that project in a single directory (folder).

Trang 15

Quartus II Project –New Project

Select File > New Project Wizard

New Project Wizard help us create a new project and preliminary project settings, including the following:

• Project name and directory

• Name of the top-level design entity

• Project files and libraries

• Target device family and device

• EDA tool settings

You can change or add the settings of the project with the Settings

command (Assignment menu)

1

2

Trang 16

Quartus II Project – Directory, Name,

Top-Level Entity

• You can choose any directory name if you prefer If we have not yet created the directory of the project, Quartus II asking if it should create the desired directory.

• The project must have a name, which is usually the same as the top-level design entity

Trang 17

Quartus II Project – Add Files

To specify existing files should be

included in the project

Click Next if we do not have any existing files

3

Trang 18

Quartus II Project – Family and Device

Settings

To specify the type of device in which the designed circuit will be implemented In case of DE2 board, we choose:

• The device is EP2C35F672C6 which

is the FPGA used on

• The target device family is Cyclone II

Trang 19

Quartus II Project – EDA Tools

a commonly used term for CAD

software for electronic circuits.

4

Trang 20

Quartus II - Summary

5

Trang 21

Design Entry using Verilog – An

Trang 22

Design Entry using Verilog – Quartus II

Text Editor (1 of 6)

Select File > New to get the right figure, then choose

Verilog HDL File, and click OK

1

2

43

Trang 23

Design Entry using Verilog – Quartus II

specify a name for the file that will be created Select File

> Save As

Trang 24

Design Entry using Verilog – Quartus II

Text Editor (3 of 6)

In the box labeled Save

as type choose Verilog HDL File.

In the box labeled File name , type light

Put a checkmark in the box Add file to current project

Click Save

Trang 25

Design Entry using Verilog – Quartus II

Trang 26

Design Entry using Verilog – Quartus Text

Editor (5 of 6)

Trang 27

Design Entry using Verilog – Quartus II Text

Editor (6 of 6)

We can change the options of Text Editor of Quartus II by the settings in Tools >

Options > Text Editor

Trang 28

Design Entry using Verilog – Adding

editor, into the directory introductorial To add this file to the project, click on the light.v file and click

Trang 29

- Analyze the code

- Synthesize the circuit

- Generate an implementation of the circuit for the target chip.

Selecting Processing > Start Compilation

1

2

Trang 30

Compilation (2 of 2)

3

Trang 31

Pin Assignment

 Purpose: map the I/O signals of your design to the physical pins of selected FPGA.

 Pin assignments are made by:

• Assignment Editor (manual), or

• Import a pin assignment from a special file

format – comma separated value (CSV) format Note: All relevant pin assignments for the DE2 board are given in the file called

DE2_pin_assignments.csv in the CD-ROM or

on the Altera’s DE2 web pages.

Trang 32

Pin Assignment – Assignment Editor

Select Assignments >

Assignments Editor

We will use two toggle switches, labeled SW0 (PIN_N25) and

SW1(PIN_N26), to provide the external inputs, x1 and x2

We will connect the output

f to the green light-emitting diode labeled LEDG0

1

2

Trang 33

Pin Assignment – Assignment Editor

3 Double click on the

box into the column labeled Location The drop-down menu appear Scroll down and select

PIN_N25

1 Select Pin in Category

2 Double click on the entry <<new>> which

is highlighted in blue

in the column labeled

To The drop-down menu appear Click on x1

Trang 34

Pin Assignment – Assignment Editor

1 Use the same procedure to assign input x2 to

PIN_N26 and output f

to PIN_AE22.

2 Choose File

> Save

3 Recompile

Trang 35

Pin Assignments – Using DE2_pin_assignments.csv

We can download DE2_pin_assign ments.csv from

http://www.altera com/education/u niv/materials/boa rds/DE2_pin_assi gnments.csv

Trang 36

Pin Assignments – Using DE2_pin_assignments.csv

If we want to make the pin assignments for our circuit by importing DE2_pin_assignments.csv,

we would have to use the same names in

Trang 37

Pin Assignments – Using DE2_pin_assignments.csv

Chossing Assignments > Import Assignments

Type (or browse to find) the full path to the directory that hold

DE2_pin_assignments.csv Recompile

Trang 39

4

5

Trang 40

6

7

Trang 41

8

9 Setting the interval time for simulating

10 Enter 200ns in this dialog box

11

Trang 42

12

13 Setting displays the entire simulation range of

0 to 200ns in the waveform window

Trang 43

14

15 To include the input and output nodes

of the circuit to be simulated

16 This utilityhas a filter used to indicated whattype of nodesare to be found

Trang 44

17 Set the filter to Pins:all if we are interested

Trang 45

19 Click on the x1 signal to select it

20 Click the > sign to add it to

Selected Nodes box

Trang 46

23

2425

Trang 47

26

Trang 48

Simulating 27 Click on x1 to draw

the waveforms for x1

node

Trang 49

To setting x1 to 1 in the

time interval 100 to

200ns, you do as follows:

28 Press the mouse

at the start of the interval (100ns)

Trang 50

the logic 1 in the tool

bar at 150ns and drag it to33 Press the mouse

200ns.Then, choose the logic 1 in the tool

bar

Trang 51

Simulating – Functional Simulating

34

35

Trang 52

Simulating – Functional simulating

36

37

Trang 53

Simulating – Functional Simulation

39

40

Trang 54

Simulating – Functional Simulating

41

Trang 55

Simulating – Functional Simulating

42

43

Trang 56

Simulating – Functional Simulating

44

Trang 57

Simulating – Functional Simulating

If your report window doesnot show the entire time range(200ns) you do as follows:

45

46

Trang 58

Simulating – Functional Simulating

Check the value of f as the output of EX-OR withtwo inputs x1 and x2:

f=0 iff x1 = x2

Trang 59

Simulating - Timing Simulation

47

48

Trang 60

Simulating – Timing Simulation

49

50

51

Trang 61

Simulating – Timing Simulation

52

53

Trang 62

Simulating – Timing Simulation

54

Trang 63

Simulating – Timing Simulation

There is a delay of about 6ns in producing

a change in the signal f from the time

when the input signal x1 or x2 change

the their values The delay is due to the

propagation delay in the logic element and

the wires in the FPGA device

Trang 64

Programming and Configuring –

JTAG Programming

it will retain its configuration as long as the power remain turned on and lost

when the power turned off.

RUN/PROG switch of DE2 board into the RUN position

Trang 65

Programming and Configuring –

JTAG Programming

55

56

Trang 66

Programming and Configuring –

JTAG Programming

57

58 If not ready choose by default,select JTAG in theMode box

Trang 67

Programming and Configuring –

JTAG Programming

59

60

Trang 68

Programming and Configuring –

Trang 69

Programming and Configuring –

JTAG Programming

63 Click on the Programm/ConfigureCheck box

64

Trang 70

Programming and Configuring – AS

Programming

 AS = Active Serial

 If the FPGA is configured in AS mode, the configuration data has to be loaded into the configuration device, which is identified by the name EPCS16 Then, this data is loaded into the FPGA upon power up or

reconfiguration.

 In this mode, you must flip the RUN/PROG switch of DE2 board into the PROG position

Trang 71

Programming and Configuring –

AS Programming

65

66

Trang 72

Programming and Configuring – AS

Programming

67

68

Trang 73

Programming and Configuring – AS

Programming

6970

Trang 74

Programming and Configuring – AS

Programming

72

Trang 75

Programming and Configuring – AS

Programming

73 Recompile thedesigned circuit

Trang 76

Programming and Configuring – AS

Programming

74

Trang 77

Programming and Configuring –

JTAG Programming

75

76

Trang 78

Programming and Configuring – AS

Programming

77

78 If not ready choose by default,select Active SerialProgramming in theMode box

Trang 79

Programming and Configuring – AS

Programming

79 If you are changing the

Mode from the previously

JTAG mode, this box ask if you

want to clear all devices

Trang 80

Programming and Configuring – AS

Programming

80 If the configuration file

is not already listed in the

window, press Add File

81 Select the

file light.pof

83

Trang 81

Programming and Configuring – AS

Programming

84 Check mark

on the Program/

Configure check box

85 Press Start Note to flip

the RUN/PROG switch on

the DE2 board to the PROG

position

Trang 82

Some references

development environment that I am quickly

forgetting about any other PLD (programmable logic device) design tool."

Broadband Communications Sector, Motorola

programmable logic tool offerings, which allows us 

to focus our time on meeting customer needs, rather  than laboring over tool usage.“

Ngày đăng: 06/11/2013, 03:15

TỪ KHÓA LIÊN QUAN