*******************************************************************************

		      FmcAdc100M14b4cha tests for PTS environment

*******************************************************************************
CERN, BE/CO/HT. Created 2011

Author: Matthieu Cattin <matthieu.cattin@cern.ch>
Licence: GPL v2 or later.
Website: http://www.ohwr.org/projects/fmc-adc-100m14b4cha-tst

This batch of tests the fonctionnality of the FmcAdc100M14b4cha:

	- test00: Loads gateware and test mezzanine presence
	- test01: 1-wire: read serial unique ID and store
	- test02: I2C EEPROM: write, read back and compare
	- test03: LEDs: Switch ON and ask operator
	- test04: Sampling clock (Si570):read configuration (I2C) and check SerDes lock
	- test05: ADC serial communication: enable test pattern and check data
	- test06: Trigger input: check that acquisition FSM changes state
	- test07: Offset DACs: check positive, negative offset and clear
	- test08: Analogue front-end: check all MOSFET switches
	- test09: Analogue front-end: frequency response
        - test19: ADC and offset DACs calibration
        - test22: Wait for FMC temperature to stabilise (used before calibration)
        - test25: Calibration verification (max error in % FS)


Extra test (not used in production test):

        - test10: Plot frequency response summary data from test09_freq_resp.txt file
        -*test11: Test acquisition chain
        - test12: Takes an aqcuisition of all channels and print it to a file and on the screen
        -*test13: Test 1-wire thermometer and read the unique ID of the SPEC board.
        -*test14: pre-trigger ansd post-trigger counter test
        -*test15: Test trigger configurations
        - test16: Test analogue front-end frequency response
        - test17: Plot all channels
        - test18: Test calibration box
        - test20: Calibration verification (max error in LSB)
        - test21: Store calibration data to CP2103 EEPROM
        - test23: Write IPMI information and calibration data to FMC EEPROM.
        - test24: Read calibration data from CP2103 EEPROM
        - test26: Read FMC EEPROM
        - test27: Test DMA
        - test28: Long term test
        - test29: Checks FMC EEPROM for existing data
        - test30: Test software reset
        - test31: Fix EEPROM content (fix wrong IPMI format + add/rename sdbfs file)
        - test32: Test decimation
        - test33: Write FMC EEPROM with binary file
        - test34: Test interrupts (eic + vic)
        - test35: Prints carrier CSR (w/o loading bitstream)
        - test36: Prints sdb records
        - test37: Test trigger time-tags (embedded in data)
        - test38: Access to unmapped address (gn4124 bug)
        - test39: Data saturation
        - test40: Hardware internal trigger
        - test41: Shots counter
        - test42: Sampling frequency counter
        - test43: Data saturation (wrap-around bug)
        - test44: External trigger and datapath delay difference

* Might not work, to be reviewed

This tests are made to work stand-alone too. So, it is possible to call each one using 'python test0x.py'

These tests are designed to use Python 2.7 or higher.
The following Python libraries are needed:
- scipy
- matplotlib
- Pyro4

It might be needed to create this file as well:
/usr/lib/python2.7/dist-packages/larz/__init__.py

