Method: OrigenTesters::Decompiler::Pattern#pin_sizes

Defined in:
lib/origen_testers/decompiler/pattern.rb

#pin_sizesHash

Resolves the size of each pin in the pinlist using the initial pin states.

Returns:

  • (Hash)

    Hash wherein the keys are the pin names and each value is the corresponding size.



241
242
243
244
245
246
247
# File 'lib/origen_testers/decompiler/pattern.rb', line 241

def pin_sizes
  # initial_pin_states.map { |pin, state| state.size }
  initial_pin_states_mapped.map { |pin, state| [pin, state.size] }.to_h
  # pins.each.with_index.with_object({}) do |(pin, i), hash|
  #  hash[pin] = initial_pin_states[i].size
  # end
end