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

#include <dae2_policy.h>

Inheritance diagram for DAE2DetCardPolicy:
Inheritance graph

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)
 

Detailed Description

Definition at line 37 of file dae2_policy.h.

Member Data Documentation

const unsigned DAE2DetCardPolicy::DAESPECMAX = 800000
static

should be same as ISISCRPT_MAX_DETECTOR

Definition at line 142 of file dae2_policy.h.

Referenced by ISISDAE::ISISDAE(), and ISISDAE::updateAddmap().

const unsigned DAE2DetCardPolicy::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 102 of file dae2_policy.h.

const unsigned DAE2DetCardPolicy::DCDESCR = 0xC0000
staticprotected

spectrum size (tmax)

Definition at line 60 of file dae2_policy.h.

const unsigned DAE2DetCardPolicy::DCDESCRX = 0x40080
staticprotected

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

Definition at line 61 of file dae2_policy.h.

const unsigned DAE2DetCardPolicy::DCDIMMAX = 16
staticprotected

max number of DAE1 modules

Definition at line 134 of file dae2_policy.h.

const unsigned DAE2DetCardPolicy::DCEVNTMD = 0x40010
static

event mode register

Definition at line 47 of file dae2_policy.h.

const unsigned DAE2DetCardPolicy::DCFCSMD = 0x40014
staticprotected

focus mode register

Definition at line 51 of file dae2_policy.h.

const unsigned DAE2DetCardPolicy::DCFSDEL0 = 0x00040
staticprotected

frame sync delay bits 0-15

Definition at line 104 of file dae2_policy.h.

const unsigned DAE2DetCardPolicy::DCFSDEL1 = 0x00044
staticprotected

frame sync delay bits 16-17

Definition at line 105 of file dae2_policy.h.

const unsigned DAE2DetCardPolicy::DCMAXSPECPOSLUT = 65535
staticprotected

max spectrun number POSLUT can refet to (16bits)

Definition at line 136 of file dae2_policy.h.

const unsigned DAE2DetCardPolicy::DCMEMEND = 0x0FFFFFFF
staticprotected

end of histogram memory

Definition at line 130 of file dae2_policy.h.

const unsigned DAE2DetCardPolicy::DCMEMSTART = 0x08000000
staticprotected

start address of histogram memory

Definition at line 129 of file dae2_policy.h.

const unsigned DAE2DetCardPolicy::DCMUONSTEP = 0x00100
staticprotected

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

Definition at line 107 of file dae2_policy.h.

const unsigned DAE2DetCardPolicy::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 91 of file dae2_policy.h.

const unsigned DAE2DetCardPolicy::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 78 of file dae2_policy.h.

const unsigned DAE2DetCardPolicy::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 87 of file dae2_policy.h.

const unsigned DAE2DetCardPolicy::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 56 of file dae2_policy.h.

const unsigned DAE2DetCardPolicy::DCPERCNT0 = 0x00010
staticprotected

period counter (number of period) lower bits

Definition at line 67 of file dae2_policy.h.

const unsigned DAE2DetCardPolicy::DCPERCNT1 = 0x00014
staticprotected

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

Definition at line 68 of file dae2_policy.h.

const unsigned DAE2DetCardPolicy::DCPERSIZE0 = 0x00008
staticprotected

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

Definition at line 65 of file dae2_policy.h.

const unsigned DAE2DetCardPolicy::DCPERSIZE1 = 0x0000C
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.

const unsigned DAE2DetCardPolicy::DCPOSLUT = 0xC0000
staticprotected

position look up table

Definition at line 62 of file dae2_policy.h.

const unsigned DAE2DetCardPolicy::DCPOSLUTMASK = 0xffff
staticprotected

poslut is 32bit aligned, but 16 bit words

Definition at line 138 of file dae2_policy.h.

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

number of 4 byte words

Definition at line 135 of file dae2_policy.h.

const unsigned DAE2DetCardPolicy::DCPOSMAX = 4096
staticprotected

max number of DAE1 module positions

Definition at line 133 of file dae2_policy.h.

const unused_t DAE2DetCardPolicy::DCRUNMEMCLEAR = UNUSED_REGISTER
static

run memory clear

Definition at line 46 of file dae2_policy.h.

const unsigned DAE2DetCardPolicy::DCTAC = 0x40000
staticprotected

TCG access control.

Definition at line 42 of file dae2_policy.h.

const unsigned DAE2DetCardPolicy::DCTCGLUT = 0x80000
staticprotected

time channel look up table

Definition at line 59 of file dae2_policy.h.

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

number of 4 bytes words

Definition at line 121 of file dae2_policy.h.

const unsigned DAE2DetCardPolicy::DCTCGTBL = 0x40084
staticprotected

TCG time bin limit.

Definition at line 58 of file dae2_policy.h.

const unsigned DAE2DetCardPolicy::DCTDESCR = 0x02000000
staticprotected

enable descriptor register

Definition at line 125 of file dae2_policy.h.

const unsigned DAE2DetCardPolicy::DCTHISCLE = 0x80000000
staticprotected

histogram memory clear

Definition at line 126 of file dae2_policy.h.

const unsigned DAE2DetCardPolicy::DCTOTCNTS = 0x00018
staticprotected

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

Todo:
0x001C as well

Definition at line 69 of file dae2_policy.h.

const unsigned DAE2DetCardPolicy::DCTPOSLUT = 0x00400000
staticprotected

enable POSLUT

Definition at line 124 of file dae2_policy.h.

const unsigned DAE2DetCardPolicy::DCTTCGLUT = 0x00200000
staticprotected

enable TCGLUT

Definition at line 123 of file dae2_policy.h.

const unsigned DAE2DetCardPolicy::DCTTOTCNTSCLE = 0x40000000
staticprotected

assert and de-assert to clear total counts register

Definition at line 127 of file dae2_policy.h.

const unsigned DAE2DetCardPolicy::DCVETOENABLE = 0x00000
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.

const unsigned DAE2DetCardPolicy::DCVETOFLAG = 0x00004
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.

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

Definition at line 45 of file dae2_policy.h.


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