Method: OrigenTesters::Decompiler::Pattern#first_vector

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

#first_vectorObject



169
170
171
172
173
174
175
176
177
178
179
180
181
182
# File 'lib/origen_testers/decompiler/pattern.rb', line 169

def first_vector
  @first_vector || begin
    each_vector do |v|
      if v.vector?
        @first_vector = v.element
        break
      end
    end
    if @first_vector.nil?
      fail OrigenTesters::Decompiler::ParseError, "Could not locate the first vector in pattern #{@source}"
    end
    @first_vector
  end
end