Class: OrigenTesters::IGXLBasedTester::Decompiler::Atp::Vector
- Inherits:
-
Decompiler::Nodes::Vector
- Object
- Decompiler::Nodes::Node
- Decompiler::Nodes::Vector
- OrigenTesters::IGXLBasedTester::Decompiler::Atp::Vector
- Defined in:
- lib/origen_testers/igxl_based_tester/decompiler/nodes.rb
Constant Summary collapse
- PLATFORM_NODES =
[:opcode, :opcode_arguments]
Instance Attribute Summary
Attributes inherited from Decompiler::Nodes::Vector
#comment, #pin_states, #timeset
Attributes inherited from Decompiler::Nodes::Node
Instance Method Summary collapse
-
#initialize(**options) ⇒ Vector
constructor
A new instance of Vector.
- #opcode ⇒ Object
- #opcode_arguments ⇒ Object
- #repeat ⇒ Object
Methods inherited from Decompiler::Nodes::Vector
Methods inherited from Decompiler::Nodes::Node
#execute?, inherited, #platform_nodes
Constructor Details
#initialize(**options) ⇒ Vector
Returns a new instance of Vector.
8 9 10 11 12 |
# File 'lib/origen_testers/igxl_based_tester/decompiler/nodes.rb', line 8 def initialize(**) @opcode = [:opcode] @opcode_arguments = [:opcode_arguments] || [] super(repeat: false, **) end |
Instance Method Details
#opcode ⇒ Object
18 19 20 |
# File 'lib/origen_testers/igxl_based_tester/decompiler/nodes.rb', line 18 def opcode @opcode end |
#opcode_arguments ⇒ Object
22 23 24 |
# File 'lib/origen_testers/igxl_based_tester/decompiler/nodes.rb', line 22 def opcode_arguments @opcode_arguments end |
#repeat ⇒ Object
14 15 16 |
# File 'lib/origen_testers/igxl_based_tester/decompiler/nodes.rb', line 14 def repeat opcode == 'repeat' ? opcode_arguments.first.to_i : 1 end |