GithubHelp home page GithubHelp logo

xinghuaman / decimate_bitstream_xmos Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lilltroll77/decimate_bitstream_xmos

0.0 0.0 0.0 58 KB

Efficient asm optimized 64x decimation of a 1 bit stream for XMOS XCORE-200

License: GNU General Public License v3.0

Makefile 5.99% C 1.97% XC 25.48% Assembly 22.35% C++ 2.33% Objective-C 41.88%

decimate_bitstream_xmos's Introduction

Realtime 64x decimation with a 768 tap anti-alias FIR-filter of a 20 MHz bit-stream for XMOS XCORE-200 using one thread

Efficient asm optimized 64x decimation of a 1 bit stream for XMOS XCORE-200. Intended for use with 20 MHz 1-bit Sigma-Delta ADC.

512 taps FIR anti-alias filter can run on a 71 MHz thread with a 19.2 MHz bitstream or a 768 taps FIR filter on a 100 MHz thread. If the thread was too late to fetch portdata, an exeption is raised.

The FIR filter does not need to be symetric, thus minimum phase filters is possible.

This example runs on the XMOS XCORE-200 explorer kit. Connect port 1N with port 1M with a jumper on tile 0.

The latency between the in instruction for reading data on the port and the out instruction of the deciamted result is just 30ns. (50 ns including the in and out instruction)

Realtime FIR calculation is done with a lookup table and interupt. This way 8 bits of input data can be convoltued and accumulated with 8 taps of the FIR filter in just 3 thread clock cycles.

decimate_bitstream_xmos's People

Contributors

lilltroll77 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.