Class: OrigenTesters::IGXLBasedTester::Decompiler::Atp::Vector

Inherits:
Decompiler::Nodes::Vector show all
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

#context, #type

Instance Method Summary collapse

Methods inherited from Decompiler::Nodes::Vector

#execute!

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(**options)
  @opcode = options[:opcode]
  @opcode_arguments = options[:opcode_arguments] || []
  super(repeat: false, **options)
end

Instance Method Details

#opcodeObject



18
19
20
# File 'lib/origen_testers/igxl_based_tester/decompiler/nodes.rb', line 18

def opcode
  @opcode
end

#opcode_argumentsObject



22
23
24
# File 'lib/origen_testers/igxl_based_tester/decompiler/nodes.rb', line 22

def opcode_arguments
  @opcode_arguments
end

#repeatObject



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