origen_testers 0.48.0 → 0.48.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: aab714d801c978890bf63dcf475ccf275b87b54e
4
- data.tar.gz: 37d3ef0d30281f9e467ba8475957aacebdb2959a
3
+ metadata.gz: 4d062217b6f69bd8190818c2b24c2574bb163dab
4
+ data.tar.gz: 9b139b2ef824933744d66c817baba75524ff7d3b
5
5
  SHA512:
6
- metadata.gz: b2abd50fe57675fa06d61afe99ca4930a36bdfeaf172b8f166c40e0af190cf57b90a5e01ce366471a5aec5dd3a9be7957c09bb089c9922bdf07891f12226a9d6
7
- data.tar.gz: b53c79a3dbc31a29fd74a984b4dc5111c245032d093d099a66195c08404f7d12980dd1f33d2f454ec4df1759a72c775aeb612c578dcfe4155af12f3cbe9d8b54
6
+ metadata.gz: 5f0e2c810aa3f8826897a16099274fc65d307c1650dab5d60ca9d3ef84da37e390932d3802c5e4980f81304cefff12b6b31de53ee798ad132f9e708cc3aa03df
7
+ data.tar.gz: b1bf66931f6056f6ae314715b7e9b368534cb13b5a4bed46e364f2318e80fe57d07fd50e071adc158b8d29a3129ab49ecb724e16fa52e3e344dcd379d21b9413
@@ -1,7 +1,7 @@
1
1
  module OrigenTesters
2
2
  MAJOR = 0
3
3
  MINOR = 48
4
- BUGFIX = 0
4
+ BUGFIX = 1
5
5
  DEV = nil
6
6
  VERSION = [MAJOR, MINOR, BUGFIX].join(".") + (DEV ? ".pre#{DEV}" : '')
7
7
  end
@@ -44,6 +44,8 @@ module OrigenTesters
44
44
  # Its intended to be used in combination with an existing point test (regular non charz test) to create
45
45
  # a characterization version of the point test
46
46
  #
47
+ # To use your own Routine classes, override the create_charz_routine method in your interface
48
+ #
47
49
  # @example create a 1d search routine that searches vdd, from 900mv to 300mv, resolution of 5mv
48
50
  # add_charz_routine :my_routine, type: search do |rt|
49
51
  # rt.start = 900.mv
@@ -60,13 +62,24 @@ module OrigenTesters
60
62
  Origen.log.error("Cannot create charz routine '#{id}', it already exists!")
61
63
  fail
62
64
  end
65
+ charz_routines[id] = create_charz_routine(id, options, &block)
66
+ end
67
+
68
+ # Called by add_charz_routine, split out from that method to make it easier to override this handler from a user's interface
69
+ # This is the method to override if you want to use custom Routines specifc to your company's implementation
70
+ #
71
+ # @param [Symbol] id charz_routine id, will be the key value in the @charz_routines hash. Must not have been previously used
72
+ # @param [Hash] options charz_routine options
73
+ # @option options [Symbol] :type :search or :'1d' will create a SearchRoutine, :shmoo or :'2d' will create a ShmooRoutine, nil will create a Routine
74
+ # @return [Routine] a charz routine object
75
+ def create_charz_routine(id, options = {}, &block)
63
76
  case options[:type]
64
77
  when :search, :'1d'
65
- charz_routines[id] = SearchRoutine.new(id, options, &block)
78
+ SearchRoutine.new(id, options, &block)
66
79
  when :shmoo, :'2d'
67
- charz_routines[id] = ShmooRoutine.new(id, options, &block)
80
+ ShmooRoutine.new(id, options, &block)
68
81
  else
69
- charz_routines[id] = Routine.new(id, options, &block)
82
+ Routine.new(id, options, &block)
70
83
  end
71
84
  end
72
85
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: origen_testers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.48.0
4
+ version: 0.48.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen McGinty
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-08-26 00:00:00.000000000 Z
11
+ date: 2020-10-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: origen