ICP
1
|
#include <dae2_policy.h>
Static Public Attributes | |
static const std::string | det_card_policy_name = "DAE2DetCardPolicy" |
static const unused_t | DCRUNMEMCLEAR = UNUSED_REGISTER |
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 DAE2CardPolicy | |
static const int | CRATE_MOD = 100 |
static const std::string | card_policy_name = "DAE2CardPolicy" |
static const std::string | card_type = "DAE2" |
Static Protected Attributes | |
static const unsigned | DCTAC = 0x40000 |
TCG access control. More... | |
static const unsigned | DCFCSMD = 0x40014 |
focus mode register More... | |
static const unsigned | DCOPMODE = 0x40018 |
static const unsigned | DCTCGTBL = 0x40084 |
TCG time bin limit. More... | |
static const unsigned | DCTCGLUT = 0x80000 |
time channel look up table More... | |
static const unsigned | DCDESCR = 0xC0000 |
spectrum size (tmax) More... | |
static const unsigned | DCDESCRX = 0x40080 |
spectrum size (tmax) for cards with FSDELAY - do not use DCDESCR More... | |
static const unsigned | DCPOSLUT = 0xC0000 |
position look up table More... | |
static const unsigned | DCVETOENABLE = 0x00000 |
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 = 0x00004 |
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 = 0x00008 |
size of a period in memory in 32 bit words (lower bit) More... | |
static const unsigned | DCPERSIZE1 = 0x0000C |
size of a period in memory in 32 bit words) (higher bit, 6 bits relevant) More... | |
static const unsigned | DCPERCNT0 = 0x00010 |
period counter (number of period) lower bits More... | |
static const unsigned | DCPERCNT1 = 0x00014 |
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 = 0x00040 |
frame sync delay bits 0-15 More... | |
static const unsigned | DCFSDEL1 = 0x00044 |
frame sync delay bits 16-17 More... | |
static const unsigned | DCMUONSTEP = 0x00100 |
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 = 0x08000000 |
start address of histogram memory More... | |
static const unsigned | DCMEMEND = 0x0FFFFFFF |
end of histogram 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 = 0xffff |
poslut is 32bit aligned, but 16 bit words More... | |
Static Protected Attributes inherited from DAE2CardPolicy | |
static const int | FIRMVERS = 0x7FFFC |
firmware version register (32 bit, RO) More... | |
static const unsigned | CARDSHIFT = 28 |
how many More... | |
Additional Inherited Members | |
Public Member Functions inherited from DAE2CardPolicy | |
virtual | ~DAE2CardPolicy () |
Static Public Member Functions inherited from DAE2CardPolicy | |
static unsigned long | makeAddress (int position, unsigned long address) |
static unsigned long | cardFromAddress (unsigned long address) |
static unsigned long | baseAddress (unsigned long address) |
Definition at line 37 of file dae2_policy.h.
|
static |
should be same as ISISCRPT_MAX_DETECTOR
Definition at line 142 of file dae2_policy.h.
Referenced by ISISDAE::ISISDAE(), and ISISDAE::updateAddmap().
|
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 102 of file dae2_policy.h.
|
staticprotected |
spectrum size (tmax)
Definition at line 60 of file dae2_policy.h.
|
staticprotected |
spectrum size (tmax) for cards with FSDELAY - do not use DCDESCR
Definition at line 61 of file dae2_policy.h.
|
staticprotected |
max number of DAE1 modules
Definition at line 134 of file dae2_policy.h.
|
static |
event mode register
Definition at line 47 of file dae2_policy.h.
|
staticprotected |
focus mode register
Definition at line 51 of file dae2_policy.h.
|
staticprotected |
frame sync delay bits 0-15
Definition at line 104 of file dae2_policy.h.
|
staticprotected |
frame sync delay bits 16-17
Definition at line 105 of file dae2_policy.h.
|
staticprotected |
max spectrun number POSLUT can refet to (16bits)
Definition at line 136 of file dae2_policy.h.
|
staticprotected |
end of histogram memory
Definition at line 130 of file dae2_policy.h.
|
staticprotected |
start address of histogram memory
Definition at line 129 of file dae2_policy.h.
|
staticprotected |
muon step size register (in nanoseconds - 0 means 0.5ns)
Definition at line 107 of file dae2_policy.h.
|
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 91 of file dae2_policy.h.
|
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 78 of file dae2_policy.h.
|
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 87 of file dae2_policy.h.
|
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 56 of file dae2_policy.h.
|
staticprotected |
period counter (number of period) lower bits
Definition at line 67 of file dae2_policy.h.
|
staticprotected |
period counter (number of period) higher bits, only 6 bits relevant
Definition at line 68 of file dae2_policy.h.
|
staticprotected |
size of a period in memory in 32 bit words (lower bit)
Definition at line 65 of file dae2_policy.h.
|
staticprotected |
size of a period in memory in 32 bit words) (higher bit, 6 bits relevant)
Definition at line 66 of file dae2_policy.h.
|
staticprotected |
position look up table
Definition at line 62 of file dae2_policy.h.
|
staticprotected |
poslut is 32bit aligned, but 16 bit words
Definition at line 138 of file dae2_policy.h.
number of 4 byte words
Definition at line 135 of file dae2_policy.h.
|
staticprotected |
max number of DAE1 module positions
Definition at line 133 of file dae2_policy.h.
|
static |
run memory clear
Definition at line 46 of file dae2_policy.h.
|
staticprotected |
TCG access control.
Definition at line 42 of file dae2_policy.h.
|
staticprotected |
time channel look up table
Definition at line 59 of file dae2_policy.h.
|
staticprotected |
number of 4 bytes words
Definition at line 121 of file dae2_policy.h.
|
staticprotected |
TCG time bin limit.
Definition at line 58 of file dae2_policy.h.
|
staticprotected |
enable descriptor register
Definition at line 125 of file dae2_policy.h.
|
staticprotected |
histogram memory clear
Definition at line 126 of file dae2_policy.h.
|
staticprotected |
total counts on detector card (32 bits, read only)
Definition at line 69 of file dae2_policy.h.
|
staticprotected |
enable POSLUT
Definition at line 124 of file dae2_policy.h.
|
staticprotected |
enable TCGLUT
Definition at line 123 of file dae2_policy.h.
|
staticprotected |
assert and de-assert to clear total counts register
Definition at line 127 of file dae2_policy.h.
|
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 63 of file dae2_policy.h.
|
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 64 of file dae2_policy.h.
|
static |
Definition at line 45 of file dae2_policy.h.