lib/origen/pins/pin.rb
# Add a function to the pin.
#
# @example Adding a mode-specific function
#   pin.add_function :tdi, :direction => :input
#   pin.add_function :nvm_fail, :mode => :nvmbist, :direction => :output
Add a function to the pin.
Add a function to the pin .
def add_function(id, options = {})
        id = id.to_sym
        add_function_attributes(options.merge(name: id, id: id.to_sym))
        f = FunctionProxy.new(id, myself)
        add_alias id, packages: :all, obj: f
      end
def add_function ( id , options = { } ) id = id . to_sym add_function_attributes ( options . merge ( name : id , id : id . to_sym ) ) f = FunctionProxy . new ( id , myself ) add_alias id , packages : :all , obj : f end
Add a function to the pin.
Add a function to the pin .
id
<not_specific>
options
<not_specific>
example
Adding a mode-specific function pin.add_function :tdi, :direction => :input pin.add_function :nvm_fail, :mode => :nvmbist, :direction => :output
Adding a mode - specific function pin . add_function : tdi : direction = > : input pin . add_function : nvm_fail : mode = > : nvmbist : direction = > : output