diff --git a/README.md b/README.md index c0261ac3be562b76d0851c0ba218d14052244908..c9d8a54ce6739cbf9e0f9b0a7a779315f51b0c0e 100644 --- a/README.md +++ b/README.md @@ -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**