Module: Origen::Netlist::Connectable

Extended by:
ActiveSupport::Concern
Included in:
Ports::Port, Ports::Section, Registers::BitCollection
Defined in:
lib/origen/netlist/connectable.rb

Instance Method Summary collapse

Instance Method Details

#connect_to(node = nil, options = {}, &block) ⇒ Object Also known as: connect



10
11
12
13
14
# File 'lib/origen/netlist/connectable.rb', line 10

def connect_to(node = nil, options = {}, &block)
  node, options = nil, node if node.is_a?(Hash)
  node = node.path if node.respond_to?(:path)
  netlist.connect(path, node, &block)
end