def METHOD_NAME():
    from litex.build.parser import LiteXArgumentParser
    parser = LiteXArgumentParser(platform=antmicro_lpddr4_test_board.Platform, description="LiteX SoC on LPDDR4 Test Board.")
    parser.add_target_argument("--flash",            action="store_true", help="Flash bitstream.")
    parser.add_target_argument("--sys-clk-freq",     default=50e6,  type=float, help="System clock frequency.")
    parser.add_target_argument("--iodelay-clk-freq", default=200e6, type=float, help="IODELAYCTRL frequency.")
    ethopts = parser.target_group.add_mutually_exclusive_group()
    ethopts.add_argument("--with-ethernet",          action="store_true",    help="Add Ethernet.")
    ethopts.add_argument("--with-etherbone",         action="store_true",    help="Add EtherBone.")
    parser.add_target_argument("--eth-ip",           default="192.168.1.50", help="Ethernet/Etherbone IP address.")
    parser.add_target_argument("--eth-dynamic-ip",   action="store_true",    help="Enable dynamic Ethernet IP addresses setting.")
    parser.add_target_argument("--with-hyperram",    action="store_true",    help="Add HyperRAM.")
    parser.add_target_argument("--with-sdcard",      action="store_true",    help="Add SDCard.")
    parser.add_target_argument("--with-jtagbone",    action="store_true",    help="Add JTAGBone.")
    parser.add_target_argument("--with-uartbone",    action="store_true",    help="Add UartBone on 2nd serial.")
    args = parser.parse_args()
    assert not (args.with_etherbone and args.eth_dynamic_ip)
    soc = BaseSoC(
        sys_clk_freq      = args.sys_clk_freq,
        iodelay_clk_freq  = args.iodelay_clk_freq,
        with_ethernet     = args.with_ethernet,
        with_etherbone    = args.with_etherbone,
        eth_ip            = args.eth_ip,
        eth_dynamic_ip    = args.eth_dynamic_ip,
        with_hyperram     = args.with_hyperram,
        with_sdcard       = args.with_sdcard,
        with_jtagbone     = args.with_jtagbone,
        with_uartbone     = args.with_uartbone,
        **parser.soc_argdict)
    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(builder.get_bitstream_filename(mode="sram"))
    if args.flash:
        prog = soc.platform.create_programmer()
        prog.flash(0, builder.get_bitstream_filename(mode="flash"))