MCA-3K Data Server (sipm-MDS) Reference

eMorpho

Introduction

USB driver

bpi_device

Data structures

Overview

Module Constants

FPGA Data structures

Controls

Statistics

Results

Histogram

List Mode

Oscilloscope Trace

Summation Weights

Time Slices

Two-bank List Mode

ARM Data structures

Version

Status

Controls

Calibration

API

Overview

MCA-3K Data Structure: fpga_action

Summary

The fpga_action data structure contains the controls used to start and stop data acquisition as well as momentary commands, such as to clear data or initialize modules within the FPGA.

Data structure

For fpga_action there are 4 'register' and a larger number of 'fields' data in use. All register data are 16-bit unsigned int16 (uint16).

fpga_action registers and fields
Register number and field nameDescription
AR0[0]: clear_histoWrite a zero to the histogram memory, or just to the active bank if CR13:segment_enable=1
AR0[1]: clear_statisticsClear all event and time (statistics) counters, or just for the active bank if CR13:segment_enable=1
AR0[2]: clear_traceInitialize the trace acquisition module.
AR0[3]: clear_list_modeInitialize the list mode module.
AR0[4]: ut_runInitialize the trace mode module and force an immediate untriggered trace acquisition.
AR0[5:15]: ar0_upperUnused; Set to zero.
AR1[0:15]: ar1Unused; Set to zero
AR2[0]: histo_runEnable histogram data acquisition.
AR2[1]: trace_runEnable trace data acquisition.
AR2[2]: lm_runEnable list mode data acquisition.
AR2[3]: segmentSet the active histogram memory segment (0 or 1).
AR2[4]: segment_enableEnable splitting the histogram memory into two equal-sized banks. There will be one statistics counter set for each bank.
AR2[5:15]: ar2_upperUnused; Set to zero.
AR3[0:15]: ar3Unused; Set to zero
The fpga_action registers; ARn means control register number n, with n=0...3 . Bitfields are indicated as [b_low:b_high] indicating bit numbers b_low to b_high, inclusive.