Пример #1
0
def main():
    parser = argparse.ArgumentParser(
        description="Sayma RTM gateware and firmware builder")
    builder_args(parser)
    soc_sayma_rtm_args(parser)
    parser.add_argument("--rtio-clk-freq",
                        default=150,
                        type=int,
                        help="RTIO clock frequency in MHz")
    parser.add_argument("--with-wrpll", default=False, action="store_true")
    parser.add_argument("--gateware-identifier-str",
                        default=None,
                        help="Override ROM identifier")
    parser.set_defaults(output_dir=os.path.join("artiq_sayma", "rtm"))
    args = parser.parse_args()

    soc = Satellite(rtio_clk_freq=1e6 * args.rtio_clk_freq,
                    with_wrpll=args.with_wrpll,
                    gateware_identifier_str=args.gateware_identifier_str,
                    **soc_sayma_rtm_argdict(args))
    builder = SatmanSoCBuilder(soc, **builder_argdict(args))
    try:
        builder.build()
    except subprocess.CalledProcessError as e:
        raise SystemExit("Command {} failed".format(" ".join(e.cmd)))
Пример #2
0
def main():
    parser = argparse.ArgumentParser(
        description="Sayma RTM gateware and firmware builder")
    builder_args(parser)
    soc_sayma_rtm_args(parser)
    parser.set_defaults(output_dir="artiq_sayma_rtm")
    args = parser.parse_args()

    soc = Satellite(**soc_sayma_rtm_argdict(args))
    builder = SatmanSoCBuilder(soc, **builder_argdict(args))
    try:
        builder.build()
    except subprocess.CalledProcessError as e:
        raise SystemExit("Command {} failed".format(" ".join(e.cmd)))
Пример #3
0
def main():
    parser = argparse.ArgumentParser(
        description="Sayma RTM gateware and firmware builder")
    builder_args(parser)
    soc_sayma_rtm_args(parser)
    parser.set_defaults(output_dir="artiq_sayma_rtm")
    args = parser.parse_args()

    soc = Satellite(**soc_sayma_rtm_argdict(args))
    builder = SatmanSoCBuilder(soc, **builder_argdict(args))
    try:
        builder.build()
    except subprocess.CalledProcessError as e:
        raise SystemExit("Command {} failed".format(" ".join(e.cmd)))