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

Multiply Accumulate (MAC) optimized for DSP48E slice using HDL node

1 ratings | 5.00 out of 5
Print

Overview

A Multiply Accumulate (MAC) operation is a common type of operation in FPGA that can be carried out in normal logic or optimized with the Virtex-5 FPGAs using a special slice called the DSP48E.

To specifically target a DSP48E slice, low-level HDL code needs to be used to show the compiler how to use this slice.

This example contains an HDL node setup to use the DSP48E slice. Furthermore, there is a VI for testing that uses a simulation VI to run the HDL node in emulation mode without a target or the need to compile.

Downloads

Filename: dsp48e_hdl_mac.zip
Requirements: View

Multiply Accumulate (MAC) optimized for DSP48E slice using HDL node

The Zip file, DSP48E_HDL_MAC.zip, contains a project and several VIs

Testbench.VI:  This VI will allow you to test the MAC functionality in emulation mode using the simulation VI.

MAC_SCTL (VI Debugging VI).VI:  This is the simulation VI that allows you to run the HDL node in emulation mode.  It is important to note, the VI is setup with feedback nodes for pipelined operation. 

 DSP48E.VI: This VI contains the actual HDL node and code designed to utilize the DSP48E slice.  This VI is all that is needed to run the HDL node on a Virtex-5 FPGA target.  The other VIs are for emulation.

Additional Resources 

Advantages of Xilinx Virtex-5 FPGAs

IPNet - LabVIEW FPGA Functions and Example IP

National Instruments R Series Intelligent Data Acquisition Devices

National Instruments LabVIEW FPGA Module

 

Requirements


Filename: dsp48e_hdl_mac.zip

Software Requirements


Application Software: LabVIEW Professional Development System 8.5.1
Toolkits and Add-Ons: LabVIEW Real-Time Module 8.5.1, LabVIEW FPGA Module 8.5.1

Hardware Requirements


Hardware Group: Reconfigurable I/O (RIO)
Hardware Model: PXI-7841R, PXI-7852R, PXI-7851R, PXI-7842R
Driver: NI-RIO 2.4

 
1 ratings | 5.00 out of 5
Print

Reader Comments | Submit a comment »

 

Legal
This example program (this "program") was developed by a National Instruments ("NI") Applications Engineer. Although technical support of this program may be made available by National Instruments, this program may not be completely tested and verified, and NI does not guarantee its quality in any way or that NI will continue to support this program with each new revision of related products and drivers. THIS EXAMPLE PROGRAM IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND AND SUBJECT TO CERTAIN RESTRICTIONS AS MORE SPECIFICALLY SET FORTH IN NI.COM'S TERMS OF USE (http://ni.com/legal/termsofuse/unitedstates/us/).