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...
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...
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...
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 byGabriel Rivas on Jan 27 2011 Comments (2) |
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...
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 byJordan Rhee on Nov 30 2010 Comments (0) |
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. ...
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 bykadhiem Ayob on Mar 3 2012 Comments (0) |
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 bykadhiem Ayob on Oct 22 2011 Comments (0) |
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...