Advertisement
mindrunner

Untitled

Apr 3rd, 2015
272
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.57 KB | None | 0 0
  1.  
  2. class NandRead(Module, AutoCSR):
  3.  
  4.     def __init__(self, nandconf, led):
  5.  
  6. #        self.specials.mem = Memory(8, 128)
  7.         self._magic = CSRStatus(16)
  8.         self.comb += self._magic.status.eq(nandread_magic)
  9.  
  10.         data_width = 16
  11.         nrows = 8
  12.  
  13.         self.specials.mem = Memory(data_width, nrows)
  14.         self.specials.write_port = self.mem.get_port(write_capable=True, we_granularity=8)
  15.         self.specials.read_port = self.mem.get_port(async_read=True)
  16.         self.read_data = Signal(8)
  17.  
  18.         ###
  19.  
  20.         self.sync += [
  21.  
  22.  
  23.         ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement