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

Subversion Repositories ft816float

[/] [ft816float/] [trunk/] [rtl/] [verilog/] [fpRes.sv] - Blame information for rev 89

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

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

powered by: WebSVN 2.1.0

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