Class: OrigenTesters::Test::CustomTestInterface
- Inherits:
-
Object
- Object
- OrigenTesters::Test::CustomTestInterface
show all
- Includes:
- ProgramGenerators
- Defined in:
- lib/origen_testers/test/custom_test_interface.rb
Constant Summary
ProgramGenerators::PLATFORMS
Instance Method Summary
collapse
#_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
#atp, #atp=, #hi_limit, #limit, #lo_limit, #loop
Constructor Details
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
|
#custom_c(name, options = {}) ⇒ Object
36
37
38
39
40
41
42
43
44
45
46
47
48
|
# File 'lib/origen_testers/test/custom_test_interface.rb', line 36
def custom_c(name, options = {})
name = "custom_c_#{name}".to_sym
if tester.v93k?
ti = test_methods.my_tml.test_c
ti.my_arg0 = 'arg0_set'
if options[:my_arg1]
ti.my_arg0 = 'arg1_should_render'
ti.my_arg1 = options[:my_arg1]
else
ti.my_arg0 = 'arg1_should_not_render'
end
end
end
|
#custom_d(name, options = {}) ⇒ Object
50
51
52
53
54
55
|
# File 'lib/origen_testers/test/custom_test_interface.rb', line 50
def custom_d(name, options = {})
name = "custom_d_#{name}".to_sym
if tester.v93k?
ti = test_methods.my_tml.test_d
end
end
|
#custom_hash(name, options = {}) ⇒ Object
57
58
59
60
61
62
63
64
65
66
67
|
# File 'lib/origen_testers/test/custom_test_interface.rb', line 57
def custom_hash(name, options = {})
name = "custom_hash_#{name}".to_sym
if tester.v93k? && tester.smt8?
ti = test_methods.my_tml.test_hash
ti.my_arg_hash = {
my_param_name: {
my_arg2: 1
}
}
end
end
|