Class: OrigenTesters::IGXLBasedTester::Base::Edgeset

Inherits:
Object
  • Object
show all
Defined in:
lib/origen_testers/igxl_based_tester/base/edgeset.rb

Direct Known Subclasses

UltraFLEX::Edgeset

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nameObject

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

#periodObject

Edgeset information



5
6
7
# File 'lib/origen_testers/igxl_based_tester/base/edgeset.rb', line 5

def period
  @period
end

#pinsObject

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_sheetObject

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_modeObject

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

#platformObject



33
34
35
# File 'lib/origen_testers/igxl_based_tester/base/edgeset.rb', line 33

def platform
  Origen.interface.platform
end