Installing Libre-FDATool on Debian derivatives
Here we have some guidelines for installing Libre-FDATool and its dependences on Debian derivatives.
Installing Python
Install packages
Install Python from the distribution repositories:
Python 2.x*
sudo apt-get install python
Python 3.x*
sudo apt-get install python3
Build from sources
2013/08/21: The current production versions are Python 2.7.5 and Python 3.3.2.
For building Python, we will need additional packages, i.e.:
Debian forks*
sudo apt-get install zlib1g-dev
Then, create a workspace folder in your home folder and copy the sources on it. Open a terminal and jump into the workspace directory. Now we are ready to install build and install Python:
Python 2.x*
wget http://www.python.org/ftp/python/2.7.5/Python-2.7.5.tar.bz2
tar xvf Python-2.7.5.tar.bz2
cd Python-2.7.5
./configure
make -j3
make test
sudo make install
cd ..
Python 3.x*
wget http://www.python.org/ftp/python/3.3.2/Python-3.3.2.tar.bz2
tar xvf Python-3.3.2.tar.bz2
cd Python-3.3.2
./configure
make -j3
make test
sudo make install
cd ..
NOTE: you must install the required development packages for your distro until "config" stage is OK. This is valid for the python config commands too coming next
Installing NumPy
Install packages
Install Numpy from the distribution repositories:
Python 2.x*
sudo apt-get install python-numpy
Python 3.x*
sudo apt-get install python3-numpy
Build from sources
NumPy is a Mathematics engine for Python. It can be build using hardware acceleration --i.e ATLAS & other accelerated libraries.
Official Numpy Installation
Guide
numpy-1.7-1.tar.gz
We need some Python tools to build packages:
Python 2.x*
apt-get install python-d2to1 python-distutils-extra python-setuptools python-dev
Python 3.x*
apt-get install python3-d2to1 python3-distutils-extra python3-setuptools python3-dev
In our setup, we are going to use ATLAS, so we need to install the appropriated package. There are other dependencies too, i.e.:
apt-get install libatlas-base-dev libsuitesparse-dev gfortran swig
Now, we can configure build and install NumPy engine:
Python 2.x*
tar xfv numpy-1.7.1.tar.gz
cd numpy-1.7.1/
python2.7 setup.py config
python2.7 setup.py build
sudo python2.7 setup.py install
cd ..
Python3.x*
tar xfv numpy-1.7.1.tar.gz
cd numpy-1.7.1/
python3.3 setup.py config
python3.3 setup.py build
sudo python3.3 setup.py install
cd ..
Note*: If we don't want to use any accelerated library, the build command should be
BLAS=None LAPACK=None ATLAS=None python setup.py build
Installing Scypy
Install packages
Install Scipy from the distribution repositories:
Python 2.x*
sudo apt-get install python-sciy
Python 3.x*
sudo apt-get install python3-scipy
Build from sources
SciPy (pronounced “Sigh Pie”) is a Python-based ecosystem of open-source software for mathematics, science, and engineering.
SciPy project
site
scipy-0.12.0.tar.gz
Once the Numpy engine is operative, ScyPy can be built and installed:
Python 2.x*
tar xfv scipy-0.12.0.tar.gz
cd scipy-0.12.0/
python2.7 setup.py config
python2.7 setup.py build
sudo python2.7 setup.py install
cd ..
Python 3.x*
tar xfv scipy-0.12.0.tar.gz
cd numpy-0.12.0/
python3.3 setup.py config
python3.3 setup.py build
sudo python3.3 setup.py install
cd ..
Installing Matplotlib
Install packages
Install Matplotlib from the distribution repositories:
Python 2.x*
sudo apt-get install python-matplotlib
Python 3.x*
sudo apt-get install python3-matplotlib
Build from sources
Finally, our scientific install wouldn't be complete without a powerful plotting package.
Matplotlib official
site
matplotlib-1.3.0.tar.gz
We will need additional packages for building Matplotlib, i.e.:
sudo apt-get install tk tk-dev
sudo apt-get build-dep python-matplotlib
Once we are done, we can start with Matplotlib install:
Python 2.x*
tar xfv matplotlib-1.3.0.tar.gz
cd matplotlib-1.3.0/
python2.7 setup.py config
python2.7 setup.py build
sudo python2.7 setup.py install
cd ..
Python 3.x*
tar xfv matplotlib-1.3.0.tar.gz
cd matplotlib-1.3.0/
python3.3 setup.py config
python3.3 setup.py build
sudo python3.3 setup.py install
cd ..
Installing PyQt4 graphics
In order to run the graphical user interface, we need to install a the Qt graphic libraries and PyQT, their associated Python wrapper:
Python 2.x*
sudo apt-get install python-qt4
Python 3.x*
sudo apt-get install python3-pyqt4
Deploying the Icarus Verilog simulator
Install packages
NOTE: VHDL support in Icarus Verilog is not available yet on distribution repositories
Install Icarus Verilog from the distribution repositories:
sudo apt-get install iverilog
Build from sources
We are ready to get running the Icarus Verilog simulator
Icarus Verilog on GitHub
Icarus Verilog Installation
Guide
For getting & building IVerilog code, we will need additional packages, i.e.:
sudo apt-get install git autoconf gperf flex bison
Now we are ready to fetch and build the simulator:
git clone git://github.com/steveicarus/iverilog.git
cd iverilog
bash autoconf.sh
./configure
make
sudo make install
Deploying the GHDL simulator
Note: GHDL is not included now in Ubuntu as a package
To handle external app's on Ubuntu
apt-get install software-properties-common
add-apt-repository ppa:pgavin/ghdl
apt-get update
Now, install the GHDL package:
apt-get install ghdl
Installing a VCD Logic Analyzer
Install packages
Install GTKWave from the distribution repositories:
sudo apt-get install gtkwave
Build from sources
Even not a mandatory feature, having a graphical VCD analyzer installed in our toolchain is very useful when applied to hardware development.
First of all, we get the source code and copy it to the workspace:
We will need additional packages for building GTKWave, i.e.:
sudo apt-get install tcl tcl-dev tk tk-dev
Next we can install the package:
tar xfv gtkwave-3.3.47.tar.gz
./configure --disable-xz
make
sudo make install
Setting Libre-FDATool
Finally, we are ready to get Libre-FDATool code:
git clone git:https://www.ohwr.org/misc/libre-fdatool.git
cd libre-fdatool
Now, we can finally run Libre-FDATool:
Python 2.x*
python2 librefdatool.py
Python 3.x*
python3 librefdatool.py