Class: Idl::CsrType

Inherits:
Type
  • Object
show all
Defined in:
lib/idl/type.rb

Overview

represents a CSR register

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(csr, arch_def, qualifiers: []) ⇒ CsrType

Returns a new instance of CsrType.



612
613
614
# File 'lib/idl/type.rb', line 612

def initialize(csr, arch_def, qualifiers: [])
  super(:csr, name: csr.name, csr: csr, width: csr.max_length(arch_def), qualifiers: qualifiers)
end

Instance Attribute Details

#csrObject (readonly)

Returns the value of attribute csr.



610
611
612
# File 'lib/idl/type.rb', line 610

def csr
  @csr
end

Instance Method Details

#fieldsObject



616
617
618
# File 'lib/idl/type.rb', line 616

def fields
  @csr.fields
end