Answered half the question. What's the expected output for input values like e.g. 0, 33, 84, 127?
0 => 0
1 => 0
2 => 0
...
9 => 0
10 => 45
11 => 0
...
20 => 55
21 => 0
...
im doing using system generator, ya true no decimal values so using decimal fixed number as an address is better, to values in the address, but while im converting my point values (0.2546) etc , some conversion is going upto the precision of 4063236 , that much memory is present in the rom???
124 640
84.5000000000000 645
55.3333337455988 650
27.1666662618518 655
23.9999998211861 660
16.5000002458692 665
15.0909095406532 670
12.7692312449217 675
10.8000005632639 680
9.64705824851990 685
8.63157901167870 690
8.24999950826168 695
7.21739082038403 700
6.95833291858435 705
6.14814819395542 710
5.89285679161549 715
5.54838693141937 720
5.21875000000000 725
4.74285686016083 730
4.37837818264961 735
4.39473625272512 740
3.99999985098839 745
3.88095214962959 750
3.59999978542328 755
3.50000036507845 760
3.39583373814821 765
3.26000053435564 770
3.17647039890289 775
3.05555496364832 780
2.98181778192520 785
2.84482788294554 790
2.81355963647366 795
2.49999992549419 800
2.66666650772095 805
2.50000007450581 810
2.47761234641075 815
2.38571414351463 820
2.36619776487350 825
2.29166653007269 830
2.21333369612694 835
2.14473716169596 840
2.12658280134201 845
2.06250049173832 850
1.97590354084969 855
1.94047607481480 860
1.92771077156067 865
1.89285703003407 870
1.87951800227165 875
1.68478220701218 880
1.73863584548235 885
1.71590857952833 890
1.65555545687675 895
1.59782570600510 900
1.61111101508141 905
1.52688132226467 910
1.46874964982271 915
1.51086920499802 920
1.48913007974625 925
1.43617004156113 930
1.38541633635759 935
1.33333370089531 940
1.34374967962503 945
1.31958770751953 950
1.24999973922968 955
1.02479299902916 960
1.20999974757433 965
1.18811845779419 970
1.12499993294477 975
1.10476183891296 980
0.941666610538960 985
1.04672873020172 990
1.02803714573383 995
1.00934556126595 1000
0.954955175518990 1005
0.936937153339386 1010
0.886956766247749 1015
0.884956121444702 1020
line 3:
55.3333337455988 650
"Are these all the values (77 of them in the list)?
Are the values constant, or are there other values that map to the same values in the second column?" ya there are the only values NOTHING ELSE , im only worried about only these values, no the values are not constant, there are in decreasing order for sure from 640 to 1020.
I meant are the values like 2.06250049173832 exactly that value and not something like 2.06250049173827 sometimes. If those input values can vary some number of bits then you'll have to account for that. But if they are constants then you can round them to say 8-bits or 9-bits (which can still fit in a single BRAM)
Oops you need 8-bits as you can't distinguish between 8.63157901167870 and 8.24999950826168, without an extra bit in the fractional part.I can also see a two tiered approach with the integer portion above 8 being a separate lookup (less bits required, 7-bit)
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?