Class: Origen::Registers::Domain

Inherits:
Object
  • Object
show all
Defined in:
lib/origen/registers/domain.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, options = {}) ⇒ Domain

Returns a new instance of Domain.



7
8
9
10
11
12
13
# File 'lib/origen/registers/domain.rb', line 7

def initialize(name, options = {})
  options = {
    endian: :big
  }.merge(options)
  @name = name
  @endian = options[:endian]
end

Instance Attribute Details

#endianObject

Returns the value of attribute endian.



4
5
6
# File 'lib/origen/registers/domain.rb', line 4

def endian
  @endian
end

#nameObject

Returns the value of attribute name.



5
6
7
# File 'lib/origen/registers/domain.rb', line 5

def name
  @name
end