Compute-In-Memory architecture using look-up tables
Abstract
A Compute-In-Memory (CIM) architecture includes a plurality of memories and a plurality of processing elements. Each of the processing elements has a look-up table unit configured to store values of a look-up table of a k-cluster residue number system, and output one of the values of the look-up table according to a first remainder and a second remainder as a result of a residue calculation. The look-up table unit receives the first remainder and the second remainder from one of the memories.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 18 · Forward citations: 0.
Claims (15 — 1 Independent, 14 Dependent)
- Claim 1Independent Claim
A Compute-In-Memory (CIM) architecture, comprising: a plurality of memories; and a plurality of processing elements, each of the processing elements comprising: a look-up table unit for storing values of a look-up table of a k-cluster residue number system, and outputting one of the values of the look-up table according to a first remainder and a second remainder as a result of a residue calculation, wherein the look-up table unit receives the first remainder and the second remainder from one of the memories.
- Claim 2Depends on #1
The Compute-In-Memory architecture of claim 1, wherein each of the processing elements further comprises: a local memory for temporarily storing data; an address register for reading the first remainder from the local memory according to a first address and reading the second remainder from the local memory according to a second address; a first register for storing the first remainder; and a second register for storing the second remainder.
- Claim 3Depends on #2
The Compute-In-Memory architecture of claim 2, wherein each of the processing elements further comprises a zero detector, coupled between the look-up table unit and the first register and the second register, for detecting whether any of the first remainder and the second remainder is zero.
- Claim 4Depends on #1
The Compute-In-Memory architecture of claim 1, wherein the plurality of processing elements is formed in a plurality of first layers, the plurality of memories are formed in a plurality of second layers, and the first layers and the second layers are alternatively staked.
- Claim 5Depends on #1
The Compute-In-Memory architecture of claim 1, wherein the processing elements form a ten-way switch, and each central processing element of the ten-way switch is linked to the other ten processing elements of the processing elements.
- Claim 6Depends on #5
The Compute-In-Memory architecture of claim 5, wherein the central processing element of the ten-way switch is connected to the other ten processing elements in directions of up, down, north, south, east, west, north-east, north-west, south-east, and south-west.
- Claim 7Depends on #1
The Compute-In-Memory architecture of claim 1, wherein the look-up table unit is further used for storing an addition and subtraction look-up table, the addition and subtraction look-up table comprising 2 m i cells for recording values from zero to (m i − 1) in an ascending order twice, wherein m i is a coprime integer of a modular set of the k-cluster residue number system.
- Claim 8Depends on #7
The Compute-In-Memory architecture of claim 7, wherein look-up table unit retrieves a value recorded in a cell at position R of the addition and subtraction look-up table when performing an addition operation on the first remainder and the second remainder, where Q=(rx+ry), rx is the first remainder, ry is the second remainder, and the first remainder and the second remainder are integers.
- Claim 9Depends on #7
The Compute-In-Memory architecture of claim 7, wherein look-up table unit retrieves a value recorded in a cell at position R of the addition and subtraction look-up table when subtracting the first remainder by the second remainder, where R=(m i +rx − ry), rx is the first remainder, ry is the second remainder, and the first remainder and the second remainder are integers.
- Claim 10Depends on #1
The Compute-In-Memory architecture of claim 1, wherein the look-up table unit is further used for storing a multiplication look-up table for a coprime integer m i of a modular set of the k-cluster residue number system, the coprime integer m i is not 2, and the multiplication look-up table is composed of S cells, S = (m i 2 - 1 4).
- Claim 11Depends on #1
The Compute-In-Memory architecture of claim 1, wherein the look-up table unit is further used for storing an overflow table for overflow detection of addition-subtraction operations and multiplication operations.
- Claim 12Depends on #1
The Compute-In-Memory architecture of claim 1, wherein each memory comprises a decoder configured to decode an analog signal outputted from each multi-value analog memory into at least two bits, and the decoder supports multiple bits decoding.
- Claim 13Depends on #12
The Compute-In-Memory architecture of claim 12, wherein the decoder comprises: a first inverter, having an input end for receiving the analog signal; a second inverter, having an input end for receiving the analog signal; and a third inverter, having an input end for receiving the analog signal, wherein a first threshold voltage of the first inverter is less than a second threshold voltage of the second inverter, and the second threshold voltage of the second inverter is less than a third threshold voltage of the third inverter.
- Claim 14Depends on #13
The Compute-In-Memory architecture of claim 13, wherein the first inverter comprises a PMOS transistor and an NMOS transistor, gates of the PMOS transistor and the NMOS transistor receive the analog signal, and drains of the PMOS transistor and the NMOS transistor are coupled to an output end of the first inverter; wherein the second inverter comprises a PMOS transistor and two cascaded NMOS transistors, gates of the two cascaded NMOS transistors and a gate of the PMOS transistor of the second inverter receive the analog signal, and a drain of the PMOS transistor of the second inverter and an end of the two cascaded NMOS transistors are coupled to an output end of the second inverter; and wherein the third inverter comprises a PMOS transistor and three or more cascaded NMOS transistors.
- Claim 15Depends on #13
The Compute-In-Memory architecture of claim 13, wherein the decoder further comprises: a fourth inverter, having an input end coupled to an output end of the second inverter; a NOR gate, having a first input end coupled to an output end of the fourth inverter, and a second input end coupled to an output end of the first inverter; a fifth inverter, having an input end coupled to an output end of the NOR gate; and a NAND gate, having a first input end coupled to an output end of the third inverter, and a second input end coupled to an output end of the fifth inverter; wherein the fourth inverter is configured to output a first bit of the at least two bits outputted from the decoder, and the NAND gate is configured to output a second bit of the at least two bits outputted from the decoder.
Technical Overview & Description
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention is related to a Compute-In-Memory (CIM) architecture, and more particularly, to a Compute-In-Memory (CIM) architecture using look-up tables to improve overall performance with less power dissipation. 2. Description of the Prior Art Compute-In-Memory (CIM) has become increasingly important for neural processing. By performing computations within the memory itself and supporting a large number of operations, CIM reduces data transfer and resolves the memory bandwidth bottleneck issue. This technology has the potential to significantly improve the speed and efficiency of neural processing systems. Please refer to FIGS. 1 and 2 . FIG. 1 is a schematic diagram of conventional Compute-In-Memory (CIM) architecture 10 . FIG. 2 is a schematic diagram of a processing element (PE) 16 of the CIM architecture 10 shown in FIG. 1 . The CIM architecture 10 is typically divided into two dies: a memory die 12 and a logic circuit die 14 . The memory die 12 is stacked on top of the logic circuit die 14 , allowing for direct data transfer from the memory die 12 to the logic circuit die 14 . The logic circuit die
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (18)
Non-Patent Literature (2)
- Law, the specification, including the claims, and drawings in the U.S. Appl. No. 17/978,235, filed Nov. 1, 2022.
- Law, the specification, including the claims, and drawings in the U.S. Appl. No. 17/978,981, filed Nov. 2, 2022.