Sha256: e5e9764ab6b54a6c0f115069de0ece9674ed5ab7d85dacee5125b14a94672ff3

Contents?: true

Size: 1.16 KB

Versions: 2

Compression:

Stored size: 1.16 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

2 entries across 2 versions & 1 rubygems

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