module Origen::GlobalMethods
Constants
- Flow
- Pattern
- Resources
- User
Public Instance Methods
annotate(msg, options = {})
click to toggle source
# File lib/origen/global_methods.rb, line 4 def annotate(msg, options = {}) Origen.app.tester.annotate(msg, options) end
c1(msg, options = {})
click to toggle source
# File lib/origen/global_methods.rb, line 8 def c1(msg, options = {}) Origen.app.tester.c1(msg, options) end
Also aliased as: cc
c2(msg, options = {})
click to toggle source
# File lib/origen/global_methods.rb, line 13 def c2(msg, options = {}) Origen.app.tester.c2(msg, options) end
dut()
click to toggle source
# File lib/origen/global_methods.rb, line 41 def dut Origen.top_level end
global_binding()
click to toggle source
# File lib/origen/global_methods.rb, line 60 def global_binding binding end
options()
click to toggle source
The options passed to an ERB template. Having it global like this is ugly, but it does allow a hash of options to always be available in templates even if the template is being rendered using a custom binding.
@api private
# File lib/origen/global_methods.rb, line 55 def options $_target_options || Origen.generator.compiler.options end
pp(*args, &block)
click to toggle source
# File lib/origen/global_methods.rb, line 22 def pp(*args, &block) Origen.app.tester.pattern_section(*args, &block) end
Also aliased as: pattern_section, ps
render(*args, &block)
click to toggle source
Render an ERB template
# File lib/origen/global_methods.rb, line 33 def render(*args, &block) if $_compiler_stack && $_compiler_stack.last $_compiler_stack.last.render(*args, &block) else Origen.generator.compiler.render(*args, &block) end end
snip(*args, &block)
click to toggle source
# File lib/origen/global_methods.rb, line 28 def snip(*args, &block) Origen.app.tester.snip(*args, &block) end
ss(*args, &block)
click to toggle source
# File lib/origen/global_methods.rb, line 17 def ss(*args, &block) Origen.app.tester.ss(*args, &block) end
Also aliased as: step_comment
tester()
click to toggle source
# File lib/origen/global_methods.rb, line 45 def tester Origen.tester end
undefined()
click to toggle source
# File lib/origen/global_methods.rb, line 64 def undefined Origen::UndefinedClass.instance end