Class: RgGen::VerilogUtility::InterfaceInstance

Inherits:
Object
  • Object
show all
Defined in:
lib/rggen/core_components/verilog_utility/interface_instance.rb

Instance Method Summary collapse

Constructor Details

#initialize(attributes) ⇒ InterfaceInstance

Returns a new instance of InterfaceInstance.



4
5
6
# File 'lib/rggen/core_components/verilog_utility/interface_instance.rb', line 4

def initialize(attributes)
  @attributes = attributes
end

Instance Method Details

#identifierObject



12
13
14
# File 'lib/rggen/core_components/verilog_utility/interface_instance.rb', line 12

def identifier
  Identifier.new(@attributes[:name], nil, nil, nil)
end

#to_sObject



8
9
10
# File 'lib/rggen/core_components/verilog_utility/interface_instance.rb', line 8

def to_s
  "#{interface_type} #{instance_identifier}()"
end