When using Origen for test content generation, is there a standard in practice for logging text? I see in other examples 'ss' and 'cc' as well as places where 'puts' is used.
What is the proper usage for comments that should go into Origen generated test patterns and flow elements, comments that should print during generation, and comments that should only print when debug is on?
Generally
puts
should never be used except for temporary debugging. The convention in Origen applications is to keep logging as light as possible, this in reaction to many tools in this space which are overly verbose in their logging such that it becomes mostly ignored by users.So only log to the terminal when you think it is really important by doing this:
Most of the time, if the information is just for debug purposes, then use:
In that case, then the terminal output will be clean, but you will see the debug info being output when ever you run Origen with the
-d
switch-verbose
switch.You can read more about other logging options here: http://origen-sdk.org/origen//guides/misc/logger
Additionally, if you are using Origen to generate a pattern, then the
cc
andss
methods are available.Will appear in a pattern like this:
For the main steps in a pattern you can use
ss
:which will look more emphasized, like this:
For multi-line step comments, you can use this API:
Which would look like:
You can read more about how to document patterns here: http://origen-sdk.org/origen/guides/pattern/documenting/