hansfbaier / adat-usb2-audio-interface

FPGA based USB 2.0 high speed audio interface featuring multiple optical ADAT inputs and outputs
Other
141 stars 17 forks source link
audio fpga

ADAT USB Audio Interface

FPGA based USB 2.0 High Speed audio interface featuring multiple optical ADAT inputs and outputs

BlockDiagram

Status / current limitations

Hardware

The current board design is a custom development board, based on the QMTech core FPGA boards. Once the chip shortage is over, it is planned to move to a complete custom design, including the FPGA.

P1173938

image

How to build

  1. Download and install Intel Quartus Lite

  2. put the bin/ directory of Quartus into your PATH variable:

    export PATH=$PATH:/opt/intelFPGA_lite/21.1/quartus/bin/

    Of course you need to adjust this to the install directory and version of your particular installation.

  3. Set up python venv and install requirements:

    $ cd gateware/
    $ ./initialize-python-environment.sh
    $ cd ..
  4. Activate the venv and build

    $ source ./gateware/venv/bin/activate
    $ python3 gateware/adat_usb2_audio_interface.py --keep

This will create a directory named build/ and after a successful build will directly try to load the generated bitstream into the FPGA, if an USB-Blaster is connected. Or, you can flash the bitstream manually, by opening the Quartus GUI with:

quartus build/*.qpf

and then open the programmer application from there. Alternatively you could directly start the programmer with:

quartus_pgmw