Class: OrigenStdLibDev::Interface

Inherits:
Object
  • Object
show all
Includes:
OrigenStdLib, OrigenTesters::ProgramGenerators
Defined in:
lib/origen_std_lib_dev/interface.rb

Instance Method Summary collapse

Methods included from OrigenStdLib

add_v93k_std_lib, #apply_bin, #includes_origen_std_lib?, #record_bin

Instance Method Details

#dc_meas(name) ⇒ Object


13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# File 'lib/origen_std_lib_dev/interface.rb', line 13

def dc_meas(name)
  i = test_suites.add(name)
  tm = test_methods.origen.dc_measurement
  tm.apply_shutdown = 1
  tm.check_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

#freq_meas(name) ⇒ Object


30
31
32
33
34
35
36
37
38
39
40
41
# File 'lib/origen_std_lib_dev/interface.rb', line 30

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

#func(name) ⇒ Object


7
8
9
10
11
# File 'lib/origen_std_lib_dev/interface.rb', line 7

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