Lines Matching defs:LOAD_LATENCY
44 // We use a (LOAD_LATENCY+2)-stage pipeline in the loop to account for
59 // | | LOAD_LATENCY : current value to add to checksum
61 // | | LOAD_LATENCY+1 : previous value added to checksum
68 // | | LOAD_LATENCY-1 : new checksum
70 // | | LOAD_LATENCY : previous value of checksum
72 // | | LOAD_LATENCY+1 : final checksum when out of the loop
115 #define LOAD_LATENCY 2 // XXX fix me
117 #if (LOAD_LATENCY != 1) && (LOAD_LATENCY != 2)
118 # error "Only 1 or 2 is supported/tested for LOAD_LATENCY."
121 #define PIPE_DEPTH (LOAD_LATENCY+2)
122 #define ELD p[LOAD_LATENCY] // end of load
123 #define ELD_1 p[LOAD_LATENCY+1] // and next stage
131 .rotr word1[4], word2[4],result1[LOAD_LATENCY+2],result2[LOAD_LATENCY+2]
227 (ELD_1) cmp.ltu pC1[0],p0=result1[LOAD_LATENCY],word1[LOAD_LATENCY+1]
229 (ELD_1) cmp.ltu pC2[0],p0=result2[LOAD_LATENCY],word2[LOAD_LATENCY+1]
231 (ELD) add result1[LOAD_LATENCY-1]=result1[LOAD_LATENCY],word1[LOAD_LATENCY]
232 (ELD) add result2[LOAD_LATENCY-1]=result2[LOAD_LATENCY],word2[LOAD_LATENCY]
242 add result1[LOAD_LATENCY+1]=result1[LOAD_LATENCY+1],carry1
243 add result2[LOAD_LATENCY+1]=result2[LOAD_LATENCY+1],carry2
245 cmp.ltu p6,p0=result1[LOAD_LATENCY+1],carry1
246 cmp.ltu p7,p0=result2[LOAD_LATENCY+1],carry2
248 (p6) adds result1[LOAD_LATENCY+1]=1,result1[LOAD_LATENCY+1]
249 (p7) adds result2[LOAD_LATENCY+1]=1,result2[LOAD_LATENCY+1]
251 add result1[0]=result1[LOAD_LATENCY+1],result2[LOAD_LATENCY+1]
253 cmp.ltu p6,p0=result1[0],result2[LOAD_LATENCY+1]