From: Sebastien Bourdeauducq Date: Tue, 3 Nov 2015 16:29:56 +0000 (+0800) Subject: targets/pipistrello: add argparse functions consistent with kc705 X-Git-Tag: 24jan2021_ls180~2106^2~2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c5dadf27ffdb33f7398e64d07b1f824160ec987f;p=litex.git targets/pipistrello: add argparse functions consistent with kc705 --- diff --git a/misoc/targets/pipistrello.py b/misoc/targets/pipistrello.py index 36abd688..b78ded2d 100755 --- a/misoc/targets/pipistrello.py +++ b/misoc/targets/pipistrello.py @@ -130,13 +130,18 @@ class BaseSoC(SoCSDRAM): self.flash_boot_address = 0x180000 self.register_rom(self.spiflash.bus, 0x1000000) + +soc_pipistrello_args = soc_sdram_args +soc_pipistrello_argdict = soc_sdram_argdict + + def main(): parser = argparse.ArgumentParser(description="MiSoC port to the Pipistrello") builder_args(parser) - soc_sdram_args(parser) + soc_pipistrello_args(parser) args = parser.parse_args() - soc = BaseSoC(**soc_sdram_argdict(args)) + soc = BaseSoC(**soc_pipistrello_argdict(args)) builder = Builder(soc, **builder_argdict(args)) builder.build()