Module: RgGen::Core::Base::ComponentLayerExtension::Root

Includes:
Common
Defined in:
lib/rggen/core/base/component_layer_extension.rb

Instance Method Summary collapse

Methods included from Common

#bit_field?, #register?, #register_block?, #register_file?, #root?

Instance Method Details

#bit_fieldsObject



46
47
48
# File 'lib/rggen/core/base/component_layer_extension.rb', line 46

def bit_fields
  register_blocks.flat_map(&:bit_fields)
end

#register_blocksObject



34
35
36
# File 'lib/rggen/core/base/component_layer_extension.rb', line 34

def register_blocks
  children
end

#register_filesObject



38
39
40
# File 'lib/rggen/core/base/component_layer_extension.rb', line 38

def register_files
  register_blocks.flat_map(&:register_files)
end

#registersObject



42
43
44
# File 'lib/rggen/core/base/component_layer_extension.rb', line 42

def registers
  register_blocks.flat_map(&:registers)
end