Skip to content

Address Decoder

Address Decoder aka Demultiplexer.

Classes:

Name Description
AddrDecoder

Address Decoder aka Demultiplexer.

AddrDecoder

Bases: Object

Address Decoder aka Demultiplexer.

An address decoder manages the access to a known list of slaves. The address map contains the address to slave mapping.

An address decoder contains a unique address map and a namespace with all slaves.

Methods:

Name Description
get_addrspaces

Address Spaces.

Attributes:

Name Type Description
addrmap AddrMap

Address Map With All Slaves.

slaves Namespace

Namespace With All Slaves.

default_size Bytes | None

Default Size if not given.

is_sub bool

Just decode address LSBs.

addrmap class-attribute instance-attribute

addrmap = Field(
    default_factory=lambda: AddrMap(unique=True)
)

Address Map With All Slaves.

slaves class-attribute instance-attribute

slaves = Field(default_factory=Namespace)

Namespace With All Slaves.

default_size class-attribute instance-attribute

default_size = None

Default Size if not given.

is_sub class-attribute instance-attribute

is_sub = False

Just decode address LSBs.

get_addrspaces

get_addrspaces(**kwargs)

Address Spaces.