Giter Site home page Giter Site logo

hzappen / redpitaya Goto Github PK

View Code? Open in Web Editor NEW

This project forked from redpitaya/redpitaya

0.0 1.0 0.0 158.47 MB

Red Pitaya Ecosystem and Applications

License: Other

Makefile 1.65% TeX 0.17% C 42.62% C++ 1.11% Shell 2.53% Python 0.77% MATLAB 2.70% Mercury 0.01% Assembly 0.22% HTML 15.65% CSS 2.92% Objective-C 0.03% Tcl 4.22% JavaScript 11.69% Awk 0.03% SystemVerilog 10.57% Verilog 2.08% Jupyter Notebook 0.97% Lua 0.04%

redpitaya's Introduction

The previous README file is available here.

Work in progress documentation http://redpitaya.readthedocs.io/en/latest/index.html.

CALL FOR DEVELOPERS

Our internal development is shifting toward Jupyter. Jupyter with a set of Python modules provides a great tool for quick prototyping:

  1. UIO drivers written directly in Python,
  2. dynamic and interactive data visualization with bokeh,
  3. data storage and processing with numpy, scipy, ...
  4. source code management with Git and GitHub,
  5. and under development is support for device tree overlays and FPGA manager.

1. UIO (Userspace IO) drivers in Python

Drivers for FPGA memory mapped peripherals can be written directly in Python using mmap, ctypes and numpy. UIO description in a device tree in combination with UDEV rules provides named UIO devices as /dev/uio/name. Each device can be mapped into memory space and locked separately with mmap and fcntl. Register sets can be written using Python ctypes and/or numpy.dtpye. Python offers language features for the creation of elegant APIs.

2. Dynamic and interactive data visualization

As a base Matplotlib provides a vast array of features for data visualization. With the addition of bokeh (JavaScript based library) visualization become dynamic with good frame rates (up to about 16fps depending on data size). There are widget libraries available for making interactive applications.

3. Data storage and digital signal processing

Python makes it easy to store data into a file, since the application is also written in Python, it easy to access data from various processing changes not just a filtered output. A simple data logger for example can write data file onto the SD card, the file can be later loaded onto a PC using the Jupyter file browser. Python is interpreted in Jupyter, which makes it slow. Fortunately most data processing can be done on arrays with dedicated libraries. Numpy and Scipy provide processing functions for a great spectrum of applications. They are well optimized although not very fast on the ZYNQ ARM CPU. Python wrappers can be written around optimized DSP libraries like Ne10. Processing can also be offloaded to the FPGA, project PYNQ is making progress there.

4. Git and GitHub

Applications can be developed directly on the board and edited in the Jupyter editor. Git is now installed on SD card images. In combination with Github it provides a great tool for version control, publishing and distribution of Python applications and libraries. TODO: under Welcome instructions for Git SSH keys, maybe they should be created at first boot and displayed.

5. Device tree overlays and FPGA manager

Device tree overlays are already supported on our current 4.4 based kernel. We are working on a kernel 4.9 based version, which would also support FPGA manager. FPGA manager enables loading a FPGA bitstream with an overlay, which enables proper loading and unloading of kernel drivers (GPIO, LED, XADC, DMA, ...) needed by the overlay. Most of our problems are related to backward compatibility.

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.