Skip to content
Snippets Groups Projects
Commit 23cfc3b2 authored by jf3g19's avatar jf3g19
Browse files

Update README.md

parent 250b9c60
No related branches found
No related tags found
No related merge requests found
......@@ -9,16 +9,17 @@ Implementation of a Basic Distributed Arithmetic Architechture for MAC
- Based on this assumption we can generate a LUT which allows us to transform the SoP to a series of shifts and adds.
- The File generate_LUT.cpp can be used to generate the LUT values for a given set of input coefficients. If you compile the file it can be run in the command line in the following format:
-
- `> generate_LUT [Multiplicand Bit-Width] [C[0]] [C[1]] [C[2]] [C[3]] .... [C[n]] `
-
- i.e
-
- `generate_LUT 16 -4 -3 1 9`
-
- would generate the LUT for the coefficients c[0] = -4, c[1] = -3, c[2] = 1, c[3] = 9, and a 16-bit Bit-Width for your Multiplicand.
-
- The generate multiplication coefficients can be stored as an unpacked array of packed values and should be connected directly to the `multiplication_coefficients` input port.
`> generate_LUT [Multiplicand Bit-Width] [C[0]] [C[1]] [C[2]] [C[3]] .... [C[n]] `
i.e
`generate_LUT 16 -4 -3 1 9`
would generate the LUT for the coefficients c[0] = -4, c[1] = -3, c[2] = 1, c[3] = 9, and a 16-bit Bit-Width for your Multiplicand.
The generate multiplication coefficients can be stored as an unpacked array of packed values and should be connected directly to the `multiplication_coefficients` input port.
**Example**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment