Class: RgGen::RTL::Item

Inherits:
OutputBase::Item show all
Includes:
VerilogUtility
Defined in:
lib/rggen/core_components/rtl/item.rb

Constant Summary

Constants inherited from OutputBase::Item

OutputBase::Item::CODE_GENERATION_METHODS

Instance Attribute Summary collapse

Attributes inherited from Base::Item

#owner

Instance Method Summary collapse

Methods included from VerilogUtility

#create_blank_file

Methods included from CodeUtility

#create_blank_code

Methods inherited from OutputBase::Item

#build, inherited, #write_file

Methods inherited from Base::Item

#available?, available?, define_helpers, inherit_class_instance_variable

Methods included from Forwardable

#def_class_delegator, #def_class_delegators

Constructor Details

#initialize(owner) ⇒ Item

Returns a new instance of Item.



7
8
9
10
11
12
13
14
# File 'lib/rggen/core_components/rtl/item.rb', line 7

def initialize(owner)
  super(owner)
  @identifiers              = []
  @signal_declarations      = Hash.new { |h, d| h[d]  = [] }
  @port_declarations        = Hash.new { |h, d| h[d]  = [] }
  @parameter_declarations   = Hash.new { |h, d| h[d]  = [] }
  @localparam_declarations  = Hash.new { |h, d| h[d]  = [] }
end

Instance Attribute Details

#identifiersObject (readonly)

Returns the value of attribute identifiers.



16
17
18
# File 'lib/rggen/core_components/rtl/item.rb', line 16

def identifiers
  @identifiers
end