Class: OrigenTesters::Decompiler::Pattern::Pinlist

Inherits:
Base
  • Object
show all
Defined in:
lib/origen_testers/decompiler/pattern/elements/pinlist.rb

Instance Attribute Summary

Attributes inherited from Base

#context, #node

Instance Method Summary collapse

Methods inherited from Base

#[], #execute!, #method_missing, #platform_nodes

Constructor Details

#initialize(node:, context:) ⇒ Pinlist

Returns a new instance of Pinlist



7
8
9
10
# File 'lib/origen_testers/decompiler/pattern/elements/pinlist.rb', line 7

def initialize(node:, context:)
  @source = :pinlist
  super
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class OrigenTesters::Decompiler::Pattern::Base

Instance Method Details

#pinlistArray

Returns the pinlist as an ordered list.

Examples:

Return the pinlist.

# (Teradyne ATP format) vector ($tset, tclk, tdi, tdo, tms)
pinlist #=> ['tclk', 'tdi', 'tdo', 'tms']

Returns:

  • (Array)

    Array of strings where each array element is the corresponding pin in that position.



18
19
20
# File 'lib/origen_testers/decompiler/pattern/elements/pinlist.rb', line 18

def pinlist
  processor.pins
end

#pinlist_sizeInteger Also known as: size

Returns the size of the pinlist.

Returns:

  • (Integer)

    Size of the pinlist.



28
29
30
# File 'lib/origen_testers/decompiler/pattern/elements/pinlist.rb', line 28

def pinlist_size
  processor.pinlist.size
end

#pinsObject



22
23
24
# File 'lib/origen_testers/decompiler/pattern/elements/pinlist.rb', line 22

def pins
  processor.pins
end

#to_yaml_hashObject



33
34
35
36
37
38
39
40
# File 'lib/origen_testers/decompiler/pattern/elements/pinlist.rb', line 33

def to_yaml_hash
  {
    class:          self.class.to_s,
    processor:      processor.class.to_s,
    pinlist:        pinlist,
    platform_nodes: _platform_nodes_
  }
end