origen
¶
Submodules¶
origen.application
origen.attributes
origen.blocks
origen.boot
origen.compiler
origen.controller
origen.errors
origen.helpers
origen.interface
origen.pins
origen.producer
origen.services
origen.sub_blocks
origen.target
origen.tester
origen.timesets
origen.translator
origen.translators
origen.web
Functions¶
current_user()
: Undocumented.flow_ast()
: Returns a serialized representation of the AST for the current test program flowhas_plugin()
: Returns true if an Origen plugin matching the given name is found in the current environmentload_file()
: Undocumented.plugin()
: Returns anOrigen application
instance representingreg_description_parsing()
: Undocumented.set_mode()
: Sets the current modestandard_context()
: Returns the context (locals) that are available by default within filestest_ast()
: Returns a serialized representation of the AST for the current pattern
-
origen.
current_user
()¶
-
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
See also
-
origen.
status
¶ Dictionary of various application and workspace attributes Keys include:
['is_app_present', 'root', 'origen_version', 'home', 'on_windows']
- Returns
Application and/or workspace attributes as key-value pairs.
- Return type
dict
-
origen.
root
¶ Path subclass for Windows systems.
On a Windows system, instantiating a Path should return this object.
-
origen.
version
¶ Returns the version of the Origen executable.
- Returns
Origen executable version
- Return type
str
>>> origen.version '2.0.0.dev4'
-
origen.
running_on_windows
¶ Indicates if Origen is currently running on Windows.
- Returns
- Return type
bool
>>> origen.running_on_windows False
-
origen.
running_on_linux
¶ Indicates if Origen is currently running on Linux.
- Returns
- 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 notNone
, it should be child of the base classorigen.application.Base
See also
-
origen.
dut
¶ Pointer to the current DUT, or
None
, if no DUT has been set.if
dut
is notNone
, then it should be a child of the base classorigen.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.
users
¶ dict-like
container for current and addedUsers
Put another way, accessor for global
Users
objectSee also
-
origen.
ldaps
¶ dict-like
container for current and addedUsers
Put another way, accessor for global
LDAPs
objectSee also
-
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.logger
- Return type
_origen.logger
See also