avl._core.env module
- class avl._core.env.Env(*args: Any, **kwargs: Any)[source]
- __init__(name: str, parent: Component) None[source]
Initializes the environment with the given name, parent.
- Parameters:
name (str) – The name of the environment.
parent (object) – The parent object of the environment.
- async sync_reset(clk: <MagicMock name = 'mock.LogicObject' id='132191266469072'>, rst: <MagicMock name = 'mock.HierarchyObject' id='132191266459328'>, cycles: int, active_high: bool = True) None[source]
Perform a synchronous reset.
- Parameters:
clk (object) – Clock signal
rst (object) – Reset signal
cycles (int) – Number of clock cycles to hold the reset
active_high (bool) – Reset is active high if True, active low if False
- async async_reset(rst: <MagicMock name = 'mock.HierarchyObject' id='132191266459328'>, duration: int, units: <MagicMock name = 'mock.TimeUnitWithoutSteps.__or__()' id='132191236545840'> = 'ns', active_high: bool = True) None[source]
Perform an asynchronous reset.
- Parameters:
rst (object) – Reset signal
duration (int) – Duration of the reset
units (str) – Time units for the duration, defaults to ‘ns’
active_high (bool) – Reset is active high if True, active low if False
- async clock(clk: <MagicMock name = 'mock.LogicObject' id='132191266469072'>, freq_mHz: int) None[source]
Generate a clock signal.
- Parameters:
clk (object) – Clock signal
freq_mHz (int) – Frequency in megaHertz
- async ticker(duration: int, msg: str, units: <MagicMock name = 'mock.TimeUnitWithoutSteps.__or__()' id='132191236545840'> = 'ns') None[source]
Log a message at regular intervals.
- Parameters:
duration (int) – Interval duration
msg (str) – Message to log
units (str) – Time units for the duration, defaults to ‘ns’