Example Program Drafts

Showing results for 
Search instead for 
Did you mean: 

Simple DMA FIFO Example for FPGA

by SpaceHunter on ‎03-01-2010 06:57 PM

Overview

This example shows the simple functionality of a DMA FIFO used to send data to and from an FPGA target.

Introduction

This project is configured to work with a PCI 7831R on a Windows computer, but this same code will work on any FPGA target and a Windows or a Real-Time Host.This example simply generates random data and sends it down to the FPGA using a Host to Target scoped FIFO. The FPGA then sends it right back up to the Host VI using a Target to Host scoped FIFO. In a real application you would want to process data in between, or just use one FIFO for input OR output.

For more general info on using DMA FIFO's check out this tutorial: Using DMA FIFO to Develop High-Speed Data Acquistion Applications for Reconfigurable I/O Devices

Simple FIFO Project Window.png

SImple FIFO Windows Host.png

Simple FIFO FPGA VI.png

Steps to Implement or Execute Code

1. Open the attached project

2. Add your FPGA target to the project

3. Copy/Move all the items from the existing FPGA target to the target in step 2.

4. If you've added a RT Host target Copy/Move all the items from the existing Host to the new Host target.

Requirements

Software

LabVIEW 2009 or later

LabVIEW FPGA Module

Hardware

Any NI FPGA target

Additional Notes

You will need to recompile this VI for different Targets.

**This document has been updated to meet the current required format for the NI Code Exchange. For more details visit this discussion thread**

Comments
anonymus
N/A

Worked in simulation, but works incorrectly on FPGA

SpaceHunter
N/A

How did it behave incorrectly?

anonymus
N/A

On FPGA you will see the same number collected in sequence. Like 0,0,0 often at start but at other times as well. It is easier to see if you use a know sequence like 1,2,3,...

davidc10
N/A

Do you have an 8.6.1 version?

anonymus
N/A

I used 2009 SP1