IPWrapper class¶
IPWrapper
provides an abstraction over a raw HDL source file.
Instances of this class can be created from the loaded IP-core YAML description.
It creates an Amaranth Instance
object during elaboration, referencing a particular HDL module and appears as a module instantiation in the generated top level.
Ports and interfaces (lists of ports) can be retrieved via standard methods of Wrapper
.
These are instances of WrapperPort
s.
- class IPWrapper(*args, src_loc_at=0, **kwargs)¶
This class instantiates an IP in a wrapper to use its individual ports or grouped ports as interfaces.
- __init__(yaml_path: Path, ip_name: str, instance_name: str, params={})¶
- get_ports() List[WrapperPort] ¶
Return a list of all ports that belong to this IP.
Last update:
2024-12-10