Data search memory based on one-hot code, chip and application

By using memory units of MTJ and NMOS tubes in content addressable memory, combined with precharge circuits and decoders, SRAM-based memory is solved inadequate design, low storage density and high power consumption in applications such as DNA sequencing. The problem of efficient data search and low-power storage is realized.

CN118887985APending Publication Date: 2024-11-01ANHUI UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410897971.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-05
Publication Date
2024-11-01

AI Technical Summary

Technical Problem

The existing SRAM-based content addressable memory has problems such as insufficient precise matching design, low storage density and high power consumption when performing search operations, which is difficult to meet the needs of data-intensive applications such as DNA sequencing.

Method used

Data search memory built on the storage unit of magnetic tunnel junction device (MTJ) and NMOS tube, combined with pre-charge circuit, read and write control unit, data encoder, multi-line decoder and sensitive amplifier, realize parallel segmented search Mode and standard read and write modes, reduce device count and optimize circuit design to reduce power consumption.

Benefits of technology

It improves the storage density at a limited area, expands the usage scenarios of content addressable memory, significantly reduces circuit power consumption, and improves data throughput and work efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118887985A_ABST
    Figure CN118887985A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of integrated circuit design, and particularly discloses a data search memory based on a one-hot code, a chip and application. The data search memory based on the one-hot code comprises an MTJ memory array, a pre-charging circuit part, M pre-charging control parts, M read-write control parts, a data encoder, an open multi-row decoder, M sensitive amplifiers, a column selector and a time schedule controller. According to the invention, the MTJ storage array constructed by the storage units composed of the magnetic tunnel junction devices and the NMOS tubes is adopted, so that the number of the devices is reduced, and the storage density under a limited area is improved. According to the invention, the pre-charging control part and the read-write control part are arranged in the MTJ storage array, and the output of the sensitive amplifier is used for feeding back the pre-charging control part, so that the function of the pre-charging circuit part is limited in the parallel segmented search operation process, the working times of the pre-charging circuit part in the CAM work are reduced, and the power consumption of the CAM circuit can be remarkably reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of integrated circuit design, and more specifically, to: 1. a data search memory based on a one-hot code; 2. a chip packaged based on the data search memory; 3. an application of the data search memory in genome classification. Background Art

[0002] Content-Addressable Memory (CAM) has data parallel search capability in addition to data storage. It can retrieve data by data content rather than address. It is widely used in network routers, data packet classification, and fast database search.

[0003] However, in current SRAM-based CAM, it consists of n columns and m rows of CAM cells. The CAM cell is based on the structure of a standard six-transistor SRAM cell (6T-SRAM). The CAM cells in a row share a match line (ML) that is connected to a sense amplifier (SA) for write and read operations via a word line (WL) and a complementary bit line, also called a search line (SL).

[0004] Current SRAM-based CAMs can also compare query data with data stored in cells: by loading query data on the SL in one clock cycle, a search (compare) operation can be performed simultaneously in the entire array. The sense amplifier connected to the match line evaluates the state of the match line at the end of the comparison cycle and issues a match or mismatch signal. However, the following problems still exist in the search operation:

[0005] (1) SRAM-based CAMs are usually designed to find exact matches, but many popular data-intensive applications (such as DNA sequencing) increasingly require search capabilities. For such searches, if the difference between the stored pattern and the query pattern is below a predefined threshold, then the stored pattern is considered a "match", which can be considered a rough match. In other words, current SRAM-based CAMs are not suitable for such rough matches.

[0006] (2) Since SRAM is used as the CAM unit, the number of transistors in a single CAM unit is large, which limits the improvement of the storage density of the content addressable memory under a limited area and is not suitable for use in scenarios with large numbers (such as DNA sequencing);

[0007] (2) During a search (comparison) operation, if the data stored in the CAM cell does not match the query data loaded on the SL, it will be discharged to the connected match line. Frequent discharge-precharge operations will result in high energy consumption in the search operation.

[0008] Affected by these issues, SRAM-based CAM faces the challenge of achieving low-power search. Summary of the invention

[0009] Based on this, it is necessary to provide a data search memory, chip and application based on a unique hot code to address the problem that the existing SRAM-based CAM is not suitable for low-power search.

[0010] The present invention is implemented by the following technical solutions:

[0011] In a first aspect, the present invention provides a data search memory based on a one-hot code, comprising: an MTJ storage array, a precharge circuit unit, M precharge control units, M read-write control units, a data encoder, a multi-row decoder, M sensitive amplifiers SA[1]~SA[M], a column selector, and a timing controller.

[0012] The MTJ storage array includes N rows and M columns of storage cells for storing reference data to realize standard read / write mode and parallel segmented search mode. The storage cells include: 1 magnetic tunnel junction device MTJ and 1 NMOS tube N0. The storage cells in the same column share the same bit line BL and the same bit line SL; the storage cells in the same row share the same word line WL.

[0013] The precharge circuit is used to provide a square wave voltage PRE-C and precharge the MTJ storage array.

[0014] M pre-charge control units are connected to the MTJ storage array for controlling pre-charge, wherein the m-th column of storage cells shares the m-th pre-charge control unit.

[0015] M read / write control units are connected to the MTJ storage array for controlling read / write, wherein the mth column of storage units shares the mth read / write control unit.

[0016] The data encoder is used to convert P data to be matched into P groups of one-hot codes. The P data to be matched are distributed in order, and the p-th group of one-hot codes corresponds to the p-th data to be matched, p∈[1,P].

[0017] The multi-row decoder includes N word line charge latch units, which are used to: ① open the corresponding word line WL in the MTJ storage array according to the read / write target in the standard read / write mode; ② open the corresponding P root word line WL in the MTJ storage array according to the one-hot code in the parallel segment search mode. Among them, the nth word line charge latch unit is connected to the word line WL of the nth row storage unit.

[0018] M sense amplifiers SA[1]~SA[M] are connected to the MTJ storage array to: ① output the stored reference data in the standard read / write mode; ② output the matching result according to the to-be-matched data and the reference data in the parallel segmented search mode. The mth column storage unit shares the mth sense amplifier SA[m]; m∈[1,M].

[0019] The column selector is used to: ① open the corresponding column in the MTJ storage array according to the read / write target in the standard read / write mode, and ② open all columns of the MTJ storage array in the parallel segmented search mode.

[0020] The timing controller is used to control the timing of related signals to ensure the normal operation of the standard read and write mode and the parallel segmented search mode.

[0021] The implementation of the data search memory based on one-hot codes is a method or process according to an embodiment of the present disclosure.

[0022] In a second aspect, the present invention provides a CIM chip encapsulated using the one-hot-code-based data search memory disclosed in the first aspect.

[0023] In the third aspect, the present invention provides an application of the data search memory based on the one-hot code disclosed in the first aspect: taking unknown DNA as the data to be matched and known DNA as the reference data, a matching test is performed on the unknown DNA and the known DNA through the data search memory based on the one-hot code disclosed in the first aspect, and a matching result is obtained.

[0024] The application of the one-hot-code-based data search memory is a method or process according to an embodiment of the present disclosure.

[0025] Compared with the prior art, the present invention has the following beneficial effects:

[0026] 1. The present invention provides a data search memory based on a one-hot code, which adopts an MTJ storage array constructed by storage units composed of magnetic tunnel junction devices and NMOS tubes. Compared with the SRAM array adopted by the SRAM-based CAM, the number of devices is reduced, the storage density under a limited area is improved, and the use scenarios of the CAM can be expanded.

[0027] 2. The present invention sets a precharge control unit and a read-write control unit in the MTJ storage array, and uses the output of the sensitive amplifier to provide feedback to the precharge control unit, thereby limiting the function of the precharge circuit unit during the parallel segmented search operation, reducing the number of times the precharge circuit unit works during CAM operation, and can significantly reduce the power consumption of the CAM circuit.

[0028] 3. The present invention designs a multi-row decoder based on a decoding circuit in the CAM, which can open several word lines at the same time to realize the simultaneous operation of several storage cells, thereby improving the data throughput per unit time and improving the working efficiency of the CAM circuit. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0030] Figure 1 A structural diagram of a data search memory based on a one-hot code provided in Embodiment 1 of the present invention;

[0031] Figure 2 for Figure 1 A circuit connection diagram of a pre-charging circuit section, an m-th column of storage cells, an m-th pre-charging control section, an m-th read / write control section, and an m-th sense amplifier;

[0032] Figure 3 for Figure 1 A structural diagram of an n-th word line charge latch unit in an open multi-row decoder;

[0033] Figure 4 for Figure 2 Timing diagram of relevant signals in ;

[0034] Figure 5 for Figure 3 Timing diagram of relevant signals in ;

[0035] Figure 6 A schematic diagram of the coding corresponding to the known DNA provided in Example 2 of the present invention;

[0036] Figure 7 A schematic diagram of the matching between unknown DNA and known DNA provided in Example 2 of the present invention. DETAILED DESCRIPTION

[0037] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0038] It should be noted that when a component is referred to as being "mounted on" another component, it may be directly on the other component or there may be a central component. When a component is considered to be "set on" another component, it may be directly set on the other component or there may be a central component at the same time. When a component is considered to be "fixed to" another component, it may be directly fixed on the other component or there may be a central component at the same time.

[0039] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which the present invention belongs. The terms used herein in the specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. The term "or / and" used herein includes any and all combinations of one or more of the related listed items.

[0040] Example 1

[0041] like Figure 1 , which is a structural diagram of a one-hot code-based data search memory disclosed in this embodiment 1. From a functional perspective, the one-hot code-based data search memory includes: an MTJ storage array, a precharge circuit unit, M precharge control units, M read-write control units, a data encoder, a multi-row decoder, M sense amplifiers SA[1] to SA[M], a column selector, and a timing controller.

[0042] The following explains them one by one:

[0043] 1. The MTJ storage array includes N rows and M columns of storage cells for storing reference data to achieve a standard read / write mode and a parallel segmented search mode.

[0044] It should be noted that the storage unit no longer uses SRAM, but a non-volatile storage unit composed of a magnetic tunnel structure. Figure 2 Specifically, the storage unit includes: a magnetic tunnel junction device MTJ and an NMOS tube N0. In a storage unit: one end of the magnetic tunnel junction device MTJ is connected to the bit line BL, and the other end is connected to the source of N0; the gate of N0 is connected to the word line WL, and the drain is connected to the source line SL.

[0045] Compared with the SRAM array used in the SRAM-based CAM, the MTJ storage array of the first embodiment reduces the number of devices, improves the storage density under a limited area, and can expand the use scenarios of the CAM.

[0046] It should be noted that the magnetic tunnel junction device MTJ has the following characteristics:

[0047] ①MTJ will present two states of high resistance and low resistance due to different directions of current passing through it. That is to say, if the current direction is from BL to SL, the MTJ is in a high resistance state and the entire storage unit is also in a high resistance state; if the current direction is from SL to BL, the MTJ is in a low resistance state and the entire storage unit is also in a low resistance state.

[0048] In the MTJ memory array, the memory cells in the same column share the same bit line BL and the same bit line SL; the memory cells in the same row share the same word line WL. Specifically, the memory cells in the mth column share the bit line BL[m] and the bit line SL[m]; the memory cells in the nth column share the word line WL[n].

[0049] ② If the reference data stored in the storage cell is "1", the MTJ is in a high-resistance state and the entire storage cell is also in a high-resistance state; if the reference data stored in the storage cell is "0", the MTJ is in a low-resistance state and the entire storage cell is also in a low-resistance state.

[0050] 2. The pre-charging circuit is used to provide a square wave voltage PRE-C and pre-charge the MTJ storage array.

[0051] See also Figure 2 It should be noted that the M columns of memory cells share a pre-charging circuit. The pre-charging circuit can be implemented by circuit design or provided by a timing controller, and only needs to meet the requirement of outputting a square wave voltage PRE-C.

[0052] 3. M pre-charge control units are connected to the MTJ storage array to control pre-charge. M read-write control units are connected to the MTJ storage array to control read-write.

[0053] See also Figure 2 , the mth column of storage cells shares the mth pre-charge control unit.

[0054] Specifically, the mth pre-charge control unit includes: 1 switching switch SW3[m], 1 switching switch SW4[m], 1 switching switch SW5[m], 1 dual-input NAND gate NAND[m], and 1 PMOS tube P1[m]. The input terminal 1 of NAND[m] is connected to the pre-charge circuit unit through the switching switch SW4[m], the input terminal 2 is connected to the output terminal of SA[m] through SW3[m], and the output terminal is connected to the pre-charge circuit unit through the switching switch SW5[m]. The gate of P1[m] is connected to the output terminal of NAND[m], the drain is connected to the power supply VDD, and the source is connected to BL[m].

[0055] In this way, when SW5[m] is disconnected, the output of NAND[m] will output a low level and turn on P1[m] only when both input terminals 1 and 2 of NAND[m] are at a high level; in other cases, P1[m] is disconnected.

[0056] When SW5[m] is turned on, the control of NAND[m] over P1[m] is cut off, and P1[m] is closed or opened according to PRE-C.

[0057] See also Figure 2 , the mth column of storage cells shares the mth read-write control unit.

[0058] Specifically, the mth read / write control unit includes: 1 PMOS transistor P2[m], 1 NMOS transistor N1[m], and 1 NMOS transistor N2[m]. The gate of P2[m] is connected to the enable signal RWENN[m], the drain is connected to VDD, and the source is connected to SL[m]. The gate of N1[m] is connected to the enable signal RWEN[m], the drain is connected to BL[m], and the source is connected to GND. The gate of N2[m] is connected to the enable signal SEN[m], the drain is connected to BL[m], and the source is connected to GND.

[0059] Among them, RWENN[m] and RWEN[m] are opposite signals, which keep the on-off states of N1[m] and P2[m] consistent.

[0060] 4. The data encoder is used to convert P to-be-matched data into P groups of one-hot codes.

[0061] The data encoder is based on the one-hot encoding protocol and can encode the input data into a one-hot code.

[0062] Among them, the p-th group of unique hot codes corresponds to the p-th data to be matched, p∈[1,P].

[0063] It should be noted that the bit width of the pth unique hot code is l p , then the total bit width L of the P group of unique hot codes is less than N;

[0064] 5. The multi-row decoder includes N word line charge latch units for:

[0065] ① In the standard read / write mode, the corresponding word line WL in the MTJ storage array is opened according to the read / write target;

[0066] ② In the parallel segmented search mode, the corresponding P root word line WL in the MTJ storage array is opened according to the one-hot code.

[0067] The nth word line charge latch unit is connected to the word line WL of the nth row of storage cells.

[0068] For details, see Figure 3, n word line charge latch units include: 1 switching switch SW1, 1 switching switch SW2, 1 transmission gate G1[n], 1 reset transistor N3[n], 1 latch INV1[n], 1 latch INV2[n], and 1 inverter INV3[n].

[0069] The first end of SW1 is connected to the output end of the data encoder, and the second end is connected to WL[n]. The first end of SW2 is connected to the first end of SW1. The input end of G1[n] is connected to the second end of SW2. The gate of N3[n] is connected to the reset control signal, the drain is connected to GND, and the source is connected to the output end of G1[n]. The input end of INV1[n] is connected to the output end of G1[n], and the output end is connected to the negative control end of G1[n]. The input end of INV2[n] is connected to the output end of INV1[n], and the output end is connected to the input end of INV1[n]. The input end of INV3[n] is connected to the output end of INV1[n], and the output end is connected to the positive control end of G1[n] and WL[n].

[0070] The word line charge latch units in the same row share the same SW1 and the same SW2.

[0071] It should be noted that:

[0072] ① In the standard read / write mode, SW1 is turned on and SW2 is turned off, and the first end of SW1 is directly used as the data input end.

[0073] ② In the parallel segmented search mode, SW1 is turned off and SW2 is turned on, and the first end of SW1 receives the P group of unique hot codes output by the data encoder.

[0074] To facilitate the description of the operation of the parallel segment search mode, let the first end of SW1 be WL_In, the output end of G1[n] be X[n], and the output end of INV1[n] be Y[n]:

[0075] First, the reset control signal is at a high level, N3[n] is turned on, and the reset operation is performed; WL_In and WL[n] are reset to a low level, at which time Y[n] is VDD and G1[n] is turned on;

[0076] Secondly, the bit with a value of "1" in the one-hot code inputs a high level to the corresponding word line WL_In.

[0077] Then, G1[n] is turned on, and G1[n] transmits the input high level to X[n], which is latched by the latch composed of INV1[n] and INV2[n];

[0078] Among them, INV1[n] flips the level of X[n] and passes it to Y[n]; INV3[n] flips the level of Y[n] and passes it to WL[n]; at this time, G1[n] is turned off by the level feedback from Y[n] and WL[n], so that the input high level is latched in WL[n], so that WL[n] can maintain a sufficiently long signal time to perform multi-row opening operations.

[0079] 6. M sense amplifiers SA[1] to SA[M] are connected to the MTJ storage array to:

[0080] ① Output the stored reference data in standard read and write mode;

[0081] ② In the parallel segmented search mode, the matching results are output based on the data to be matched and the reference data.

[0082] The m-th column of storage cells shares the m-th sensitive amplifier SA[m]; m∈[1,M].

[0083] For details, see Figure 2 , the reference terminal 1 of SA[m] is connected to BL[m], and the reference terminal 2 is connected to the reference voltage V ref [m].

[0084] 7. Column selectors are used to:

[0085] ① In standard read / write mode, open the corresponding column in the MTJ storage array according to the read / write target;

[0086] ② Open all columns of the MTJ storage array in parallel segmented search mode.

[0087] 8. The timing controller is used to control the timing of related signals (such as RWENN[m], RWEN[m], SEN[m], etc.) to ensure the normal operation of the standard read and write mode and the parallel segmented search mode.

[0088] Specifically, the timing controller can directly control components such as SW1, SW2, SW3[m], SW4[m], SW5[m], N2[m], N1[m], and P2[m].

[0089] The one-hot-code-based data search memory using the above structure can provide: a standard read-write mode and a parallel segmented search mode.

[0090] 1. The standard read and write mode is to read and write any storage unit in the MTJ storage array.

[0091] Then, let the read / write target be the storage unit at the nth row and the mth column. The following is a specific description of reading "0", reading "1", writing "0", and writing "1":

[0092] ① Read the read / write target; wherein the reference data stored in the read / write target is “0”.

[0093] SW2 is disconnected, SW1 is turned on, SW3[1]~SW3[M] are disconnected, SW4[1]~SW4[M] are disconnected, and SW5[1]~SW5[M] are turned on, thus switching to the standard read / write mode.

[0094] The precharge circuit section synchronously inputs PRE-C to the M precharge control sections.

[0095] Among them, in the mth pre-charge control unit, when PRE-C is at a low level, the gate of P1[m] is at a low level, making P1[m] turned on, and VDD is pre-charged to BL[m] through P1[m].

[0096] The first terminal of SW1 inputs a high level, and WL[n] is turned on;

[0097] N2[m] is turned on, N1[m] and P2[m] are turned off.

[0098] In this way, BL[m] is discharged to GND through the storage cell at the nth row and the mth column, SL[m], and N2[m]. In this process, the storage cell at the nth row and the mth column is in a low resistance state, and BL[m] discharges quickly.

[0099] Therefore, the residual voltage V after SA[m] discharges BL[m] BL [m], V ref [m] for comparison, then V BL [m]<V ref [m], the output result is "0".

[0100] ② Read the read / write target; wherein the reference data stored in the read / write target is "1".

[0101] SW2 is disconnected, SW1 is turned on, SW3[1]~SW3[M] are disconnected, SW4[1]~SW4[M] are disconnected, and SW5[1]~SW5[M] are turned on, thus switching to the standard read / write mode.

[0102] The pre-charging circuit unit synchronously inputs PRE-C to the M pre-charging control units;

[0103] Among them, in the mth pre-charge control unit, when PRE-C is at a low level, the gate of P1[m] is at a low level, making P1[m] turned on, and VDD is pre-charged to BL[m] through P1[m].

[0104] The first terminal of SW1 inputs a high level, and WL[n] is turned on;

[0105] N2[m] is turned on, N1[m] and P2[m] are turned off.

[0106] In this way, BL[m] is discharged to GND through the storage cell at the nth row and the mth column, SL[m], and N2[m]. In this process, the storage cell at the nth row and the mth column is in a high impedance state, and the discharge speed of BL[m] is slow.

[0107] Therefore, the residual voltage V after SA[m] discharges BL[m] BL [m], V ref [m] for comparison, then V BL [m] greater than V ref [m], the output result is "1".

[0108] ③ Write "0" to the storage unit of the read / write target.

[0109] SW2 is disconnected, SW1 is turned on, SW3[1]~SW3[M] are disconnected, SW4[1]~SW4[M] are disconnected, and SW5[1]~SW5[M] are turned on, thus switching to the standard read / write mode.

[0110] The pre-charging circuit unit synchronously inputs PRE-C to the M pre-charging control units;

[0111] Among them, in the mth pre-charge control unit, when PRE-C is at a high level, the gate of P1[m] is at a high level, causing P1[m] to be disconnected.

[0112] The first terminal of SW1 inputs a high level, and WL[n] is turned on;

[0113] N2[m] is turned off, N1[m] and P2[m] are turned on.

[0114] VDD is connected to GND through P2[m], SL[m], the storage cell in the nth row and mth column, BL[m], and N1[m]. During this process, the direction of the current through the storage cell in the nth row and mth column is from SL[m] to BL[m]. Then the storage cell in the nth row and mth column is in a low resistance state, that is, "0" is written.

[0115] ④ Write "1" to the storage unit of the read / write target.

[0116] SW2 is disconnected, SW1 is turned on, SW3[1]~SW3[M] are disconnected, SW4[1]~SW4[M] are disconnected, and SW5[1]~SW5[M] are turned on, thus switching to the standard read / write mode.

[0117] The pre-charging circuit unit synchronously inputs PRE-C to the M pre-charging control units;

[0118] Among them, in the mth pre-charge control unit, when PRE-C is at a low level, the gate of P1[m] is at a low level, making P1[m] conductive.

[0119] The first terminal of SW1 inputs a high level, and WL[n] is turned on;

[0120] N2[m] is turned on, N1[m] and P2[m] are turned off.

[0121] VDD discharges to GND through P1[m], BL[m], the storage cell at the nth row and mth column, SL[m], and N2[m]. During this process, the current direction through the storage cell at the nth row and mth column is from BL[m] to SL[m]. Then the storage cell at the nth row and mth column is in a high impedance state, that is, "1" is written.

[0122] 2. Parallel segmented search mode matches multiple rows at the same time.

[0123] P2[1]~P2[M] are turned off, N1[1]~N1[M] are turned off, N2[1]~N2[M] are turned on, SW1 is turned off, SW2 is turned on, SW3[1]~SW3[M] are turned on, SW4[1]~SW4[M] are turned on, and SW5[1]~SW5[M] are turned off; this switches to parallel segmented search mode.

[0124] See also Figure 4 , the pre-charging circuit unit synchronously inputs PRE-C to M pre-charging control units.

[0125] Among them, for the mth pre-charge control unit in the first time period:

[0126] See also Figure 5 When PRE-C is at a high level, NAND[m] outputs a low level, turning on P1[m], and VDD pre-charges BL[m] through P1[m]; when PRE-C is at a low level, NAND[m] outputs a high level, turning off P1[m], and starting parallel segmented search.

[0127] The P to-be-matched data are converted into P groups of one-hot codes by the data encoder.

[0128] See above, the bit width of the pth unique hot code is l p Then, the number of bits with the value "1" in the p-th unique hot code is Among them, the number of bits with a value of "1" in the first unique hot code is r1.

[0129] Then, the P groups of unique hot codes correspond to opening the P root WLs, thereby connecting the P rows of storage cells, which is equivalent to providing BL[m] with P paths for discharging to GND.

[0130] Among them, word line charge latch unit opens BL[m] is the mth column The memory cells, SL[m], N2[m] of the row are discharged to GND.

[0131] The remaining voltage V after SA[m] discharges BL[m] BL [m], V ref [m] to compare and output the result:

[0132] If V ref [m]>V BL [m], the output result is low level, indicating that the mth column does not match, then BL[m] is no longer precharged, and BL[m] remains low level;

[0133] If V ref [m]<V BL [m], the output result is high level, indicating that the mth column matches, then BL[m] is precharged again.

[0134] In this way, on the one hand, several word lines can be opened at the same time to realize the simultaneous operation of several storage cells, thereby improving the data throughput per unit time and improving the working efficiency of the CAM circuit; on the other hand, the output of the sensitive amplifier is used to provide feedback to the pre-charge control unit, thereby limiting the function of the pre-charge circuit unit during the parallel segmented search operation, reducing the number of times the pre-charge circuit unit works during the CAM operation, and can significantly reduce the power consumption of the CAM circuit.

[0135] This embodiment 1 also provides a CIM chip, which is packaged using the above disclosed one-hot code-based data search memory. The one-hot code-based data search memory provided in this embodiment 1 can be manufactured, sold and used in the form of an integrated circuit.

[0136] Example 2

[0137] This embodiment 2 discloses the application of the data search memory based on the one-hot code in embodiment 1, namely, it is applied to DNA sequencing: taking the unknown DNA as the data to be matched and the known DNA as the reference data, the unknown DNA and the known DNA are matched by the data search memory based on the one-hot code disclosed in embodiment 1, and a matching result is obtained.

[0138] This application uses the parallel segmented search mode in Example 1, which is intended to classify unknown DNA and determine whether it can be classified as a predetermined DNA (ie, known DNA).

[0139] The known DNA is decomposed into multiple groups of short DNA fragments, each of which is k bases long, where k is determined by the size of the MTJ storage array. Then, the known DNA can be stored offline in the MTJ storage array as reference data. In other words, each base of the short DNA fragment is encoded into a one-hot code and stored in the storage unit.

[0140] See also Figure 6 , if the known DNA is ATCCCATCGACTT…TCACAACGTCAA, there are 4 types of bases: A, T, C, G. The fragments can be divided according to the length of the 4 bases: ATCC, TCCA, CCAT, …, TCAA. Among them, A is encoded as "0001", T is encoded as "1000", C is encoded as "0100", G is encoded as "0010", and the base data is stored column by column, so that the known DNA is stored in the MTJ storage array.

[0141] The unknown DNA is also divided into segments in the same way as the known DNA to obtain P data to be matched, and then processed according to the parallel segment search mode in Example 1:

[0142] See also Figure 7 , take a fragment matching process to illustrate:

[0143] The known DNA is C, and the corresponding code is "0100". If the unknown DNA is C, the corresponding code is "0100", WL[2] is turned on, the corresponding second row storage unit is in high impedance state, BL discharge speed is slow, and SA comparison output result is "1", which corresponds to Figure 7 (a) The matching situation; if the unknown DNA is A, the corresponding code is "0001", WL[4] is turned on, the corresponding storage unit in the 4th row is in a low-resistance state, BL discharges quickly, and the SA comparison output result is "0", which corresponds to Figure 7 (b) The matching situation.

[0144] Through the above process, unknown DNA can be classified and included in known DNA, which can be efficiently used in DNA sequencing.

[0145] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0146] The above-mentioned embodiments only express several implementation methods of the present invention, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.

Claims

1. A data search memory based on one-hot code, characterized in that: include: The MTJ storage array includes N rows and M columns of storage cells for storing reference data to realize a standard read / write mode and a parallel segmented search mode; wherein the storage cells include: a magnetic tunnel junction device MTJ and an NMOS tube N0; the storage cells in the same column share the same bit line BL and the same bit line SL; the storage cells in the same row share the same word line WL; A pre-charging circuit section, which is used to provide a square wave voltage PRE-C and pre-charge the MTJ storage array; M pre-charge control units, which are connected to the MTJ storage array and are used to control pre-charge; wherein the m-th column of storage cells shares the m-th pre-charge control unit; M read / write control units, which are connected to the MTJ storage array and are used to control reading and writing; wherein the m-th column of storage cells shares the m-th read / write control unit; A data encoder is used to convert P to-be-matched data into P groups of one-hot codes; wherein the P to-be-matched data are distributed in order, and the p-th group of one-hot codes corresponds to the p-th to-be-matched data, p∈[1,P]; A multi-row decoder is provided, which includes N word line charge latch units, which are used to open the corresponding word line WL in the MTJ storage array according to the read / write target in the standard read / write mode, and to open the corresponding P root word lines WL in the MTJ storage array according to the one-hot code in the parallel segment search mode; wherein the nth word line charge latch unit is connected to the word line WL of the nth row storage unit; M sense amplifiers SA[1] to SA[M] are connected to the MTJ storage array and are used to output the stored reference data in the standard read / write mode and output the matching result according to the to-be-matched data and the reference data in the parallel segmented search mode; wherein the m-th column storage cells share the m-th sense amplifier SA[m]; m∈[1,M]; A column selector, which is used to open the corresponding column in the MTJ storage array according to the read / write target in the standard read / write mode, and to open all columns of the MTJ storage array in the parallel segmented search mode; as well as The timing controller is used to control the timing of related signals to ensure the normal operation of the standard read and write mode and the parallel segmented search mode.

2. The data search memory based on one-hot code according to claim 1, characterized in that: In a memory cell: one end of the magnetic tunnel junction device MTJ is connected to the bit line BL, and the other end is connected to the source of N0; the gate of N0 is connected to the word line WL, and the drain is connected to the source line SL; The memory cells in the mth column share the bit line BL[m] and the bit line SL[m]; the memory cells in the nth column share the word line WL[n].

3. The data search memory based on one-hot code according to claim 2, characterized in that: The reference terminal 1 of SA[m] is connected to BL[m], and the reference terminal 2 is connected to the reference voltage V ref [m].

4. The data search memory based on one-hot code according to claim 3, characterized in that: The mth pre-charge control unit comprises: 1 switch SW3[m]; 1 switch SW4[m]; 1 switch SW5[m]; 1 dual-input NAND gate NAND[m], whose input end 1 is connected to the pre-charge circuit part through the switching switch SW4[m], whose input end 2 is connected to the output end of SA[m] through the switching switch SW3[m], and whose output end is connected to the pre-charge circuit part through the switching switch SW5[m]; as well as A PMOS transistor P1[m], whose gate is connected to the output end of NAND[m], whose drain is connected to the power supply VDD, and whose source is connected to BL[m].

5. The data search memory based on one-hot code according to claim 4, characterized in that: The mth read-write control unit includes: 1 PMOS transistor P2[m], with its gate connected to the enable signal RWENN[m], its drain connected to VDD, and its source connected to SL[m]; 1 NMOS transistor N1[m], with its gate connected to the enable signal RWEN[m], its drain connected to BL[m], and its source connected to GND; as well as 1 NMOS transistor N2[m], with its gate connected to the enable signal SEN[m], its drain connected to BL[m], and its source connected to GND; Among them, RWENN[m] and RWEN[m] are opposite signals.

6. The data search memory based on one-hot code according to claim 5, characterized in that: The nth word line charge latch unit comprises: A switch SW1, a first end of which is connected to the output end of the data encoder, and a second end of which is connected to WL[n]; A switch SW2, a first end of which is connected to a first end of SW1; A transmission gate G1[n], whose input terminal is connected to the second terminal of SW2; A reset transistor N3[n], whose gate is connected to the reset control signal, whose drain is connected to GND, and whose source is connected to the output end of G1[n]; 1 latch INV1[n], whose input end is connected to the output end of G1[n], and whose output end is connected to the inverting control end of G1[n]; 1 latch INV2[n], whose input end is connected to the output end of INV1[n], and whose output end is connected to the input end of INV1[n]; as well as 1 inverter INV3[n], whose input end is connected to the output end of INV1[n], and whose output end is connected to the positive control end of G1[n] and WL[n]; The word line charge latch units in the same row share the same SW1 and the same SW2; In the standard read / write mode, SW1 is turned on and SW2 is turned off, and the first end of SW1 is directly used as the data input end; In the parallel segmented search mode, SW1 is turned off and SW2 is turned on, and the first end of SW1 receives the P groups of one-hot codes output by the data encoder.

7. The data search memory based on one-hot code according to claim 6, characterized in that: In standard read / write mode, SW2 is disconnected, SW1 is on, SW3[1] to SW3[M] are disconnected, SW4[1] to SW4[M] are disconnected, and SW5[1] to SW5[M] are on. The read / write target is the storage unit at the nth row and the mth column; (1) Reading the read / write target; wherein the reference data stored in the read / write target is "0"; The pre-charging circuit unit synchronously inputs PRE-C to the M pre-charging control units; Among them, in the mth pre-charge control unit, when PRE-C is at a low level, the gate of P1[m] is at a low level, making P1[m] turned on, and VDD is pre-charged to BL[m] through P1[m]; The first terminal of SW1 inputs a high level, WL[n] is turned on; N2[m] is turned on, and N1[m] and P2[m] are turned off; BL[m] discharges to GND through the storage cell at the nth row and mth column, SL[m], and N2[m]. During this process, the storage cell at the nth row and mth column is in a low resistance state, and BL[m] discharges quickly. The residual voltage V after SA[m] discharges BL[m] is BL [m], V ref [m] for comparison, then V BL [m]<V ref [m], the output result is "0"; (2) Reading the read / write target; wherein the reference data stored in the read / write target is "1"; The pre-charging circuit unit synchronously inputs PRE-C to the M pre-charging control units; Among them, in the mth pre-charge control unit, when PRE-C is at a low level, the gate of P1[m] is at a low level, making P1[m] turned on, and VDD is pre-charged to BL[m] through P1[m]; The first terminal of SW1 inputs a high level, WL[n] is turned on; N2[m] is turned on, and N1[m] and P2[m] are turned off; BL[m] discharges to GND through the storage cell at the nth row and mth column, SL[m], and N2[m]. During this process, the storage cell at the nth row and mth column is in a high-resistance state, and the discharge speed of BL[m] is slow. The residual voltage V after SA[m] discharges BL[m] is BL [m], V ref [m] for comparison, then V BL [m] greater than V ref [m], the output result is "1"; (3) Write "0" to the storage unit of the read / write target; The pre-charging circuit unit synchronously inputs PRE-C to the M pre-charging control units; Among them, in the mth pre-charge control unit, when PRE-C is at a high level, the gate of P1[m] is at a high level, making P1[m] disconnected; The first terminal of SW1 inputs a high level, WL[n] is turned on; N2[m] is turned off, and N1[m] and P2[m] are turned on; VDD discharges to GND through P2[m], SL[m], the storage cell at the nth row and mth column, BL[m], and N1[m]. During this process, the storage cell at the nth row and mth column is in a low-resistance state, that is, "0" is written. (4) Write "1" to the storage unit of the read / write target; The pre-charging circuit unit synchronously inputs PRE-C to the M pre-charging control units; Among them, in the mth pre-charge control unit, when PRE-C is at a low level, the gate of P1[m] is at a low level, making P1[m] conductive; The first terminal of SW1 inputs a high level, WL[n] is turned on; N2[m] is turned on, and N1[m] and P2[m] are turned off; VDD discharges to GND through P1[m], BL[m], the storage cell at the nth row and mth column, SL[m], and N2[m]. During this process, the storage cell at the nth row and mth column is in a high impedance state, that is, "1" is written.

8. The data search memory based on one-hot code according to claim 6, characterized in that: In the parallel segment search mode, P2[1]~P2[M] are turned off, N1[1]~N1[M] are turned off, N2[1]~N2[M] are turned on, SW1 is turned off, SW2 is turned on, SW3[1]~SW3[M] are turned on, SW4[1]~SW4[M] are turned on, and SW5[1]~SW5[M] are turned off; The pre-charging circuit unit synchronously inputs PRE-C to the M pre-charging control units; Among them, for the mth pre-charge control unit in the first time cycle, when PRE-C is at a high level, NAND[m] outputs a low level, turns on P1[m], and VDD pre-charges BL[m] through P1[m]; when PRE-C is at a low level, NAND[m] outputs a high level, turns off P1[m], and starts parallel segment search; P pieces of data to be matched are converted into P groups of one-hot codes by the data encoder; Among them, the number of bits with the value "1" in the p-th unique hot code is l p represents the bit width of the p-th one-hot code; No. word line charge latch unit opens BL[m] is the mth column The memory cells, SL[m], and N2[m] of the row discharge to GND; The remaining voltage V after SA[m] discharges BL[m] BL [m], V ref [m] compare and output the result; If V ref [m]>V BL [m], the output result is low level, indicating that the mth column does not match, then BL[m] is no longer precharged, and BL[m] remains low level; If V ref [m]<V BL [m], the output result is high level, indicating that the mth column matches, then BL[m] is precharged again.

9. A CIM chip, characterized in that: The method is encapsulated using a data search memory based on a one-hot code as described in any one of claims 1 to 8.

10. An application of a data search memory based on a one-hot code, characterized in that: Taking unknown DNA as data to be matched and known DNA as reference data, a matching test is performed on the unknown DNA and the known DNA through a data search memory based on a one-hot code as described in any one of claims 1 to 8, and a matching result is obtained.