没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
试读
225页
NI官方FPGA编程培训课程讲义,包含FPGA模块安装、使用、软件开发等内容,手把手教你FPGA编程开发。 Lesson 1 Introduction to LabVIEW FPGA Lesson 2 LabVIEW FPGA Basics Lesson 3 FPGA Programming Basics Lesson 4 FPGA I/O Lesson 5 Timing an FPGA VI Lesson 6 Data Sharing on FPGA Lesson 7 Single-Cycle Timed Loops Lesson 8 Basic Host Integration – PC/Real-Time Lesson 9 DMA Data Transfers Lesson 10 Modular Programming Appendix A Pipelining Appendix B Additional Information and Resources
资源推荐
资源详情
资源评论
LabVIEW
TM
FPGA
Course Manual
Course Software Version 2010
October 2010 Edition
Part Number 372510D-01
LabVIEW FPGA Course Manual
Copyright
© 2003–2010 National Instruments Corporation. All rights reserved.
Under the copyright laws, this publication may not be reproduced or transmitted in any form, electronic or mechanical, including
photocopying, recording, storing in an information retrieval system, or translating, in whole or in part, without the prior written consent
of National Instruments Corporation.
National Instruments respects the intellectual property of others, and we ask our users to do the same. NI software is protected by
copyright and other intellectual property laws. Where NI software may be used to reproduce software or other materials belonging to
others, you may use NI software only to reproduce materials that you may reproduce in accordance with the terms of any applicable
license or other legal restriction.
For components used in USI (Xerces C++, ICU, HDF5, b64, Stingray, and STLport), the following copyright stipulations apply. For a
listing of the conditions and disclaimers, refer to either the USICopyrights.chm or the Copyrights topic in your software.
Xerces C++. This product includes software that was developed by the Apache Software Foundation (
http://www.apache.org/).
Copyright 1999 The Apache Software Foundation. All rights reserved.
ICU. Copyright 1995–2010 International Business Machines Corporation and others. All rights reserved.
HDF5. NCSA HDF5 (Hierarchical Data Format 5) Software Library and Utilities
Copyright 1998, 1999, 2000, 2001, 2003 by the Board of Trustees of the University of Illinois. All rights reserved.
b64. Copyright © 2004–2006, Matthew Wilson and Synesis Software. All Rights Reserved.
Stingray. This software includes Stingray software developed by the Rogue Wave Software division of Quovadx, Inc.
Copyright 1995–2006, Quovadx, Inc. All Rights Reserved.
STLport. Copyright 1999–2003 Boris Fomitchev
Trademarks
LabVIEW, National Instruments, NI, ni.com, the National Instruments corporate logo, and the Eagle logo are trademarks of National
Instruments Corporation. Refer to the Trademark Information at ni.com/trademarks for other National Instruments trademarks.
Other product and company names mentioned herein are trademarks or trade names of their respective companies.
Members of the National Instruments Alliance Partner Program are business entities independent from National Instruments and have
no agency, partnership, or joint-venture relationship with National Instruments.
Patents
For patents covering National Instruments products/technology, refer to the appropriate location: Help»Patents in your software,
the patents.txt file on your media, or the National Instruments Patent Notice at ni.com/patents.
Support
Worldwide Technical Support and Product Information
ni.com
National Instruments Corporate Headquarters
11500 North Mopac Expressway Austin, Texas 78759-3504 USA Tel: 512 683 0100
Worldwide Offices
Australia 1800 300 800, Austria 43 662 457990-0, Belgium 32 (0) 2 757 0020, Brazil 55 11 3262 3599, Canada 800 433 3488,
China 86 21 5050 9800, Czech Republic 420 224 235 774, Denmark 45 45 76 26 00, Finland 358 (0) 9 725 72511,
France 01 57 66 24 24, Germany 49 89 7413130, India 91 80 41190000, Israel 972 3 6393737, Italy 39 02 41309277,
Japan 0120-527196, Korea 82 02 3451 3400, Lebanon 961 (0) 1 33 28 28, Malaysia 1800 887710, Mexico 01 800 010 0793,
Netherlands 31 (0) 348 433 466, New Zealand 0800 553 322, Norway 47 (0) 66 90 76 60, Poland 48 22 328 90 10,
Portugal 351 210 311 210, Russia 7 495 783 6851, Singapore 1800 226 5886, Slovenia 386 3 425 42 00,
South Africa 27 0 11 805 8197, Spain 34 91 640 0085, Sweden 46 (0) 8 587 895 00, Switzerland 41 56 2005151,
Taiwan 886 02 2377 2222, Thailand 662 278 6777, Turkey 90 212 279 3031, United Kingdom 44 (0) 1635 523545
For further support information, refer to the Additional Information and Resources appendix. To comment on National Instruments
documentation, refer to the National Instruments Web site at
ni.com/info and enter the Info Code feedback.
© National Instruments Corporation iii LabVIEW FPGA Course Manual
Contents
Student Guide
A. NI Certification .....................................................................................................vii
B. Course Description ...............................................................................................viii
C. What You Need to Get Started .............................................................................viii
D. Installing the Course Software..............................................................................ix
E. Course Goals.........................................................................................................ix
F. Course Conventions..............................................................................................x
Lesson 1
Introduction to LabVIEW FPGA
A. Introduction to FPGA Technology .......................................................................1-2
B. LabVIEW FPGA System......................................................................................1-3
C. Comparison with DAQmx ....................................................................................1-5
D. LabVIEW FPGA Applications .............................................................................1-8
Lesson 2
LabVIEW FPGA Basics
A. Evaluate System Requirements ............................................................................2-2
B. FPGA System Architectures.................................................................................2-3
C. Reconfigurable I/O (RIO) Platforms ....................................................................2-5
D. System Configuration ...........................................................................................2-7
E. Creating a LabVIEW FPGA Project.....................................................................2-13
Lesson 3
FPGA Programming Basics
A. Introduction...........................................................................................................3-2
B. Defining FPGA Logic in LabVIEW.....................................................................3-5
C. Developing the FPGA VI .....................................................................................3-7
D. Interactive Front Panel Communication ...............................................................3-11
E. Selecting an Execution Mode ...............................................................................3-12
F. Compiling the FPGA VI .......................................................................................3-14
G. Basic Optimizations..............................................................................................3-22
Lesson 4
FPGA I/O
A. Introduction...........................................................................................................4-2
B. Configuring FPGA I/O .........................................................................................4-3
C. I/O Types ..............................................................................................................4-5
D. Integer Math..........................................................................................................4-7
E. Fixed-Point Math ..................................................................................................4-8
F. CompactRIO .........................................................................................................4-20
G. Error Handling ......................................................................................................4-21
Contents
LabVIEW FPGA Course Manual iv ni.com
Lesson 5
Timing an FPGA VI
A. Timing Express VIs ..............................................................................................5-2
B. Implementing Loop Execution Rates ...................................................................5-3
C. Creating Delays Between Events..........................................................................5-7
D. Measuring Time Between Events .........................................................................5-8
E. Benchmarking Loop Periods ................................................................................5-9
Lesson 6
Data Sharing on FPGA
A. Parallel Loops .......................................................................................................6-2
B. Shared Resources..................................................................................................6-4
C. Variables ...............................................................................................................6-6
D. Memory Nodes .....................................................................................................6-9
E. Race Conditions....................................................................................................6-22
F. FPGA FIFOs .........................................................................................................6-28
G. Comparison of Data Sharing Methods..................................................................6-40
Lesson 7
Single-Cycle Timed Loops
A. Dataflow in FPGA ................................................................................................7-2
B. Single-Cycle Timed Loop.....................................................................................7-3
C. FPGA Clocks ........................................................................................................7-5
D. Single-Cycle Timed Loop Errors..........................................................................7-8
E. Optimizing Code within a While Loop.................................................................7-13
Lesson 8
Basic Host Integration – PC/Real-Time
A. Windows-Based Host Integration.........................................................................8-2
B. Developing a Windows-Based Host VI................................................................8-3
C. Introduction to Real-Time ....................................................................................8-7
D. Developing an RT Host VI ...................................................................................8-9
E. Developing a Windows-Based VI ........................................................................8-10
F. Prepare RT Host for Final Application.................................................................8-11
Lesson 9
DMA Data Transfers
A. LabVIEW FPGA and Host Communication ........................................................9-2
B. DMA FIFOs..........................................................................................................9-3
C. Lossless Data Transfer..........................................................................................9-13
D. Interleaving ...........................................................................................................9-16
Contents
© National Instruments Corporation v LabVIEW FPGA Course Manual
Lesson 10
Modular Programming
A. Review of SubVIs.................................................................................................10-2
B. Using SubVIs on the FPGA..................................................................................10-4
C. Reentrancy and Non-reentrancy in FPGA ............................................................10-4
D. Name Controls for Passing to subVIs...................................................................10-5
E. Testing FPGA SubVIs ..........................................................................................10-6
F. LabVIEW FPGA IPNet ........................................................................................10-6
Appendix A
Pipelining
A. Pipelining ..............................................................................................................A-2
Appendix B
Additional Information and Resources
剩余224页未读,继续阅读
maxtortest
- 粉丝: 0
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
- 3
前往页