Class: RgGen::VerilogUtility::InterfacePort
- Inherits:
-
Object
- Object
- RgGen::VerilogUtility::InterfacePort
- Defined in:
- lib/rggen/core_components/verilog_utility/interface_port.rb
Instance Method Summary collapse
- #identifier ⇒ Object
-
#initialize(attributes) ⇒ InterfacePort
constructor
A new instance of InterfacePort.
- #to_s ⇒ Object
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
#identifier ⇒ Object
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_s ⇒ Object
8 9 10 |
# File 'lib/rggen/core_components/verilog_utility/interface_port.rb', line 8 def to_s "#{interface_type} #{port_identifier}" end |