aboutsummaryrefslogtreecommitdiff
path: root/multiplier/hdl
diff options
context:
space:
mode:
authorjoshua <joshua@joshuayun.com>2023-12-25 00:51:20 -0500
committerjoshua <joshua@joshuayun.com>2023-12-25 00:51:20 -0500
commit1b20cd4a9a6f440f6e8dbb84c641e367341322e0 (patch)
tree8c3762b11b0950017989a41cb38a93c52d2150ef /multiplier/hdl
parentdec5747241d15fca0b94117205a139b4ba692a9d (diff)
downloadriscv-processor-1b20cd4a9a6f440f6e8dbb84c641e367341322e0.tar.gz
Updated readmeHEADmaster
Diffstat (limited to 'multiplier/hdl')
-rwxr-xr-xmultiplier/hdl/gen_wallace.py7
1 files changed, 7 insertions, 0 deletions
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()