ElaboratableWrapper class¶
ElaboratableWrapper
encapsulates an Amaranth’s Elaboratable and exposes an interface compatible with other wrappers, allowing for making connections with them.
The supplied elaboratable must contain the signature
property and a conforming interface as specified by the Amaranth docs.
The names, directionality and widths of ports are inferred from it.
- class ElaboratableWrapper(*args, src_loc_at=0, **kwargs)¶
Allows connecting an Amaranth’s Elaboratable with other classes derived from Wrapper.
- __init__(name: str, elaboratable: Elaboratable)¶
- get_ports() List[WrapperPort] ¶
Return a list of external ports.
- get_ports_hier() Mapping[str, Signal | Mapping[str, Signal | SignalMapping]] ¶
Maps elaboratable’s Signature to a nested dictionary of WrapperPorts. See _gather_signature_ports for more details.
Last update:
2024-12-10