Skip to content

defines

Classes

SocCapability

SoC available capabilities

MemoryType

SoC available memory types

Attributes

readable property
readable: bool

Check if this memory type is readable.

writeable property
writeable: bool

Check if this memory type is writeable.

executable property
executable: bool

Check if this memory type is executable.

Functions

to_qualifiers
to_qualifiers(prefix: str = 'AOT', init: bool = False, writable: bool = True) -> str

Convert memory placement to C qualifiers

Parameters:

  • prefix
    (str, default: 'AOT' ) –

    Prefix for the qualifier macro

  • init
    (bool, default: False ) –

    For pre-initialized data (aka .data) vs zeroed (.bss)

  • writable
    (bool, default: True ) –

    Whether the data will be written to at runtime

Returns:

  • str ( str ) –

    C qualifier macro (e.g., AOT_PUT_IN_SRAM_INIT)

SocPlatform

Base class for SoC platforms

Attributes:

  • name (str) –

    Unique platform name

  • speeds (list[int]) –

    List of supported clock speeds in MHz

  • memories (dict[MemoryType, int]) –

    Memory sizes in bytes

  • capabilities (list[SocCapability]) –

    List of SoC capabilities

  • preferred_memory_order (list[MemoryType]) –

    Preferred memory order for allocations

  • min_alignment (int | None) –

    Minimum alignment requirement in bytes