luna_soc.gateware.core.spiflash package

Submodules

Module contents

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

Bases: Elaboratable

Gateware that creates a connection to an MSPI configuration flash.

Automatically uses appropriate platform resources; this abstracts away details necessary to e.g. drive the MCLK lines on an ECP5, which has special handling.

__init__(*, bus)[source]

Params: bus – The SPI bus object to extend.

elaborate(platform)[source]
class luna_soc.gateware.core.spiflash.Peripheral(*args, src_loc_at=0, **kwargs)[source]

Bases: Component

SPI Flash peripheral main module.

This class provides a wrapper that can instantiate both SPIController and SPIFlashMemoryMap and connect them to the PHY.

Both options share access to the PHY using a crossbar. Also, performs CDC if a different clock is used in the PHY.

elaborate(platform)[source]
class luna_soc.gateware.core.spiflash.PinSignature[source]

Bases: Signature

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

Bases: Component

Provides a generic PHY that can be used by a SPI flash controller.

It supports single/dual/quad/octal output reads from the flash chips.

elaborate(platform)[source]