Port
- class ioiocore.port.Port(name=None, type='Any', timing='Sync', **kwargs)[source]
Bases:
Portable
A class representing a port, inheriting from Portable. Manages configuration and implementation details of the port.
- Parameters:
name (str)
type (str)
timing (Timing)
- class Configuration(name=None, type='Any', timing='Sync', **kwargs)[source]
Bases:
Configuration
Configuration class for the Port.
- Parameters:
name (str)
type (str)
timing (Timing)
- NAME
The key for the port name.
- Type:
str
- TYPE
The key for the port type.
- Type:
str
- TIMING
The key for the port timing.
- Type:
str
- class Keys[source]
Bases:
Keys
Keys for the port configuration.
- NAME = 'name'
- TIMING = 'timing'
- TYPE = 'type'
- __init__(name=None, type='Any', timing='Sync', **kwargs)[source]
Initializes the port configuration.
- Parameters:
name (str, optional) – The name of the port (default is None).
type (str, optional) – The type of the port (default is ‘Any’).
timing (Constants.Timing, optional) – The timing of the port (default is Constants.Timing.SYNC).
**kwargs – Additional keyword arguments for further configuration.
- Raises:
ValueError – If the provided timing is not in Constants.Timing values.
- __init__(name=None, type='Any', timing='Sync', **kwargs)[source]
Initializes the Port.
- Parameters:
name (str, optional) – The name of the port (default is None).
type (str, optional) – The type of the port (default is ‘Any’).
timing (Constants.Timing, optional) – The timing of the port (default is Constants.Timing.SYNC).
**kwargs – Additional keyword arguments for further configuration.