发明名称 Method and device for computing the number of bits set to one in an arbitrary length word
摘要 A method and a bit counting device (100) count bits set to one in a data word of arbitrary size. The bit counting device (100) includes a first data register (110) for storing a data word, an offset register (112) for storing an offset value, a second data register (120), and a one-cycle shifter (114), electrically connected to the first data register (110), to the second data register (120), and to the offset register (112), for shifting the data word by a value stored in the offset register (112) and storing the shifted data word in the second data register (120). The device 100 also includes a third data register (124) and at least one carry save adder (CSA) device (122) organized in a tree structure, and electrically connected to the second data register (120) and to the third data register (124), for counting the number of bits set to one in the data word stored in the second data register (120) and storing in the third data register (124) a value representing the count of bits set to one in the data word.
申请公布号 US6795839(B2) 申请公布日期 2004.09.21
申请号 US20000727135 申请日期 2000.11.30
申请人 STMICROELECTRONICS, INC. 发明人 KARIM FARAYDON O.;MELLAN ALAIN
分类号 G06F7/60;(IPC1-7):G06F7/00 主分类号 G06F7/60
代理机构 代理人
主权项
地址