## Thought it looks better without the breadcrumbs bar, and kinda redunant since we have the sidebar nav
Origen v2
:

Table Of Contents

Contents

_origen.tester

Classes

  • PyTester: Python interface for the tester backend.

class _origen.tester.PyTester

Python interface for the tester backend.

ast

Prints out the AST for the current flow to the console (for debugging)

cc(comment: str) → self

Inserts a single-line comment into the AST.

>>> origen.tester.cc("my comment")
<self>
>>> origen.tester.cc("my first comment").cc("my second comment")
<self>
cycle(**kwargs) → self
end_pattern()
generate_pattern_header()
issue_callbacks()
pin_header
register_tester()
render_pattern()

Attempts to render the pattern on all targeted testers and returns paths to the output files that have been created. There is no need for the Python side to do anything with those, but they are returned in case they are useful in future. Continue on fail means that any errors will be logged but Origen will continue, if false it will blow up and immediately return an error to Python.

repeat()
reset()

This resets the tester, clearing all loaded targets and any other state, making it ready for a fresh target load. This should only be called from Python code for testing, it will be called automatically by Origen before loading targets.

set_pin_header()
set_timeset(timeset)

Sets the timeset.

>>> origen.tester.set_timeset(origen.dut.timesets['my_timeset'])
origen.tester.timesets['my_timeset']
Parameters

timeset (_origen.dut.timesets.Timeset, None) – Timeset to set as current, or None to clear

target()
targets
testers
timeset

Property for the current _origen.dut.timesets.Timeset or None, if no timeset has been set. Set to None to clear the current timeset.

Returns

_origen.dut.timesets.Timeset or None

>>> # Initially no timeset has been set
>>> origen.tester.timeset
None
>>> origen.tester.timeset = origen.dut.timesets.Timeset['my_timeset']
origen.dut.timesets.Timeset['my_timeset']
>>> origen.tester.timeset
origen.dut.timesets.Timeset['my_timeset']
>>> # Clear the current timeset
>>> origen.tester.timeset = None
None
>>> origen.tester.timeset
None