Go to the documentation of this file.00001
00002 #define FLASHBASE 0x00c00000
00003 #define FPGABASE 0x00000000
00004 #define RANGE_REG 0x00800000
00005 #define FPGA_DIRECT 0x00800004
00006
00007 #define DISPRAM 0x00010000
00008 #define DISPREG 0x00020000
00009 #define SRAM 0x00100000
00010
00011 #define PERIODREG 0x0
00012 #define WIDTHREG 0x040
00013 #define NPREG 0x080
00014 #define ENABLEREG 0x0c0
00015 #define SCALERREG 0x100
00016 #define MODEREG 0x140
00017
00018 #define CSR_DONE 0x20
00019 #define CSR_INIT 0x40
00020
00021
00022
00023
00024
00025 #define T_LOG_DEL_1 0x4 //delay spill off pulse
00026
00027
00028 #define T_LOG_LMU_1 0x8
00029 #define T_LOG_LMU_2 0xc
00030 #define T_LOG_LMU_3 0x10
00031 #define T_LOG_LMU_4 0x14
00032 #define T_LOG_LMU_5 0x18
00033 #define T_LOG_LMU_6 0x1c
00034 #define T_LOG_LMU_7 0x20
00035 #define T_LOG_LMU_8 0x24
00036 #define T_LOG_LMU_9 0x28
00037 #define T_LOG_LMU_a 0x2c
00038 #define T_LOG_LMU_b 0x30
00039 #define T_LOG_LMU_c 0x34
00040 #define T_LOG_LMU_d 0x38
00041 #define T_LOG_LMU_e 0x3c
00042 #define T_LOG_LMU_f 0x40
00043 #define T_LOG_LMU_g 0x44
00044
00045
00046 #define T_LOG_TBOX_ENA 0x48
00047 #define T_LOG_TBOX_SCALL 0x4c
00048 #define T_LOG_TBOX_SCALH 0x50
00049
00050
00051 #define T_LOG_SW_L 0x54
00052 #define T_LOG_SW_H 0x58
00053
00054 #define T_LOG_RES 0x5c //reset scaler + sync scaler
00055
00056 #define T_LOG_SC_LATCH 0x60 //latch scaler
00057 #define T_LOG_INT_TDT 0x64 //internal deadtime
00058 #define T_LOG_ECO 0x68 //switch signals to hpla output
00059 #define T_LOG_EXT_INT_RES 0x6c //internal external reset
00060
00061
00062 #define T_LOG_PULS_IN 0x70
00063 #define T_LOG_FREQU_1 0x74
00064 #define T_LOG_FREQU_2 0x78
00065 #define T_LOG_FREQU_3 0x7c
00066
00067 #define T_LOG_SOFTTRIG 0x80 //Software Trigger
00068 #define T_LOG_RES_DOUT 0x84 //reset for data out register
00069
00070 #define T_LOG_RES_SYNC 0x88 //reset for sync scaler
00071 #define T_LOG_PULS 0x8c // ECO PULS out via vme command
00072
00073 #define T_LOG_SCAL_1 0x8c
00074 #define T_LOG_SCAL_2 0xcc
00075 #define T_LOG_SCAL_3 0x10c
00076 #define T_LOG_SCAL_4 0x14c
00077 #define T_LOG_SCAL_5 0x18c
00078 #define T_LOG_SCAL_FC 0x1d0
00079 #define T_LOG_TRIG_PAT 0x1d4
00080
00081 #define T_LOG_SYNC_SCAL 0x1d8
00082
00083 #define T_LOG_REF_CLOCK 0x1dc
00084 #define REF_CLOCK_FREQ 781250 // Hz
00085
00086
00087 #define N_SCALER 32
00088
00089
00090
00091 #define SCALORMU_N_SCALER 32
00092
00093
00094 #define SCALORMU_COUNT_1 0x4
00095 #define SCALORMU_COUNT_2 0x8
00096 #define SCALORMU_COUNT_3 0xc
00097 #define SCALORMU_COUNT_4 0x10
00098 #define SCALORMU_COUNT_5 0x14
00099 #define SCALORMU_COUNT_6 0x18
00100 #define SCALORMU_COUNT_7 0x1c
00101 #define SCALORMU_COUNT_8 0x20
00102 #define SCALORMU_COUNT_9 0x24
00103 #define SCALORMU_COUNT_10 0x28
00104 #define SCALORMU_COUNT_11 0x2c
00105 #define SCALORMU_COUNT_12 0x30
00106 #define SCALORMU_COUNT_13 0x34
00107 #define SCALORMU_COUNT_14 0x38
00108 #define SCALORMU_COUNT_15 0x3c
00109 #define SCALORMU_COUNT_16 0x40
00110
00111 #define SCALORMU_COUNT_17 0x44
00112 #define SCALORMU_COUNT_18 0x48
00113 #define SCALORMU_COUNT_19 0x4c
00114 #define SCALORMU_COUNT_20 0x50
00115 #define SCALORMU_COUNT_21 0x54
00116 #define SCALORMU_COUNT_22 0x58
00117 #define SCALORMU_COUNT_23 0x5c
00118 #define SCALORMU_COUNT_24 0x60
00119 #define SCALORMU_COUNT_25 0x64
00120 #define SCALORMU_COUNT_26 0x68
00121 #define SCALORMU_COUNT_27 0x6c
00122 #define SCALORMU_COUNT_28 0x70
00123 #define SCALORMU_COUNT_29 0x74
00124 #define SCALORMU_COUNT_30 0x78
00125 #define SCALORMU_COUNT_31 0x7c
00126 #define SCALORMU_COUNT_32 0x80
00127
00128 #define SCALORMU_REF_ClK 0x84
00129
00130
00131 #define SCALORMU_LAT 0x84
00132 #define SCALORMU_RES 0x88
00133
00134
00135 #define SCALORMU_MASK 0x8c
00136
00137
00138 #define MAXBLOCK 63
00139 #define BS 19
00140
00141
00142