origen#

Submodules#

Functions#

origen.__getattr__(name: str)#
origen.__interactive_context__()#

Returns the local context passed to an interactive section origen i is run.

origen.flow_ast() List[str]#

Returns a serialized representation of the AST for the current test program flow

origen.has_plugin(name)#

Returns true if an Origen plugin matching the given name is found in the current environment

origen.load_file(path, globals={}, locals={})#
origen.plugin(name)#

Returns an Origen application instance representing the given Origen plugin. None is returned if no plugin is found matching the given name within the current environment.

origen.reg_description_parsing()#
origen.set_mode(val: str) None#

Sets the current mode

origen.standard_context()#

Returns the context (locals) that are available by default within files loaded by Origen, e.g. dut, tester, origen, etc.

origen.test_ast() List[str]#

Returns a serialized representation of the AST for the current pattern

Variables#

origen.config#

Dictionary of configurable workspace settings.

Keys include: ['python_cmd', 'pkg_server', 'pkg_server_push', 'pkg_server_pull', 'some_val']

Returns:

Configurable workspace settings.

Return type:

dict

origen.status#

Dictionary of various application and workspace attributes

Returns:

Application and/or workspace attributes as key-value pairs.

Return type:

dict

origen.root#

If applicable, returns the application’s root.

Returns:

Application’s root as an OS-specific path object. None: If not in an application’s workspace.

Return type:

pathlib.Path

origen.version#

Returns the version of Origen.

Returns:

Origen version

Return type:

origen_metal.utils.version.Version

>>> origen.version
'2.0.0.dev9'
origen.logger#

Direct access to the build-in logger module for logging and displaying user-friendly output. Also available as log

Returns:

Pointer to _origen_metal.framework.logger

Return type:

_origen_metal.framework.logger

See also

origen.log#

Alias of logger

origen.running_on_windows#

Indicates if Origen is currently running on Windows.

Return type:

bool

>>> origen.running_on_windows
False
origen.running_on_linux#

Indicates if Origen is currently running on Linux.

Return type:

bool

>>> origen.running_on_linux
True
origen.frontend_root#

Returns the directory of the origen module as a pathlib.Path

origen.app#

Pointer to the current application instance, or None, if Origen was not invoked from within an application workspace.

If app is not None, it should be child of the base class origen.application.Base

origen.dut#

Pointer to the current DUT, or None, if no DUT has been set.

if dut is not None, then it should be a child of the base class origen.controller.Base

origen.tester

Pointer to the global tester object, origen.tester.Tester

origen.producer

Pointer to the global producer object, origen.producer.Producer

origen.current_user#
origen.users#

dict-like container for current and added Users

Put another way, accessor for global Users object

origen.mailer#

Accessor to the global Mailer