boards/targets: remove build and load parameters on arty and nexys_video (consistency...
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Fri, 10 Feb 2017 11:32:33 +0000 (12:32 +0100)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Fri, 10 Feb 2017 11:32:33 +0000 (12:32 +0100)
litex/boards/targets/arty.py
litex/boards/targets/nexys_video.py

index 35b67026b6df7681326de7226273a0be79635de4..c9248057d65a512f37e56bc59f3d716cf80c007a 100755 (executable)
@@ -114,22 +114,12 @@ def main():
     soc_core_args(parser)
     parser.add_argument("--with-ethernet", action="store_true",
                         help="enable Ethernet support")
-    parser.add_argument("--build", action="store_true",
-                        help="build bitstream")
-    parser.add_argument("--load", action="store_true",
-                        help="load bitstream")
     args = parser.parse_args()
 
     cls = MiniSoC if args.with_ethernet else BaseSoC
     soc = cls(**soc_core_argdict(args))
     builder = Builder(soc, **builder_argdict(args))
-
-    if args.build:
-        builder.build()
-
-    if args.load:
-        prog = soc.platform.create_programmer()
-        prog.load_bitstream(os.path.join(builder.output_dir, "gateware", "top.bit"))
+    builder.build()
 
 
 if __name__ == "__main__":
index 3d52befd9e5f996f3fca02d653b163513edc3612..16fdf6338b2953420bf3c32deb7516a2ccc93463 100755 (executable)
@@ -104,22 +104,12 @@ def main():
     soc_core_args(parser)
     parser.add_argument("--with-ethernet", action="store_true",
                         help="enable Ethernet support")
-    parser.add_argument("--build", action="store_true",
-                        help="build bitstream")
-    parser.add_argument("--load", action="store_true",
-                        help="load bitstream")
     args = parser.parse_args()
 
     cls = MiniSoC if args.with_ethernet else BaseSoC
     soc = cls(**soc_core_argdict(args))
     builder = Builder(soc, **builder_argdict(args))
-
-    if args.build:
-        builder.build()
-
-    if args.load:
-        prog = soc.platform.create_programmer()
-        prog.load_bitstream(os.path.join(builder.output_dir, "gateware", "top.bit"))
+    builder.build()
 
 
 if __name__ == "__main__":