avl_apb._interface module

class avl_apb._interface.Interface(hdl)[source]
Parameters:

hdl (<MagicMock name='mock.HierarchyObject' id='137272083030640'>)

__init__(hdl)[source]

Create an interface Work around simulator specific issues with accessing signals inside generates.

Parameters:

hdl (<MagicMock name='mock.HierarchyObject' id='137272083030640'>)

Return type:

None

set(name, value)[source]

Set the value of a signal (if signal exists)

Parameters:
  • name (str) – The name of the signal

  • value (int) – The value to set

Returns:

None

Return type:

None

get(name, default=None)[source]

Get the value of a signal (if signal exists)

Parameters:
  • name (str) – The name of the signal

  • default (Any) – The default value to return if signal does not exist

Returns:

The value of the signal or the default value

Return type:

int