Sha256: 9b685188052e6db2ead9e4af5042ee3848402e6d35e6d9ee7ebb2fa32addc3e7

Contents?: true

Size: 1.21 KB

Versions: 2

Compression:

Stored size: 1.21 KB

Contents

module OrigenTesters
  module IGXLBasedTester
    class Base
      class Edgeset
        attr_accessor :period, :t_mode  # Edgeset information
        attr_accessor :pins
        attr_accessor :spec_sheet
        attr_accessor :name

        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

        # Assigns a timing edge object to the given pin for this edgeset
        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

        def platform
          Origen.interface.platform
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
origen_testers-0.13.2 lib/origen_testers/igxl_based_tester/base/edgeset.rb
origen_testers-0.10.0 lib/origen_testers/igxl_based_tester/base/edgeset.rb