Class: OrigenTesters::Decompiler::Pattern::Vector
- Inherits:
-
Base
- Object
- Base
- OrigenTesters::Decompiler::Pattern::Vector
show all
- Defined in:
- lib/origen_testers/decompiler/pattern/elements/vector.rb
Overview
Represents a single Vector's AST.
Instance Attribute Summary
Attributes inherited from Base
#context, #node
Instance Method Summary
collapse
Methods inherited from Base
#[], #execute!, #method_missing, #pinlist, #platform_nodes
Constructor Details
#initialize(parent, options = {}) ⇒ Vector
Returns a new instance of Vector.
10
11
12
|
# File 'lib/origen_testers/decompiler/pattern/elements/vector.rb', line 10
def initialize(parent, options = {})
super(node: parent, context: parent.context)
end
|
Instance Method Details
26
27
28
|
# File 'lib/origen_testers/decompiler/pattern/elements/vector.rb', line 26
def
processor.
end
|
#pin_states ⇒ Object
22
23
24
|
# File 'lib/origen_testers/decompiler/pattern/elements/vector.rb', line 22
def pin_states
processor.pin_states
end
|
#repeat ⇒ Object
18
19
20
|
# File 'lib/origen_testers/decompiler/pattern/elements/vector.rb', line 18
def repeat
processor.repeat
end
|
#timeset ⇒ Object
14
15
16
|
# File 'lib/origen_testers/decompiler/pattern/elements/vector.rb', line 14
def timeset
processor.timeset
end
|
#to_yaml_hash(options = {}) ⇒ Object
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
# File 'lib/origen_testers/decompiler/pattern/elements/vector.rb', line 34
def to_yaml_hash(options = {})
if parent.type == :vector
{
class: self.class.to_s,
vector_index: (parent.respond_to?(:vector_index) ? parent.vector_index : nil),
type: parent.type,
processor: processor.class.to_s,
timeset: timeset,
repeat: repeat,
pin_states: pin_states,
comment: ,
platform_nodes: _platform_nodes_
}
else
{
class: self.class.to_s,
vector_index: (parent.respond_to?(:vector_index) ? parent.vector_index : nil),
type: parent.type,
processor: processor.class.to_s
}
end
end
|
#vector_index ⇒ Object
30
31
32
|
# File 'lib/origen_testers/decompiler/pattern/elements/vector.rb', line 30
def vector_index
parent.vector_index
end
|