Skip to content

Commit

Permalink
liteeth_gen: Add optional --name parameter to configure generated ver…
Browse files Browse the repository at this point in the history
…ilog name.
  • Loading branch information
enjoy-digital committed Mar 18, 2024
1 parent 2c67d13 commit 0914fb5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion liteeth/gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -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()

0 comments on commit 0914fb5

Please sign in to comment.