版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、Lesson 3FPGA Programming BasicsIntroductionDefining FPGA Logic with LabVIEWFPGA VI Development Process Developing the FPGA VIFront Panel CommunicationTesting with the EmulatorCompiling the FPGA VIA. IntroductionFPGA Layout and ComponentsHow FPGA WorksProgrammable interconnect switches and wires rout
2、e signals in an FPGA.Switches are known as Register Flip-Flops.Flip-Flops pass data on a rising edge of the clock.Compiled LabVIEW code produces a Look-up Table (LUT).LUT defines the interconnections between configurable logic blocks (CLBs).How FPGA Works (continued)Implements a VI that calculates a
3、 value for F from inputs A, B, C, and D where F = CD(A + B)Hardware ComparisonsMost important specification is number of logic slicesSlices help to represent the amount of logic that can implemented on a single FPGAWays to conserve FPGA space are covered in more detail in Lesson 8: FPGA Optimization
4、FPGA Family SpecificationsComponent Type1M Gate FPGA(PCI-7831R)3M Gate FPGA(PCI-7833R)Equivalent number of logic cells11,52032,256Number of logic slices 5,12014,336Available embedded RAM (bytes)81,920196,608B. Defining FPGA Logic with LabVIEWFPGA ModuleDo not have to learn VHDLTrue parallel executio
5、nDeterministicCompiling LabVIEW VIs to FPGA HardwareConvert the FPGA VI into executable codeFPGA Module compiles VIGraphical code translated to VHDL Xilinx ISE compiler creates circuit from VHDLCompiler optimizes the implementationA bitstream file resultsBitstream loads at run timeBitstream reloads
6、at power-upOn-board flash memoryController over PCI BusBenefits of FPGA Logic in LabVIEWFPGA provides:TimingTriggeringProcessingCustom I/OEach fixed I/O uses a portion of the FPGA logicThe PCI interface also uses a portion of the FPGA logicC. FPGA VI Development ProcessKeep in mindNo operating syste
7、m on the FPGADownload and run one top-level VI at a time FPGA can run independently of the hostFPGA can store dataEditing a VI in the FPGA Target activates the FPGA paletteInteger math and fixed-point mathD. Developing the FPGA VIFPGA is fast and reliableFPGA has limited space FPGART and/or PCTime c
8、ritical controlExtensive analysisAcquisitionFile I/OTiming in the FPGA User interfaceIn-line processingSupervisory controlTriggeringAdd a VI Under the FPGA TargetDemonstrationCreate an FPGA VI and explore the Functions palette supported under FPGA.E. Front Panel CommunicationFPGA Front PanelUse simp
9、le controls and indicatorsUse controls and indicators only when the value will be needed on the hostUse temporary controls and indicators for debuggingInteractive Front Panel CommunicationInteractive Front Panel Communication (continued)FPGA has no user interfaceMust communicate data from FPGA to ho
10、st PCRequires no additional programmingFront panel displays on host PCBlock diagram executes on FPGA as compiledCommunication layer shares all control and indicator valuesCannot use debugging tools when running FPGA VITest with Emulator first, or add indicators as probesF. Testing with the EmulatorC
11、ompilingfew minutes to several hoursVerify logic before compilingLabVIEW bit-accurate emulation modeExecutes logic on the Windows PCTraditional debugging tools are availableTwo kinds of emulationRandom data for inputsTarget hardware for I/OUsing the EmulatorRight-click the FPGA Target in the Project
12、 Explorer window and select Properties.Select General.Select an Emulator option.Click OK.Run the VI.*Set the Emulator to Off after testExercise 3-1: Creating a LabVIEW FPGA VICreate a VI that adds two numbers and runs a benchmark in parallel that determines how fast code is running.Run the VI in emu
13、lation mode and use debugging tools.G. Compiling the FPGA VIClick RunConverts graphical code to VHDLGenerates intermediate filesCompiling VI for FPGA Dialog Box Disconnect Disconnects from the Compile Server so that you can continue working in LabVIEWFollow instructions in the dialog box to reconnec
14、tLabVIEW FPGA Compile Server Dialog BoxToolsFPGA ModuleStart Local Compile Server to view previous compile reportsClick Compile ListSuccessful Compile ReportExercise 3-2: Compile a LabVIEW FPGA VICompile the application created in Exercise 3-1.SummaryQuiz1.The FPGA VI runs in an operating system on the FPGA processor.a.Trueb.False2.You must know VHDL programming to reconfigure the FPGA.a.Trueb.FalseSummaryQuiz3.The FPGA can achieve t
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 厂区消防通道专项清理实施方案
- 2026年民办教育法律法规题库(含答案)
- 2026版大学写作班干部竞选课件配套教案
- 2027届陕西省西安交大附中九上化学期末质量检测模拟试题含解析
- 绿色金融发展现状评估及其未来趋势预测研究
- 高二语文早晚读检测小纸条教师版(选必上册共12个 )
- 漏电保护器巡检手册
- 2027届江西省萍乡市安源区物理九年级第一学期期末考试模拟试题含解析
- 2027届山东省淄博市桓台县九上化学期中达标检测模拟试题含解析
- 四川省广安市武胜县2027届物理九年级第一学期期末调研模拟试题含解析
- 2026年泌尿外科出科试卷及答案
- 2026小学数学北师大版新教材培训:四至六年级教材解析
- AI原生数据平台研究报告(2026年)(2026.6)
- 2026年成都玉林紫荆初一入学数学分班考试真题含答案
- 工程预应力张拉与灌浆质量控制措施
- 2026人教版小学三年级下册数学期末综合试卷3套(打印版+答案解析)
- 一氧化二氮的理化性质与危险特性培训
- 2026年江苏省安全员C2证(土建安全员)考试题库及答案
- 注射用艾普拉唑钠-临床用药解读
- 上海市小升初英语单词表
- 《噪声敏感建筑物集中区域划分技术规范》编制说明
评论
0/150
提交评论