From 0914fb5e51b75c19b022bd81e0875bc4a69667b4 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Mon, 18 Mar 2024 13:46:37 +0100 Subject: [PATCH] liteeth_gen: Add optional --name parameter to configure generated verilog name. --- liteeth/gen.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/liteeth/gen.py b/liteeth/gen.py index 6498fff..0cd329b 100755 --- a/liteeth/gen.py +++ b/liteeth/gen.py @@ -597,6 +597,7 @@ def main(): builder_args(parser) parser.set_defaults(output_dir="build") parser.add_argument("config", help="YAML config file") + parser.add_argument("--name", default="liteeth_core", help="Standalone core/module name") args = parser.parse_args() core_config = yaml.load(open(args.config).read(), Loader=yaml.Loader) @@ -639,7 +640,7 @@ def main(): builder_arguments["csr_csv"] = os.path.join(builder_arguments["output_dir"], "csr.csv") builder = Builder(soc, **builder_arguments) - builder.build(build_name="liteeth_core") + builder.build(build_name=args.name) if __name__ == "__main__": main()