Module: OrigenTesters::ATP::FlowAPI

Included in:
Flow, Interface
Defined in:
lib/origen_testers/atp/flow_api.rb

Instance Method Summary collapse

Instance Method Details

#atpObject



7
8
9
# File 'lib/origen_testers/atp/flow_api.rb', line 7

def atp
  @atp
end

#atp=(atp) ⇒ Object



3
4
5
# File 'lib/origen_testers/atp/flow_api.rb', line 3

def atp=(atp)
  @atp = atp
end

#hi_limit(value, options) ⇒ Object



35
36
37
38
39
40
41
42
# File 'lib/origen_testers/atp/flow_api.rb', line 35

def hi_limit(value, options)
  {
    value:    value,
    rule:     options[:rule] || :lte,
    units:    options[:units],
    selector: options[:selector] || options[:test_mode]
  }
end

#limit(value, options) ⇒ Object



44
45
46
47
48
49
50
51
52
53
54
# File 'lib/origen_testers/atp/flow_api.rb', line 44

def limit(value, options)
  unless options[:rule]
    fail 'You must supply option :rule (e.g. rule: :gt) when calling the limit helper'
  end
  {
    value:    value,
    rule:     options[:rule] || :lt,
    units:    options[:units],
    selector: options[:selector] || options[:test_mode]
  }
end

#lo_limit(value, options) ⇒ Object



26
27
28
29
30
31
32
33
# File 'lib/origen_testers/atp/flow_api.rb', line 26

def lo_limit(value, options)
  {
    value:    value,
    rule:     options[:rule] || :gte,
    units:    options[:units],
    selector: options[:selector] || options[:test_mode]
  }
end