DAQ for MONOPIX prototype based on Basil framework.
- Install conda for python and needed packages:
curl https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh -o miniconda.sh
bash miniconda.sh -b -p $HOME/miniconda
export PATH=$HOME/miniconda/bin:$PATH
conda update --yes conda
conda install --yes numpy bitarray pytest pyyaml numba mock matplotlib scipy pytables progressbar
-
Install pySiLibUSB for USB support.
-
Download and install Basil for data acquisition and generic firmware modules (tested with v2.4.4):
git clone -b v2.4.12_hcmos https://github.com/SiLab-Bonn/basil
cd basil
python setup.py develop
cd ..
- Download and setup pixel_clusterizer
git clone https://github.com/SiLab-Bonn/pixel_clusterizer
cd pixel_clusterizer
python setup.py develop
- Download and setup monopix_daq
git clone https://github.com/SiLab-Bonn/monopix_daq.git
cd monopix_daq
python setup.py develop
- Optional: Download and setup cocotb for simulation:
git clone https://github.com/potentialventures/cocotb.git
export COCOTB=$(pwd)/cocotb
- Optional: Download and setup online_monitor to run the real-time monitors:
git clone https://github.com/SiLab-Bonn/online_monitor
cd online_monitor
python setup.py develop
-
For MIO board: NOTE: A compiled bit file for the MIO board is provided in "/path-to-monopix_daq/firmware/bit/monopix_mio.bit"
- Use Xilinx ISE to open the "/path-to-monopix_daq/firmware/ise/monopix.xise" project.
- In the "Synthesis Options" of the project, add too the "Verilog Include Directories" the following basil paths: "/path-to-basil/basil/firmware/modules" "/path-to-basil/basil/firmware/modules/utils"
- Generate the "monopix_mio.bit" file through the "Generate Programming File" command.
- Check that the correct path to the bit file is set in the "/path-to-monopix_daq/monopix_daq/monopix.yaml" file.
-
For MIO3 board: NOTE: There is not a compiled version of firmware for MIO3. In order to do generate, an additional working SiTCP library is also needed -It can be acquired here-.
- Use Vivado to open the "/path-to-monopix_daq/firmware/vivado/monopix_mio3.xpr" project.
- Add the SiTCP folder with libraries to "/path-to-monopix_daq/firmware/src/"
- In Vivado, select "Project Settings" and then clic on "Verilog Options". In the "Verilog Include Files Search Paths", add the following basil paths: "/path-to-basil/basil/firmware/modules" "/path-to-basil/basil/firmware/modules/utils" and "Apply"
- "Generate Bitstream" and flash the ".bit" file through JTAG to the FPGA, or flash a ".bin" file permanently if wanted.
- Ping to the corresponding IP address to check communication.
https://github.com/SiLab-Bonn/pyBAR/wiki/Step-by-step-Installation-Guide
TBD