OpenCores
URL https://opencores.org/ocsvn/ft816float/ft816float/trunk

Subversion Repositories ft816float

[/] [ft816float/] [trunk/] [rtl/] [verilog2/] [fpRes.sv] - Blame information for rev 80

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 29 robfinch
// ============================================================================
2
//        __
3
//   \\__/ o\    (C) 2006-2019  Robert Finch, Waterloo
4
//    \  __ /    All rights reserved.
5
//     \/_//     robfinch@finitron.ca
6
//       ||
7
//
8
//
9
// This source file is free software: you can redistribute it and/or modify
10
// it under the terms of the GNU Lesser General Public License as published
11
// by the Free Software Foundation, either version 3 of the License, or
12
// (at your option) any later version.
13
//
14
// This source file is distributed in the hope that it will be useful,
15
// but WITHOUT ANY WARRANTY; without even the implied warranty of
16
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17
// GNU General Public License for more details.
18
//
19
// You should have received a copy of the GNU General Public License
20
// along with this program.  If not, see .
21
//
22
// ============================================================================
23
//
24
`include "fpConfig.sv"
25
 
26
module fpRes(clk, ce, a, o);
27
parameter FPWID = 128;
28
`include "fpSize.sv"
29
input clk;
30
input ce;
31
input [FPWID-1:0] a;
32
output [FPWID-1:0] o;
33
 
34
// This table encodes two endpoints k0, k1 of a piece-wise linear
35
// approximation to the reciprocal in the range [1.0,2.0).
36
(* ram_style="block" *)
37
reg [31:0] k01 [0:1023];
38
initial begin
39
k01[0] = 32'hfffeffc1;
40
k01[1] = 32'hffbfff41;
41
k01[2] = 32'hff7ffec2;
42
k01[3] = 32'hff3ffe43;
43
k01[4] = 32'hfefffdc4;
44
k01[5] = 32'hfec0fd46;
45
k01[6] = 32'hfe81fcc8;
46
k01[7] = 32'hfe42fc4b;
47
k01[8] = 32'hfe02fbce;
48
k01[9] = 32'hfdc4fb51;
49
k01[10] = 32'hfd85fad5;
50
k01[11] = 32'hfd46fa59;
51
k01[12] = 32'hfd07f9dd;
52
k01[13] = 32'hfcc9f962;
53
k01[14] = 32'hfc8bf8e7;
54
k01[15] = 32'hfc4cf86d;
55
k01[16] = 32'hfc0ef7f2;
56
k01[17] = 32'hfbd0f779;
57
k01[18] = 32'hfb92f6ff;
58
k01[19] = 32'hfb55f686;
59
k01[20] = 32'hfb17f60d;
60
k01[21] = 32'hfad9f595;
61
k01[22] = 32'hfa9cf51d;
62
k01[23] = 32'hfa5ff4a5;
63
k01[24] = 32'hfa22f42e;
64
k01[25] = 32'hf9e5f3b7;
65
k01[26] = 32'hf9a8f340;
66
k01[27] = 32'hf96bf2c9;
67
k01[28] = 32'hf92ef253;
68
k01[29] = 32'hf8f2f1de;
69
k01[30] = 32'hf8b5f168;
70
k01[31] = 32'hf879f0f3;
71
k01[32] = 32'hf83df07e;
72
k01[33] = 32'hf800f00a;
73
k01[34] = 32'hf7c4ef96;
74
k01[35] = 32'hf789ef22;
75
k01[36] = 32'hf74deeaf;
76
k01[37] = 32'hf711ee3c;
77
k01[38] = 32'hf6d6edc9;
78
k01[39] = 32'hf69aed57;
79
k01[40] = 32'hf65fece5;
80
k01[41] = 32'hf624ec73;
81
k01[42] = 32'hf5e8ec01;
82
k01[43] = 32'hf5adeb90;
83
k01[44] = 32'hf573eb1f;
84
k01[45] = 32'hf538eaaf;
85
k01[46] = 32'hf4fdea3f;
86
k01[47] = 32'hf4c2e9cf;
87
k01[48] = 32'hf488e95f;
88
k01[49] = 32'hf44ee8f0;
89
k01[50] = 32'hf413e881;
90
k01[51] = 32'hf3d9e812;
91
k01[52] = 32'hf39fe7a4;
92
k01[53] = 32'hf365e736;
93
k01[54] = 32'hf32ce6c8;
94
k01[55] = 32'hf2f2e65b;
95
k01[56] = 32'hf2b8e5ee;
96
k01[57] = 32'hf27fe581;
97
k01[58] = 32'hf245e515;
98
k01[59] = 32'hf20ce4a8;
99
k01[60] = 32'hf1d3e43c;
100
k01[61] = 32'hf19ae3d1;
101
k01[62] = 32'hf161e366;
102
k01[63] = 32'hf128e2fb;
103
k01[64] = 32'hf0efe290;
104
k01[65] = 32'hf0b7e225;
105
k01[66] = 32'hf07ee1bb;
106
k01[67] = 32'hf046e151;
107
k01[68] = 32'hf00de0e8;
108
k01[69] = 32'hefd5e07f;
109
k01[70] = 32'hef9de016;
110
k01[71] = 32'hef65dfad;
111
k01[72] = 32'hef2ddf45;
112
k01[73] = 32'heef5dedd;
113
k01[74] = 32'heebede75;
114
k01[75] = 32'hee86de0d;
115
k01[76] = 32'hee4fdda6;
116
k01[77] = 32'hee17dd3f;
117
k01[78] = 32'hede0dcd8;
118
k01[79] = 32'heda9dc72;
119
k01[80] = 32'hed72dc0c;
120
k01[81] = 32'hed3adba6;
121
k01[82] = 32'hed04db40;
122
k01[83] = 32'heccddadb;
123
k01[84] = 32'hec96da76;
124
k01[85] = 32'hec5fda11;
125
k01[86] = 32'hec29d9ad;
126
k01[87] = 32'hebf3d948;
127
k01[88] = 32'hebbcd8e4;
128
k01[89] = 32'heb86d881;
129
k01[90] = 32'heb50d81d;
130
k01[91] = 32'heb1ad7ba;
131
k01[92] = 32'heae4d757;
132
k01[93] = 32'heaaed6f5;
133
k01[94] = 32'hea78d692;
134
k01[95] = 32'hea43d630;
135
k01[96] = 32'hea0dd5ce;
136
k01[97] = 32'he9d8d56d;
137
k01[98] = 32'he9a2d50c;
138
k01[99] = 32'he96dd4aa;
139
k01[100] = 32'he938d44a;
140
k01[101] = 32'he903d3e9;
141
k01[102] = 32'he8ced389;
142
k01[103] = 32'he899d329;
143
k01[104] = 32'he864d2c9;
144
k01[105] = 32'he82fd26a;
145
k01[106] = 32'he7fbd20a;
146
k01[107] = 32'he7c6d1ab;
147
k01[108] = 32'he792d14d;
148
k01[109] = 32'he75ed0ee;
149
k01[110] = 32'he729d090;
150
k01[111] = 32'he6f5d032;
151
k01[112] = 32'he6c1cfd4;
152
k01[113] = 32'he68dcf77;
153
k01[114] = 32'he659cf19;
154
k01[115] = 32'he626cebc;
155
k01[116] = 32'he5f2ce60;
156
k01[117] = 32'he5bece03;
157
k01[118] = 32'he58bcda7;
158
k01[119] = 32'he557cd4b;
159
k01[120] = 32'he524ccef;
160
k01[121] = 32'he4f1cc93;
161
k01[122] = 32'he4becc38;
162
k01[123] = 32'he48bcbdd;
163
k01[124] = 32'he458cb82;
164
k01[125] = 32'he425cb28;
165
k01[126] = 32'he3f2cacd;
166
k01[127] = 32'he3bfca73;
167
k01[128] = 32'he38dca19;
168
k01[129] = 32'he35ac9bf;
169
k01[130] = 32'he328c966;
170
k01[131] = 32'he2f5c90d;
171
k01[132] = 32'he2c3c8b4;
172
k01[133] = 32'he291c85b;
173
k01[134] = 32'he25fc803;
174
k01[135] = 32'he22dc7aa;
175
k01[136] = 32'he1fbc752;
176
k01[137] = 32'he1c9c6fa;
177
k01[138] = 32'he197c6a3;
178
k01[139] = 32'he166c64b;
179
k01[140] = 32'he134c5f4;
180
k01[141] = 32'he103c59d;
181
k01[142] = 32'he0d1c547;
182
k01[143] = 32'he0a0c4f0;
183
k01[144] = 32'he06fc49a;
184
k01[145] = 32'he03ec444;
185
k01[146] = 32'he00cc3ee;
186
k01[147] = 32'hdfdcc399;
187
k01[148] = 32'hdfabc343;
188
k01[149] = 32'hdf7ac2ee;
189
k01[150] = 32'hdf49c299;
190
k01[151] = 32'hdf18c244;
191
k01[152] = 32'hdee8c1f0;
192
k01[153] = 32'hdeb7c19c;
193
k01[154] = 32'hde87c147;
194
k01[155] = 32'hde57c0f4;
195
k01[156] = 32'hde26c0a0;
196
k01[157] = 32'hddf6c04d;
197
k01[158] = 32'hddc6bff9;
198
k01[159] = 32'hdd96bfa6;
199
k01[160] = 32'hdd66bf53;
200
k01[161] = 32'hdd36bf01;
201
k01[162] = 32'hdd07beaf;
202
k01[163] = 32'hdcd7be5c;
203
k01[164] = 32'hdca7be0a;
204
k01[165] = 32'hdc78bdb9;
205
k01[166] = 32'hdc48bd67;
206
k01[167] = 32'hdc19bd16;
207
k01[168] = 32'hdbeabcc5;
208
k01[169] = 32'hdbbbbc74;
209
k01[170] = 32'hdb8cbc23;
210
k01[171] = 32'hdb5dbbd2;
211
k01[172] = 32'hdb2ebb82;
212
k01[173] = 32'hdaffbb32;
213
k01[174] = 32'hdad0bae2;
214
k01[175] = 32'hdaa1ba92;
215
k01[176] = 32'hda73ba43;
216
k01[177] = 32'hda44b9f3;
217
k01[178] = 32'hda15b9a4;
218
k01[179] = 32'hd9e7b955;
219
k01[180] = 32'hd9b9b906;
220
k01[181] = 32'hd98ab8b8;
221
k01[182] = 32'hd95cb86a;
222
k01[183] = 32'hd92eb81b;
223
k01[184] = 32'hd900b7cd;
224
k01[185] = 32'hd8d2b780;
225
k01[186] = 32'hd8a4b732;
226
k01[187] = 32'hd877b6e5;
227
k01[188] = 32'hd849b697;
228
k01[189] = 32'hd81bb64a;
229
k01[190] = 32'hd7eeb5fe;
230
k01[191] = 32'hd7c0b5b1;
231
k01[192] = 32'hd793b565;
232
k01[193] = 32'hd765b518;
233
k01[194] = 32'hd738b4cc;
234
k01[195] = 32'hd70bb480;
235
k01[196] = 32'hd6deb435;
236
k01[197] = 32'hd6b1b3e9;
237
k01[198] = 32'hd684b39e;
238
k01[199] = 32'hd657b353;
239
k01[200] = 32'hd62ab308;
240
k01[201] = 32'hd5fdb2bd;
241
k01[202] = 32'hd5d1b272;
242
k01[203] = 32'hd5a4b228;
243
k01[204] = 32'hd577b1de;
244
k01[205] = 32'hd54bb194;
245
k01[206] = 32'hd51fb14a;
246
k01[207] = 32'hd4f2b100;
247
k01[208] = 32'hd4c6b0b7;
248
k01[209] = 32'hd49ab06d;
249
k01[210] = 32'hd46eb024;
250
k01[211] = 32'hd442afdb;
251
k01[212] = 32'hd416af93;
252
k01[213] = 32'hd3eaaf4a;
253
k01[214] = 32'hd3beaf02;
254
k01[215] = 32'hd392aeb9;
255
k01[216] = 32'hd367ae71;
256
k01[217] = 32'hd33bae29;
257
k01[218] = 32'hd30fade2;
258
k01[219] = 32'hd2e4ad9a;
259
k01[220] = 32'hd2b9ad53;
260
k01[221] = 32'hd28dad0b;
261
k01[222] = 32'hd262acc4;
262
k01[223] = 32'hd237ac7d;
263
k01[224] = 32'hd20cac37;
264
k01[225] = 32'hd1e1abf0;
265
k01[226] = 32'hd1b6abaa;
266
k01[227] = 32'hd18bab64;
267
k01[228] = 32'hd160ab1e;
268
k01[229] = 32'hd135aad8;
269
k01[230] = 32'hd10aaa92;
270
k01[231] = 32'hd0e0aa4c;
271
k01[232] = 32'hd0b5aa07;
272
k01[233] = 32'hd08ba9c2;
273
k01[234] = 32'hd060a97d;
274
k01[235] = 32'hd036a938;
275
k01[236] = 32'hd00ba8f3;
276
k01[237] = 32'hcfe1a8af;
277
k01[238] = 32'hcfb7a86a;
278
k01[239] = 32'hcf8da826;
279
k01[240] = 32'hcf63a7e2;
280
k01[241] = 32'hcf39a79e;
281
k01[242] = 32'hcf0fa75a;
282
k01[243] = 32'hcee5a717;
283
k01[244] = 32'hcebba6d3;
284
k01[245] = 32'hce92a690;
285
k01[246] = 32'hce68a64d;
286
k01[247] = 32'hce3fa60a;
287
k01[248] = 32'hce15a5c7;
288
k01[249] = 32'hcdeca585;
289
k01[250] = 32'hcdc2a542;
290
k01[251] = 32'hcd99a500;
291
k01[252] = 32'hcd70a4be;
292
k01[253] = 32'hcd46a47c;
293
k01[254] = 32'hcd1da43a;
294
k01[255] = 32'hccf4a3f8;
295
k01[256] = 32'hcccba3b7;
296
k01[257] = 32'hcca2a375;
297
k01[258] = 32'hcc79a334;
298
k01[259] = 32'hcc51a2f3;
299
k01[260] = 32'hcc28a2b2;
300
k01[261] = 32'hcbffa271;
301
k01[262] = 32'hcbd7a231;
302
k01[263] = 32'hcbaea1f0;
303
k01[264] = 32'hcb86a1b0;
304
k01[265] = 32'hcb5da170;
305
k01[266] = 32'hcb35a130;
306
k01[267] = 32'hcb0da0f0;
307
k01[268] = 32'hcae4a0b0;
308
k01[269] = 32'hcabca071;
309
k01[270] = 32'hca94a031;
310
k01[271] = 32'hca6c9ff2;
311
k01[272] = 32'hca449fb3;
312
k01[273] = 32'hca1c9f74;
313
k01[274] = 32'hc9f49f35;
314
k01[275] = 32'hc9cc9ef6;
315
k01[276] = 32'hc9a59eb8;
316
k01[277] = 32'hc97d9e79;
317
k01[278] = 32'hc9559e3b;
318
k01[279] = 32'hc92e9dfd;
319
k01[280] = 32'hc9069dbf;
320
k01[281] = 32'hc8df9d81;
321
k01[282] = 32'hc8b89d43;
322
k01[283] = 32'hc8909d06;
323
k01[284] = 32'hc8699cc8;
324
k01[285] = 32'hc8429c8b;
325
k01[286] = 32'hc81b9c4e;
326
k01[287] = 32'hc7f49c11;
327
k01[288] = 32'hc7cd9bd4;
328
k01[289] = 32'hc7a69b97;
329
k01[290] = 32'hc77f9b5b;
330
k01[291] = 32'hc7589b1e;
331
k01[292] = 32'hc7319ae2;
332
k01[293] = 32'hc70a9aa6;
333
k01[294] = 32'hc6e49a6a;
334
k01[295] = 32'hc6bd9a2e;
335
k01[296] = 32'hc69799f2;
336
k01[297] = 32'hc67099b7;
337
k01[298] = 32'hc64a997b;
338
k01[299] = 32'hc6239940;
339
k01[300] = 32'hc5fd9905;
340
k01[301] = 32'hc5d798c9;
341
k01[302] = 32'hc5b0988e;
342
k01[303] = 32'hc58a9854;
343
k01[304] = 32'hc5649819;
344
k01[305] = 32'hc53e97de;
345
k01[306] = 32'hc51897a4;
346
k01[307] = 32'hc4f2976a;
347
k01[308] = 32'hc4cd9730;
348
k01[309] = 32'hc4a796f6;
349
k01[310] = 32'hc48196bc;
350
k01[311] = 32'hc45b9682;
351
k01[312] = 32'hc4369648;
352
k01[313] = 32'hc410960f;
353
k01[314] = 32'hc3eb95d5;
354
k01[315] = 32'hc3c5959c;
355
k01[316] = 32'hc3a09563;
356
k01[317] = 32'hc37a952a;
357
k01[318] = 32'hc35594f1;
358
k01[319] = 32'hc33094b8;
359
k01[320] = 32'hc30b9480;
360
k01[321] = 32'hc2e69447;
361
k01[322] = 32'hc2c0940f;
362
k01[323] = 32'hc29b93d7;
363
k01[324] = 32'hc277939f;
364
k01[325] = 32'hc2529367;
365
k01[326] = 32'hc22d932f;
366
k01[327] = 32'hc20892f7;
367
k01[328] = 32'hc1e392bf;
368
k01[329] = 32'hc1bf9288;
369
k01[330] = 32'hc19a9251;
370
k01[331] = 32'hc1759219;
371
k01[332] = 32'hc15191e2;
372
k01[333] = 32'hc12c91ab;
373
k01[334] = 32'hc1089174;
374
k01[335] = 32'hc0e4913e;
375
k01[336] = 32'hc0bf9107;
376
k01[337] = 32'hc09b90d0;
377
k01[338] = 32'hc077909a;
378
k01[339] = 32'hc0539064;
379
k01[340] = 32'hc02f902e;
380
k01[341] = 32'hc00a8ff8;
381
k01[342] = 32'hbfe78fc2;
382
k01[343] = 32'hbfc38f8c;
383
k01[344] = 32'hbf9f8f56;
384
k01[345] = 32'hbf7b8f21;
385
k01[346] = 32'hbf578eeb;
386
k01[347] = 32'hbf338eb6;
387
k01[348] = 32'hbf108e81;
388
k01[349] = 32'hbeec8e4b;
389
k01[350] = 32'hbec88e16;
390
k01[351] = 32'hbea58de2;
391
k01[352] = 32'hbe818dad;
392
k01[353] = 32'hbe5e8d78;
393
k01[354] = 32'hbe3b8d44;
394
k01[355] = 32'hbe178d0f;
395
k01[356] = 32'hbdf48cdb;
396
k01[357] = 32'hbdd18ca7;
397
k01[358] = 32'hbdae8c73;
398
k01[359] = 32'hbd8b8c3f;
399
k01[360] = 32'hbd688c0b;
400
k01[361] = 32'hbd458bd7;
401
k01[362] = 32'hbd228ba4;
402
k01[363] = 32'hbcff8b70;
403
k01[364] = 32'hbcdc8b3d;
404
k01[365] = 32'hbcb98b09;
405
k01[366] = 32'hbc968ad6;
406
k01[367] = 32'hbc748aa3;
407
k01[368] = 32'hbc518a70;
408
k01[369] = 32'hbc2e8a3d;
409
k01[370] = 32'hbc0c8a0b;
410
k01[371] = 32'hbbe989d8;
411
k01[372] = 32'hbbc789a5;
412
k01[373] = 32'hbba48973;
413
k01[374] = 32'hbb828941;
414
k01[375] = 32'hbb60890f;
415
k01[376] = 32'hbb3d88dc;
416
k01[377] = 32'hbb1b88aa;
417
k01[378] = 32'hbaf98879;
418
k01[379] = 32'hbad78847;
419
k01[380] = 32'hbab58815;
420
k01[381] = 32'hba9387e4;
421
k01[382] = 32'hba7187b2;
422
k01[383] = 32'hba4f8781;
423
k01[384] = 32'hba2d8750;
424
k01[385] = 32'hba0b871e;
425
k01[386] = 32'hb9e986ed;
426
k01[387] = 32'hb9c886bc;
427
k01[388] = 32'hb9a6868c;
428
k01[389] = 32'hb984865b;
429
k01[390] = 32'hb963862a;
430
k01[391] = 32'hb94185fa;
431
k01[392] = 32'hb92085c9;
432
k01[393] = 32'hb8fe8599;
433
k01[394] = 32'hb8dd8569;
434
k01[395] = 32'hb8bc8539;
435
k01[396] = 32'hb89a8509;
436
k01[397] = 32'hb87984d9;
437
k01[398] = 32'hb85884a9;
438
k01[399] = 32'hb8378479;
439
k01[400] = 32'hb816844a;
440
k01[401] = 32'hb7f4841a;
441
k01[402] = 32'hb7d383eb;
442
k01[403] = 32'hb7b283bc;
443
k01[404] = 32'hb791838c;
444
k01[405] = 32'hb771835d;
445
k01[406] = 32'hb750832e;
446
k01[407] = 32'hb72f82ff;
447
k01[408] = 32'hb70e82d1;
448
k01[409] = 32'hb6ee82a2;
449
k01[410] = 32'hb6cd8273;
450
k01[411] = 32'hb6ac8245;
451
k01[412] = 32'hb68c8216;
452
k01[413] = 32'hb66b81e8;
453
k01[414] = 32'hb64b81ba;
454
k01[415] = 32'hb62a818c;
455
k01[416] = 32'hb60a815e;
456
k01[417] = 32'hb5ea8130;
457
k01[418] = 32'hb5c98102;
458
k01[419] = 32'hb5a980d4;
459
k01[420] = 32'hb58980a7;
460
k01[421] = 32'hb5698079;
461
k01[422] = 32'hb548804c;
462
k01[423] = 32'hb528801e;
463
k01[424] = 32'hb5087ff1;
464
k01[425] = 32'hb4e87fc4;
465
k01[426] = 32'hb4c87f97;
466
k01[427] = 32'hb4a97f6a;
467
k01[428] = 32'hb4897f3d;
468
k01[429] = 32'hb4697f10;
469
k01[430] = 32'hb4497ee3;
470
k01[431] = 32'hb4297eb7;
471
k01[432] = 32'hb40a7e8a;
472
k01[433] = 32'hb3ea7e5e;
473
k01[434] = 32'hb3cb7e31;
474
k01[435] = 32'hb3ab7e05;
475
k01[436] = 32'hb38b7dd9;
476
k01[437] = 32'hb36c7dad;
477
k01[438] = 32'hb34d7d81;
478
k01[439] = 32'hb32d7d55;
479
k01[440] = 32'hb30e7d29;
480
k01[441] = 32'hb2ef7cfd;
481
k01[442] = 32'hb2cf7cd2;
482
k01[443] = 32'hb2b07ca6;
483
k01[444] = 32'hb2917c7b;
484
k01[445] = 32'hb2727c4f;
485
k01[446] = 32'hb2537c24;
486
k01[447] = 32'hb2347bf9;
487
k01[448] = 32'hb2157bce;
488
k01[449] = 32'hb1f67ba3;
489
k01[450] = 32'hb1d77b78;
490
k01[451] = 32'hb1b87b4d;
491
k01[452] = 32'hb1997b22;
492
k01[453] = 32'hb17a7af8;
493
k01[454] = 32'hb15c7acd;
494
k01[455] = 32'hb13d7aa3;
495
k01[456] = 32'hb11e7a78;
496
k01[457] = 32'hb1007a4e;
497
k01[458] = 32'hb0e17a24;
498
k01[459] = 32'hb0c379fa;
499
k01[460] = 32'hb0a479d0;
500
k01[461] = 32'hb08679a6;
501
k01[462] = 32'hb067797c;
502
k01[463] = 32'hb0497952;
503
k01[464] = 32'hb02b7928;
504
k01[465] = 32'hb00c78ff;
505
k01[466] = 32'hafee78d5;
506
k01[467] = 32'hafd078ac;
507
k01[468] = 32'hafb27882;
508
k01[469] = 32'haf937859;
509
k01[470] = 32'haf757830;
510
k01[471] = 32'haf577807;
511
k01[472] = 32'haf3977de;
512
k01[473] = 32'haf1b77b5;
513
k01[474] = 32'haefd778c;
514
k01[475] = 32'haee07763;
515
k01[476] = 32'haec2773a;
516
k01[477] = 32'haea47712;
517
k01[478] = 32'hae8676e9;
518
k01[479] = 32'hae6876c0;
519
k01[480] = 32'hae4b7698;
520
k01[481] = 32'hae2d7670;
521
k01[482] = 32'hae0f7648;
522
k01[483] = 32'hadf2761f;
523
k01[484] = 32'hadd475f7;
524
k01[485] = 32'hadb775cf;
525
k01[486] = 32'had9975a7;
526
k01[487] = 32'had7c7580;
527
k01[488] = 32'had5f7558;
528
k01[489] = 32'had417530;
529
k01[490] = 32'had247508;
530
k01[491] = 32'had0774e1;
531
k01[492] = 32'hacea74b9;
532
k01[493] = 32'haccc7492;
533
k01[494] = 32'hacaf746b;
534
k01[495] = 32'hac927444;
535
k01[496] = 32'hac75741c;
536
k01[497] = 32'hac5873f5;
537
k01[498] = 32'hac3b73ce;
538
k01[499] = 32'hac1e73a8;
539
k01[500] = 32'hac017381;
540
k01[501] = 32'habe4735a;
541
k01[502] = 32'habc77333;
542
k01[503] = 32'habab730d;
543
k01[504] = 32'hab8e72e6;
544
k01[505] = 32'hab7172c0;
545
k01[506] = 32'hab547299;
546
k01[507] = 32'hab387273;
547
k01[508] = 32'hab1b724d;
548
k01[509] = 32'haaff7227;
549
k01[510] = 32'haae27201;
550
k01[511] = 32'haac671db;
551
k01[512] = 32'haaa971b5;
552
k01[513] = 32'haa8d718f;
553
k01[514] = 32'haa707169;
554
k01[515] = 32'haa547143;
555
k01[516] = 32'haa38711e;
556
k01[517] = 32'haa1b70f8;
557
k01[518] = 32'ha9ff70d3;
558
k01[519] = 32'ha9e370ad;
559
k01[520] = 32'ha9c77088;
560
k01[521] = 32'ha9ab7063;
561
k01[522] = 32'ha98f703d;
562
k01[523] = 32'ha9727018;
563
k01[524] = 32'ha9566ff3;
564
k01[525] = 32'ha93a6fce;
565
k01[526] = 32'ha91f6fa9;
566
k01[527] = 32'ha9036f85;
567
k01[528] = 32'ha8e76f60;
568
k01[529] = 32'ha8cb6f3b;
569
k01[530] = 32'ha8af6f16;
570
k01[531] = 32'ha8936ef2;
571
k01[532] = 32'ha8786ecd;
572
k01[533] = 32'ha85c6ea9;
573
k01[534] = 32'ha8406e85;
574
k01[535] = 32'ha8256e60;
575
k01[536] = 32'ha8096e3c;
576
k01[537] = 32'ha7ed6e18;
577
k01[538] = 32'ha7d26df4;
578
k01[539] = 32'ha7b66dd0;
579
k01[540] = 32'ha79b6dac;
580
k01[541] = 32'ha7806d88;
581
k01[542] = 32'ha7646d64;
582
k01[543] = 32'ha7496d41;
583
k01[544] = 32'ha72e6d1d;
584
k01[545] = 32'ha7126cf9;
585
k01[546] = 32'ha6f76cd6;
586
k01[547] = 32'ha6dc6cb3;
587
k01[548] = 32'ha6c16c8f;
588
k01[549] = 32'ha6a56c6c;
589
k01[550] = 32'ha68a6c49;
590
k01[551] = 32'ha66f6c25;
591
k01[552] = 32'ha6546c02;
592
k01[553] = 32'ha6396bdf;
593
k01[554] = 32'ha61e6bbc;
594
k01[555] = 32'ha6036b99;
595
k01[556] = 32'ha5e86b77;
596
k01[557] = 32'ha5ce6b54;
597
k01[558] = 32'ha5b36b31;
598
k01[559] = 32'ha5986b0e;
599
k01[560] = 32'ha57d6aec;
600
k01[561] = 32'ha5626ac9;
601
k01[562] = 32'ha5486aa7;
602
k01[563] = 32'ha52d6a84;
603
k01[564] = 32'ha5126a62;
604
k01[565] = 32'ha4f86a40;
605
k01[566] = 32'ha4dd6a1e;
606
k01[567] = 32'ha4c369fc;
607
k01[568] = 32'ha4a869d9;
608
k01[569] = 32'ha48e69b7;
609
k01[570] = 32'ha4736996;
610
k01[571] = 32'ha4596974;
611
k01[572] = 32'ha43f6952;
612
k01[573] = 32'ha4246930;
613
k01[574] = 32'ha40a690e;
614
k01[575] = 32'ha3f068ed;
615
k01[576] = 32'ha3d668cb;
616
k01[577] = 32'ha3bb68aa;
617
k01[578] = 32'ha3a16888;
618
k01[579] = 32'ha3876867;
619
k01[580] = 32'ha36d6846;
620
k01[581] = 32'ha3536824;
621
k01[582] = 32'ha3396803;
622
k01[583] = 32'ha31f67e2;
623
k01[584] = 32'ha30567c1;
624
k01[585] = 32'ha2eb67a0;
625
k01[586] = 32'ha2d1677f;
626
k01[587] = 32'ha2b7675e;
627
k01[588] = 32'ha29d673d;
628
k01[589] = 32'ha283671d;
629
k01[590] = 32'ha26a66fc;
630
k01[591] = 32'ha25066db;
631
k01[592] = 32'ha23666bb;
632
k01[593] = 32'ha21d669a;
633
k01[594] = 32'ha203667a;
634
k01[595] = 32'ha1e9665a;
635
k01[596] = 32'ha1d06639;
636
k01[597] = 32'ha1b66619;
637
k01[598] = 32'ha19d65f9;
638
k01[599] = 32'ha18365d9;
639
k01[600] = 32'ha16a65b8;
640
k01[601] = 32'ha1506598;
641
k01[602] = 32'ha1376578;
642
k01[603] = 32'ha11d6559;
643
k01[604] = 32'ha1046539;
644
k01[605] = 32'ha0eb6519;
645
k01[606] = 32'ha0d264f9;
646
k01[607] = 32'ha0b864d9;
647
k01[608] = 32'ha09f64ba;
648
k01[609] = 32'ha086649a;
649
k01[610] = 32'ha06d647b;
650
k01[611] = 32'ha054645b;
651
k01[612] = 32'ha03b643c;
652
k01[613] = 32'ha022641d;
653
k01[614] = 32'ha00863fd;
654
k01[615] = 32'h9ff063de;
655
k01[616] = 32'h9fd763bf;
656
k01[617] = 32'h9fbe63a0;
657
k01[618] = 32'h9fa56381;
658
k01[619] = 32'h9f8c6362;
659
k01[620] = 32'h9f736343;
660
k01[621] = 32'h9f5a6324;
661
k01[622] = 32'h9f416305;
662
k01[623] = 32'h9f2962e6;
663
k01[624] = 32'h9f1062c8;
664
k01[625] = 32'h9ef762a9;
665
k01[626] = 32'h9edf628b;
666
k01[627] = 32'h9ec6626c;
667
k01[628] = 32'h9ead624e;
668
k01[629] = 32'h9e95622f;
669
k01[630] = 32'h9e7c6211;
670
k01[631] = 32'h9e6461f2;
671
k01[632] = 32'h9e4b61d4;
672
k01[633] = 32'h9e3361b6;
673
k01[634] = 32'h9e1a6198;
674
k01[635] = 32'h9e02617a;
675
k01[636] = 32'h9dea615c;
676
k01[637] = 32'h9dd1613e;
677
k01[638] = 32'h9db96120;
678
k01[639] = 32'h9da16102;
679
k01[640] = 32'h9d8860e4;
680
k01[641] = 32'h9d7060c6;
681
k01[642] = 32'h9d5860a8;
682
k01[643] = 32'h9d40608b;
683
k01[644] = 32'h9d28606d;
684
k01[645] = 32'h9d106050;
685
k01[646] = 32'h9cf76032;
686
k01[647] = 32'h9cdf6015;
687
k01[648] = 32'h9cc75ff7;
688
k01[649] = 32'h9caf5fda;
689
k01[650] = 32'h9c975fbd;
690
k01[651] = 32'h9c7f5f9f;
691
k01[652] = 32'h9c685f82;
692
k01[653] = 32'h9c505f65;
693
k01[654] = 32'h9c385f48;
694
k01[655] = 32'h9c205f2b;
695
k01[656] = 32'h9c085f0e;
696
k01[657] = 32'h9bf05ef1;
697
k01[658] = 32'h9bd95ed4;
698
k01[659] = 32'h9bc15eb7;
699
k01[660] = 32'h9ba95e9a;
700
k01[661] = 32'h9b925e7e;
701
k01[662] = 32'h9b7a5e61;
702
k01[663] = 32'h9b625e44;
703
k01[664] = 32'h9b4b5e28;
704
k01[665] = 32'h9b335e0b;
705
k01[666] = 32'h9b1c5def;
706
k01[667] = 32'h9b045dd2;
707
k01[668] = 32'h9aed5db6;
708
k01[669] = 32'h9ad65d9a;
709
k01[670] = 32'h9abe5d7d;
710
k01[671] = 32'h9aa75d61;
711
k01[672] = 32'h9a8f5d45;
712
k01[673] = 32'h9a785d29;
713
k01[674] = 32'h9a615d0d;
714
k01[675] = 32'h9a4a5cf1;
715
k01[676] = 32'h9a325cd5;
716
k01[677] = 32'h9a1b5cb9;
717
k01[678] = 32'h9a045c9d;
718
k01[679] = 32'h99ed5c81;
719
k01[680] = 32'h99d65c65;
720
k01[681] = 32'h99bf5c4a;
721
k01[682] = 32'h99a75c2e;
722
k01[683] = 32'h99905c12;
723
k01[684] = 32'h99795bf7;
724
k01[685] = 32'h99625bdb;
725
k01[686] = 32'h994b5bc0;
726
k01[687] = 32'h99355ba4;
727
k01[688] = 32'h991e5b89;
728
k01[689] = 32'h99075b6e;
729
k01[690] = 32'h98f05b52;
730
k01[691] = 32'h98d95b37;
731
k01[692] = 32'h98c25b1c;
732
k01[693] = 32'h98ab5b01;
733
k01[694] = 32'h98955ae6;
734
k01[695] = 32'h987e5acb;
735
k01[696] = 32'h98675ab0;
736
k01[697] = 32'h98515a95;
737
k01[698] = 32'h983a5a7a;
738
k01[699] = 32'h98235a5f;
739
k01[700] = 32'h980d5a44;
740
k01[701] = 32'h97f65a29;
741
k01[702] = 32'h97e05a0f;
742
k01[703] = 32'h97c959f4;
743
k01[704] = 32'h97b359d9;
744
k01[705] = 32'h979c59bf;
745
k01[706] = 32'h978659a4;
746
k01[707] = 32'h976f598a;
747
k01[708] = 32'h9759596f;
748
k01[709] = 32'h97435955;
749
k01[710] = 32'h972c593a;
750
k01[711] = 32'h97165920;
751
k01[712] = 32'h97005906;
752
k01[713] = 32'h96e958ec;
753
k01[714] = 32'h96d358d1;
754
k01[715] = 32'h96bd58b7;
755
k01[716] = 32'h96a7589d;
756
k01[717] = 32'h96915883;
757
k01[718] = 32'h967b5869;
758
k01[719] = 32'h9664584f;
759
k01[720] = 32'h964e5835;
760
k01[721] = 32'h9638581b;
761
k01[722] = 32'h96225802;
762
k01[723] = 32'h960c57e8;
763
k01[724] = 32'h95f657ce;
764
k01[725] = 32'h95e057b4;
765
k01[726] = 32'h95ca579b;
766
k01[727] = 32'h95b55781;
767
k01[728] = 32'h959f5768;
768
k01[729] = 32'h9589574e;
769
k01[730] = 32'h95735735;
770
k01[731] = 32'h955d571b;
771
k01[732] = 32'h95475702;
772
k01[733] = 32'h953256e8;
773
k01[734] = 32'h951c56cf;
774
k01[735] = 32'h950656b6;
775
k01[736] = 32'h94f1569d;
776
k01[737] = 32'h94db5683;
777
k01[738] = 32'h94c5566a;
778
k01[739] = 32'h94b05651;
779
k01[740] = 32'h949a5638;
780
k01[741] = 32'h9485561f;
781
k01[742] = 32'h946f5606;
782
k01[743] = 32'h945955ed;
783
k01[744] = 32'h944455d5;
784
k01[745] = 32'h942f55bc;
785
k01[746] = 32'h941955a3;
786
k01[747] = 32'h9404558a;
787
k01[748] = 32'h93ee5571;
788
k01[749] = 32'h93d95559;
789
k01[750] = 32'h93c45540;
790
k01[751] = 32'h93ae5528;
791
k01[752] = 32'h9399550f;
792
k01[753] = 32'h938454f7;
793
k01[754] = 32'h936f54de;
794
k01[755] = 32'h935954c6;
795
k01[756] = 32'h934454ad;
796
k01[757] = 32'h932f5495;
797
k01[758] = 32'h931a547d;
798
k01[759] = 32'h93055464;
799
k01[760] = 32'h92f0544c;
800
k01[761] = 32'h92da5434;
801
k01[762] = 32'h92c5541c;
802
k01[763] = 32'h92b05404;
803
k01[764] = 32'h929b53ec;
804
k01[765] = 32'h928653d4;
805
k01[766] = 32'h927153bc;
806
k01[767] = 32'h925d53a4;
807
k01[768] = 32'h9248538c;
808
k01[769] = 32'h92335374;
809
k01[770] = 32'h921e535c;
810
k01[771] = 32'h92095345;
811
k01[772] = 32'h91f4532d;
812
k01[773] = 32'h91df5315;
813
k01[774] = 32'h91cb52fe;
814
k01[775] = 32'h91b652e6;
815
k01[776] = 32'h91a152ce;
816
k01[777] = 32'h918c52b7;
817
k01[778] = 32'h9178529f;
818
k01[779] = 32'h91635288;
819
k01[780] = 32'h914f5271;
820
k01[781] = 32'h913a5259;
821
k01[782] = 32'h91255242;
822
k01[783] = 32'h9111522b;
823
k01[784] = 32'h90fc5213;
824
k01[785] = 32'h90e851fc;
825
k01[786] = 32'h90d351e5;
826
k01[787] = 32'h90bf51ce;
827
k01[788] = 32'h90aa51b7;
828
k01[789] = 32'h909651a0;
829
k01[790] = 32'h90815189;
830
k01[791] = 32'h906d5172;
831
k01[792] = 32'h9059515b;
832
k01[793] = 32'h90445144;
833
k01[794] = 32'h9030512d;
834
k01[795] = 32'h901c5116;
835
k01[796] = 32'h900750ff;
836
k01[797] = 32'h8ff350e8;
837
k01[798] = 32'h8fdf50d2;
838
k01[799] = 32'h8fcb50bb;
839
k01[800] = 32'h8fb750a4;
840
k01[801] = 32'h8fa2508e;
841
k01[802] = 32'h8f8e5077;
842
k01[803] = 32'h8f7a5061;
843
k01[804] = 32'h8f66504a;
844
k01[805] = 32'h8f525034;
845
k01[806] = 32'h8f3e501d;
846
k01[807] = 32'h8f2a5007;
847
k01[808] = 32'h8f164ff1;
848
k01[809] = 32'h8f024fda;
849
k01[810] = 32'h8eee4fc4;
850
k01[811] = 32'h8eda4fae;
851
k01[812] = 32'h8ec64f98;
852
k01[813] = 32'h8eb24f81;
853
k01[814] = 32'h8e9e4f6b;
854
k01[815] = 32'h8e8b4f55;
855
k01[816] = 32'h8e774f3f;
856
k01[817] = 32'h8e634f29;
857
k01[818] = 32'h8e4f4f13;
858
k01[819] = 32'h8e3b4efd;
859
k01[820] = 32'h8e284ee7;
860
k01[821] = 32'h8e144ed1;
861
k01[822] = 32'h8e004ebb;
862
k01[823] = 32'h8dec4ea6;
863
k01[824] = 32'h8dd94e90;
864
k01[825] = 32'h8dc54e7a;
865
k01[826] = 32'h8db24e64;
866
k01[827] = 32'h8d9e4e4f;
867
k01[828] = 32'h8d8a4e39;
868
k01[829] = 32'h8d774e23;
869
k01[830] = 32'h8d634e0e;
870
k01[831] = 32'h8d504df8;
871
k01[832] = 32'h8d3c4de3;
872
k01[833] = 32'h8d294dcd;
873
k01[834] = 32'h8d154db8;
874
k01[835] = 32'h8d024da3;
875
k01[836] = 32'h8cef4d8d;
876
k01[837] = 32'h8cdb4d78;
877
k01[838] = 32'h8cc84d63;
878
k01[839] = 32'h8cb44d4d;
879
k01[840] = 32'h8ca14d38;
880
k01[841] = 32'h8c8e4d23;
881
k01[842] = 32'h8c7b4d0e;
882
k01[843] = 32'h8c674cf9;
883
k01[844] = 32'h8c544ce4;
884
k01[845] = 32'h8c414ccf;
885
k01[846] = 32'h8c2e4cba;
886
k01[847] = 32'h8c1a4ca5;
887
k01[848] = 32'h8c074c90;
888
k01[849] = 32'h8bf44c7b;
889
k01[850] = 32'h8be14c66;
890
k01[851] = 32'h8bce4c51;
891
k01[852] = 32'h8bbb4c3c;
892
k01[853] = 32'h8ba84c27;
893
k01[854] = 32'h8b954c13;
894
k01[855] = 32'h8b824bfe;
895
k01[856] = 32'h8b6f4be9;
896
k01[857] = 32'h8b5c4bd5;
897
k01[858] = 32'h8b494bc0;
898
k01[859] = 32'h8b364bab;
899
k01[860] = 32'h8b234b97;
900
k01[861] = 32'h8b104b82;
901
k01[862] = 32'h8afd4b6e;
902
k01[863] = 32'h8aea4b59;
903
k01[864] = 32'h8ad74b45;
904
k01[865] = 32'h8ac54b31;
905
k01[866] = 32'h8ab24b1c;
906
k01[867] = 32'h8a9f4b08;
907
k01[868] = 32'h8a8c4af4;
908
k01[869] = 32'h8a7a4adf;
909
k01[870] = 32'h8a674acb;
910
k01[871] = 32'h8a544ab7;
911
k01[872] = 32'h8a414aa3;
912
k01[873] = 32'h8a2f4a8f;
913
k01[874] = 32'h8a1c4a7a;
914
k01[875] = 32'h8a0a4a66;
915
k01[876] = 32'h89f74a52;
916
k01[877] = 32'h89e44a3e;
917
k01[878] = 32'h89d24a2a;
918
k01[879] = 32'h89bf4a16;
919
k01[880] = 32'h89ad4a03;
920
k01[881] = 32'h899a49ef;
921
k01[882] = 32'h898849db;
922
k01[883] = 32'h897549c7;
923
k01[884] = 32'h896349b3;
924
k01[885] = 32'h8950499f;
925
k01[886] = 32'h893e498c;
926
k01[887] = 32'h892c4978;
927
k01[888] = 32'h89194964;
928
k01[889] = 32'h89074951;
929
k01[890] = 32'h88f5493d;
930
k01[891] = 32'h88e2492a;
931
k01[892] = 32'h88d04916;
932
k01[893] = 32'h88be4902;
933
k01[894] = 32'h88ab48ef;
934
k01[895] = 32'h889948dc;
935
k01[896] = 32'h888748c8;
936
k01[897] = 32'h887548b5;
937
k01[898] = 32'h886348a1;
938
k01[899] = 32'h8851488e;
939
k01[900] = 32'h883e487b;
940
k01[901] = 32'h882c4868;
941
k01[902] = 32'h881a4854;
942
k01[903] = 32'h88084841;
943
k01[904] = 32'h87f6482e;
944
k01[905] = 32'h87e4481b;
945
k01[906] = 32'h87d24808;
946
k01[907] = 32'h87c047f5;
947
k01[908] = 32'h87ae47e1;
948
k01[909] = 32'h879c47ce;
949
k01[910] = 32'h878a47bb;
950
k01[911] = 32'h877847a8;
951
k01[912] = 32'h87664796;
952
k01[913] = 32'h87544783;
953
k01[914] = 32'h87424770;
954
k01[915] = 32'h8731475d;
955
k01[916] = 32'h871f474a;
956
k01[917] = 32'h870d4737;
957
k01[918] = 32'h86fb4725;
958
k01[919] = 32'h86e94712;
959
k01[920] = 32'h86d846ff;
960
k01[921] = 32'h86c646ec;
961
k01[922] = 32'h86b446da;
962
k01[923] = 32'h86a246c7;
963
k01[924] = 32'h869146b5;
964
k01[925] = 32'h867f46a2;
965
k01[926] = 32'h866d468f;
966
k01[927] = 32'h865c467d;
967
k01[928] = 32'h864a466a;
968
k01[929] = 32'h86384658;
969
k01[930] = 32'h86274646;
970
k01[931] = 32'h86154633;
971
k01[932] = 32'h86044621;
972
k01[933] = 32'h85f2460e;
973
k01[934] = 32'h85e145fc;
974
k01[935] = 32'h85cf45ea;
975
k01[936] = 32'h85be45d8;
976
k01[937] = 32'h85ac45c5;
977
k01[938] = 32'h859b45b3;
978
k01[939] = 32'h858945a1;
979
k01[940] = 32'h8578458f;
980
k01[941] = 32'h8567457d;
981
k01[942] = 32'h8555456b;
982
k01[943] = 32'h85444559;
983
k01[944] = 32'h85334547;
984
k01[945] = 32'h85214535;
985
k01[946] = 32'h85104523;
986
k01[947] = 32'h84ff4511;
987
k01[948] = 32'h84ed44ff;
988
k01[949] = 32'h84dc44ed;
989
k01[950] = 32'h84cb44db;
990
k01[951] = 32'h84ba44c9;
991
k01[952] = 32'h84a844b7;
992
k01[953] = 32'h849744a6;
993
k01[954] = 32'h84864494;
994
k01[955] = 32'h84754482;
995
k01[956] = 32'h84644470;
996
k01[957] = 32'h8453445f;
997
k01[958] = 32'h8442444d;
998
k01[959] = 32'h8431443b;
999
k01[960] = 32'h8420442a;
1000
k01[961] = 32'h840e4418;
1001
k01[962] = 32'h83fd4407;
1002
k01[963] = 32'h83ec43f5;
1003
k01[964] = 32'h83db43e4;
1004
k01[965] = 32'h83ca43d2;
1005
k01[966] = 32'h83ba43c1;
1006
k01[967] = 32'h83a943af;
1007
k01[968] = 32'h8398439e;
1008
k01[969] = 32'h8387438d;
1009
k01[970] = 32'h8376437b;
1010
k01[971] = 32'h8365436a;
1011
k01[972] = 32'h83544359;
1012
k01[973] = 32'h83434347;
1013
k01[974] = 32'h83334336;
1014
k01[975] = 32'h83224325;
1015
k01[976] = 32'h83114314;
1016
k01[977] = 32'h83004303;
1017
k01[978] = 32'h82ef42f2;
1018
k01[979] = 32'h82df42e0;
1019
k01[980] = 32'h82ce42cf;
1020
k01[981] = 32'h82bd42be;
1021
k01[982] = 32'h82ad42ad;
1022
k01[983] = 32'h829c429c;
1023
k01[984] = 32'h828b428b;
1024
k01[985] = 32'h827b427a;
1025
k01[986] = 32'h826a4269;
1026
k01[987] = 32'h82594258;
1027
k01[988] = 32'h82494248;
1028
k01[989] = 32'h82384237;
1029
k01[990] = 32'h82284226;
1030
k01[991] = 32'h82174215;
1031
k01[992] = 32'h82074204;
1032
k01[993] = 32'h81f641f4;
1033
k01[994] = 32'h81e641e3;
1034
k01[995] = 32'h81d541d2;
1035
k01[996] = 32'h81c541c2;
1036
k01[997] = 32'h81b441b1;
1037
k01[998] = 32'h81a441a0;
1038
k01[999] = 32'h81934190;
1039
k01[1000] = 32'h8183417f;
1040
k01[1001] = 32'h8173416f;
1041
k01[1002] = 32'h8162415e;
1042
k01[1003] = 32'h8152414d;
1043
k01[1004] = 32'h8142413d;
1044
k01[1005] = 32'h8131412d;
1045
k01[1006] = 32'h8121411c;
1046
k01[1007] = 32'h8111410c;
1047
k01[1008] = 32'h810140fb;
1048
k01[1009] = 32'h80f040eb;
1049
k01[1010] = 32'h80e040db;
1050
k01[1011] = 32'h80d040ca;
1051
k01[1012] = 32'h80c040ba;
1052
k01[1013] = 32'h80af40aa;
1053
k01[1014] = 32'h809f409a;
1054
k01[1015] = 32'h808f4089;
1055
k01[1016] = 32'h807f4079;
1056
k01[1017] = 32'h806f4069;
1057
k01[1018] = 32'h805f4059;
1058
k01[1019] = 32'h804f4049;
1059
k01[1020] = 32'h803f4039;
1060
k01[1021] = 32'h802f4029;
1061
k01[1022] = 32'h801f4019;
1062
k01[1023] = 32'h800f4009;
1063
end
1064
 
1065
wire sa;
1066
wire [EMSB:0] xa;
1067
wire [FMSB:0] ma;
1068
fpDecomp #(FPWID) u1 (.i(a), .sgn(sa), .exp(xa), .man(ma), .fract(), .xz(), .vz(), .xinf(), .inf(), .nan() );
1069
 
1070
wire [EMSB+1:0] bias = {1'b0,{EMSB{1'b1}}};
1071
wire [EMSB+1:0] x1 = xa - bias;
1072
wire [EMSB:0] exp = bias - x1 - 2'd1;   // make exponent negative
1073
wire sa3;
1074
wire [EMSB:0] exp3;
1075
wire [9:0] index = ma[FMSB:FMSB-9];
1076
reg [9:0] indexr;
1077
reg [15:0] k0, k1;
1078
always @(posedge clk)
1079
        if(ce) indexr <= index;
1080
always @(posedge clk)
1081
        if(ce) k0 <= k01[indexr][31:16];
1082
always @(posedge clk)
1083
        if(ce) k1 <= k01[indexr][15: 0];
1084
delay3 #(1) u2 (.clk(clk), .ce(1'b1), .i(sa), .o(sa3));
1085
delay3 #(EMSB+1) u3 (.clk(clk), .ce(1'b1), .i(exp), .o(exp3));
1086
wire [15:0] eps = ma[FMSB-10:FMSB-10-15];
1087
wire [31:0] p = k1 * eps;
1088
reg [15:0] r0;
1089
always @(posedge clk)
1090
        if(ce) r0 <= k0 - (p >> 26);
1091
assign o = {sa3,exp3,r0[14:0],{FMSB+2-16{1'b0}}};
1092
 
1093
always @*
1094
        if (FPWID < 48) begin
1095
                $display("Reciprocal estimate needs at least 48 bit floats.");
1096
                $stop;
1097
        end
1098
 
1099
endmodule
1100
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.