From 1b20cd4a9a6f440f6e8dbb84c641e367341322e0 Mon Sep 17 00:00:00 2001 From: joshua Date: Mon, 25 Dec 2023 00:51:20 -0500 Subject: Updated readme --- multiplier/hdl/gen_wallace.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'multiplier') diff --git a/multiplier/hdl/gen_wallace.py b/multiplier/hdl/gen_wallace.py index 579041f..88d0b25 100755 --- a/multiplier/hdl/gen_wallace.py +++ b/multiplier/hdl/gen_wallace.py @@ -330,14 +330,21 @@ def main(): parser = argparse.ArgumentParser(prog="Multiplier Generator", description="Generates a n bit multiplier based on the bits argument provided", epilog="bits sets the bit width of the multiplier, the output of the multiplier is 2 times the number of bits") parser.add_argument("bits", type=int, help="The bit width of the multiplier") + parser.add_argument("-p", "--pipeline", help="Generates specified number of pipeline barriers") + parser.add_argument("-s", "--stages", nargs='+' help="Generates stages at specific reduction layers") parser.add_argument("-a", "--adder", help="Generates the full and half adders for you to use", action='store_true') parser.add_argument("-d", "--debug", help="Enables debug prints during generation scripting", action='store_true') args = parser.parse_args() bits = args.bits + pipeline = args.pipeline + stages = args.stages debug = args.debug adder = args.adder + print(pipeline) + print(stages) + if (adder): gen_half_adder() gen_full_adder() -- cgit v1.2.3