Class: RgGen::VerilogUtility::InterfacePort

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

Instance Method Summary collapse

Constructor Details

#initialize(attributes) ⇒ InterfacePort

Returns a new instance of InterfacePort.



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

def initialize(attributes)
  @attributes = attributes
end

Instance Method Details

#identifierObject



12
13
14
# File 'lib/rggen/core_components/verilog_utility/interface_port.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_port.rb', line 8

def to_s
  "#{interface_type} #{port_identifier}"
end