Built-in self-test circuit of memory and memory

By using 8T SRAM units to build a linear feedback shift register in the memory, the problem in the existing technology that the memory built-in self-test circuit needs to be built outside the chip is solved, achieving more efficient testing and lower-cost memory self-testing.

CN118588146APending Publication Date: 2024-09-03PEKING UNIV SHENZHEN GRADUATE SCHOOL
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410490787.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-23
Publication Date
2024-09-03

AI Technical Summary

Technical Problem

The built-in self-test circuit of existing memories needs to be built outside the chip, resulting in increased costs and waste of chip area, which is not conducive to the integration of SoC chips.

Method used

By introducing a test vector generation module and a test response compression module into the memory, an 8T SRAM unit is used to build a linear feedback shift register, replacing the linear feedback shift register composed of traditional D flip-flops, realizing self-testing of the memory, and generating test vectors Module and test response compression module uses 8T SRAM unit for data reading, writing and storage.

Benefits of technology

It reduces the number and area of ​​transistors used in the built-in self-test circuit, reduces test costs, simplifies peripheral equipment, and improves circuit utilization.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118588146A
    Figure CN118588146A
Patent Text Reader

Abstract

The invention provides a built-in self-test circuit of a memory and the memory. The built-in self-test circuit of the memory comprises a test vector generation module and a test response compression module which are respectively connected with an address bus, and 8T SRAM (Static Random Access Memory) units arranged in the test vector generation module and the test response compression module are used as an address generator, a data generator and a test response compressor in the memory self-test circuit. A linear feedback shift register is built by an 8TSRAM unit to replace a linear feedback shift register formed by a traditional D trigger in the prior art, address updating or data updating is completed, and self-testing of a memory is achieved. According to the invention, a built-in self-test circuit function module does not need to be arranged at the periphery of the SRAM array, so that the number and area of transistors used by the built-in self-test circuit are saved under the condition of realizing a linear feedback shift register with the same order, peripheral equipment is simplified, and the test cost is 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 memory, and in particular to a built-in self-test circuit of a memory and a memory. Background Art

[0002] With the advancement of semiconductor technology and the continuous improvement of SoC (System-on-chip, SoC) technology, SoC technology has become the main design technology for integrated circuits in this century. However, its limitations have been exposed in terms of design methods and architecture, especially when the number of intellectual property (Intellectual Property, IP) cores contained in SoC increases to tens of thousands and the feature size continues to shrink, which drives the integration and complexity of chips to continue to increase. The existing SoC technology based on bus structure for communication faces huge challenges in performance, power consumption, delay and reliability, which also greatly increases the difficulty of testing memory IP cores.

[0003] At present, it is generally believed that the solution that can effectively solve the chip-level testing cost is to insert a "built-in self-test (BIST)" structure inside the chip. Through this solution, the controllability and observability of chip testing can be increased, making test vector generation and verification testing easier. Figure 1 A schematic diagram of the structure of an existing memory built-in self-test circuit is given. Figure 1 As shown in the figure, in addition to the circuit function modules included in the traditional SRAM memory architecture, the built-in self-test architecture also includes an address generator, a data generator and a test response compressor. When the SRAM works in the test mode, the address generator will generate an address sequence and send the address sequence to the decoder to access the storage unit; the data generator is used to generate background data during the test process. In the March test, writing different background data to the SRAM to be tested can obtain a higher fault coverage rate; the test response compressor is used to compress the test response.

[0004] However, these BIST functional modules are usually deployed outside the SRAM array, which will undoubtedly increase the cost and chip area, which is not conducive to the integration of SOC chips. Summary of the invention

[0005] The embodiments of the present application provide a built-in self-test circuit of a memory and a memory, which can solve the technical problem that the built-in self-test circuit of the existing memory needs to build a self-test circuit outside the chip, which increases the cost and consumes the chip area, and is not conducive to chip integration.

[0006] In a first aspect, an embodiment of the present application provides a built-in self-test circuit of a memory, comprising:

[0007] A test vector generation module is connected to the address bus of the memory; the test vector generation module includes N 8T SRAM units and a first logic unit connected in parallel, each of the 8T SRAM units corresponds to a storage unit of a storage array in the memory; in a test phase, one or more of the 8T SRAM units respond to an external self-test instruction and generate an address sequence for testing the corresponding storage unit according to a preset algorithm; corresponding test data is generated according to the address sequence, and the test data is written into the corresponding one or more storage units through the address bus;

[0008] A test response compression module is connected to the address bus of the memory; the test response compression module includes N 8T SRAM units and a second logic unit connected in parallel, each of the 8T SRAM units corresponds to a storage unit in the memory; in the test phase, one or more of the 8T SRAM units are used to read the test data in the selected one or more storage units, perform compression processing, and obtain test response data for comparison with expected response data, so as to realize the response test of the memory.

[0009] In some embodiments, during the calculation phase, the 8TSRAM units in the test vector generation module and the test response compression module are also used to read, write and store calculation data.

[0010] In some embodiments, the 8T SRAM cell includes a transistor N1, a transistor N2, a transistor N3, a transistor N4, a transistor N5, a transistor N6, a transistor P1, a transistor P2, a node Q, and a node QB; wherein each transistor includes a first terminal, a second terminal, and a control terminal;

[0011] The first end of the transistor N1 is connected to the node Q, and the second end of the transistor N1 is connected to the calculation bit line CBL. j The control end of the transistor N1 is connected to a control word line CWL;

[0012] The first terminal of the transistor N2 is connected to the counter bit line CBLB j The second end of the transistor N2 is connected to the node QB, and the control end of the transistor N2 is connected to the control word line CWL;

[0013] The first end of the transistor N5 is connected to the word line WL, the second end of the transistor N5 is connected to the column bit line BL, and the control end of the transistor N5 is connected to the node Q;

[0014] The first end of the transistor N6 is connected to the node QB, the second end of the transistor N6 is connected to the column bit line BLB, and the control end of the transistor N1 is connected to the word line WL;

[0015] The first terminal of the transistor P1 is connected to the input voltage V DD The second end of the transistor P1 is connected to the node Q, and the control end of the transistor P1 is connected to the node QB;

[0016] The first terminal of the transistor N3 is connected to the node Q, the second terminal of the transistor N3 is grounded, and the control terminal of the transistor N3 is connected to the node QB;

[0017] The first terminal of the transistor P2 is connected to the input voltage V DD The second end of the transistor P2 is connected to the node QB, and the control end of the transistor P2 is connected to the node Q;

[0018] The first terminal of the transistor N4 is connected to the node QB, the second terminal of the transistor N4 is grounded, and the control terminal of the transistor N4 is connected to the node Q;

[0019] Among them, j=0 in the test vector generation module, and j=1 in the test response compression module.

[0020] In some embodiments, the first logic unit and the second logic unit have the same structure;

[0021] The first logic unit includes a first pseudo differential sense amplifier, a second pseudo differential sense amplifier, a NOR gate NOR, a buffer U1, a first selector, a NOT gate NOT and a second selector;

[0022] The first input terminal of the first pseudo differential sense amplifier is connected to the calculation bar bit line CBLB j The second input terminal of the first pseudo differential sense amplifier is connected to the reference voltage V REF connected, a third input terminal of the first pseudo differential sense amplifier is used to receive an amplified reference signal SAE;

[0023] The first input terminal of the second pseudo differential sense amplifier is connected to the calculation bit line CBL j The second input terminal of the second pseudo differential sense amplifier is connected to the reference voltage V REF connected, a third input terminal of the second pseudo differential sense amplifier is used to receive the amplified reference signal SAE;

[0024] The first input end of the NOR gate NOR is connected to the output end of the first pseudo differential sense amplifier, and the second input end of the NOR gate NOR is connected to the output end of the second pseudo differential sense amplifier;

[0025] The input end of the buffer U1 is connected to the output end of the second pseudo-differential sense amplifier;

[0026] The first input end of the first selector is connected to the output end of the NOR gate NOR, the second input end of the first selector is connected to the output end of the buffer U1, the first control end of the first selector is used to receive the first result selection signal XEN, and the second control end of the first selector is used to receive the second result selection signal The first output terminal of the first selector is connected to the calculation bar line CBLB j The second output terminal of the second selector is connected to the calculation bit line CBL j connect;

[0027] An input end of the NOT gate NOT is connected to a first output end of the first selector;

[0028] The first input end of the second selector is connected to the output end of the NOT gate NOT, the second input end of the second selector is connected to the second output end of the first selector, the first control end of the second selector is used to receive the first write enable signal WEN0, and the second control end of the second selector is used to receive the second write enable signal WEN0. The first output terminal of the second selector is connected to the calculation bar bit line CBLB j The second output terminal of the second selector is connected to the calculation bit line CBL j connect.

[0029] In some embodiments, the first selector includes a first transmission gate and a second transmission gate; wherein the first transmission gate and the second transmission gate are alternately turned on or off;

[0030] The first input end of the first transmission gate is connected to the first input end of the first selector, the second input end of the first transmission gate is connected to the first control end of the first selector, the third input end of the first transmission gate is connected to the second control end of the first selector, and the output end of the first transmission gate is connected to the first output end of the first selector; the first input end of the second transmission gate is connected to the second input end of the first selector, the second input end of the second transmission gate is connected to the second control end of the first selector, the third input end of the second transmission gate is connected to the first control end of the first selector, and the output end of the second transmission gate is connected to the second output end of the first selector;

[0031] The second selector includes a third transmission gate and a fourth transmission gate; wherein the third transmission gate and the fourth transmission gate are turned on or off at the same time;

[0032] The first input end of the third transmission gate is connected to the first input end of the second selector, the second input end of the third transmission gate is connected to the second control end of the second selector, the third input end of the third transmission gate is connected to the first control end of the second selector, and the output end of the third transmission gate is connected to the first output end of the second selector; the first input end of the fourth transmission gate is connected to the second input end of the second selector, the second input end of the fourth transmission gate is connected to the first control end of the second selector, the third input end of the fourth transmission gate is connected to the second control end of the second selector, and the output end of the fourth transmission gate is connected to the second output end of the second selector.

[0033] In some embodiments, the first pseudo-differential sense amplifier and the second pseudo-differential sense amplifier have the same structure;

[0034] The first pseudo differential sense amplifier includes a transistor P3, a transistor P4, a transistor P5, an inverter U1, an inverter U2, a transistor N9, a transistor N10 and a transistor N11;

[0035] The first terminal of the transistor P3 is connected to the input voltage V DD The control terminal of the transistor P3 is used to receive the pre-charge signal

[0036] The first terminal of the transistor P4 is connected to the input voltage V DD The control terminal of the transistor P4 is used to receive the pre-charge signal

[0037] The first end of the transistor P5 is connected to the second end of the transistor P3, the second end of the transistor P5 is connected to the second end of the transistor P4, and the control end of the transistor P5 is used to receive the receiving pre-charge signal

[0038] The input end of the inverter U1 is connected to the second end of the transistor P3, and the output end of the inverter U1 is connected to the second end of the transistor P4;

[0039] The input end of the inverter U2 is connected to the second end of the transistor P4, and the output end of the inverter U2 is connected to the second end of the transistor P3;

[0040] The first end of the transistor N9 is connected to the output end of the inverter U2, and the control end of the transistor N9 is connected to the calculation bit line CBL. jconnect;

[0041] The first end of the transistor N10 is connected to the output end of the inverter U1, and the control end of the transistor N10 is connected to the reference voltage V REF connect;

[0042] The first end of the transistor N11 is connected to the second end of the transistor N9 , the second end of the transistor N11 is connected to the second end of the transistor N10 , and the control end of the transistor N11 is used to receive the amplified reference signal SAE.

[0043] In a second aspect, an embodiment of the present application provides a memory, including:

[0044] A built-in self-test circuit as described in any of the above embodiments;

[0045] a memory array comprising a plurality of sub-arrays, wherein each sub-array comprises memory cells arranged in a matrix of a plurality of rows and a plurality of columns, each row comprising a word line connected to the memory cells of the row, and each column comprising a local bit line connected to the memory cells of the column;

[0046] a row decoder and word line driver module for decoding and driving a word line that controls one or more memory cells;

[0047] A column decoder and column gate line driver module for decoding and driving the bit lines of the memory cells controlling the selected gate column;

[0048] A column bit line precharge module, used for precharging the memory cells of each column;

[0049] A first row of bit line precharge modules, for precharging 8T SRAM cells in the built-in self-test circuit;

[0050] A differential sensing amplifier module, used for sensing the difference between the read current of the storage unit and a preset reference current and amplifying it into corresponding high level and low level signal outputs;

[0051] The data register and write driver module are used to control the storage and writing of storage data.

[0052] In some embodiments, the memory further includes a reference voltage generating module;

[0053] The reference voltage generation module includes N 8T SRAM cells, each of which controls a word line CWL according to a reference voltage. REF , providing a reference voltage V to the memory cells selected by the column decoder and the column strobe line driver module and the built-in self-test circuit REF .

[0054] In some embodiments, the memory further includes a second row bit line precharge module;

[0055] The second row bit line precharge module is used to precharge the 8T SRAM unit in the reference voltage generation module.

[0056] In some embodiments, the first row bit line precharge module includes two precharge units, which are respectively used to precharge the 8T SRAM cells of the test vector generation module and the test response compression module in the built-in self-test circuit;

[0057] Each of the pre-charge units includes a transistor P6, a transistor P7 and a transistor P8;

[0058] The first terminal of the transistor P6 is connected to the input voltage V DD The second end of the transistor P6 is connected to the calculation bar line CBLB j The control terminal of the transistor P6 is used to receive the pre-charge signal

[0059] The first terminal of the transistor P7 is connected to the calculation bar line CBLB j The second end of the transistor P7 is connected to the calculation bit line CBL j The control terminal of the transistor P7 is used to receive the pre-charge signal

[0060] The first terminal of the transistor P8 is connected to the input voltage V DD The second end of the transistor P8 is connected to the calculation bit line CBL j The control terminal of the transistor P7 is used to receive the pre-charge signal

[0061] The built-in self-test circuit of the memory and the memory provided in the embodiment of the present application include a test vector generation module and a test response compression module. The 8T SRAM unit set in the test vector generation module and the test response compression module is used as an address generator, a data generator and a test response compressor in the memory self-test circuit. The 8T SRAM unit is used to build a linear feedback shift register to replace the linear feedback shift register composed of a traditional D flip-flop in the prior art, complete address update or data update, and realize self-test of the memory.

[0062] The present application no longer needs to deploy built-in self-test circuit function modules around the SRAM array. When implementing the same order linear feedback shift register, it can save transistors and area used in the built-in self-test circuit, simplify peripheral equipment, and reduce testing costs. In addition, in the calculation stage, the 8TSRAM units in the test vector generation module and the test response compression module can also be used for storage and reading and writing of calculation data, thereby improving the utilization rate of the circuit. BRIEF DESCRIPTION OF THE DRAWINGS

[0063] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0064] Figure 1 A schematic diagram of the structure of a conventional memory built-in self-test circuit;

[0065] Figure 2 A schematic diagram of the structure of a built-in self-test circuit of a memory provided by an embodiment of the present application;

[0066] Figure 3 A circuit diagram of an 8T SRAM cell provided in one embodiment of the present application;

[0067] Figure 4 A circuit diagram of a test vector generation module provided in one embodiment of the present application;

[0068] Figure 5 A timing diagram of an 8T SRAM cell in a test phase provided by an embodiment of the present application;

[0069] Figure 6 A circuit diagram of a first logic unit provided in one embodiment of the present application;

[0070] Figure 7 A circuit diagram of a first pseudo-differential sense amplifier provided in one embodiment of the present application;

[0071] Figure 8 A schematic diagram of the structure of a memory provided in one embodiment of the present application;

[0072] Fig. 9 A circuit diagram of a first row of bit line precharge modules provided in accordance with an embodiment of the present application.

[0073] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION

[0074] The present invention is further described in detail below by specific embodiments in conjunction with the accompanying drawings. Wherein similar elements in different embodiments adopt associated similar element numbers. In the following embodiments, many detailed descriptions are for making the present application better understood. However, those skilled in the art can easily recognize that some features can be omitted in different situations, or can be replaced by other elements, materials, methods. In some cases, some operations related to the present application are not shown or described in the specification, this is to avoid the core part of the present application being overwhelmed by too much description, and for those skilled in the art, it is not necessary to describe these related operations in detail, and they can fully understand the related operations according to the description in the specification and the general technical knowledge in the art.

[0075] In addition, the features, operations or characteristics described in the specification can be combined in any appropriate manner to form various implementations. At the same time, the steps or actions in the method description can also be interchanged or adjusted in a manner that is obvious to those skilled in the art. Therefore, the various sequences in the specification and the drawings are only for the purpose of clearly describing a certain embodiment and are not meant to be a required sequence, unless otherwise specified that a certain sequence must be followed.

[0076] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally a class, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated before and after are in an "or" relationship. The "connection" and "connection" mentioned in the present application, unless otherwise specified, include direct and indirect connections (connections).

[0077] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.

[0078] Figure 2 This is a schematic diagram of the structure of a built-in self-test circuit of a memory provided by an embodiment of the present application. Figure 2 As shown, the built-in self-test circuit of the memory provided in the embodiment of the present application includes a test vector generation module 201 and a test response compression module 202.

[0079] In this embodiment, the test vector generation module 201 is connected to the address bus of the memory. The test vector generation module 201 includes N parallel-connected 8T SRAM units and a first logic unit, where N is a positive integer greater than 1.

[0080] Each 8T SRAM cell corresponds to a memory cell in the memory array, that is, the number of 8T SRAM cells is the same as the number of memory cells in each row of the memory array. Each 8T SRAM cell includes at least 6 connection terminals, and the first connection terminal corresponds to the control word line CWL corresponding to the column where it is located. n-1 The second connection end is connected to the word line WL corresponding to the row where it is located. n-1 The third connection terminal and the fourth connection terminal are connected to the column bit line BL corresponding to the column where they are located. n-1 and column bit line BLB n-1 The fifth connection end is connected to the calculation bit line CBL corresponding to the row where it is located. j The sixth connection terminal is connected to the calculation bar line CBLB corresponding to the row where it is located. j Connection, where j=0 or j=1.

[0081] In this embodiment, the test vector generation module 201 is located before the memory array, and the 8T SRAM unit is connected to the corresponding word line WL0, the calculation bit line CBL0 and the calculation bar bit line CBLB0.

[0082] During the testing phase, one or more 8T SRAM units in the test vector generation module 201 respond to an externally input self-test instruction and generate an address sequence for testing the corresponding storage units according to a preset algorithm; generate corresponding test data according to the address sequence, and write the test data into the corresponding one or more storage units through the address bus.

[0083] The first logic unit responds to an externally input self-test instruction and generates an address sequence for testing its corresponding storage unit according to a preset algorithm; generates corresponding test data according to the address sequence, and writes the test data into the corresponding one or more storage units through an address bus.

[0084] It should be noted that the externally input self-test instruction at least includes an external clock control signal, an amplified reference signal SAE, a read / write control signal, and the like.

[0085] In this embodiment, the test response compression module 202 is connected to the address bus of the memory. The test response compression module 202 includes N 8T SRAM units and a second logic unit connected in parallel.

[0086] Each 8T SRAM cell corresponds to a memory cell in the memory, that is, the number of 8T SRAM cells is the same as the number of memory cells in each row of the memory array. Each 8T SRAM cell includes at least 6 connection terminals, and the first connection terminal corresponds to the control word line CWL of the column where it is located. n-1 The second connection end is connected to the word line WL corresponding to the row where it is located. n-1 The third connection terminal and the fourth connection terminal are connected to the column bit line BL corresponding to the column where they are located. n-1 and column bit line BLB n-1 The fifth connection end is connected to the calculation bit line CBL corresponding to the row where it is located. j The sixth connection terminal is connected to the calculation bar line CBLB corresponding to the row where it is located. j connection, where j=0 or j=1, and is different from the calculation bit line CBL connected to the 8T SRAM unit in the test vector generation module 201 j and calculate the inverted bit line CBLB j .

[0087] In this embodiment, the test response compression module 202 is located before the memory array, and the 8T SRAM cell is connected to the corresponding word line WL1, the calculation bit line CBL1 and the calculation bar bit line CBLB1.

[0088] During the test phase, one or more 8T SRAM units in the test response compression module 202 are used to read the test data in the selected one or more storage units, perform compression processing, and obtain test response data for comparison with expected response data to implement memory response testing.

[0089] The second logic unit responds to the externally input self-test instruction, reads the test data in the selected one or more storage units, performs compression processing, and obtains test response data for comparison with expected response data to implement a response test of the memory.

[0090] In summary, the present application uses two rows of 8T SRAM units and two logic units to build a linear feedback shift register using 8T SRAM units to replace the linear feedback shift register composed of traditional D flip-flops in the prior art, complete address update or data update, and realize self-test of the memory.

[0091] Figure 3 The circuit diagram of an 8T SRAM cell provided by an embodiment of the present application is shown in FIG. Figure 3As shown, the 8T SRAM cell provided in the embodiment of the present application includes transistor N1, transistor N2, transistor N3, transistor N4, transistor N5, transistor N6, transistor P1, transistor P2, node Q and node QB; wherein each transistor includes a first end, a second end and a control end.

[0092] In this embodiment, the first end of the transistor N1 is connected to the node Q, and the second end of the transistor N1 is connected to the calculation bit line CBL. j Connect the control terminal of transistor N1 to the control word line CWL n-1 The first end of transistor N2 is connected to the calculation inverse bit line CBLB j The second end of transistor N2 is connected to node QB, and the control end of transistor N2 is connected to control word line CWL. n-1 The first end of transistor N5 is connected to the word line WL n-1 The second end of transistor N5 is connected to the column bit line BL, and the control end of transistor N5 is connected to node Q; the first end of transistor N6 is connected to node QB, and the second end of transistor N6 is connected to the column bit line BLB n-1 Connect the control terminal of transistor N1 to the word line WL n-1 Connect the first terminal of transistor P1 to the input voltage V DD The second end of transistor P1 is connected to node Q, and the control end of transistor P1 is connected to node QB; the first end of transistor N3 is connected to node Q, the second end of transistor N3 is grounded, and the control end of transistor N3 is connected to node QB; the first end of transistor P2 is connected to the input voltage V DD The second end of transistor P2 is connected to node QB, and the control end of transistor P2 is connected to node Q; the first end of transistor N4 is connected to node QB, the second end of transistor N4 is grounded, and the control end of transistor N4 is connected to node Q.

[0093] It should be noted that the transistor in the present application can be a transistor of any structure, such as a bipolar transistor (BJT) or a field effect transistor (FET). When the transistor is a bipolar transistor, its control electrode refers to the gate of the bipolar transistor, the first electrode can be the collector or emitter of the bipolar transistor, and the corresponding second electrode can be the emitter or collector of the bipolar transistor. In the actual application process, the "emitter" and "collector" can be interchanged according to the signal flow direction; when the transistor is a field effect transistor, its control end refers to the gate of the field effect transistor, the first end can be the drain or source of the field effect transistor, and the corresponding second end can be the source or drain of the field effect transistor. In the actual application process, the "source" and "drain" can be interchanged according to the signal flow direction. It should be noted that for the convenience of description and in order to enable those skilled in the art to more clearly understand the technical solution of the present application, the node Q, node U, node QB and node UB are introduced in the present application document to identify the relevant parts of the circuit structure, and cannot be identified as additional terminals introduced in the circuit.

[0094] It has been verified that the linear feedback shift register constructed by the 8T SRAM unit of the embodiment of the present application, to replace the linear feedback shift register constructed by the traditional D flip-flop in the prior art, the number of transistors used and the area are reduced by half. The specific comparison results are shown in Table 1.

[0095] Table 1. Comparison of transistor count and area of ​​a conventional linear feedback shift register and a linear feedback shift register based on 8T SRAM

[0096]

[0097]

[0098] It can be seen that the embodiments of the present application no longer need to deploy a built-in self-test circuit functional module outside the SRAM array. When implementing the same order linear feedback shift register, it can save the number of transistors and area used in the built-in self-test circuit, simplify the peripheral equipment, and reduce the testing cost.

[0099] In some embodiments, during the compute phase, the 8T SRAM cells in the test vector generation module 201 and the test response compression module 202 are also used to read, write and store computed data.

[0100] It can be understood that, in the calculation stage, the 8T SRAM cells in the test vector generation module 201 and the test response compression module 202 are the same as all the storage cells in the memory array, and are also used for reading, writing and storing calculation data, thereby realizing the reuse of the built-in self-test circuit of the memory, improving the utilization rate of the circuit and saving costs.

[0101] Figure 4 A circuit diagram of a test vector generation module provided in one embodiment of the present application. Figure 5 A timing diagram of an 8T SRAM cell in a test phase provided by an embodiment of the present application.

[0102] by Figure 4 As an example, in the test phase, the control word lines CWL0 and CWL1 are activated simultaneously. Figure 5 (a) Timing diagram, the first two 8T SRAM cells in the test vector generation module are activated, and the clock signal CLK and the precharge signal Under the control of the amplified reference signal SAE, the XOR logic operation of the first logic unit is performed to obtain the XOR result of A and B. At the same time, under the control of the first write enable signal WEN0 and the first result selection signal XEN, the control word line CWL is activated. i , write the XOR result into the i-th 8T SRAM cell in the row, 3≤i≤N, and is an integer.

[0103] Similarly, when only the control word line CWL0 is activated, Figure 5 (b) shows the timing diagram, which can shift the result A to an 8T SRAM cell in the row in one cycle.

[0104] The logical truth table of the first logic unit is as follows:

[0105] Table 2. Logical truth table of the first logic unit

[0106]

[0107] Taking a 4-order linear feedback shift register as an example, to realize the function of a 4-order linear feedback shift register, 8 8TSRAM units are required in the test vector generation module or the test response compression module of the embodiment of the present application, and a total of 64 transistors are required. Assume that 4 of the 8T SRAM units store states Q3, Q2, Q1, and Q0, and the other 4 units store states Q3', Q2', Q1', and Q0'. Based on the above truth table and control timing logic, the 8 8T SRAM units of this embodiment can realize a state transfer through 4 cycles. The specific implementation is shown in Table 3.

[0108] Table 3. Steps to implement a 4-stage linear feedback shift register in an 8T SRAM

[0109]

[0110] Q3Q2Q1Q0→Q3'Q2'Q1'Q0'

[0111]

[0112] As shown in Table 3, assuming that Q3Q2Q1Q0 is the current state and Q3'Q2'Q1'Q0' is the next state, the 8T SRAM shifts Q3 to Q2', Q2 to Q1', and Q1 to Q0' through three cycles, and finally calculates the XOR result of Q0 and Q3 and shifts it to Q3' through one cycle.

[0113] At the next state transfer, Q3'Q2'Q1'Q0' is the current state, and Q3Q2Q1Q0 is the next state. 8TSRAM shifts Q3' to Q2, Q2' to Q1, and Q1' to Q0 through three cycles, and finally calculates the XOR result of Q0' and Q3' and shifts it to Q3 through one cycle.

[0114] The above process is continuously cycled to realize the sequence update based on the 8T SRAM shift register.

[0115] Therefore, when the linear feedback shift register constructed by 8T SRAM cells is used as an address generator or data generator, the sequence update can be regarded as an address update or a data update. When the linear feedback shift register is used as a test response compressor, the sequence update can also be used to compress the test response. The self-test of the memory is realized through address update or data update.

[0116] In some embodiments, the first logic unit and the second logic unit have the same structure. Figure 6 A circuit diagram of a first logic unit provided in one embodiment of the present application. Figure 6 As shown, the first logic unit provided in the embodiment of the present application includes a first pseudo differential sense amplifier, a second pseudo differential sense amplifier, a NOR gate NOR, a buffer U1, a first selector, a NOT gate NOT and a second selector.

[0117] In this embodiment, the first input terminal of the first pseudo differential sense amplifier is connected to the calculation bar bit line CBLB0, and the second input terminal of the first pseudo differential sense amplifier is connected to the reference voltage V REF The first pseudo differential sense amplifier is connected to the calculation bit line CBL0, and the second pseudo differential sense amplifier is connected to the reference voltage V REFThe first input end of the NOR gate NOR is connected to the output end of the first pseudo differential sensitive amplifier, and the second input end of the NOR gate NOR is connected to the output end of the second pseudo differential sensitive amplifier; the input end of the buffer U1 is connected to the output end of the second pseudo differential sensitive amplifier; the first input end of the first selector is connected to the output end of the NOR gate NOR, the second input end of the first selector is connected to the output end of the buffer U1, the first control end of the first selector is used to receive the first result selection signal XEN, and the second control end of the first selector is used to receive the second result selection signal The first output end of the first selector is connected to the calculation inverse bit line CBLB0, and the second output end of the second selector is connected to the calculation bit line CBL0; the input end of the NOT gate NOT is connected to the first output end of the first selector; the first input end of the second selector is connected to the output end of the NOT gate NOT, and the second input end of the second selector is connected to the second output end of the first selector; the first control end of the second selector is used to receive the first write enable signal WEN0, and the second control end of the second selector is used to receive the second write enable signal A first output terminal of the second selector is connected to the calculation bar bit line CBLB0, and a second output terminal of the second selector is connected to the calculation bit line CBL0.

[0118] It should be noted that the first logic unit and the second logic unit have the same structure, but all the calculation bit lines and calculation anti-bit lines in the second logic unit are different from those in the first logic unit, that is, the calculation bit lines and calculation anti-bit lines involved in the second logic unit are the calculation bit line CBL1 and the calculation anti-bit line CBLB1 respectively.

[0119] In some embodiments, the first selector includes a first transmission gate and a second transmission gate; wherein the first transmission gate and the second transmission gate are alternately turned on or off.

[0120] The first input end of the first transmission gate is connected to the first input end of the first selector, the second input end of the first transmission gate is connected to the first control end of the first selector, the third input end of the first transmission gate is connected to the second control end of the first selector, and the output end of the first transmission gate is connected to the first output end of the first selector; the first input end of the second transmission gate is connected to the second input end of the first selector, the second input end of the second transmission gate is connected to the second control end of the first selector, the third input end of the second transmission gate is connected to the first control end of the first selector, and the output end of the second transmission gate is connected to the second output end of the first selector.

[0121] In some embodiments, the second selector includes a third transmission gate and a fourth transmission gate; wherein the third transmission gate and the fourth transmission gate are turned on or off at the same time.

[0122] The first input end of the third transmission gate is connected to the first input end of the second selector, the second input end of the third transmission gate is connected to the second control end of the second selector, the third input end of the third transmission gate is connected to the first control end of the second selector, and the output end of the third transmission gate is connected to the first output end of the second selector; the first input end of the fourth transmission gate is connected to the second input end of the second selector, the second input end of the fourth transmission gate is connected to the first control end of the second selector, the third input end of the fourth transmission gate is connected to the second control end of the second selector, and the output end of the fourth transmission gate is connected to the second output end of the second selector.

[0123] In some embodiments, the first pseudo-differential sense amplifier and the second pseudo-differential sense amplifier have the same structure. Figure 7 FIG. 1 is a circuit diagram of a first pseudo differential sense amplifier provided in one embodiment of the present application. Figure 7 As shown, the first pseudo differential sense amplifier provided in the embodiment of the present application includes a transistor P3, a transistor P4, a transistor P5, an inverter U1, an inverter U2, a transistor N9, a transistor N10 and a transistor N11.

[0124] In this embodiment, the first terminal of the transistor P3 is connected to the input voltage V DD The control terminal of transistor P3 is used to receive the pre-charge signal The first terminal of transistor P4 is connected to the input voltage V DD The control terminal of transistor P4 is used to receive the pre-charge signal The first end of transistor P5 is connected to the second end of transistor P3, the second end of transistor P5 is connected to the second end of transistor P4, and the control end of transistor P5 is used to receive the pre-charge signal The input end of the inverter U1 is connected to the second end of the transistor P3, and the output end of the inverter U1 is connected to the second end of the transistor P4; the input end of the inverter U2 is connected to the second end of the transistor P4, and the output end of the inverter U2 is connected to the second end of the transistor P3; the first end of the transistor N9 is connected to the output end of the inverter U2, and the control end of the transistor N9 is connected to the calculation bit line CBL0; the first end of the transistor N10 is connected to the output end of the inverter U1, and the control end of the transistor N10 is connected to the reference voltage V REF a first end of the transistor N11 is connected to the second end of the transistor N9, a second end of the transistor N11 is connected to the second end of the transistor N10, and a control end of the transistor N11 is used to receive an amplified reference signal SAE.

[0125] It should be noted that all calculation bit lines and calculation anti-bit lines in the second logic unit are different from those in the first logic unit, that is, in the second logic unit, the control terminals of transistors N9 in the first selector and the second selector are connected to the calculation bit line CBL1.

[0126] In summary, the built-in self-test circuit of the memory provided in the embodiment of the application uses the 8T SRAM unit set in the test vector generation module and the test response compression module as the address generator, data generator and test response compressor in the memory self-test circuit, and uses the 8T SRAM unit to build a linear feedback shift register to replace the linear feedback shift register composed of the traditional D flip-flop in the prior art, completes the address update or data update, and realizes the self-test of the memory. The present application no longer needs to deploy the built-in self-test circuit function module on the periphery of the SRAM array. When realizing the same order of linear feedback shift register, it saves more transistors and area used in the built-in self-test circuit, simplifies peripheral equipment, and reduces testing costs.

[0127] The embodiment of the present application also provides a memory. Figure 8 This is a schematic diagram of the structure of a memory provided by an embodiment of the present application. Figure 8 As shown, the memory provided by the embodiment of the present application includes the built-in self-test circuit 801, the memory array 802, the row decoder and word line driver module 803, the column decoder and column selection line driver module 804, the column bit line pre-charge module 805, the first row bit line pre-charge module 806, the differential sense amplifier module 807 and the data register and write driver module 808 described in any of the above embodiments.

[0128] In this embodiment, the structure and implementation process of the built-in self-test circuit 801 are the same as the structure and process described in any of the above embodiments, and have the same beneficial effects, which will not be described again here.

[0129] The memory array 802 includes a plurality of sub-arrays, wherein each sub-array includes memory cells arranged in a matrix of multiple rows and multiple columns, each row includes a word line connected to the memory cells of the row, and each column includes a local bit line connected to the memory cells of the column.

[0130] In some embodiments, the memory unit may be a 6T SRAM, or an 8T SRAM, or other SRAM units. In this embodiment, the memory unit is a 6T SRAM.

[0131] The row decoder and word line driver module 803 is used to decode and drive the word lines of one or more memory cells. The column decoder and column selection line driver module 804 is used to decode and drive the bit lines of the memory cells of the selected column. The column bit line precharge module 805 is used to precharge the memory cells of each column. The first row bit line precharge module 806 is used to precharge the 8T SRAM cell in the built-in self-test circuit. The differential sense amplifier module 807 is used to sense the difference between the read current of the storage cell and the preset reference current and amplify it into corresponding high and low level signal outputs. The data register and write driver module 808 is used to control the storage and writing of storage data.

[0132] like Figure 8 As shown, the memory provided by the embodiment of the present application further includes a reference voltage generating module 809 and a second row bit line pre-charging module 810 .

[0133] In this embodiment, the reference voltage generation module 809 includes N 8T SRAM cells, each of which controls the word line CWL according to the reference voltage. REF , providing a reference voltage V to the memory cells selected by the column decoder and column selection line driver module 804 and the first logic unit and the second logic unit in the built-in self-test circuit 801 REF .

[0134] The second row bit line precharge module 810 is used to precharge the 8T SRAM cells in the reference voltage generation module 809 .

[0135] In some embodiments, the column bit line pre-charge module 805 , the first row bit line pre-charge module 806 , and the second row bit line pre-charge module 810 have similar circuit structures.

[0136] Fig. 9 This is a circuit diagram of a first row bit line precharge module provided by an embodiment of the present application. Fig. 9 As shown, the first row bit line pre-charge module provided in the embodiment of the present application includes two pre-charge units, which are respectively used to pre-charge the 8TSRAM units of the test vector generation module 201 and the test response compression module 202 in the built-in self-test circuit.

[0137] In this embodiment, each pre-charge unit includes a transistor P6, a transistor P7 and a transistor P8. Specifically, the first terminal of the transistor P6 is connected to the input voltage V DD The second end of transistor P6 is connected to the counter bit line CBLB j The control terminal of transistor P6 is used to receive the pre-charge signal The first terminal of transistor P7 is connected to the counter bit line CBLB j The second end of transistor P7 is connected to the computing bit line CBLj The control terminal of transistor P7 is used to receive the pre-charge signal The first terminal of transistor P8 is connected to the input voltage V DD The second end of transistor P8 is connected to the computing bit line CBL j The control terminal of transistor P7 is used to receive the pre-charge signal

[0138] It should be noted that the precharge unit used to precharge the 8T SRAM unit in the test vector generation module 201 is connected to the calculation bit line CBL0 and the calculation anti-bit line CBLB0, and the precharge unit used to precharge the 8T SRAM unit in the test response compression module 202 is connected to the calculation bit line CBL1 and the calculation anti-bit line CBLB1.

[0139] The memory provided in the embodiments of the present application has the same beneficial effects as the built-in self-test circuit described in any of the above embodiments, which will not be described in detail here.

[0140] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the inspiration of the present application, ordinary technicians in the field can make several simple deductions, deformations or substitutions based on the ideas of the present application without departing from the scope of protection of the purpose of the present application and the claims. All of these are within the protection of the present application.

Claims

1. A built-in self-test circuit for a memory, characterized in that: include: A test vector generation module connected to the address bus of the memory; The test vector generation module includes N 8T SRAM units connected in parallel and a first logic unit, each of the 8T SRAM units corresponds to a storage unit of a storage array in the memory; in a test phase, one or more of the 8T SRAM units respond to an external self-test instruction and generate an address sequence for testing the corresponding storage unit according to a preset algorithm; corresponding test data is generated according to the address sequence, and the test data is written into the corresponding one or more storage units through the address bus; A test response compression module is connected to the address bus of the memory; the test response compression module includes N 8T SRAM units and a second logic unit connected in parallel, each of the 8T SRAM units corresponds to a storage unit in the memory; in the test phase, one or more of the 8T SRAM units are used to read the test data in the selected one or more storage units, perform compression processing, and obtain test response data for comparison with expected response data, so as to realize response testing of the memory.

2. The built-in self-test circuit of the memory according to claim 1, characterized in that: During the calculation phase, the 8T SRAM unit in the test vector generation module and the test response compression module is also used to read, write and store calculation data.

3. The built-in self-test circuit of the memory according to claim 1, characterized in that: The 8T SRAM cell includes a transistor N1, a transistor N2, a transistor N3, a transistor N4, a transistor N5, a transistor N6, a transistor P1, a transistor P2, a node Q and a node QB; wherein each transistor includes a first terminal, a second terminal and a control terminal; The first end of the transistor N1 is connected to the node Q, and the second end of the transistor N1 is connected to the calculation bit line CBL. j The control end of the transistor N1 is connected to a control word line CWL; The first terminal of transistor N2 is connected to the counter bit line CBLB j The second end of the transistor N2 is connected to the node QB, and the control end of the transistor N2 is connected to the control word line CWL; The first end of the transistor N5 is connected to the word line WL, the second end of the transistor N5 is connected to the column bit line BL, and the control end of the transistor N5 is connected to the node Q; The first end of the transistor N6 is connected to the node QB, the second end of the transistor N6 is connected to the column bit line BLB, and the control end of the transistor N1 is connected to the word line WL; The first terminal of the transistor P1 is connected to the input voltage V DD The second end of the transistor P1 is connected to the node Q, and the control end of the transistor P1 is connected to the node QB; The first terminal of the transistor N3 is connected to the node Q, the second terminal of the transistor N3 is grounded, and the control terminal of the transistor N3 is connected to the node QB; The first terminal of the transistor P2 is connected to the input voltage V DD The second end of the transistor P2 is connected to the node QB, and the control end of the transistor P2 is connected to the node Q; The first terminal of the transistor N4 is connected to the node QB, the second terminal of the transistor N4 is grounded, and the control terminal of the transistor N4 is connected to the node Q; Among them, j=0 in the test vector generation module, and j=1 in the test response compression module.

4. The built-in self-test circuit of the memory according to claim 1, characterized in that: The first logic unit and the second logic unit have the same structure; The first logic unit includes a first pseudo differential sense amplifier, a second pseudo differential sense amplifier, a NOR gate NOR, a buffer U1, a first selector, a NOT gate NOT and a second selector; The first input terminal of the first pseudo differential sense amplifier is connected to the calculation bar bit line CBLB j The second input terminal of the first pseudo differential sense amplifier is connected to the reference voltage V REF connected, a third input terminal of the first pseudo differential sense amplifier is used to receive an amplified reference signal SAE; The first input terminal of the second pseudo differential sense amplifier is connected to the calculation bit line CBL j The second input terminal of the second pseudo differential sense amplifier is connected to the reference voltage V REF connected, a third input terminal of the second pseudo differential sense amplifier is used to receive the amplified reference signal SAE; The first input end of the NOR gate NOR is connected to the output end of the first pseudo differential sense amplifier, and the second input end of the NOR gate NOR is connected to the output end of the second pseudo differential sense amplifier; The input end of the buffer U1 is connected to the output end of the second pseudo-differential sense amplifier; The first input end of the first selector is connected to the output end of the NOR gate NOR, the second input end of the first selector is connected to the output end of the buffer U1, the first control end of the first selector is used to receive the first result selection signal XEN, and the second control end of the first selector is used to receive the second result selection signal The first output terminal of the first selector is connected to the calculation bar line CBLB j The second output terminal of the second selector is connected to the calculation bit line CBL j connect; An input end of the NOT gate NOT is connected to a first output end of the first selector; The first input end of the second selector is connected to the output end of the NOT gate NOT, the second input end of the second selector is connected to the second output end of the first selector, the first control end of the second selector is used to receive the first write enable signal WEN0, and the second control end of the second selector is used to receive the second write enable signal WEN0. The first output terminal of the second selector is connected to the calculation bar bit line CBLB j The second output terminal of the second selector is connected to the calculation bit line CBL j connect.

5. The built-in self-test circuit of the memory according to claim 4, characterized in that: The first selector includes a first transmission gate and a second transmission gate; wherein the first transmission gate and the second transmission gate are alternately turned on or off; The first input end of the first transmission gate is connected to the first input end of the first selector, the second input end of the first transmission gate is connected to the first control end of the first selector, the third input end of the first transmission gate is connected to the second control end of the first selector, and the output end of the first transmission gate is connected to the first output end of the first selector; the first input end of the second transmission gate is connected to the second input end of the first selector, the second input end of the second transmission gate is connected to the second control end of the first selector, the third input end of the second transmission gate is connected to the first control end of the first selector, and the output end of the second transmission gate is connected to the second output end of the first selector; The second selector includes a third transmission gate and a fourth transmission gate; wherein the third transmission gate and the fourth transmission gate are turned on or off at the same time; The first input end of the third transmission gate is connected to the first input end of the second selector, the second input end of the third transmission gate is connected to the second control end of the second selector, the third input end of the third transmission gate is connected to the first control end of the second selector, and the output end of the third transmission gate is connected to the first output end of the second selector; the first input end of the fourth transmission gate is connected to the second input end of the second selector, the second input end of the fourth transmission gate is connected to the first control end of the second selector, the third input end of the fourth transmission gate is connected to the second control end of the second selector, and the output end of the fourth transmission gate is connected to the second output end of the second selector.

6. The built-in self-test circuit of the memory according to claim 4, characterized in that: The first pseudo differential sense amplifier and the second pseudo differential sense amplifier have the same structure; The first pseudo differential sense amplifier includes a transistor P3, a transistor P4, a transistor P5, an inverter U1, an inverter U2, a transistor N9, a transistor N10 and a transistor N11; The first terminal of the transistor P3 is connected to the input voltage V DD The control terminal of the transistor P3 is used to receive the pre-charge signal The first terminal of the transistor P4 is connected to the input voltage V DD The control terminal of the transistor P4 is used to receive the pre-charge signal The first end of the transistor P5 is connected to the second end of the transistor P3, the second end of the transistor P5 is connected to the second end of the transistor P4, and the control end of the transistor P5 is used to receive the receiving pre-charge signal The input end of the inverter U1 is connected to the second end of the transistor P3, and the output end of the inverter U1 is connected to the second end of the transistor P4; The input end of the inverter U2 is connected to the second end of the transistor P4, and the output end of the inverter U2 is connected to the second end of the transistor P3; The first end of the transistor N9 is connected to the output end of the inverter U2, and the control end of the transistor N9 is connected to the calculation bit line CBL. j connect; The first end of the transistor N10 is connected to the output end of the inverter U1, and the control end of the transistor N10 is connected to the reference voltage V REF connect; The first end of the transistor N11 is connected to the second end of the transistor N9 , the second end of the transistor N11 is connected to the second end of the transistor N10 , and the control end of the transistor N11 is used to receive the amplified reference signal SAE.

7. A memory, characterized in that: include: A built-in self-test circuit as claimed in any one of claims 1 to 6; a memory array comprising a plurality of sub-arrays, wherein each sub-array comprises memory cells arranged in a matrix of a plurality of rows and a plurality of columns, each row comprising a word line connected to the memory cells of the row, and each column comprising a local bit line connected to the memory cells of the column; a row decoder and word line driver module for decoding and driving a word line that controls one or more memory cells; A column decoder and column gate line driver module for decoding and driving the bit lines of the memory cells controlling the selected gate column; A column bit line precharge module, used for precharging the memory cells of each column; A first row of bit line precharge modules, for precharging 8T SRAM cells in the built-in self-test circuit; A differential sensing amplifier module, used for sensing the difference between the read current of the storage unit and a preset reference current and amplifying it into corresponding high level and low level signal outputs; The data register and write driver module are used to control the storage and writing of storage data.

8. The memory according to claim 7, characterized in that: Also included is a reference voltage generation module; The reference voltage generation module includes N 8T SRAM cells, each of which controls a word line CWL according to a reference voltage. REF , providing a reference voltage V to the memory cells selected by the column decoder and the column strobe line driver module and the built-in self-test circuit REF .

9. The memory according to claim 8, characterized in that: Also included is a second row of bit line precharge modules; The second row bit line precharge module is used to precharge the 8T SRAM unit in the reference voltage generation module.

10. The memory according to claim 7, characterized in that: The first row bit line precharge module includes two precharge units, which are respectively used to precharge the 8T SRAM cells of the test vector generation module and the test response compression module in the built-in self-test circuit; Each of the pre-charge units includes a transistor P6, a transistor P7 and a transistor P8; The first terminal of the transistor P6 is connected to the input voltage V DD The second end of the transistor P6 is connected to the calculation bar line CBLB j The control terminal of the transistor P6 is used to receive the pre-charge signal The first terminal of the transistor P7 is connected to the calculation bar line CBLB j The second end of the transistor P7 is connected to the computing bit line CBL j The control terminal of the transistor P7 is used to receive the pre-charge signal The first terminal of the transistor P8 is connected to the input voltage V DD The second end of the transistor P8 is connected to the calculation bit line CBL j The control terminal of the transistor P7 is used to receive the pre-charge signal