Skip to content

Trigger Interface for PCI-express

Notifications You must be signed in to change notification settings

JeffersonLab/TIpcie

Repository files navigation

PCIExpress Pipeline TI kernel driver and library

How to use

  • For use with x86_64 PC with TIpcie installed

Compilation

kernel driver

  • compile and load the kernel driver:
    cd linux_driver
    make 
        
  • then install (as root)
    make install
        
  • Reboot the PC after installation

TIpcie Library

  • compile the library
    make 
        
  • Move the library to a location that is in LD_LIBRARY_PATH or add the TIpcie library path to LD_LIBRARY_PATH

Firmware Update Program

cd firmware
make

Test programs

  • all can be compiled using the Makefile
    make <program name>
        

Configuration File

  • configuration examples in the cfg directory

master.ini

  • shows all available master configuration options
  • if a parameter is not defined, the library default will be used

master_with_slave.ini

  • scaled down version of master.ini with a Slave configured on port 1

slave.ini

  • shows all available slave configuration options

Stand-alone programs

  • example stand-alone programs are found in the test directory

tipStatus

  • show the status of the TIpcie
    tipStatus
        

tipReadoutTest

  • test readout of the TIpcie with hardcoded configuration
tipReadoutTest

tipConfigReadout

  • test readout of the TIpcie with configuration file
tipConfigReadout ../cfg/master.ini

CODA 3 readout list

  • example master and slave readout lists are found in the rol directory
  • both will use either
    • ROL1 User String
    • hardcoded filename
      • update these lines to suit the path in your DAQ:
        const char *configFile = "/daqfs/home/moffit/work/TIpcie/cfg/master.ini";