Installation¶
Pyha requires Python >= 3.6 (default for Ubuntu 17.10 or Anaconda)
pip install pyha
Or from sources:
git clone --recursive https://github.com/gasparka/pyha
cd pyha
pip install -e .
pytest # optionally run the test suite
RTL simulation (optional)¶
Cocotb (included with Pyha) dependencies:
sudo apt-get install make gcc g++ swig
Install GHDL and add it to the path. On Ubuntu run:
sh /scripts/install_ghdl.sh
GATE simulation (optional)¶
In addition to the RTL simulation requirements, install the Intel Quartus with support for Cyclone IV and add INSTALL_DIR/quartus/bin
to path.
Compile Quartus libraries into GHDL_PATH/lib/ghdl/altera
by running:
python /scripts/compile_quartus_lib.py
# expected output: Compiling Altera Quartus libraries [FAILED]