Sha256: ce68bd282c02f2b9ede91d61cd3904620d23762a9df3e9c20d8f3ac47e10408a

Contents?: true

Size: 518 Bytes

Versions: 11

Compression:

Stored size: 518 Bytes

Contents

module Origen
  module Netlist
    autoload :List,        'origen/netlist/list'
    autoload :Connectable, 'origen/netlist/connectable'

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

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

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
origen-0.60.19 lib/origen/netlist.rb
origen-0.60.18 lib/origen/netlist.rb
origen-0.60.17 lib/origen/netlist.rb
origen-0.60.16 lib/origen/netlist.rb
origen-0.60.14 lib/origen/netlist.rb
origen-0.60.13 lib/origen/netlist.rb
origen-0.60.12 lib/origen/netlist.rb
origen-0.60.11 lib/origen/netlist.rb
origen-0.60.10 lib/origen/netlist.rb
origen-0.60.9 lib/origen/netlist.rb
origen-0.60.8 lib/origen/netlist.rb