Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class NandRead(Module, AutoCSR):
- def __init__(self, nandconf, led):
- # self.specials.mem = Memory(8, 128)
- self._magic = CSRStatus(16)
- self.comb += self._magic.status.eq(nandread_magic)
- data_width = 16
- nrows = 8
- self.specials.mem = Memory(data_width, nrows)
- self.specials.write_port = self.mem.get_port(write_capable=True, we_granularity=8)
- self.specials.read_port = self.mem.get_port(async_read=True)
- self.read_data = Signal(8)
- ###
- self.sync += [
- ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement