Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Using FIFOs in FPGA VIs (FPGA Module)

LabVIEW FPGA Module 8.2 Help
August 2006

NI Part Number:
371599B-01

»View Product Info

Complete the following steps to read from or write to a FIFO in an FPGA VI.

  1. Create a new project or open an existing project.
  2. Add an FPGA target to the project.
  3. Right-click the FPGA target and select New»VI from the shortcut menu to add an FPGA VI to the project. You also can open an existing FPGA VI.
  4. Create an FPGA FIFO in the project or using the VI-Scoped FIFO Configuration node.
  5. Place a FIFO Read or FIFO Write function on the block diagram of the FPGA VI.

    FIFO Read



    FIFO Write

  6. Right-click the FIFO Read or FIFO Write function and select Select FIFO»x from the shortcut menu, where x is the name of the FPGA FIFO item in the Project Explorer window or the VI-scoped FIFO item on the block diagram. LabVIEW prepends VI:: to the name of VI-scoped FIFO items.

You also can click the FPGA FIFO item in the Project Explorer window and drag it onto the block diagram. If you click a target-scoped FIFO and drag it onto the block diagram, LabVIEW places a FIFO Read function, configured for the target-scoped FIFO, onto the block diagram. If you click a DMA FIFO and drag it onto the block diagram, LabVIEW places a FIFO Write function, configured for the DMA FIFO, on the block diagram.

Note  If you use the FIFO Read and FIFO Write functions in a single-cycle Timed Loop, you must wire a constant of zero to the Timeout parameter.

Refer to Reading DMA FIFOs from Host VIs and Writing to DMA FIFOs from Host VIs for more information about using DMA FIFOs in host VIs.


Resources


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit