Spline based function approximation for HDL synthesis

This is a suite of simple utilities that allow for efficient approximation of complex functions in a
696 Downloads
Updated 1 Sep 2016

View License

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.

Cite As

Sean Little (2024). Spline based function approximation for HDL synthesis (https://www.mathworks.com/matlabcentral/fileexchange/27738-spline-based-function-approximation-for-hdl-synthesis), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2010a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.1

Updated license

1.0.0.0