Advertisement
mindrunner

Untitled

Apr 3rd, 2015
280
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.29 KB | None | 0 0
  1.  
  2.  
  3. class NandReaderSoC(BaseSoC):
  4.     csr_map = {
  5.         "nandconf": 25,
  6.         "nandread": 26,
  7.         "nandread_mem": 27,
  8.         # "nanddmaw": 27,
  9.         # "nanddmar": 28,
  10.         # "liteusb": 29,
  11.     }
  12.     csr_map.update(BaseSoC.csr_map)
  13.  
  14. #    mem_map = {
  15. #        "nandread_mem": 0x30000000, # (shadow @0xb0000000)
  16. #    }
  17. #    mem_map.update(BaseSoC.mem_map)
  18.  
  19.     def __init__(self, platform, **kwargs):
  20.         BaseSoC.__init__(self, platform, **kwargs)
  21.         # data = Signal(8)
  22.         platform.add_extension(_io)
  23.  
  24.         # self.add_memory_region("memory", self.mem_map["nandread_mem"]+0x80000000, 0x2000)
  25.         # lasmi = self.sdram.crossbar.get_master()
  26.         # self.clock_domains.ftdi = ClockDomain()
  27.         # self.submodules.liteusb = FT2232HPHY(FT2232HModel(data))
  28.         self.submodules.nandconf = NandConf(platform.request("io"))
  29.         # self.submodules.nanddmar = NandDmaReader(lasmi, data)
  30.         # self.submodules.nanddmaw = NandDmaWriter(lasmi, data)
  31.         self.submodules.nandread = NandRead(self.nandconf,
  32.                                             platform.request("user_led"))
  33.                                             # self.nanddmar,
  34.                                             # self.nanddmaw,
  35.                                             # data)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement