Class: OrigenTesters::Test::CustomTestInterface

Inherits:
Object
  • Object
show all
Includes:
ProgramGenerators
Defined in:
lib/origen_testers/test/custom_test_interface.rb

Constant Summary

Constants included from ProgramGenerators

ProgramGenerators::PLATFORMS

Instance Method Summary collapse

Methods included from ProgramGenerators

#_load_generator, #pre_initialize, #tester

Methods included from Interface

#add_description!, #add_flow_enable, #add_flow_enable=, #add_meta!, #all_pattern_references, #app_identifier, #atp, #clean_referenced_patterns, #clear_pattern_references, #clear_top_level_flow, #close, #comment, #comments, #compile, #consume_comments, #context_changed?, #context_or_parameter_changed?, #descriptions, #discard_comments, #discard_top_level_flow, #flow_generator, #generating_sub_program?, #identity_map, #import, #merge_pattern_references, #on_program_completion, #parameter_changed?, #pattern_references, #pattern_references_name, #pattern_references_name=, #platform, #record_pattern_reference, #referenced_patterns, #render, #resources_mode, #resources_mode?, resources_mode?, #set_top_level_flow, #test, #top_level_flow, #unique_test_names, #unique_test_names=, with_resources_mode, write=, #write?, write?, #write_files

Methods included from ATP::FlowAPI

#atp, #atp=, #hi_limit, #limit, #lo_limit

Constructor Details

#initialize(options = {}) ⇒ CustomTestInterface

Returns a new instance of CustomTestInterface.



6
7
8
9
# File 'lib/origen_testers/test/custom_test_interface.rb', line 6

def initialize(options = {})
  add_custom_til if tester.try(:igxl_based?)
  add_custom_tml if tester.v93k?
end

Instance Method Details

#custom(name, options = {}) ⇒ Object



11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# File 'lib/origen_testers/test/custom_test_interface.rb', line 11

def custom(name, options = {})
  name = "custom_#{name}".to_sym
  if tester.try(:igxl_based?)
    ti = test_instances.mylib.test_a(name)
    ti.my_arg0 = 'arg0_set'
    ti.my_arg2_alias = 'curr'
    ti.set_my_arg4('arg4_set_from_method')

  elsif tester.v93k?
    ti = test_methods.my_tml.test_a
    ti.my_arg0 = 'arg0_set'
    ti.my_arg2_alias = 'CURR'
    ti.set_my_arg4('arg4_set_from_method')

  end
end

#custom_b(name, options = {}) ⇒ Object



28
29
30
31
32
33
34
# File 'lib/origen_testers/test/custom_test_interface.rb', line 28

def custom_b(name, options = {})
  name = "custom_b_#{name}".to_sym
  if tester.v93k?
    ti = test_methods.my_tml.test_b
    ti.my_arg0 = 'arg0_set'
  end
end