×

SELECTING AN ITH LARGEST OR A PTH SMALLEST NUMBER FROM A SET OF N M-BIT NUMBERS

  • US 20200133637A1
  • Filed: 10/31/2019
  • Published: 04/30/2020
  • Est. Priority Date: 10/31/2018
  • Status: Active Application
First Claim
Patent Images

1. A method of selecting, in hardware logic, a number from a set of n m-bit numbers, wherein the selected number is either an ith largest or a pth smallest number from the set of n m-bit numbers, where i, p, m and n are integers, the method comprising a plurality of iterations and each of the iterations comprising:

  • summing a bit from each of the m-bit numbers to generate a summation result, wherein all the bits being summed occupy an identical bit position within their respective number;

    comparing the summation result to a threshold value, wherein the threshold value is calculated based on i or p;

    setting, based on an outcome of the comparison, a bit of the selected number; and

    for each of the m-bit numbers, based on the outcome of the comparison and a value of the bit from the m-bit number, selectively updating a bit in the m-bit number occupying a next bit position,wherein in a first iteration, a most significant bit from each of the m-bit numbers is summed and a most significant bit of the selected number is set and each subsequent iteration sums bits occupying successive bit positions in their respective numbers and sets a next bit of the selected number, andwherein the method comprises outputting data indicative of the selected number.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×