From 23cfc3b24bae57fa20a48161705152383c65a3fd Mon Sep 17 00:00:00 2001 From: jf3g19 <jf3g19@soton.ac.uk> Date: Sun, 29 Nov 2020 22:09:34 +0000 Subject: [PATCH] Update README.md --- README.md | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index c0261ac..c9d8a54 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** -- GitLab