class Origen::Registers::RegCollection

This is a regular Ruby hash that is used to store collections of Reg objects, it has additional methods added to allow interaction with the contained registers. All Ruby hash methods are also available - www.ruby-doc.org/core/classes/Hash.html

Attributes

owner[R]

Returns the object that owns the registers

Public Class Methods

new(owner, _options = {}) click to toggle source
# File lib/origen/registers/reg_collection.rb, line 10
def initialize(owner, _options = {})
  @owner = owner
end

Public Instance Methods

inspect() click to toggle source
# File lib/origen/registers/reg_collection.rb, line 14
def inspect
  map { |k, _v| k }.inspect
end
show() click to toggle source

Display all regs visually in a console session

# File lib/origen/registers/reg_collection.rb, line 19
def show
  puts map { |_k, v| v }.inspect
end