From c5dadf27ffdb33f7398e64d07b1f824160ec987f Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Wed, 4 Nov 2015 00:29:56 +0800 Subject: [PATCH] targets/pipistrello: add argparse functions consistent with kc705 --- misoc/targets/pipistrello.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/misoc/targets/pipistrello.py b/misoc/targets/pipistrello.py index 36abd688d..b78ded2d8 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()