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.9.5 lib/origen_testers/igxl_based_tester/base/level_supply.rb
origen_testers-0.9.4 lib/origen_testers/igxl_based_tester/base/level_supply.rb
origen_testers-0.9.3 lib/origen_testers/igxl_based_tester/base/level_supply.rb
origen_testers-0.9.2 lib/origen_testers/igxl_based_tester/base/level_supply.rb
origen_testers-0.9.1 lib/origen_testers/igxl_based_tester/base/level_supply.rb
origen_testers-0.9.0 lib/origen_testers/igxl_based_tester/base/level_supply.rb
origen_testers-0.8.13 lib/origen_testers/igxl_based_tester/base/level_supply.rb
origen_testers-0.8.11 lib/origen_testers/igxl_based_tester/base/level_supply.rb
origen_testers-0.8.8 lib/origen_testers/igxl_based_tester/base/level_supply.rb
origen_testers-0.8.7 lib/origen_testers/igxl_based_tester/base/level_supply.rb
origen_testers-0.8.6 lib/origen_testers/igxl_based_tester/base/level_supply.rb
origen_testers-0.8.5 lib/origen_testers/igxl_based_tester/base/level_supply.rb
origen_testers-0.8.4 lib/origen_testers/igxl_based_tester/base/level_supply.rb
origen_testers-0.8.3 lib/origen_testers/igxl_based_tester/base/level_supply.rb
origen_testers-0.8.2 lib/origen_testers/igxl_based_tester/base/level_supply.rb
origen_testers-0.8.1 lib/origen_testers/igxl_based_tester/base/level_supply.rb
origen_testers-0.8.0 lib/origen_testers/igxl_based_tester/base/level_supply.rb
origen_testers-0.8.0.pre1 lib/origen_testers/igxl_based_tester/base/level_supply.rb
origen_testers-0.7.13 lib/origen_testers/igxl_based_tester/base/level_supply.rb
origen_testers-0.7.12 lib/origen_testers/igxl_based_tester/base/level_supply.rb