HOPS
HOPS class reference
cvex.h
Go to the documentation of this file.
1 #ifndef CVEX_H
2 #define CVEX_H
3 
4 /*----------------------------------------------------------------------------
5  * The general organization of a binary or parsed cvex:$CORR file:
6  * Cvex_Config [ 1 ]
7  * Cvex_Mode [ 1 ]
8  * Cvex_BoardParms [ num defs used from $CORR_BD_PARMS ]
9  * Cvex_SectionMode [ num defs used from $CORR_BD_SECTION_MODE ]
10  * Cvex_ChipMode [ num defs used from $CORR_CHIP_MODE ]
11  * Cvex_BlockMode [ num defs used from $CORR_CHIP_BLOCK_MODE ]
12  */
13 
14 
15 
16 /*----------------------------------------------------------------------------
17  */
18 
19 #define MAX_SECTS_P_BRD 16 /* Max sections/board */
20 #define MAX_BRDS_P_CORR 16 /* Max boards/correlator */
21 #define MAX_XPOL_P_BRD 8 /* Max xpol pairs/board */
22 #define MAX_CHIP_INS_P_CHIP 4 /* Max chip inputs/chip */
23 #define MAX_CHIPS_P_BRD 32 /* Max chips/board */
24 #define MAX_MUXS_P_BLK 4 /* Max multiplexers/block */
25 #define MAX_BLKS_P_SNAKE_P_CHIP 10 /* Max blocks/snake/chip */
26 #define MAX_BLKS_P_CHIP 8 /* Max blocks/chip */
27 #define MAX_SNAKES_P_CHIP 8 /* Max snakes/chip */
28 
29 
30 
31 /*----------------------------------------------------------------------------
32  * $CVEX_REV
33  */
34 
35 
36 
37 /*----------------------------------------------------------------------------
38  * $CORR_CONFIG
39  */
40 
41 typedef struct Cvex_Config {
44  struct Cvex_Mode * mode;
46  short auto_corr;
48 
49 
50 
51 /*----------------------------------------------------------------------------
52  * $CORR_MODE
53  */
54 
55 typedef struct Cvex_Section {
57  short phyChipNum;
61 
62 
63 typedef struct Cvex_Board {
66  struct Cvex_BoardParms * mode;
70 
71 
72 typedef struct Cvex_XPolPair {
76 
77 
78 typedef struct Cvex_Mode {
80  short numOfBoards;
85 
86 
87 
88 /*----------------------------------------------------------------------------
89  * $CORR_BD_PARMS
90  */
91 
92 typedef struct Cvex_BoardParms {
94  short accumRatio;
99 
100 
101 
102 /*----------------------------------------------------------------------------
103  * $CORR_SECT_MODE
104  */
105 
106 typedef struct Cvex_Chip {
107  struct Cvex_ChipMode * mode;
108  short relChipNum;
111 
112 
113 typedef struct Cvex_SectionMode {
115  short numOfChips;
118 
119 
120 
121 /*----------------------------------------------------------------------------
122  * $CORR_CHIP_MODE
123  */
124 
125 typedef struct Cvex_Block {
130 
131 
132 typedef struct Cvex_Snake {
139 
140 
141 typedef struct Cvex_ChipMode {
143  short numOfBlocks;
145  short numOfSnakes;
148 
149 
150 
151 /*----------------------------------------------------------------------------
152  * $CORR_BLOCK_MODE
153  */
154 
155 typedef struct Cvex_BlockMode {
158  short headerMode;
159  short enableTap;
161  short lCellXDly;
162  short lCellYDly;
164  short rCellXDly;
165  short rCellYDly;
167 
168 #endif
Cvex_Section section[MAX_SECTS_P_BRD]
Definition: cvex.h:68
char segId[MAX_PVALSIZE]
Definition: cvex.h:64
#define MAX_SNAKES_P_CHIP
Definition: cvex.h:27
short mux[MAX_MUXS_P_BLK]
Definition: cvex.h:128
short numOfBlocks
Definition: cvex.h:143
#define MAX_BLKS_P_SNAKE_P_CHIP
Definition: cvex.h:25
struct Cvex_BoardParms * mode
Definition: cvex.h:66
char refId[MAX_PVALSIZE]
Definition: cvex.h:134
struct Cvex_Section Cvex_Section
short phyChipNum
Definition: cvex.h:57
struct Cvex_Board Cvex_Board
struct Cvex_SectionMode Cvex_SectionMode
Cvex_XPolPair xPolPair[MAX_XPOL_P_BRD]
Definition: cvex.h:83
short rCellYDly
Definition: cvex.h:165
char blockId[MAX_PVALSIZE]
Definition: cvex.h:127
char defId[MAX_NAMESIZE]
Definition: cvex.h:79
short lCellYDly
Definition: cvex.h:162
short lenOfSnakePath
Definition: cvex.h:136
char remId[MAX_PVALSIZE]
Definition: cvex.h:135
char type[MAX_PVALSIZE]
Definition: cvex.h:133
short rCellXDly
Definition: cvex.h:164
char chn1Id[MAX_PVALSIZE]
Definition: cvex.h:73
char defId[MAX_NAMESIZE]
Definition: cvex.h:93
#define MAX_BRDS_P_CORR
Definition: cvex.h:20
struct Cvex_BlockMode * mode
Definition: cvex.h:126
short ignoreChanNames
Definition: cvex.h:45
short dataShsmpRatio
Definition: cvex.h:96
char defId[MAX_NAMESIZE]
Definition: cvex.h:43
short auto_corr
Definition: cvex.h:46
char rev[MAX_PVALSIZE]
Definition: cvex.h:42
char chn2Id[MAX_PVALSIZE]
Definition: cvex.h:74
struct Cvex_SectionMode * mode
Definition: cvex.h:56
struct Cvex_ChipMode Cvex_ChipMode
Cvex_Chip chip[MAX_CHIPS_P_BRD]
Definition: cvex.h:116
struct Cvex_XPolPair Cvex_XPolPair
#define MAX_XPOL_P_BRD
Definition: cvex.h:21
short numOfBoards
Definition: cvex.h:80
#define MAX_SECTS_P_BRD
Definition: cvex.h:19
short numOfChips
Definition: cvex.h:115
short numOfSnakes
Definition: cvex.h:145
char remId[MAX_PVALSIZE]
Definition: cvex.h:59
short lCellRotrMode
Definition: cvex.h:160
char path[MAX_BLKS_P_SNAKE_P_CHIP][MAX_PVALSIZE]
Definition: cvex.h:137
struct Cvex_Mode Cvex_Mode
#define MAX_MUXS_P_BLK
Definition: cvex.h:24
short bocfShsmpRatio
Definition: cvex.h:95
Cvex_Snake snake[MAX_SNAKES_P_CHIP]
Definition: cvex.h:146
short invalidateOnTapMove
Definition: cvex.h:157
#define MAX_CHIPS_P_BRD
Definition: cvex.h:23
#define MAX_CHIP_INS_P_CHIP
Definition: cvex.h:22
short numOfXPolPairs
Definition: cvex.h:82
struct Cvex_Mode * mode
Definition: cvex.h:44
struct Cvex_Chip Cvex_Chip
struct Cvex_ChipMode * mode
Definition: cvex.h:107
char input[MAX_CHIP_INS_P_CHIP][MAX_PVALSIZE]
Definition: cvex.h:109
short rCellRotrMode
Definition: cvex.h:163
struct Cvex_Block Cvex_Block
short relChipNum
Definition: cvex.h:108
char defId[MAX_NAMESIZE]
Definition: cvex.h:114
short accumRatio
Definition: cvex.h:94
struct Cvex_BoardParms Cvex_BoardParms
char sliceId[MAX_PVALSIZE]
Definition: cvex.h:65
struct Cvex_Snake Cvex_Snake
short enableTap
Definition: cvex.h:159
short lCellXDly
Definition: cvex.h:161
char refId[MAX_PVALSIZE]
Definition: cvex.h:58
char defId[MAX_NAMESIZE]
Definition: cvex.h:156
short sampleCntPerLagEnable
Definition: cvex.h:97
#define MAX_BLKS_P_CHIP
Definition: cvex.h:26
short numOfSections
Definition: cvex.h:67
char defId[MAX_NAMESIZE]
Definition: cvex.h:142
struct Cvex_BlockMode Cvex_BlockMode
struct Cvex_Config Cvex_Config
Cvex_Board board[MAX_BRDS_P_CORR]
Definition: cvex.h:81
short headerMode
Definition: cvex.h:158
Definition: cvex.h:125
Definition: cvex.h:155
Definition: cvex.h:63
Definition: cvex.h:92
Definition: cvex.h:106
Definition: cvex.h:141
Definition: cvex.h:41
Definition: cvex.h:78
Definition: cvex.h:55
Definition: cvex.h:113
Definition: cvex.h:132
Definition: cvex.h:72
#define MAX_NAMESIZE
Definition: tapeDB.h:13
#define MAX_PVALSIZE
Definition: vex.h:12
Definition: vex.h:111