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

Document Type: Example Program
NI Supported: Yes
Publish Date: Nov 16, 2007


Feedback


Yes No

Related Categories

Related Links - Developer Zone

Related Links - Products and Services

Square Root Implementation in LabvIEW FPGA

0 ratings | 0.00 out of 5
Print

Downloads

Filename: lvsqrt.zip
Requirements: View

Filename: lvfpgasqrt.zip
Requirements: View

This example shows one method for calculating a square root in LabVIEW FPGA. The VI finds the closest integer to the actual square root value and the remainder (error). It accepts a 32 bit unsigned integer and takes 18 clock cycles to execute. A slightly simpler version is also included which returns the next lower integer to the actual square root value. This implementation does not use two multipliers as the full version does.

This implementation is based on the following published article:

AN FPGA IMPLEMENTATION OF A FIXED-POINT SQUARE ROOT OPERATION

K. Piromsopa, C. Aporntewan and P. Chongsatitvatana

Department of Computer Engineering
Chulalongkorn University
254 Phayathai Road PAtumwan Bangkok Thailand 10330
Phone: +66-2-218-6956, Fax +66-2-218-6955
E-Mail: g41kpr@cp.eng.chula.ac.th, u37cap@cp.eng.chula.ac.th, prabhas@chula.ac.th

Related Links:
AN FPGA IMPLEMENTATION OF A FIXED-POINT SQUARE ROOT OPERATION

Requirements


Filename: lvsqrt.zip

Software Requirements


Application Software: LabVIEW Full Development System 8.0
Toolkits and Add-Ons: LabVIEW FPGA Module 8.0
Language(s): LabVIEW

Hardware Requirements


Hardware Group: Reconfigurable I/O (RIO)
Hardware Model: PXI-7831R, PCI-7831R
Driver: NI-RIO 1.3

 
Filename: lvfpgasqrt.zip

Software Requirements


Application Software: LabVIEW Full Development System 7.1.1
Toolkits and Add-Ons: LabVIEW FPGA Module 1.1

Hardware Requirements


Hardware Group: CompactRIO, Reconfigurable I/O (RIO)
Hardware Model: PXI-7830R, PXI-7831R, PXI-7833R, PCI-7811R, PCI-7813R, PCI-7830R, PCI-7833R, PCIe-8254R, PXI-7811R, PXI-7813R, PCI-7831R
Driver: NI-RIO 1.3, NI-VISA 3.3

 
0 ratings | 0.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/).