Sha256: c9be40b9414a2ff4fa27c5d0e20f9c6e0af4b7f8f2e8f2eaaed8b45c3177cbb7

Contents?: true

Size: 1.12 KB

Versions: 96

Compression:

Stored size: 1.12 KB

Contents

module OrigenTesters
  module IGXLBasedTester
    class Base
      class SupplyLevel
        attr_accessor :vmain, :valt     # Supply level information
        attr_accessor :ifold            # Clamp current information
        attr_accessor :delay            # Supply power-up delay

        def initialize(options = {}) # :nodoc:
          options = {
            vmain: 1.8,                # Main supply voltage
            valt:  1.8,                # Alternate supply voltage
            ifold: 1,                # Supply clamp current
            delay: 0                 # Supply power-up delay
          }.merge(options)
          @vmain = options[:vmain]
          @valt  = options[:valt]
          @ifold = options[:ifold]
          @delay = options[:delay]
        end

        def ==(level)
          if level.is_a? PinLevelSingle
            vmain == level.vmain &&
              valt == level.valt &&
              ifold == level.ifold &&
              delay == level.delay
          else
            super
          end
        end

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

Version data entries

96 entries across 96 versions & 1 rubygems

Version Path
origen_testers-0.52.8 lib/origen_testers/igxl_based_tester/base/level_supply.rb
origen_testers-0.52.7 lib/origen_testers/igxl_based_tester/base/level_supply.rb
origen_testers-0.52.6 lib/origen_testers/igxl_based_tester/base/level_supply.rb
origen_testers-0.52.5 lib/origen_testers/igxl_based_tester/base/level_supply.rb
origen_testers-0.52.4 lib/origen_testers/igxl_based_tester/base/level_supply.rb
origen_testers-0.52.3 lib/origen_testers/igxl_based_tester/base/level_supply.rb
origen_testers-0.52.1 lib/origen_testers/igxl_based_tester/base/level_supply.rb
origen_testers-0.52.0 lib/origen_testers/igxl_based_tester/base/level_supply.rb
origen_testers-0.51.5 lib/origen_testers/igxl_based_tester/base/level_supply.rb
origen_testers-0.51.4 lib/origen_testers/igxl_based_tester/base/level_supply.rb
origen_testers-0.51.3 lib/origen_testers/igxl_based_tester/base/level_supply.rb
origen_testers-0.51.2 lib/origen_testers/igxl_based_tester/base/level_supply.rb
origen_testers-0.51.1 lib/origen_testers/igxl_based_tester/base/level_supply.rb
origen_testers-0.51.0 lib/origen_testers/igxl_based_tester/base/level_supply.rb
origen_testers-0.50.0 lib/origen_testers/igxl_based_tester/base/level_supply.rb
origen_testers-0.49.4 lib/origen_testers/igxl_based_tester/base/level_supply.rb
origen_testers-0.49.3 lib/origen_testers/igxl_based_tester/base/level_supply.rb
origen_testers-0.49.2 lib/origen_testers/igxl_based_tester/base/level_supply.rb
origen_testers-0.49.1 lib/origen_testers/igxl_based_tester/base/level_supply.rb
origen_testers-0.49.0 lib/origen_testers/igxl_based_tester/base/level_supply.rb