lib/origen/registers.rb
# Returns true if the register is constrained by the given/any feature
Returns true if the register is constrained by the given/any feature
Returns true if the register is constrained by the given / any feature
def enabled_by_feature?(name = nil)
        if !name
          !!feature
        else
          if feature.class == Array
            feature.each do |f|
              if f == name
                return true
              end
            end
            return false
          else
            return feature == name
          end
        end
      end
def enabled_by_feature? ( name = nil ) if ! name ! ! feature else if feature . class == Array feature . each do | f | if f == name return true end end return false else return feature == name end end end
Returns true if the register is constrained by the given/any feature
Returns true if the register is constrained by the given / any feature
name
<not_specific>