Code covered by the BSD License  

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from
Spline based function approximation for HDL synthesis

Be the first to rate this file! 0 Downloads (last 30 days) File Size: 20.9 KB File ID: #27738 Version: 1.0

Spline based function approximation for HDL synthesis



This is a suite of simple utilities that allow for efficient approximation of complex functions in a

| Watch this File

File Information

This tool accepts a function handle for a "well behaved" function. It then automatically finds the best position for the knots for cubic spline approximation based on the error tolerance specified by the user. Areas of the approximation region with more rapid changes require more closely placed knots.

Once the knots are positioned and the requested error tolerance is achieved, a computation is made to convert the coefficient tables to fixed point. The lookup operation is automatically coded in EML. Note that the best way to code the EML lookup operation is with a linear O(n) search, that will be further optimized by the synthesis tools.

To demonstrate the utility of these functions, run the "example.m" function that is included with this submission.

Required Products Fixed-Point Designer
Simulink Fixed Point
HDL Coder
MATLAB release MATLAB 7.10 (R2010a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.

Contact us