




版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報或認(rèn)領(lǐng)
文檔簡介
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. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 二零二五年度解除雙方影視制作合作合同
- 2025年度科幻電影總導(dǎo)演專業(yè)聘用合同
- 二零二五年度電子商務(wù)平臺軟件使用及推廣許可協(xié)議
- 2025年度生態(tài)果園產(chǎn)權(quán)及種植技術(shù)引進(jìn)合同
- 2025年度紡織品普通采購合同書
- 二零二五年度醫(yī)療健康行業(yè)業(yè)務(wù)員委托合同
- 二零二五年度手農(nóng)機售后服務(wù)與技術(shù)支持合同
- 2025年度環(huán)保項目投資欠款付款協(xié)商協(xié)議書
- 二零二五年度民間借貸合同-跨境電商供應(yīng)鏈融資
- 二零二五年度員工股權(quán)激勵與股權(quán)鎖定期協(xié)議
- 托物言志寫詩 知行合一做人
- 化工分離過程1緒論第1講ppt課件精選
- 陶板幕墻施工方法
- 設(shè)備管理培訓(xùn)教材
- 財務(wù)報表分析財務(wù)報表分析課件
- T∕CCCMHPIE 1.2-2016 植物提取物 檳榔多糖多酚
- 局域網(wǎng)規(guī)劃設(shè)計_畢業(yè)論文
- 脛骨平臺骨折(課堂PPT)
- 冷室壓鑄機電腦操作控制部分操作說明
- 中考復(fù)習(xí)復(fù)分解反應(yīng)類型方程式書寫訓(xùn)練題(無答案)
- 病理學(xué)課程標(biāo)準(zhǔn)
評論
0/150
提交評論