Module: RgGen::Core::Base::ComponentLayerExtension::Common

Included in:
BitField, Register, RegisterBlock, RegisterFile, Root
Defined in:
lib/rggen/core/base/component_layer_extension.rb

Instance Method Summary collapse

Instance Method Details

#bit_field?Boolean

Returns:

  • (Boolean)


26
27
28
# File 'lib/rggen/core/base/component_layer_extension.rb', line 26

def bit_field?
  layer == :bit_field
end

#register?Boolean

Returns:

  • (Boolean)


22
23
24
# File 'lib/rggen/core/base/component_layer_extension.rb', line 22

def register?
  layer == :register
end

#register_block?Boolean

Returns:

  • (Boolean)


14
15
16
# File 'lib/rggen/core/base/component_layer_extension.rb', line 14

def register_block?
  layer == :register_block
end

#register_file?Boolean

Returns:

  • (Boolean)


18
19
20
# File 'lib/rggen/core/base/component_layer_extension.rb', line 18

def register_file?
  layer == :register_file
end

#root?Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/rggen/core/base/component_layer_extension.rb', line 10

def root?
  layer == :root
end