Class: OrigenTesters::IGXLBasedTester::Base::Edgeset
- Inherits:
-
Object
- Object
- OrigenTesters::IGXLBasedTester::Base::Edgeset
- Defined in:
- lib/origen_testers/igxl_based_tester/base/edgeset.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#period ⇒ Object
Edgeset information.
-
#pins ⇒ Object
Returns the value of attribute pins.
-
#spec_sheet ⇒ Object
Returns the value of attribute spec_sheet.
-
#t_mode ⇒ Object
Edgeset information.
Instance Method Summary collapse
-
#add_edge(pin, edge) ⇒ Object
Assigns a timing edge object to the given pin for this edgeset.
-
#initialize(name, pin, edge, attrs = {}) ⇒ Edgeset
constructor
:nodoc:.
- #platform ⇒ Object
Constructor Details
#initialize(name, pin, edge, attrs = {}) ⇒ Edgeset
:nodoc:
10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/origen_testers/igxl_based_tester/base/edgeset.rb', line 10 def initialize(name, pin, edge, attrs = {}) # :nodoc: attrs = { period: '', # tester cycle duration t_mode: '', # timing mode (possibly ATE-specific) spec_sheet: 'default' # defines which specset sheet to put variables in (e.g. func, scan) when generating specset files }.merge(attrs) @period = attrs[:period] @t_mode = attrs[:t_mode] @spec_sheet = attrs[:spec_sheet] @pins = { pin => edge } self.name = name end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
8 9 10 |
# File 'lib/origen_testers/igxl_based_tester/base/edgeset.rb', line 8 def name @name end |
#period ⇒ Object
Edgeset information
5 6 7 |
# File 'lib/origen_testers/igxl_based_tester/base/edgeset.rb', line 5 def period @period end |
#pins ⇒ Object
Returns the value of attribute pins.
6 7 8 |
# File 'lib/origen_testers/igxl_based_tester/base/edgeset.rb', line 6 def pins @pins end |
#spec_sheet ⇒ Object
Returns the value of attribute spec_sheet.
7 8 9 |
# File 'lib/origen_testers/igxl_based_tester/base/edgeset.rb', line 7 def spec_sheet @spec_sheet end |
#t_mode ⇒ Object
Edgeset information
5 6 7 |
# File 'lib/origen_testers/igxl_based_tester/base/edgeset.rb', line 5 def t_mode @t_mode end |
Instance Method Details
#add_edge(pin, edge) ⇒ Object
Assigns a timing edge object to the given pin for this edgeset
24 25 26 27 28 29 30 31 |
# File 'lib/origen_testers/igxl_based_tester/base/edgeset.rb', line 24 def add_edge(pin, edge) if @pins.key?(pin) Origen.log.error "Pin #{pin} already exists in edgeset" fail else @pins[pin] = edge end end |
#platform ⇒ Object
33 34 35 |
# File 'lib/origen_testers/igxl_based_tester/base/edgeset.rb', line 33 def platform Origen.interface.platform end |