From 1077e23e62ed5e5331b29ed2485d23fd646444d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bastian=20L=C3=B6her?= Date: Sun, 16 Jan 2022 11:58:14 +0100 Subject: [PATCH] digilent_cmod_a7: Also propagate here. --- litex_boards/targets/digilent_cmod_a7.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/litex_boards/targets/digilent_cmod_a7.py b/litex_boards/targets/digilent_cmod_a7.py index f43f22a..918aee2 100755 --- a/litex_boards/targets/digilent_cmod_a7.py +++ b/litex_boards/targets/digilent_cmod_a7.py @@ -121,7 +121,7 @@ class BaseSoC(SoCCore): with_mapped_flash=False, **kwargs): - platform = digilent_cmod_a7.Platform() + platform = digilent_cmod_a7.Platform(variant=variant, toolchain=toolchain) # SoCCore ---------------------------------------------------------------------------------- SoCCore.__init__(self, platform, sys_clk_freq, @@ -144,7 +144,7 @@ class BaseSoC(SoCCore): # Build -------------------------------------------------------------------------------------------- def main(): - parser = argparse.ArgumentParser(description="LiteX SoC on Arty A7") + parser = argparse.ArgumentParser(description="LiteX SoC on CMOD A7") parser.add_argument("--toolchain", default="vivado", help="FPGA toolchain (vivado or symbiflow).") parser.add_argument("--build", action="store_true", help="Build bitstream.") parser.add_argument("--load", action="store_true", help="Load bitstream.") @@ -167,6 +167,7 @@ def main(): builder = Builder(soc, **builder_argd) builder_kwargs = vivado_build_argdict(args) if args.toolchain == "vivado" else {} + builder.build(**builder_kwargs, run=args.build) if __name__ == "__main__":