CPC G06F 7/5443 (2013.01) [H03M 3/04 (2013.01); G06N 3/04 (2013.01); G11C 13/0002 (2013.01)] | 15 Claims |
1. A multiplication and accumulation circuit based on radix-4 booth code and differential weight storage, comprising: an input data encoding circuit, a differential weight storage circuit, an integral calculation circuit and a differential analog-to-digital converters (ADC) circuit, wherein output of the input data encoding circuit is sent into the differential ADC circuit after sequentially passing through the differential weight storage circuit, wherein:
the input data encoding circuit is configured to encode original input data;
the differential weight storage circuit is configured to store weight values, and multiply the original input data after being encoded by the weight values stored to obtain multiplication results;
the integral calculation circuit is configured to respectively accumulate positive values and negative values of respective multiplication results; and
the differential ADC circuit is configured to perform analog-to-digital conversion on a difference between accumulated positive values and accumulated negative values to obtain a digital multiplication and accumulation result;
wherein the differential weight storage circuit comprises two weight storage circuits with equal size, each of the weight storage circuits comprises a plurality of basic units, each of the basic units comprises a transistor and a binary resistive random-access- memory (RRAM) coupled in series, one end of the binary RRAM is coupled to a source of the transistor, the other end of the binary RRAM is grounded; a gate of the transistor is coupled to an output end of the input data encoding circuit, and a drain of the transistor is configured as an output end of the basic unit and coupled to an input end of the integral calculation circuit, the drains of the transistors of the basic units in the same column are coupled to each other, and the gates of the transistors of the basic units in the same row are coupled to each other and configured as an input end of the basic unit.
|