lib/origen/registers/reg.rb
# Returns the number of bits from the given bits that
# fall within the given range
Returns the number of bits from the given bits that
fall within the given range
Returns the number of bits from the given bits that fall within the given range
def _num_bits_in_range(bits, max, min)
        upper = bits.position + bits.size - 1
        lower = bits.position
        [upper, max].min - [lower, min].max + 1
      end
def _num_bits_in_range ( bits , max , min ) upper = bits . position + bits . size - 1 lower = bits . position [ upper , max ] . min - [ lower , min ] . max + 1 end
Returns the number of bits from the given bits that
fall within the given range
Returns the number of bits from the given bits that fall within the given range
bits
<not_specific>
max
<not_specific>
min
<not_specific>