Sign in

username:

password:



Not a member?

Search code



Search tips


See Also

Embedded SystemsFPGAElectronics

DSP Code Sharing - Code Snippets - Code Examples

If you would you like to share a piece of DSP related code with the community, please click here.

By Programming Language:
All LanguagesASM | Bluespec SystemVerilog (BSV) | C | C++ | Matlab | Mixed C and ASM | Octave | Python | Scilab 

By Processor:
All ProcessorsARM | FPGA/ASIC (RTL) | Freescale DSP56F8xx | SHARC | TI C64x | TI C67x | TI F28x 

Sorted by:
Most Popular First | Highest Rated First | Most Recent First


NEW: Suggest a Snippet

Recursive FFT in Python Convertible to Verilog/VHDL [Python]

This code snippet is a recursive FFT implementation in Python.  This method is used to generate Verilog and VHDL with MyHDL/Python. Since the FFT is a very popular tool and there are many effici...

posted by Christopher Felton on Nov 3 2010
Comments (2) |

Computing CIC Filter Register Pruning Using Matlab [Matlab]

The following Matlab code computes the amount register bit-pruning described in Eugene's Hogenauer's famous paper on cascaded integrator-comb (CIC) decimation filters [1]. Although there are many de...

posted by Rick Lyons on Feb 15 2012
Comments (2) |

Halfband Filter Design with Python/Scipy [Python]

The following code snippet is an example how to design a half band filter.  Half band filters are interesting because every even coefficient, except 0, is 0.  Those multiplications do not ne...

posted by Christopher Felton on Feb 24 2012
Comments (2) |

Fractional Delay Line implementation [C]

This is a working implementation of a fractional delay line in C. It has been tested in the dsPIC audio kit, and in a PC running GNU/Linux operating system using the Open Sound System audio driver, b...

posted by Gabriel Rivas on Jan 27 2011
Comments (2) |

Signal fitting with subsample resolution [Matlab]

Determines sub-sample delay and scaling factor between two signals and resamples / scales one signal to match the other. For example in measurement automation, it is rather common to apply a test sig...

posted by Markus Nentwig on Aug 16 2011
Comments (0) |

Fixed-point Math Library [C]

We provide a set of macros and routines that perform fixed-point arithmetic, including basic arithmetic operators, conversions between fixed-point and floating point types, sines and cosines, exponent...

posted by Jordan Rhee on Nov 30 2010
Comments (0) |

Goertzel Filterbank to the Implementation of a Nonuniform DFT [Matlab]

This is an implementation of a Nonunifor Discrete Fourier Transform through a bank of filters of Goertzel.  Each goertzel filter is centered at the exactly frequencies of interest. ...

posted by Miguel De Jesus on Dec 14 2010
Comments (1) |

Circular Convolution [Matlab]

The output of convolving two finite streams builds up from zero and tails off towards zero. In some cases e.g. modelling or playing a test vector in actual hardware, this is undesirable and will lead...

posted by kadhiem Ayob on Mar 3 2012
Comments (0) |

Vector alignment for verification [Matlab]

In verification it is often useful to align the output of a module with some reference vector for comparison. This program does that automatically. It reads the two vectors, correlates them then align...

posted by kadhiem Ayob on Oct 22 2011
Comments (0) |

Narrow-band moving-average decimator, one addition/sample [Matlab]

Decimation for narrow-band signals by averaging It is usually not practical to implement filters with a bandwidth many orders of magnitude below the sampling rate. For example, an application might d...

posted by Markus Nentwig on Dec 31 2011
Comments (0) |
| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | next