utc_core_regs.py 1.6 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11
#!   /usr/bin/env   python
#    coding: utf8

# Copyright CERN, 2012
# Author: Matthieu Cattin (CERN)
# Licence: GPL v2 or later.
# Website: http://www.ohwr.org
# Last modifications: 8/5/2012


# UTC core registers
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
UTC_CORE_REGS=['UTC core registers', {
        'SECONDS':[0x00, 'UTC seconds', {}],
        'COARSE':[0x04, 'UTC coarse time (8ns resolution)', {}],
        'TRIG_TAG_META':[0x08, 'Trigger time-tag metadata', {}],
        'TRIG_TAG_SECONDS':[0x0C, 'Trigger time-tag UTC seconds', {}],
        'TRIG_TAG_COARSE':[0x10, 'Trigger time-tag UTC coarse time', {}],
        'TRIG_TAG_FINE':[0x14, 'Trigger time-tag fine time', {}],
        'ACQ_START_TAG_META':[0x18, 'Acquisition start time-tag metadata', {}],
        'ACQ_START_TAG_SECONDS':[0x1C, 'Acquisition start time-tag UTC seconds', {}],
        'ACQ_START_TAG_COARSE':[0x20, 'Acquisition start time-tag UTC coarse time', {}],
        'ACQ_START_TAG_FINE':[0x24, 'Acquisition start time-tag fine time', {}],
        'ACQ_STOP_TAG_META':[0x28, 'Acquisition stop time-tag metadata', {}],
        'ACQ_STOP_TAG_SECONDS':[0x2C, 'Acquisition stop time-tag UTC seconds', {}],
        'ACQ_STOP_TAG_COARSE':[0x30, 'Acquisition stop time-tag UTC coarse time', {}],
        'ACQ_STOP_TAG_FINE':[0x34, 'Acquisition stop time-tag fine time', {}],
        'ACQ_END_TAG_META':[0x38, 'Acquisition end time-tag metadata', {}],
        'ACQ_END_TAG_SECONDS':[0x3C, 'Acquisition end time-tag UTC seconds', {}],
        'ACQ_END_TAG_COARSE':[0x40, 'Acquisition end time-tag UTC coarse time', {}],
        'ACQ_END_TAG_FINE':[0x44, 'Acquisition end time-tag fine time', {}]
        }]