×

Ones counting circuit, utilizing a matrix of interconnected half-adders, for counting the number of ones in a binary string of image data

  • US 5,339,447 A
  • Filed: 11/17/1989
  • Issued: 08/16/1994
  • Est. Priority Date: 11/17/1989
  • Status: Expired due to Term
First Claim
Patent Images

1. A circuit for counting the number of "ones" in a binary string of XN bits, comprising:

  • a matrix of M rows and N columns of count cells, where M is equal to log2 (XN =1) rounded up to the neareest integer and N is equal to XN, each count cell including;

    an AND gate having first and second inputs and an output forming a first output of said count cell;

    an XOR gate having first and second inputs and an output forming a second output fo said count cell;

    said first input of said AND gate connected to said first input of said XOR gate and forming a first input of said count cell, said second input of said AND gate coxnnected to said second input of said XOR gate and forming a second input of said matrix of cell circuit;

    said count cells in said matrix interconnected wherein said first input of each count cell is connected to said first output of a corresponding count cell in a prior row, said first input of each count cell in a first orw receiving a corresponding bit of said binary string, and said second input of each count cell is connected to said second output of a corresponding count cell in a a prior column, said second input of each count cell in a first column receiving a "zero"; and

    said matrix receiving said binary string and producing an output binary number at corresponding second outputs of a last column of said matrix indicative of the number of "ones" in said binary string.

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