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
6
7
8
9
10
11
12
|
# File 'lib/origen/netlist.rb', line 6
def netlist
@netlist ||= if netlist_top_level == self
List.new(self)
else
netlist_top_level.netlist
end
end
|
#netlist_top_level ⇒ Object
14
15
16
17
18
19
20
|
# File 'lib/origen/netlist.rb', line 14
def netlist_top_level
@netlist_top_level ||= begin
p = self
p = p.parent while p.respond_to?(:parent) && p.parent
p
end
end
|