Fixed Point
An essential step in embedded software development, floating- to fixed-point conversion can be tedious, labor-intensive, and error-prone. System engineers frequently design algorithms in floating-point math, usually double-precision. This format represents the ideal algorithm behavior but takes...
Platforms: Matlab
License: Freeware | Size: 491.52 KB | Download (48): Converting Models from Floating Point to Fixed Point for Production Code Generation Download |
This Python module provides basic facilities for mathematics on fixed-point numbers. The number of fractional binary digits is tunable, allowing near-arbitrary precision arithmetic. Arithmetic & functions such as sqrt, exp, log, sin & cos are available.
Platforms: Windows, Mac, Linux
License: Freeware | Size: 18.27 KB | Download (44): Simple Python Fixed-Point Module Download |
Functions accompanying MATLAB News & Notes article "Fixed-point Signal Processing: Getting Started" by Darel A. Linebarger and Thomas A. Bryan, 2004. The functions include an FIR filter in M that can be run in fixed-point and floating-point.
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (46): Fixed-point signal processing in M Download |
The effect of fixed-point arithmetic in 16-bits PID controller C routineson the closed-loop precision is shown in this Simulink model.Two Simulink blocks that implement single and doubleprecision 16-bits PID C routines are generated with the LCT. The C sourcesare supplied for user modifications...
Platforms: Matlab
License: Freeware | Size: 20.48 KB | Download (54): 16-bits fixed-point PID implementations in C Download |
Demo files used in "Simulink Fixed-Point Tutorial R2008a (Japanese)".
Platforms: Matlab
License: Freeware | Size: 143.36 KB | Download (46): Simulink Fixed-Point Tutorial R2008a (Japanese) demo files Download |
There are challenges to face when programming in fixed-point code manually. Similarly, care is required in automatically generating fixed-point code. The developer must pay attention to design tradeoffs, namely: accuracy, efficiency, ROM, RAM, execution time, and readability.The MathWorks tools...
Platforms: Matlab
License: Freeware | Size: 1.5 MB | Download (46): Tips for Fixed-Point Modeling and Code Generation for Simulink 7 (R2008a) Download |
In this implementation of tracking a ball, we will track a live ball using Kalman filter. The tracking will switch to autorun mode when the sight of the ball is lost and Kalman will estimate the motion based on it's previous statesThere are two models. One model is a simple simulation of the...
Platforms: Matlab
License: Freeware | Size: 307.2 KB | Download (44): Kalman filter(fixed point version) Download |
This simulation illustrates the effects of the fixed-pointcomputations on the closed-loop precision for a 16-bits PID controller.The rounding mode, the point where the truncations take place and theformat width for the internal variable have a significant action on theclosed-loop permanent...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (47): 16-bits fixed-point PID controller Download |
DFT plays important role in DSP and used in wide variety of applications like correlation and spectral analysis. Understanding quantization errors in its computation is an important aspect of its design either for s/w or h/w implementation.A complex DFT of N points has N complex (4N real)...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (47): A 32 point FFT in embedded MATLAB using fixed point arithmetic Download |
This demo consists of a m-file script (fixed_point_atan2_using_cordic.m) and a m-file function (atan2_fixpt.m). The script contains a step-by-step explanation of how a four quadrant arctan can be calculated using a CORDIC (COordinate Rotation DIgital Computer) algorithm. The first part shows the...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (45): Fixed-Point ATAN2 using CORDIC Download |
Radix-4 FFT Test ScriptThis file runs three versions of a Radix-4 FFT written in MATLAB: radix4FFT1_Float.m computes a radix-4 FFT for floating point data types radix4FFT2_FixPt.m computes a fixed point radix-4 FFT (requires Fixed Point Toolbox) radix4FFT3_FixPtEML.m is an Embedded MATLAB version...
Platforms: Matlab
License: Freeware | Size: 61.44 KB | Download (48): Fixed Point Radix-4 FFT Download |
The attached zip file contains the slides, MATLAB M-files, and Simulink models that were used in the Fixed-Point Programming in MATLAB webinar from December 8, 2005 by Tom Bryan. The recorded webinar is linked off of the Fixed-Point Toolbox web page
Platforms: Matlab
License: Freeware | Size: 1.63 MB | Download (46): Fixed-Point Programming in MATLAB Webinar Materials Download |
Run demo file included.Double to fixed-point conversion with setting options like word length, signed/unsigned, automatic or manual scaling, guard bits...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (45): Fixed-point value Download |
The Falling U-Shaped Chain model simulates the dynamics of a discrete falling chain with total length L and n links. Each link is acted on by the force of gravity mg and by the link-link interaction. A freely falling object is released near the last link for comparison. The surprise is that the...
Platforms: Mac
License: Freeware | Size: 1.16 MB | Download (37): Falling U-Shaped Chain Model Download |
The user has to supply the fixed ending points before the script can be ran. Requirements: - MATLAB 7.6 or higher
Platforms: Windows, Mac, *nix, Matlab, BSD Solaris
License: Freeware | Download (62): Fixed Endpoints Open Traveling Salesman Problem - Genetic Algorithm Download |
Converts binary data of any format in a string to floating point decimal of a defined fraction size.The "intsize" input parameter defines the size of the exponent and sets the fixed point location in the binary number. se accompani for test program for test of this function
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (44): Binary to Decimal Download |
In this document I show how to verify the functionality of your DSP code via processor in-the-loop (PIL) co-simulation using Simulink?s UDP (user datagram protocol) blocks. These blocks are a new addition to the R2006b release of Simulink. This example is an extension of a previous example which...
Platforms: Matlab
License: Freeware | Size: 1.73 MB | Download (45): DSP Code Verification using UDP Download |
This tutorial starts with a simple conceptual model of an analog Phase-Locked Loop (PLL). Through elaboration it ends at a model of an all digital and fixed-point phase-locked loop. The final model can serve a starting point for code generation (both ANSI C or synthesizable HDL).The step-wise...
Platforms: Matlab
License: Freeware | Size: 399.36 KB | Download (46): Phase Locked Loop tutorial Download |
Contains three matrix completion algorithms and a demo script for running them. Also compares against other matrix completion algorithms - Singular Value Thresholding and Fixed Point Iteration.Solves the following three optimization problems:min rank(X) subject to ||y - M(X)||_2
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (44): Matrix Completion via Thresholding Download |
"Deskcalc" is a fully featured adding machine with the functions
you expect from a mechanical adding machine plus capabilities associated
with a Windows environment.
Features include a check-strip with comfortable text input per position,
correction possibilities (rectifying, adding and...
Platforms: Windows
License: Freeware | Size: 447 KB | Download (648): DeskCalc Download |