Module: Origen::Netlist

Defined in:
lib/origen/netlist.rb,
lib/origen/netlist/list.rb,
lib/origen/netlist/connectable.rb

Defined Under Namespace

Modules: Connectable Classes: List

Instance Method Summary collapse

Instance Method Details

#netlistObject


6
7
8
9
10
11
12
13
14
# File 'lib/origen/netlist.rb', line 6

def netlist
  @netlist ||= begin
    if netlist_top_level == self
      List.new(self)
    else
      netlist_top_level.netlist
    end
  end
end

#netlist_top_levelObject


16
17
18
19
20
21
22
# File 'lib/origen/netlist.rb', line 16

def netlist_top_level
  @netlist_top_level ||= begin
    p = self
    p = p.parent while p.respond_to?(:parent) && p.parent
    p
  end
end