luna_soc.gateware.core.spiflash.mmap module

class luna_soc.gateware.core.spiflash.mmap.SPIFlashMemoryMap(*args, src_loc_at=0, **kwargs)[source]

Bases: Component

Wishbone Memory-mapped SPI Flash controller.

Supports sequential accesses so that command and address is only sent when necessary.

MMAP_DEFAULT_TIMEOUT = 256
OE_MASK = {1: 1, 2: 3, 4: 15, 8: 255}
elaborate(platform)[source]
static reverse_bytes(word)[source]