Coder Social home page Coder Social logo

sonnyhcl / pynq-light-cube Goto Github PK

View Code? Open in Web Editor NEW
9.0 3.0 2.0 9.94 MB

Light Cube using PYNQ

Jupyter Notebook 98.60% Python 0.23% JavaScript 0.02% HTML 0.01% Tcl 0.44% C 0.03% Makefile 0.01% SystemVerilog 0.22% Verilog 0.45% Shell 0.01%
python3 pynq pynq-z1

pynq-light-cube's Introduction

PYNQ Light Cube

Brief Introduction

This repo shows how to write a controller in python to control peripherals connected to FPGA. We can write any peripheral drivers in FPGA to achieve real-time high speed signal processing. Thanks to PYNQ platform, we can easily wrapper the FPGA drivers into simple python code.

Birdview

framework

Get Started

Based on PYNQ Image 2.0

  1. Clone this repo on PYNQ board: git clone https://github.com/sonnyhcl/PYNQ-Light-Cube.git

  2. Run the setup bash script to setup lightcube: bash PYNQ-Light-Cube/setup.sh

  3. Open your browser with <pynq_ip>:9090 and type in xilinx as password.

  4. Get started using LightCube_GetStated notebook.

  5. Find LightCube_Playground notebook and run. Then you can turn into <pynq_ip>:8080 to view a webpage displaying real-time status of lightcube.

tips: <pynq_ip> is the ip of your pynq.

Repository Organisation

This repository is organized as follows.

  • hw contains constraints source file, custom ip, and tcl file to rebuild whole hardware design.

  • notebook contains lightcube controller in python, webserver resources, and notebook for playing.

  • overlay contains bit and tcl file of hardware design, and py to import overlay.

  • setup.sh helps setting up this lightcube package.

.
├── hw
│   ├── ip
│   ├── build_hw.tcl
│   └── srcs
├── image
│   └── framework.png
├── notebook
│   ├── lc_const.py
│   ├── lc_pynq.py
│   ├── LightCube_GetStarted.ipynb
│   ├── LightCube_Playground.ipynb
│   ├── static
│   └── templates
├── overlay
│   ├── __init__.py
│   ├── lightcube.bit
│   ├── lightcube.py
│   └── lightcube.tcl
├── README.md
└── setup.sh

Hardware Design Rebuilt

In order to rebuild this hardware design, you should clone this repo in a machine installed with Vivado 2016.1(only tested with Vivado 2016.1).

  1. Clone this repo: git clone https://github.com/sonnyhcl/PYNQ-Light-Cube.git

  2. Change your work directory: cd hw

  3. Make sure you have successfully configure you vivado environments: source build_hw.tcl

  4. Wait for a minute and then you can open the new-built projects.

Thanks to John Pan@pjh177787 for his hardware design.

Based On PYNQ

This project is based on PYNQ. You can find it → here.

pynq-light-cube's People

Contributors

sonnyhcl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

pynq-light-cube's Issues

Hi. I have a question.

I am interested in the PYNQ board and want to control the lightcube.

I want to ask a question about lightcube.

Does it matter what lightcube you can buy on eBay or AliExpress?

I have Led cube for Arduino but this doesn't support usb port.

I'm a low grade electronics student, so I'm sorry for the lack

I really want to answer your questions

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.