Sha256: bf104b1173615f09143e63ddb018e4db317ea052eea728a8b73c89a81651b21c

Contents?: true

Size: 1001 Bytes

Versions: 1

Compression:

Stored size: 1001 Bytes

Contents

require 'origen_std_lib'
module OrigenStdLibDev
  class Interface
    include OrigenTesters::ProgramGenerators
    include OrigenStdLib

    def func(name)
      i = test_suites.add(name)
      i.test_method = test_methods.origen.functional_test
      flow.test(i)
    end

    def dc_meas(name)
      i = test_suites.add(name)
      tm = test_methods.origen.dc_measurement
      tm.apply_shutdown = 1
      tm.shutdown_pattern = 'some_pattern'
      tm.measure = 'CURR'
      tm.settling_time = 100
      tm.pin = 'SOME_PIN'
      tm.force_value = 10.4
      tm.i_range = 1000
      tm.limits.lo = 1
      tm.limits.hi = 2
      i.test_method = tm
      flow.test(i)
    end

    def freq_meas(name)
      i = test_suites.add(name)
      tm = test_methods.origen.frequency_measurement
      tm.period_based = 1
      tm.pin = 'PINA'
      tm.samples = 4000
      tm.period_in_ns = 40
      tm.limits.lo = 1.Mhz
      tm.limits.hi = 2.Mhz
      i.test_method = tm
      flow.test(i)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
origen_std_lib-0.3.0 lib/origen_std_lib_dev/interface.rb