In-memory computing circuit with variable length input
Патент · CN B
Полный текст
The embodiment of the disclosure discloses an in-memory computing circuit for variable length input, which comprises a data caching unit, a high-bit detector and a variable-length shift register, wherein the data caching unit is used for caching a group of data to be computed, the data to be computed comprises n bits, the value of n is an integer, n is larger than or equal to 2, the data to be computed is divided into high-bit bits and low-bit bits according to the positions of the bits, the high-bit detector is used for detecting the high-bit bits of the data to be computed in the data caching area, determining whether the high-bit bits in the data to be computed are 0, the variable-length shift register is used for executing variable length operation on the data to be computed based on the detection result of the high-bit detector, obtaining variable-length data and transmitting the variable-length data to the storage unit, and executing multiplication and/or addition operation on the variable-length data and weight data to obtain a computation result, and the variable-length data is transmitted through fewer bits, so that the technical effect of improving computing force is achieved.