ep.h
5.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
/*
* ep.h: types, macros, etc. for Edge Walker Pipe
*
* 9/1/94 RJM
*/
#ifndef EWPIPE_UNIT_INCLD
#define EWPIPE_UNIT_INCLD
typedef struct
{
/* required by C-sim */
char *label; /* label must be first */
char **argv;
int argc;
int gclk_old;
/* I n p u t S i g n a l s */
int gclk;
int tlut_en;
int ew_st_span;
int ew_d; /* [21:0] */
int cv_x_offset; /* [1:0] */
int cv_y_offset; /* [1:0] */
int cv_cvg; /* [3:0] */
int cv_mask; /* */
int tc_load; /* */
int cycle_type; /* [1:0] */
/* O u t p u t S i g n a l s */
int st_span_st_w;
int st_span_st_l;
int st_span_st_s;
int st_span_st_t;
int st_span_st_r;
int st_span_st_g;
int st_span_st_b;
int st_span_st_a;
int st_span_st_z;
int st_span_tc;
int st_span_tf;
int st_span_cc;
int st_span_bl;
int st_span_ms;
int d_w; /* [21:0], s,.21 */
int d_l; /* [21:0], s,10.11 */
int d_s; /* [21:0], s,10.11 */
int d_t; /* [21:0], s,10.11 */
int d_r; /* [15:0], s,9.6 */
int d_g; /* [15:0], s,9.6 */
int d_b; /* [15:0], s,9.6 */
int d_a; /* [15:0], s,9.6 */
int d_z; /* [21:0], s,15.6 */
int x_offset_r; /* [1:0] */
int x_offset_g; /* [1:0] */
int x_offset_b; /* [1:0] */
int x_offset_a; /* [1:0] */
int x_offset_z; /* [1:0] */
int y_offset_r; /* [1:0] */
int y_offset_g; /* [1:0] */
int y_offset_b; /* [1:0] */
int y_offset_a; /* [1:0] */
int y_offset_z; /* [1:0] */
int cvg_cc; /* [3:0] */
int mask_bl; /* */
/* I n t e r n a l R e g i s t e r s */
unsigned int st_span_1d: 1;
unsigned int st_span_2d: 1;
unsigned int st_span_3d: 1;
unsigned int st_span_4d: 1;
unsigned int st_span_5d: 1;
unsigned int st_span_6d: 1;
unsigned int st_span_7d: 1;
unsigned int st_span_8d: 1;
unsigned int st_span_9d: 1;
unsigned int st_span_10d: 1;
unsigned int st_span_11d: 1;
unsigned int st_span_12d: 1;
unsigned int st_span_13d: 1;
unsigned int st_span_14d: 1;
unsigned int st_span_15d: 1;
unsigned int st_span_16d: 1;
unsigned int st_span_17d: 1;
unsigned int st_span_18d: 1;
unsigned int st_span_19d: 1;
unsigned int st_span_20d: 1;
unsigned int st_span_21d: 1;
unsigned int d_1d: 22;
unsigned int d_2d: 22;
unsigned int d_3d: 22;
unsigned int d_4d: 22;
unsigned int d_5d: 22;
unsigned int d_6d: 22;
unsigned int d_7d: 22;
unsigned int d_8d: 22;
unsigned int d_9d: 22;
unsigned int d_10d: 22;
unsigned int x_offset_1d: 2;
unsigned int x_offset_2d: 2;
unsigned int x_offset_3d: 2;
unsigned int x_offset_4d: 2;
unsigned int x_offset_5d: 2;
unsigned int x_offset_6d: 2;
unsigned int x_offset_7d: 2;
unsigned int x_offset_8d: 2;
unsigned int x_offset_9d: 2;
unsigned int x_offset_10d: 2;
unsigned int x_offset_11d: 2;
unsigned int x_offset_12d: 2;
unsigned int x_offset_13d: 2;
unsigned int x_offset_14d: 2;
unsigned int x_offset_15d: 2;
unsigned int x_offset_16d: 2;
unsigned int x_offset_17d: 2;
unsigned int x_offset_18d: 2;
unsigned int x_offset_19d: 2;
unsigned int x_offset_20d: 2;
unsigned int x_offset_21d: 2;
unsigned int x_offset_22d: 2;
unsigned int y_offset_1d: 2;
unsigned int y_offset_2d: 2;
unsigned int y_offset_3d: 2;
unsigned int y_offset_4d: 2;
unsigned int y_offset_5d: 2;
unsigned int y_offset_6d: 2;
unsigned int y_offset_7d: 2;
unsigned int y_offset_8d: 2;
unsigned int y_offset_9d: 2;
unsigned int y_offset_10d: 2;
unsigned int y_offset_11d: 2;
unsigned int y_offset_12d: 2;
unsigned int y_offset_13d: 2;
unsigned int y_offset_14d: 2;
unsigned int y_offset_15d: 2;
unsigned int y_offset_16d: 2;
unsigned int y_offset_17d: 2;
unsigned int y_offset_18d: 2;
unsigned int y_offset_19d: 2;
unsigned int y_offset_20d: 2;
unsigned int y_offset_21d: 2;
unsigned int y_offset_22d: 2;
unsigned int cvg_1d: 4;
unsigned int cvg_2d: 4;
unsigned int cvg_3d: 4;
unsigned int cvg_4d: 4;
unsigned int cvg_5d: 4;
unsigned int cvg_6d: 4;
unsigned int cvg_7d: 4;
unsigned int cvg_8d: 4;
unsigned int cvg_9d: 4;
unsigned int cvg_10d: 4;
unsigned int cvg_11d: 4;
unsigned int cvg_12d: 4;
unsigned int cvg_13d: 4;
unsigned int cvg_14d: 4;
unsigned int cvg_15d: 4;
unsigned int cvg_16d: 4;
unsigned int cvg_17d: 4;
unsigned int cvg_18d: 4;
unsigned int cvg_19d: 4;
unsigned int cvg_20d: 4;
unsigned int cvg_21d: 4;
unsigned int mask_1d: 1;
unsigned int mask_2d: 1;
unsigned int mask_3d: 1;
unsigned int mask_4d: 1;
unsigned int mask_5d: 1;
unsigned int mask_6d: 1;
unsigned int mask_7d: 1;
unsigned int mask_8d: 1;
unsigned int mask_9d: 1;
unsigned int mask_10d: 1;
unsigned int mask_11d: 1;
unsigned int mask_12d: 1;
unsigned int mask_13d: 1;
unsigned int mask_14d: 1;
unsigned int mask_15d: 1;
unsigned int mask_16d: 1;
unsigned int mask_17d: 1;
unsigned int mask_18d: 1;
unsigned int mask_19d: 1;
unsigned int mask_20d: 1;
unsigned int mask_21d: 1;
unsigned int mask_22d: 1;
unsigned int mask_23d: 1;
unsigned int mask_24d: 1;
unsigned int tc_load_1d: 1;
} ep_t;
/*
* Prototypes
*/
void ep(ep_t **pp0, ep_t **pp1);
void ep_init(ep_t *p0, ep_t *p1);
#endif /* EWPIPE_UNIT_INCLD */