lib/origen/pins/pin.rb
# Add a Device Interface Board (e.g. probecard at wafer probe or loadboard at final package test)
# assignment to the pin.  Some refer to this as a channel but API name is meant to be generic.
Add a Device Interface Board
assignment to the pin.  Some refer to this as a channel but API name is meant to be generic.
Add a Device Interface Board assignment to the pin . Some refer to this as a channel but API name is meant to be generic .
def add_dib_assignment(str, options = {})
        options = {
          site: 0
        }.merge(options)
        packages = resolve_packages(options)
        if packages.empty?
          @dib_assignment[options[:site]] = str
          add_alias str.to_s.symbolize, package: :all, mode: :all, configuration: :all
        else
          packages.each do |package_id|
            package_id = package_id.respond_to?(:id) ? package_id.id : package_id
            myself.packages[package_id] ||= {}
            myself.packages[package_id][:dib_assignment] ||= []
            myself.packages[package_id][:dib_assignment][options[:site]] = str
            add_alias str.to_s.symbolize, package: package_id, mode: :all, configuration: :all
          end
        end
      end
def add_dib_assignment ( str , options = { } ) options = { site : 0 } . merge ( options ) packages = resolve_packages ( options ) if packages . empty? @dib_assignment [ options [ :site ] ] = str add_alias str . to_s . symbolize , package : :all , mode : :all , configuration : :all else packages . each do | package_id | package_id = package_id . respond_to? ( :id ) ? package_id . id : package_id myself . packages [ package_id ] ||= { } myself . packages [ package_id ] [ :dib_assignment ] ||= [ ] myself . packages [ package_id ] [ :dib_assignment ] [ options [ :site ] ] = str add_alias str . to_s . symbolize , package : package_id , mode : :all , configuration : :all end end end
Add a Device Interface Board (e.g.
Add a Device Interface Board ( e . g .
str
<not_specific>
options
<not_specific>