def METHOD_NAME():
    from litex.build.parser import LiteXArgumentParser
    parser = LiteXArgumentParser(platform=isx_im1283.Platform, description="LiteX SoC on iM1283.")
    parser.add_argument("--sys-clk-freq", default=80e6, type=float, help="System clock frequency.")
    parser.add_target_argument("--with-jtagbone", action="store_true", help="Enable Jtagbone support.")
    sdopts = parser.add_mutually_exclusive_group()
    sdopts.add_argument("--with-spi-sdcard", action="store_true", help="Enable SPI-mode SDCard support.")
    sdopts.add_argument("--with-sdcard",     action="store_true", help="Enable SDCard support.")
    args = parser.parse_args()
    soc = BaseSoC(
        sys_clk_freq = args.sys_clk_freq,
        with_jtagbone = args.with_jtagbone,
        **parser.soc_argdict
    )
    if args.with_spi_sdcard:
        soc.add_spi_sdcard()
    if args.with_sdcard:
        soc.add_sdcard()
    builder = Builder(soc, **parser.builder_argdict)
    if args.build:
        builder.build(**parser.toolchain_argdict)
    if args.load:
        prog = soc.platform.create_programmer()
        prog.load_bitstream(os.path.join(builder.gateware_dir, soc.build_name + ".bit"))