Giter VIP home page Giter VIP logo

pynq_agc's Introduction

Automatic Gain Control with PYNQ

Introduction

We present a digital Automatic Gain Control (AGC) circuit with interactive control of its parameters. This is (currently!) a purely digital loopback system, so no extra hardware is required. We'll generate various input signals, explore some interesting effects of the AGC algorithm, and practice tweaking our parameters for best performance. The design of this AGC example will be explored, featuring various hardware arithmetic approximations for power estimation, logarithms and exponentiation.

AGC widget in action

Quick Start

This repository is compatible with PYNQ images v2.7 and greater for the Pynq-Z2, ZCU111, RFSoC2x2, and the RFSoC4x2.

Connect to the board with Jupyter Lab in a browser (not Jupyter Notebook) by using a web browser https://<IP address>:9090/lab.

Open a terminal in Jupyter Lab and run the following command:

root@pynq:/home/xilinx# pip3 install https://github.com/strath-sdr/pynq_agc/releases/download/v0.3.4/pynq_agc.tar.gz

The notebook should now be available in the rfsoc-studio/pynq_agc folder in your Jupyter Workspace.

Building from Source

Our hardware design is written in Clash and implemented with Vivado 2020.2.

On Linux the only prerequisite is having Vivado 2020.2 installed and in your PATH variable. We supply a nix shell which will handle the rest of the dependencies for you.

If you don't already have curl, install it with:

sdr@strath$ sudo apt install curl

If you don't already have the nix package manager, install it with:

sdr@strath$ curl -L https://nixos.org/nix/install | sh

Don't forget to follow the environment variable instructions given on your terminal after nix installation.

To rebuild our project, we just need to source our nix shell (this might take a while to run the first time --- it's gathering all of the software we need!) and run make.

sdr@strath$ nix-shell
sdr@strath$ make

The final pip-installable archive is found at ./pynq_agc.tar.gz

For Windows (untested), you will need to manually install Clash and all of the Haskell packages listed in shell.nix. Alternatively you can use the Linux instructions with the Windows Subsystem for Linux (WSL).

License

BSD 3-Clause

pynq_agc's People

Contributors

cramsay avatar dnorthcote avatar jogomojo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

pynq_agc's Issues

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.