|
1 | 1 | Instructions |
2 | 2 | ------------------------------------------------------------------- |
3 | 3 | This program generates source code for univariate functions. It |
4 | | -works in two modes: you can either (1) specify a .txt file that |
5 | | -contains the values of a look-up table specifying f(x) for all x |
| 4 | +works in two modes: you can either (1) specify a text file that |
| 5 | +contains the values of a lookup table specifying f(x) for all x |
6 | 6 | values, or (2) describe the function by providing its equation. |
7 | 7 |
|
8 | | -1) Lookup table as .txt File --> Please specify the following |
| 8 | +1) Lookup table as a text File --> Please specify the following |
9 | 9 | arguments: |
10 | | - -table (string) : the path of the table, in which |
11 | | - each line has a single integer |
12 | | - value. The table size must be |
13 | | - a power of 2. |
| 10 | + -table (string) : path of the table, in which |
| 11 | + each line has a single |
| 12 | + hexadecimal value. The table size |
| 13 | + must be a power of 2. The input |
| 14 | + and output bit width are |
| 15 | + determined based on the table |
| 16 | + size and the maximum absolute |
| 17 | + value of the table, respectively. |
14 | 18 |
|
15 | | -2) Function equation --> Please specify the following arguments: |
16 | | - -function (string) : the function's equation as a |
| 19 | +2) Lookup table as a math equation --> Please specify the following |
| 20 | + arguments: |
| 21 | + -function (string) : function's equation as a |
17 | 22 | string in quotation marks "". |
18 | 23 | -f_in (int) : fractional bit width of the |
19 | 24 | function's input. Since the |
20 | 25 | function is evaluated in [0, 1), |
21 | 26 | there are no integer bits for |
22 | 27 | the input. |
23 | 28 | -f_out (int) : fractional bit width of the |
24 | | - function's output. The output |
25 | | - integer bit width is determined |
| 29 | + function's output. The signedness |
| 30 | + and integer bit width of the |
| 31 | + output are determined |
26 | 32 | automatically. |
27 | 33 |
|
28 | 34 | The following optional arguments can be used in either mode. |
29 | | - -name (string) : output table and file name |
30 | | - -output (string) : the output folder for the |
31 | | - generated files. The folder must |
32 | | - already exist. |
| 35 | + -name (string) : output table and file name. |
| 36 | + -output (string) : output folder for the generated |
| 37 | + files. The folder must already |
| 38 | + exist. |
33 | 39 | -mdbw (int) : minimum decomposition bit width. |
34 | 40 | The default value is 2. |
35 | 41 | -hbs (0/1) : higher-bit split. The default |
|
0 commit comments