ICP  1
Static Public Attributes | Static Protected Attributes | List of all members
DAE3DetCardPolicy Class Reference

#include <dae3_policy.h>

Inheritance diagram for DAE3DetCardPolicy:
Inheritance graph

Static Public Attributes

static const std::string det_card_policy_name = "DAE3DetCardPolicy"
 
static const unsigned DCRUNMEMCLEAR = 0x40000
 run memory clear More...
 
static const unsigned DCEVNTMD = 0x40010
 event mode register More...
 
static const unsigned DAESPECMAX = 800000
 should be same as ISISCRPT_MAX_DETECTOR More...
 
- Static Public Attributes inherited from DAE3CardPolicy
static const int CRATE_MOD = 100
 should be same as DAE2CardPolicy::CRATE_MOD More...
 
static const std::string card_policy_name = "DAE3CardPolicy"
 
static const std::string card_type = "DAE3"
 

Static Protected Attributes

static const unused_t DCTAC = UNUSED_REGISTER
 TCG access control. More...
 
static const unsigned DCFCSMD = 0x40014
 focus mode register More...
 
static const unsigned DCOPMODE = 0x40018
 
static const unsigned DCTCGTBL = 0x284
 TCG time bin limit. More...
 
static const unsigned DCTCGLUT = 0x20000000
 time channel look up table More...
 
static const unused_t DCDESCR = UNUSED_REGISTER
 spectrum size (tmax) More...
 
static const unsigned DCDESCRX = 0x280
 spectrum size (tmax) for cards with FSDELAY - do not use DCDESCR More...
 
static const unsigned DCPOSLUT = 0x22000000
 position look up table More...
 
static const unsigned DCFRAMEMEM = 0x24000000
 frame memory More...
 
static const unsigned DCVETOENABLE = 0x40080
 veto enable register, 1=enable, bit 16=dim(0), bit 17=dim(1) etc for fifo veto. Others: bit 15 = frame overflow, 14 memory full, 13 fifo read late like DAEEventHeaderInfo More...
 
static const unsigned DCVETOFLAG = 0x00174
 set to 1 if veto occurs, bit 16 = dim(0), bit 17 =dim(1) etc for fifo veto only. Others: bit 15 = frame overflow, 14 memory full, 13 fifo read late like DAEEventHeaderInfo More...
 
static const unsigned DCPERSIZE0 = 0x0027c
 size of a period in memory in 32 bit words (lower bit) More...
 
static const unsigned DCPERSIZE1 = 0x0027c
 size of a period in memory in 32 bit words) (higher bit, 6 bits relevant) More...
 
static const unsigned DCPERCNT0 = 0x00300
 period counter (number of period) lower bits More...
 
static const unsigned DCPERCNT1 = 0x00300
 period counter (number of period) higher bits, only 6 bits relevant More...
 
static const unsigned DCTOTCNTS = 0x00018
 total counts on detector card (32 bits, read only) More...
 
static const unsigned DCNXFRMR = 0x00028
 
static const unsigned DCNXMEMWR = 0x00020
 
static const unsigned DCNMEMWR = 0x00024
 
static const unsigned DCADDLRR = 0x0002C
 
static const unsigned DCFSDEL0 = 0x00200
 frame sync delay bits 0-15 More...
 
static const unsigned DCFSDEL1 = 0x00200
 frame sync delay bits 16-17 More...
 
static const unsigned DCMUONSTEP = 0x00288
 muon step size register (in nanoseconds - 0 means 0.5ns) More...
 
static const unsigned DCTCGLUTSIZE = (64*1024)
 number of 4 bytes words More...
 
static const unsigned DCTTCGLUT = 0x00200000
 enable TCGLUT More...
 
static const unsigned DCTPOSLUT = 0x00400000
 enable POSLUT More...
 
static const unsigned DCTDESCR = 0x02000000
 enable descriptor register More...
 
static const unsigned DCTHISCLE = 0x80000000
 histogram memory clear More...
 
static const unsigned DCTTOTCNTSCLE = 0x40000000
 assert and de-assert to clear total counts register More...
 
static const unsigned DCMEMSTART = 0x0
 start address of histogram/run memory More...
 
static const unsigned DCMEMEND = 0x1FFFFFFF
 end of histogram/run memory More...
 
static const unsigned DCPOSMAX = 4096
 max number of DAE1 module positions More...
 
static const unsigned DCDIMMAX = 16
 max number of DAE1 modules More...
 
static const unsigned DCPOSLUTSIZE = (DCDIMMAX*DCPOSMAX)
 number of 4 byte words More...
 
static const unsigned DCMAXSPECPOSLUT = 65535
 max spectrun number POSLUT can refet to (16bits) More...
 
static const unsigned DCPOSLUTMASK = 0xffffffff
 all 32bits of poslut is valid More...
 
- Static Protected Attributes inherited from DAE3CardPolicy
static const int FIRMVERS = 0x7FFFC
 firmware version back end FPGA More...
 
static const uint32_t CARDSPACE = 0x28000000
 space allocated to a card More...
 

Additional Inherited Members

- Public Member Functions inherited from DAE3CardPolicy
virtual ~DAE3CardPolicy ()
 
- Static Public Member Functions inherited from DAE3CardPolicy
static unsigned long makeAddress (int position, unsigned long address)
 
static unsigned long cardFromAddress (unsigned long address)
 
static unsigned long baseAddress (unsigned long address)
 

Detailed Description

Definition at line 48 of file dae3_policy.h.

Member Data Documentation

const unsigned DAE3DetCardPolicy::DAESPECMAX = 800000
static

should be same as ISISCRPT_MAX_DETECTOR

Definition at line 156 of file dae3_policy.h.

const unsigned DAE3DetCardPolicy::DCADDLRR = 0x0002C
staticprotected

Address of Last Read Register is written to by the computer after it has successfully read events and headers from memory and stored them on disk. If the event list is long and the memory is filled up the memory card will reset the address counter (as read from Address of Next Memory Write Register) and start overwriting the events and headers. When is gets to the address stored in Address of Last Read Register it writes to the address stored in the register and then stops. It only starts going again when the computer reads the memory and writes a value to the Address of Last Read Register. The Address of Last Read Register is a byte address, it can have the 0x08000000 offset and card address if the computer want to write them.

Definition at line 116 of file dae3_policy.h.

const unused_t DAE3DetCardPolicy::DCDESCR = UNUSED_REGISTER
staticprotected

spectrum size (tmax)

Definition at line 72 of file dae3_policy.h.

const unsigned DAE3DetCardPolicy::DCDESCRX = 0x280
staticprotected

spectrum size (tmax) for cards with FSDELAY - do not use DCDESCR

Definition at line 73 of file dae3_policy.h.

const unsigned DAE3DetCardPolicy::DCDIMMAX = 16
staticprotected

max number of DAE1 modules

Definition at line 148 of file dae3_policy.h.

const unsigned DAE3DetCardPolicy::DCEVNTMD = 0x40010
static

event mode register

Definition at line 59 of file dae3_policy.h.

const unsigned DAE3DetCardPolicy::DCFCSMD = 0x40014
staticprotected

focus mode register

Definition at line 63 of file dae3_policy.h.

const unsigned DAE3DetCardPolicy::DCFRAMEMEM = 0x24000000
staticprotected

frame memory

Definition at line 75 of file dae3_policy.h.

const unsigned DAE3DetCardPolicy::DCFSDEL0 = 0x00200
staticprotected

frame sync delay bits 0-15

Definition at line 118 of file dae3_policy.h.

const unsigned DAE3DetCardPolicy::DCFSDEL1 = 0x00200
staticprotected

frame sync delay bits 16-17

Definition at line 119 of file dae3_policy.h.

const unsigned DAE3DetCardPolicy::DCMAXSPECPOSLUT = 65535
staticprotected

max spectrun number POSLUT can refet to (16bits)

Definition at line 150 of file dae3_policy.h.

const unsigned DAE3DetCardPolicy::DCMEMEND = 0x1FFFFFFF
staticprotected

end of histogram/run memory

Definition at line 144 of file dae3_policy.h.

const unsigned DAE3DetCardPolicy::DCMEMSTART = 0x0
staticprotected

start address of histogram/run memory

Definition at line 143 of file dae3_policy.h.

const unsigned DAE3DetCardPolicy::DCMUONSTEP = 0x00288
staticprotected

muon step size register (in nanoseconds - 0 means 0.5ns)

Definition at line 121 of file dae3_policy.h.

const unsigned DAE3DetCardPolicy::DCNMEMWR = 0x00024
staticprotected

Number of Memory Wraps Register counts how many times the memory fills up and the address start counting from 0 again. This register is 16 bits wide.

Definition at line 105 of file dae3_policy.h.

const unsigned DAE3DetCardPolicy::DCNXFRMR = 0x00028
staticprotected

Address of Next Frame Marker Register on the Detector Cards can be read to find out the address in memory where the header for the next frame will be stored. When the computer reads the memory while the DAE is running in event mode it should read up to the address before the value given in this register. The address read from this register is a byte address, always multiple of 4, it does not have the 0x08000000 offset used when reading from memory, it does not have the Detector Card address.rt

Definition at line 92 of file dae3_policy.h.

const unsigned DAE3DetCardPolicy::DCNXMEMWR = 0x00020
staticprotected

When a run has ended the Address of Next Memory Write Register should be read to find out the where to read the memory up to. To read all the data, including the end of run header, the computer should read up to the memory address before the one given by this register. The Address of Next Memory Write Register is the place to read the memory location that the next event or header word will be written to. The address can be part way through a frame, unlike the Address of Next Frame Marker Register, which only changes when a frame is complete. The Address of Next Memory Write Register is a byte address, no 0x08000000 offset and no card address.

Definition at line 101 of file dae3_policy.h.

const unsigned DAE3DetCardPolicy::DCOPMODE = 0x40018
staticprotected

0x40018 = Detector Card Operation Register – this is a 32 bit register written to by you. Currently I will not write to this register. Bit 0 = Instrument Type (‘0’ = Neutron, ‘1’ = Muon) Bit 1 = TDC Configuration (‘0’ = Legacy (16 Channel Readout), ‘1’ = Full (32 Channel Readout))

Definition at line 68 of file dae3_policy.h.

const unsigned DAE3DetCardPolicy::DCPERCNT0 = 0x00300
staticprotected

period counter (number of period) lower bits

Definition at line 80 of file dae3_policy.h.

const unsigned DAE3DetCardPolicy::DCPERCNT1 = 0x00300
staticprotected

period counter (number of period) higher bits, only 6 bits relevant

Definition at line 81 of file dae3_policy.h.

const unsigned DAE3DetCardPolicy::DCPERSIZE0 = 0x0027c
staticprotected

size of a period in memory in 32 bit words (lower bit)

Definition at line 78 of file dae3_policy.h.

const unsigned DAE3DetCardPolicy::DCPERSIZE1 = 0x0027c
staticprotected

size of a period in memory in 32 bit words) (higher bit, 6 bits relevant)

Definition at line 79 of file dae3_policy.h.

const unsigned DAE3DetCardPolicy::DCPOSLUT = 0x22000000
staticprotected

position look up table

Definition at line 74 of file dae3_policy.h.

const unsigned DAE3DetCardPolicy::DCPOSLUTMASK = 0xffffffff
staticprotected

all 32bits of poslut is valid

Definition at line 152 of file dae3_policy.h.

const unsigned DAE3DetCardPolicy::DCPOSLUTSIZE = (DCDIMMAX*DCPOSMAX)
staticprotected

number of 4 byte words

Definition at line 149 of file dae3_policy.h.

const unsigned DAE3DetCardPolicy::DCPOSMAX = 4096
staticprotected

max number of DAE1 module positions

Definition at line 147 of file dae3_policy.h.

const unsigned DAE3DetCardPolicy::DCRUNMEMCLEAR = 0x40000
static

run memory clear

Definition at line 58 of file dae3_policy.h.

const unused_t DAE3DetCardPolicy::DCTAC = UNUSED_REGISTER
staticprotected

TCG access control.

Definition at line 54 of file dae3_policy.h.

const unsigned DAE3DetCardPolicy::DCTCGLUT = 0x20000000
staticprotected

time channel look up table

Definition at line 71 of file dae3_policy.h.

const unsigned DAE3DetCardPolicy::DCTCGLUTSIZE = (64*1024)
staticprotected

number of 4 bytes words

Definition at line 135 of file dae3_policy.h.

const unsigned DAE3DetCardPolicy::DCTCGTBL = 0x284
staticprotected

TCG time bin limit.

Definition at line 70 of file dae3_policy.h.

const unsigned DAE3DetCardPolicy::DCTDESCR = 0x02000000
staticprotected

enable descriptor register

Definition at line 139 of file dae3_policy.h.

const unsigned DAE3DetCardPolicy::DCTHISCLE = 0x80000000
staticprotected

histogram memory clear

Definition at line 140 of file dae3_policy.h.

const unsigned DAE3DetCardPolicy::DCTOTCNTS = 0x00018
staticprotected

total counts on detector card (32 bits, read only)

Todo:
0x001C as well

Definition at line 82 of file dae3_policy.h.

const unsigned DAE3DetCardPolicy::DCTPOSLUT = 0x00400000
staticprotected

enable POSLUT

Definition at line 138 of file dae3_policy.h.

const unsigned DAE3DetCardPolicy::DCTTCGLUT = 0x00200000
staticprotected

enable TCGLUT

Definition at line 137 of file dae3_policy.h.

const unsigned DAE3DetCardPolicy::DCTTOTCNTSCLE = 0x40000000
staticprotected

assert and de-assert to clear total counts register

Definition at line 141 of file dae3_policy.h.

const unsigned DAE3DetCardPolicy::DCVETOENABLE = 0x40080
staticprotected

veto enable register, 1=enable, bit 16=dim(0), bit 17=dim(1) etc for fifo veto. Others: bit 15 = frame overflow, 14 memory full, 13 fifo read late like DAEEventHeaderInfo

Definition at line 76 of file dae3_policy.h.

const unsigned DAE3DetCardPolicy::DCVETOFLAG = 0x00174
staticprotected

set to 1 if veto occurs, bit 16 = dim(0), bit 17 =dim(1) etc for fifo veto only. Others: bit 15 = frame overflow, 14 memory full, 13 fifo read late like DAEEventHeaderInfo

Definition at line 77 of file dae3_policy.h.

const std::string DAE3DetCardPolicy::det_card_policy_name = "DAE3DetCardPolicy"
static

Definition at line 57 of file dae3_policy.h.


The documentation for this class was generated from the following files: