Module: OrigenTesters::ATP::FlowAPI
Instance Method Summary collapse
- #atp ⇒ Object
- #atp=(atp) ⇒ Object
- #hi_limit(value, options) ⇒ Object
- #limit(value, options) ⇒ Object
- #lo_limit(value, options) ⇒ Object
- #loop(*args, &block) ⇒ Object
Instance Method Details
#atp ⇒ Object
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
48 49 50 51 52 53 54 55 |
# File 'lib/origen_testers/atp/flow_api.rb', line 48 def hi_limit(value, ) { value: value, rule: [:rule] || :lte, units: [:units], selector: [:selector] || [:test_mode] } end |
#limit(value, options) ⇒ Object
57 58 59 60 61 62 63 64 65 66 67 |
# File 'lib/origen_testers/atp/flow_api.rb', line 57 def limit(value, ) unless [:rule] fail 'You must supply option :rule (e.g. rule: :gt) when calling the limit helper' end { value: value, rule: [:rule] || :lt, units: [:units], selector: [:selector] || [:test_mode] } end |
#lo_limit(value, options) ⇒ Object
39 40 41 42 43 44 45 46 |
# File 'lib/origen_testers/atp/flow_api.rb', line 39 def lo_limit(value, ) { value: value, rule: [:rule] || :gte, units: [:units], selector: [:selector] || [:test_mode] } end |
#loop(*args, &block) ⇒ Object
26 27 28 29 30 31 32 33 34 35 36 37 |
# File 'lib/origen_testers/atp/flow_api.rb', line 26 def loop(*args, &block) if args.empty? super(&block) else = args.pop if args.last.is_a?(Hash) ||= {} () if respond_to?(:add_meta!, true) add_description!() if respond_to?(:add_description!, true) args << atp.send(:loop, *args, &block) end end |