Skip to content

Commit 44b5ba0

Browse files
navidjafarofalirezazd
authored andcommitted
added adders_ratio and mults_ratio to run_vtr_flow.py
1 parent 1dd8ef1 commit 44b5ba0

File tree

2 files changed

+1038
-1024
lines changed

2 files changed

+1038
-1024
lines changed

vtr_flow/scripts/run_vtr_flow.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,18 @@ def vtr_command_argparser(prog=None):
338338
dest="top_module",
339339
help="Specify the name of the module in the design that should be considered as top",
340340
)
341+
odin.add_argument(
342+
"-mults_ratio",
343+
default=-1.0,
344+
dest="mults_ratio",
345+
help="Specify the percentage of multipliers optimizations",
346+
)
347+
odin.add_argument(
348+
"-adders_ratio",
349+
default=-1.0,
350+
dest="adders_ratio",
351+
help="Specify the percentage of adders optimizations",
352+
)
341353
#
342354
# PARMYS arguments
343355
#
@@ -676,6 +688,8 @@ def process_odin_args(args):
676688
odin_args["parser"] = args.parser
677689
odin_args["adder_type"] = args.adder_type
678690
odin_args["top_module"] = args.top_module
691+
odin_args["mults_ratio"] = args.mults_ratio
692+
odin_args["adders_ratio"] = args.adders_ratio
679693

680694
if args.adder_cin_global:
681695
odin_args["adder_cin_global"] = True

0 commit comments

Comments
 (0)