US 11,817,880 B2
Hamming weight calculation method based on operation apparatus
Yi Li, Wuhan (CN); Jiancong Li, Wuhan (CN); Xiangshui Miao, Wuhan (CN); Peng Yan, Chengdu (CN); Guiyou Pu, Chengdu (CN); Xiaozhong Shi, Chengdu (CN); and Keji Huang, Chengdu (CN)
Assigned to HUAWEI TECHNOLOGIES CO., LTD., Shenzhen (CN)
Filed by HUAWEI TECHNOLOGIES CO., LTD., GuangDong (CN)
Filed on Aug. 25, 2022, as Appl. No. 17/895,466.
Application 17/895,466 is a continuation of application No. PCT/CN2021/074765, filed on Feb. 2, 2021.
Claims priority of application No. 202010128185.X (CN), filed on Feb. 27, 2020.
Prior Publication US 2022/0407540 A1, Dec. 22, 2022
Int. Cl. H03M 13/19 (2006.01); H03M 13/00 (2006.01)
CPC H03M 13/19 (2013.01) [H03M 13/611 (2013.01)] 21 Claims
OG exemplary drawing
 
1. A Hamming weight calculation method performed by an operation apparatus, wherein the operation apparatus comprises a controller and a first calculator, the controller is in signal connection with the first calculator, the first calculator comprises a first memory and a first transistor, a drain of the first transistor is connected to a negative electrode of the first memory, and a source of the first transistor is grounded; and
the method is performed by the controller, and the method comprises:
setting an initial resistance state of the first memory to a low resistance state;
determining a first gate voltage of the first transistor based on first bit data in a first binary sequence taken as input, and controlling an on-off state of the first transistor based on the first gate voltage, wherein when the first bit data is 0, the first transistor is in an on state; and when the first bit data is 1, the first transistor is in an off state;
controlling a target resistance state of the first memory based on the on-off state of the first transistor, wherein when the first transistor is in the on state, the target resistance state of the first memory is a high resistance state; and when the first transistor is in the off state, the target resistance state of the first memory is the low resistance state; and
determining a Hamming weight of the first bit data based on a first output current on the source of the first transistor.