Class: Idl::CsrType
Overview
represents a CSR register
Instance Attribute Summary collapse
-
#csr ⇒ Object
readonly
Returns the value of attribute csr.
Instance Method Summary collapse
- #fields ⇒ Object
-
#initialize(csr, arch_def, qualifiers: []) ⇒ CsrType
constructor
A new instance of CsrType.
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
#csr ⇒ Object (readonly)
Returns the value of attribute csr.
610 611 612 |
# File 'lib/idl/type.rb', line 610 def csr @csr end |
Instance Method Details
#fields ⇒ Object
616 617 618 |
# File 'lib/idl/type.rb', line 616 def fields @csr.fields end |