targets/pipistrello: add argparse functions consistent with kc705
authorSebastien Bourdeauducq <sb@m-labs.hk>
Tue, 3 Nov 2015 16:29:56 +0000 (00:29 +0800)
committerSebastien Bourdeauducq <sb@m-labs.hk>
Tue, 3 Nov 2015 16:29:56 +0000 (00:29 +0800)
misoc/targets/pipistrello.py

index 36abd688d9db0e8233729a95ae98308dc1bb85af..b78ded2d87cb7de04833efec524d204426eb5933 100755 (executable)
@@ -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()