Content addressing register, operating method thereof, processor and memory system
By optimizing the design of the content addressing register, including the coordinated operation of timing control, address line control, and processing circuitry, the problem of long write, read, and comparison operation times was solved, achieving area compression and efficient resource utilization.
Patent Information
- Application Number
- CN202410537604.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-29
- Publication Date
- 2025-10-31
AI Technical Summary
The existing content addressing register has long writing, reading and comparison operations, and its area is large, making it difficult to optimize.
Design a content-addressable register, including multiple word lines, bit lines, and memory cells. Optimize write, read, and comparison operations through the coordinated work of timing control circuitry, address line control circuitry, and processing and output circuitry, while adopting existing design rules and reducing area.
The write, read, and comparison operation time of the content addressing register has been optimized, reducing area requirements and improving the utilization rate of back-end area and the efficiency of winding resources.
Smart Images

Figure CN120877794A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of semiconductor technology, and in particular to a content-addressable register and its operation method, a processor, and a memory system. Background Technology
[0002] Content Addressable Memory (CAM) is a content-addressable memory. When using content addressing, the CAM automatically and simultaneously compares an input data item with all data items stored in the CAM to determine if the input data item matches any of the stored data items. If a match is found, a match success signal and the corresponding match information are output; otherwise, a match failure signal is output. The content addressing time of the CAM still needs optimization. Summary of the Invention
[0003] This application provides a content-addressable register and its operation method, as well as a processor and memory system.
[0004] In a first aspect, embodiments of this application provide a content-addressable register, which includes: multiple word lines; a bit line bus; multiple memory cells coupled to each word line and the bit line bus; a timing control circuit configured to: determine an operating mode and generate control signals for the corresponding operating mode according to a received bus command; the operating modes include a read mode, a write mode, and a comparison mode; an address line control circuit coupled to the timing control circuit and the word lines and bit line bus, configured to: activate the corresponding word lines and bit line bus based on the control signals; and a processing and output circuit coupled to the bit line bus, configured to: read data stored in the memory cells from the bit line bus in read mode; write data to be written to the memory cells from the bit line bus in write mode; and compare the data to be compared input from the bit line bus with the data already stored in the memory cells in comparison mode, and output the comparison result.
[0005] In some embodiments, the timing control circuit includes: a timing generation circuit configured to: determine an operating mode according to a received bus command; and generate a control signal and a reset signal for the corresponding mode according to the determined operating mode; an address counting circuit coupled to the timing generation circuit configured to: receive a clock signal and a reset signal; and output a row address signal for the next row of the currently processed row based on the reset signal and the edge change of the clock signal; and a word line decoding circuit coupled to the address counting circuit configured to: receive the row address signal output by the address counter; decode the row address in the row address signal; and output a decoded signal.
[0006] In some embodiments, the address line control circuit includes: a word line control circuit coupled to a word line decoding circuit, configured to: receive a decoding signal and generate a word line drive signal based on the decoding signal to activate the corresponding word line; and a data conversion circuit configured to: receive a control signal for a corresponding mode and, based on the control signal for the corresponding mode, convert the read data into data bits in read mode, convert the data to be written into data bits and perform differential processing in write mode, and perform differential processing on the data to be compared in comparison mode.
[0007] In some embodiments, the processing and output circuitry includes: a processing circuit coupled to a bitline bus and a storage unit, configured to: in comparison mode, compare first data to be compared input from the bitline bus with second data already stored in the storage unit, and output a data matching signal based on the comparison result; if the first data and the second data are the same, the output data matching signal is the third data already stored in the storage unit; if the first data and the second data are different, the output data matching signal is the fourth data, where each bit of the fourth data is in a preset logic state; and a decision circuit coupled to the processing circuitry, configured to: receive the data matching signal, and output a comparison result based on the data matching signal; if the data matching signal is the third data, the output comparison result is a first logic state, which indicates a successful comparison; if the data matching signal is the fourth data, the output comparison result is a second logic state, which indicates a failed comparison.
[0008] In some embodiments, the processing circuit is further configured to: in write mode, write the data to be written after being processed by the data conversion circuit to the memory cells coupled to the nth to n+3th word lines respectively within four clock cycles; the data bits of the data to be written are m bits, and the data bits of the data to be written after being processed by the data conversion circuit are 2m bits; the 1st to mth bits and the m+1th to 2mth bits of the second data are the data stored in the n+2th and n+3th words respectively; the mth and m+1th bits of the third data are the data stored in the nth and n+1th words respectively; m and n are both natural numbers, and m is a multiple of 8.
[0009] In some embodiments, the processing circuit includes: a first processing circuit coupled to a bit line bus and a memory cell, configured to: compare first data with second data in a comparison mode; output a matching signal based on the comparison result; if the first data and the second data are the same, the output matching signal is a first logic state; if the first data and the second data are different, the output matching signal is a second logic state; and a second processing circuit coupled to the first processing circuit, configured to: receive the matching signal; output a data matching signal based on the matching signal; if the matching signal is in the first logic state, output a data matching signal as third data; if the matching signal is in the second logic state, output a data matching signal as fourth data, wherein each bit of the fourth data is in the second logic state.
[0010] In some embodiments, the first processing circuit includes: a plurality of memory cell XOR circuits, all coupled to a bit line bus; each memory cell XOR circuit is coupled to a memory cell and configured to: perform XOR processing on data input from the bit line bus and data stored in the memory cell, and output the XOR result; a first logic operation circuit, coupled to the plurality of memory cell XOR circuits, and configured to: receive the XOR results of the outputs of the memory cell XOR circuits corresponding to the memory cells coupled to the (n+2)th to (n+3)th word lines, perform a first logic operation on each XOR result, and generate a matching signal.
[0011] In some embodiments, the second processing circuit includes: a plurality of memory cell inverting circuits; each memory cell inverting circuit is coupled to a memory cell; configured to: invert data stored in the memory cell and output an inverted result; and a second logic operation circuit coupled to the plurality of memory cell inverting circuits, configured to: receive the inverted results of the outputs of the memory cell inverting circuits corresponding to the memory cells coupled to the nth to n+1th word lines, perform a second logic operation on each inverted result, and generate a data matching signal.
[0012] In some embodiments, the third data is the storage address data corresponding to the second data.
[0013] In some embodiments, the bit line bus includes a first bit line bus and a first complementary bit line bus; the memory cell includes a first transistor, a second transistor, a first inverter, and a second inverter; wherein, the control terminal of the first transistor is connected to the word line, the first controlled terminal of the first transistor is connected to the first bit line bus, and the second controlled terminal of the first transistor is connected to both the input terminal of the first inverter and the output terminal of the second inverter; the control terminal of the second transistor is connected to the word line, the first controlled terminal of the second transistor is connected to the first complementary bit line bus, and the second controlled terminal of the second transistor is connected to both the output terminal of the first inverter and the input terminal of the second inverter.
[0014] Secondly, embodiments of this application provide a processor, the processor including: one or more content addressing registers as provided in the first aspect.
[0015] In some embodiments, the processor includes a microprocessor unit (MCU).
[0016] Thirdly, embodiments of this application provide a memory system comprising: at least one memory device and a memory controller coupled to and controlling the memory device; wherein the memory device comprises: a memory cell array and peripheral circuitry coupled to and controlling the memory cell array; the peripheral circuitry and / or the memory controller comprises one or more processors as described in claim 11 or 12.
[0017] Fourthly, embodiments of this application provide another content-addressable register, which includes: multiple word lines extending along a first direction; a bit line bus extending along a second direction; the first direction being perpendicular to the second direction; multiple repositories coupled to each word line and bit line bus; the multiple repositories being arranged along the first direction; each repositories including multiple memory cells arranged along the second direction; and a timing control circuit located between two adjacent repositories, configured to: determine an operating mode and generate control signals corresponding to the operating mode based on received bus commands; the operating modes include read mode and write mode. The system includes input and comparison modes; multiple address line control circuits, all coupled to timing control circuits; each address line control circuit is located at the edge of a storage unit and configured to: activate the corresponding word line and bit line bus based on control signals; processing and output circuitry, coupled to the bit line bus, is configured to: read data stored in the storage unit from the bit line bus in read mode; write data to be written to the storage unit from the bit line bus in write mode; and compare the data to be compared input from the bit line bus with the data already stored in the storage unit in comparison mode, and output the comparison result.
[0018] In some embodiments, the plurality of repositories includes a first repository to a second repository arranged along a first direction, where p is a positive integer; the bit line bus includes 2p sections, each section being connected to a repository.
[0019] In some embodiments, the timing control circuit is located between the p-th repository and the p+1-th repository.
[0020] In some embodiments, the storage repository includes 2q storage cells arranged along a second direction, where q is a positive integer; the processing and output circuitry includes: a processing circuit located on one side of the storage cells and coupled to the bit line bus and the storage cells, configured to: compare first data to be compared input from the bit line bus with second data already stored in the storage cells in a comparison mode, and output a data matching signal based on the comparison result; if the first data and the second data are the same, the output data matching signal is the third data already stored in the storage cells; if the first data and the second data are different, the output data matching signal is the fourth data, where each bit of the fourth data is in a preset logic state; and a decision circuit located between the qth storage repository and the (q+1)th storage repository and coupled to the processing circuitry, configured to: receive the data matching signal and output a comparison result based on the data matching signal; if the data matching signal is the third data, the output comparison result is a first logic state, which indicates a successful comparison; if the data matching signal is the fourth data, the output comparison result is a second logic state, which indicates a failed comparison.
[0021] Fifthly, embodiments of this application provide an operation method for a content-addressable register. The content-addressable register includes: multiple word lines, a bit line bus, multiple memory cells coupled to each word line and bit line bus, a timing control circuit, and address line control circuits for the timing control circuit, word lines, and bit line buses, as well as processing and output circuits. The operation method includes: the timing control circuit determining the operating mode according to a received bus command and generating control signals for the corresponding operating mode; the operating modes include a read mode, a write mode, and a comparison mode; the address line control circuit activating the corresponding word lines and bit line buses based on the control signals; in the read mode, the processing and output circuit reading data stored in the memory cells from the bit line bus; in the write mode, writing data to be written to the memory cells from the bit line bus; and in the comparison mode, comparing the data to be compared input from the bit line bus with the data already stored in the memory cells and outputting the comparison result.
[0022] In some embodiments, the timing control circuit includes: a timing generation circuit, an address counting circuit, and a word line decoding circuit; the address line control circuit activates the corresponding word lines and bit lines based on control signals, including: the timing generation circuit determines the operating mode according to a received bus command; and generates control signals and reset signals for the corresponding mode according to the determined operating mode; the address counting circuit receives a clock signal and a reset signal, and outputs the row address signal of the next row of the currently processed row based on the reset signal and the edge change of the clock signal; the word line decoding circuit receives the row address signal output by the address counter, decodes the row address in the row address signal, and outputs a decoded signal.
[0023] In some embodiments, the address line control circuit includes: a word line control circuit and a data conversion circuit; the address line control circuit activates the corresponding word line and bit line bus based on a control signal, including: the word line control circuit receives a decoding signal and generates a word line drive signal according to the decoding signal to activate the corresponding word line; the data conversion circuit receives a control signal for a corresponding mode and, according to the control signal for the corresponding mode, performs data bit conversion on the read data in read mode, performs data bit conversion and differential processing on the data to be written in write mode, and performs differential processing on the data to be compared in comparison mode.
[0024] In some embodiments, the processing and output circuit includes: a processing circuit and a decision circuit; in comparison mode, comparing the data to be compared input from the bit line bus with the data already stored in the storage unit and outputting the comparison result includes: the processing circuit comparing the first data to be compared input from the bit line bus with the second data already stored in the storage unit in comparison mode, and outputting a data matching signal according to the comparison result; if the first data and the second data are the same, the output data matching signal is the third data already stored in the storage unit; if the first data and the second data are different, the output data matching signal is the fourth data, where each bit of the fourth data is in a preset logic state; the decision circuit receives the data matching signal and outputs the comparison result according to the data matching signal; if the data matching signal is the third data, the output comparison result is the first logic state, which indicates a successful comparison; if the data matching signal is the fourth data, the output comparison result is the second logic state, which indicates a failed comparison.
[0025] In some embodiments, in write mode, writing data to be written from the bit line bus to the memory cell includes: in write mode, the processing circuit writes the data to be written after being processed by the data conversion circuit to the memory cells coupled to the nth to n+3th word lines respectively in four clock cycles; the data bits of the data to be written are m bits, and the data bits of the data to be written after being processed by the data conversion circuit are 2m bits; the 1st to mth bits and the m+1th to 2mth bits of the second data are the data stored in the n+2th and n+3th words respectively; the mth and m+1th bits of the third data are the data stored in the nth and n+1th words respectively; m and n are both natural numbers, and m is a multiple of 8.
[0026] In some embodiments, the processing circuit includes: a first processing circuit and a second processing circuit; in comparison mode, comparing first data to be compared input from the bit line bus with second data stored in the storage unit, and outputting a data matching signal according to the comparison result, including: the first processing circuit comparing the first data with the second data in comparison mode; outputting a matching signal according to the comparison result; the output matching signal being a first logic state if the first data and the second data are the same; the output matching signal being a second logic state if the first data and the second data are different; the second processing circuit receiving the matching signal and outputting a data matching signal according to the matching signal; the output data matching signal being a third data if the matching signal is in the first logic state, and the output data matching signal being a fourth data if the matching signal is in the second logic state, wherein each bit of the fourth data is in the second logic state.
[0027] In some embodiments, the first processing circuit includes: a plurality of memory cell XOR circuits and a first logic operation circuit; in comparison mode, the first processing circuit compares first data with second data; and outputs a matching signal according to the comparison result, including: each memory cell XOR circuit performing XOR processing on the data input from the bit line bus and the data stored in the memory cell, and outputting the XOR result; the first logic operation circuit receiving the XOR results of the outputs of the memory cell XOR circuits corresponding to the memory cells coupled to the (n+2)th to (n+3)th word lines, performing a first logic operation on each XOR result, and generating a matching signal.
[0028] In some embodiments, the second processing circuit includes: a plurality of memory cell inverting circuits and a second logic operation circuit; the second processing circuit outputs a data matching signal according to the matching signal, including: each memory cell inverting circuit inverts the data stored in the memory cell and outputs an inverted result; the second logic operation circuit receives the inverted results of the outputs of the memory cell inverting circuits corresponding to the memory cells coupled to the nth to n+1th word lines, performs a second logic operation on each inverted result, and generates a data matching signal.
[0029] In this embodiment, the time for writing, reading, and comparing operations of the content addressing register is optimized. Furthermore, existing design rules (such as the design rules for SRAM memory cells and page caches) can be adopted to compress the area of the content addressing register, which can provide a more reasonable planar layout plan for the digital back-end. The planar layout plan is not difficult to implement, has low manpower and time costs, and is conducive to improving the back-end area utilization and making full use of winding resources. Attached Figure Description
[0030] Figure 1 A schematic diagram of the timing control circuit of a content addressing register provided in an embodiment of this application;
[0031] Figure 2 for Figure 1 A schematic diagram of the address counting circuit of the timing control circuit;
[0032] Figure 3 A schematic diagram of the address line control circuit of a content addressing register provided in an embodiment of this application;
[0033] Figure 4 A schematic diagram of the processing circuit for a content addressing register provided in an embodiment of this application;
[0034] Figure 5 A schematic diagram of the decision circuit of the content addressing register provided in an embodiment of this application;
[0035] Figure 6A A schematic diagram of the XOR circuit and memory cell of the content addressing register provided in an embodiment of this application;
[0036] Figure 6B A schematic diagram of the inverting circuit and the memory cell of a content addressing register provided in an embodiment of this application;
[0037] Figure 7 A schematic diagram of the content addressing register plane layout provided for an embodiment of this application;
[0038] Figure 8 A schematic diagram of a processor with a content addressing register provided in an embodiment of this application;
[0039] Figure 9 This is a schematic diagram of a memory system with a content-addressable register provided in an embodiment of this application. Detailed Implementation
[0040] Exemplary embodiments of this application will now be described in more detail with reference to the accompanying drawings. While exemplary embodiments of this application are shown in the drawings, it should be understood that this application can be implemented in various forms and should not be limited to the specific embodiments set forth herein. Rather, these embodiments are provided to enable a more thorough understanding of this application and to fully convey the scope of this application to those skilled in the art.
[0041] In the following description, numerous specific details are set forth in order to provide a more thorough understanding of this application. However, it will be apparent to those skilled in the art that this application can be practiced without one or more of these details. In other instances, to avoid confusion with this application, some technical features well-known in the art have not been described; that is, not all features of actual embodiments are described herein, nor are well-known functions and structures described in detail.
[0042] In the accompanying drawings, for clarity, the dimensions of layers, areas, and elements, as well as their relative dimensions, may be exaggerated. The same reference numerals denote the same elements throughout.
[0043] It should be understood that when an element or layer is referred to as "on," "adjacent to," "connected to," or "coupled to" other elements or layers, it may be directly on, adjacent to, connected to, or coupled to other elements or layers, or there may be intervening elements or layers. Conversely, when an element is referred to as "directly on," "directly adjacent to," "directly connected to," or "directly coupled to" other elements or layers, there are no intervening elements or layers. It should be understood that although the terms first, second, third, etc., may be used to describe various elements, components, areas, layers, and / or portions, these elements, components, areas, layers, and / or portions should not be limited by these terms. These terms are only used to distinguish one element, component, area, layer, or portion from another element, component, area, layer, or portion. Therefore, without departing from the teachings of this application, the first element, component, area, layer, or portion discussed below may be referred to as a second element, component, area, layer, or portion. And the discussion of a second element, component, area, layer, or portion does not imply that the first element, component, area, layer, or portion necessarily exists in this application.
[0044] The terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit the scope of this application. When used herein, the singular forms “a,” “an,” and “the” are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the terms “comprising” and / or “including,” when used in this specification, identify the presence of the stated features, integers, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and / or groups. When used herein, the term “and / or” includes any and all combinations of the associated listed items.
[0045] In order to gain a more detailed understanding of the features and technical content of the embodiments of this application, the implementation of the embodiments of this application will be described in detail below with reference to the accompanying drawings. The accompanying drawings are for reference and illustration only and are not intended to limit the embodiments of this application.
[0046] Content-addressable registers are content-addressable memories, similar to random access memory (RAM), capable of reading and writing data based on addresses; they also have the function of retrieving input data. When a content-addressable register is used as RAM, data can be continuously written and read from a starting address. When using content addressing, it can be compared with already stored data. If the data already exists in the content-addressable register, a match success signal and the corresponding new data are output; otherwise, if the data is not stored in the content-addressable register, a match failure signal is output. However, the time required for writing, reading, and comparison operations of content-addressable registers still needs optimization.
[0047] In view of this, embodiments of this application propose a content-addressable register memory device and its operation method, processor, and memory system.
[0048] In a first aspect, embodiments of this application provide a content-addressable register, which includes: multiple word lines; a bit line bus; multiple memory cells coupled to each word line and the bit line bus; a timing control circuit configured to: determine an operating mode and generate control signals for the corresponding operating mode according to a received bus command; the operating modes include a read mode, a write mode, and a comparison mode; an address line control circuit coupled to the timing control circuit and the word lines and bit line bus, configured to: activate the corresponding word lines and bit line bus based on the control signals; and a processing and output circuit coupled to the bit line bus, configured to: read data stored in the memory cells from the bit line bus in read mode; write data to be written to the memory cells from the bit line bus in write mode; and compare the data to be compared input from the bit line bus with the data already stored in the memory cells in comparison mode, and output the comparison result.
[0049] Here and below, word lines (wl, or row) are used; word line addresses can also be called row addresses. Bit lines (BL, or column) are used; bit line addresses can also be called column addresses.
[0050] refer to Figure 1 and Figure 2 In some embodiments, the timing control circuit includes: a timing generation circuit configured to: determine an operating mode according to a received bus command; and generate a control signal and a reset signal for the corresponding mode according to the determined operating mode; an address counting circuit coupled to the timing generation circuit configured to: receive a clock signal and a reset signal, and output a row address signal for the next row of the currently processed row based on the reset signal and the edge change of the clock signal; and a word line decoding circuit coupled to the address counting circuit configured to: receive the row address signal output by the address counter, decode the row address in the row address signal, and output a decoded signal.
[0051] The timing control circuit is mainly used to control the writing, reading, or comparison operations of data stored in the content addressing register by the bus signal mbus. The bus signal mbus may include the bus clock signal mbus_clk, the bus data address signal mbus_data_is_addr, the bus read enable signal mbus_rd_en, the bus write enable signal mbus_rd_en, and the bus write data signal mbus_wt_data<7:0>.
[0052] The timing generation circuit can generate internal timing signals such as counter reset / initial state, counting clock, read / write word line enable, and precharge enable signals according to the MBus (Meter Bus) operation protocol.
[0053] refer to Figure 1 In some embodiments, the timing generation circuit includes logic gates (e.g., NOT gates, NAND gates, NOR gates), data flip-flops (dff), and multiplexers (MUX). Exemplarily, a data flip-flop (dff) receives a bus clock signal (mbus_clk) at its clock input, a bus write enable signal (mbus_rd_en) at its data input, and outputs a read mode signal (cfg_read). Exemplarily, the multiplexer (MUX) receives a write mode clock signal (clk_cfg_wt) at its first input, a read mode clock signal (clk_cfg_rd) at its second input, a bus write enable signal (mbus_rd_en) at its control input, and outputs either the write mode clock signal (clk_cfg_wt) or the read mode clock signal (clk_cfg_rd).
[0054] For example, the timing generation circuit is configured to determine the operating mode according to a bus command, including determining a read mode, a write mode, or a comparison mode according to the bus signal mbus.
[0055] For example, the timing generation circuit is configured to generate control signals for a corresponding mode based on a determined operating mode, including: generating a write mode signal cfg_wrt / read mode signal cfg_read based on the bus signal mbus; the write mode signal cfg_wrt / read mode signal cfg_read is transmitted to the memory cell of the content addressing register to control the write mode / read mode of the memory cell. For example, the read mode signal cfg_read is generated based on the bus clock signal mbus_clk and the bus read enable signal mbus_rd_en; the write mode signal cfg_wrt is generated based on the bus clock signal mbus_clk, the bus data address signal mbus_data_is_addr, and the bus write enable signal mbus_rd_en; the write mode signal cfg_wrt / read mode signal cfg_read is transmitted to each bank to control the write mode / read mode of the bank.
[0056] For example, the timing generation circuit is configured to generate a reset signal of the corresponding mode according to a determined operating mode, including: generating a reset signal set<7:0> / rst_n<7:0> based on the bus clock signal mbus_clk, the bus data as address signal mbus_data_is_addr, the bus write enable signal mbus_rd_en, and the bus write data signal mbus_wt_data<7:0>.
[0057] For example, the timing generation circuit is configured to generate a reset signal for a corresponding mode based on a determined operating mode, and further includes: generating a read mode clock signal clk_cfg_rd based on the bus clock signal mbus_clk, the bus read enable signal mbus_rd_en, and the bus write enable signal mbus_rd_en; and generating a write mode clock signal clk_cfg_wt based on the bus clock signal mbus_clk, the bus data as address signal mbus_data_is_addr, the bus read enable signal mbus_rd_en, and the bus write enable signal mbus_rd_en. The write mode clock signal clk_cfg_wt / read mode clock signal clk_cfg_rd is used to generate a clock signal for incrementing the row address by one (+1) and the mode clock signal clk_cfg.
[0058] The address counting circuit can have an initial address enable function, triggering the address increment (+1) operation on the positive edge (rising edge) of the clock, and its output address is used for word line decoding.
[0059] refer to Figure 1 In some embodiments, the address counting circuit includes a row address increment counter.
[0060] refer to Figure 2 In some embodiments, the row address increment counter includes logic gates (e.g., NAND gates, NOT gates, XOR gates) and data flip-flops (dff). Exemplarily, the clock input of a data flip-flop (dff) receives a mode clock signal clk_cfg, the first data input receives a first feedback signal, and the second data input receives a reset signal rst_n. <0> The third data terminal receives the reset signal set. <0> The output terminal outputs the row address signal cfg_addr<7:0> for the next row and the odd / even signal cfg_addr_d. <0> In this configuration, the first feedback signal is the inverted output signal of a data flip-flop (dff). For example, the clock input of another data flip-flop (dff) receives the mode clock signal clk_cfg, the first data input receives the second feedback signal, and the second data input receives the reset signal rst_n. <1> The third data terminal receives the reset signal set. <1> The output terminal outputs the row address signal cfg_addr<7:0> for the next row and the odd / even signal cfg_addr_d. <1> The second feedback signal is the signal obtained by XORing the output signal of one data trigger dff with the output signal of another data trigger dff.
[0061] For example, the address counting circuit determines the read / write starting address based on the bus data address signal mbus_data_is_addr, generates a reset signal set<7:0> / rst_n<7:0> to reset the data trigger, and then generates a row address +1 trigger by the mode clock signal clk_cfg. The mode clock signal clk_cfg operates along the trigger row address +1, generating the next row address signal cfg_addr<7:0> and the odd / even number determination signal cfg_addr_d <1> The row address signal cfg_addr<7:0> for the next row is used for decoding the next row.
[0062] For example, the address counting circuit is configured to output the row address signal of the next row of the currently processed row according to a clock signal and a reset signal, including outputting the row address signal cfg_addr<7:0> and the odd / even number determination signal cfg_addr_d<1:0> according to the write mode clock signal clk_cfg_wt / read mode clock signal clk_cfg_rd) and the reset signal set<7:0> / rst_n<7:0>, and the odd / even number determination signal cfg_addr_d<1:0> is used to determine the odd or even number of bytes.
[0063] The word line decoding circuit generates a row address decoding signal from the row address signal, which is used to select one of the word lines.
[0064] refer to Figure 1 In some embodiments, the word line decoding circuit includes a row address pre-decoding circuit and a row address decoding circuit. The row address pre-decoding circuit receives input data from the address counting circuit and performs address remapping. The row address decoding circuit parses the corresponding word line to be enabled based on the remapped address.
[0065] For example, the word line decoding circuit includes a row address pre-decoding circuit coupled to a timing generation circuit and a row address decoding circuit coupled to the row address pre-decoding circuit. The row address pre-decoding circuit is configured to generate a row address pre-decoding signal based on the row address signal output by the address counter, and the row address decoding circuit is configured to generate a row address decoding signal based on the row address pre-decoding signal. For example, the row address pre-decoding circuit generates the row address pre-decoding signal cfg_inner_addr<7:0> based on the row address signal cfg_addr<7:0> of the next row output by the address counting circuit, and the row address decoding circuit generates the row address decoding signal wl<47:0> based on the row address pre-decoding signal cfg_inner_addr<7:0>. The row address decoding signal wl<47:0> can be used to select the first word line wl. <0> up to the forty-eighth line wl <47> A line in the text.
[0066] refer to Figure 3 In some embodiments, the address line control circuit includes: a word line control circuit coupled to a word line decoding circuit, configured to: receive a decoding signal and generate a word line drive signal based on the decoding signal to activate the corresponding word line; and a data conversion circuit configured to: receive a control signal for a corresponding mode and, based on the control signal for the corresponding mode, convert the read data into data bits in read mode, convert the data to be written into data bits and perform differential processing in write mode, and perform differential processing on the data to be compared in comparison mode.
[0067] The address line control circuit includes a global word line generation circuit and a bit line bus control circuit, generating row address decoding signals and bit line bus decoding signals for write, read, or comparison operations. In some embodiments, the address line control circuit is configured to generate a global word line enable pulse via a clock signal. The bit line bus can write / read data from memory cells, and can also compare the data to be compared with the stored content by inputting data to be compared via the bit lines.
[0068] refer to Figure 3 In some embodiments, the word line control circuitry includes logic gates (e.g., NOT gates, NAND gates, NOR gates) and a delay circuit RC delay. Exemplarily, the comparison enable internal signal match_en_inner is generated based on the comparison enable signal match_en, the mode clock signal clk_cfg, the write mode signal cfg_wrt, and the read mode signal cfg_read.
[0069] For example, the word line control circuit is configured to generate an internal match enable signal match_en_inner based on the row clock signal clk_wl, the match enable signal match_en, the mode clock signal clk_cfg, the write mode signal cfg_wrt, and the read mode signal cfg_read; and to generate an internal match enable signal match_en_inner based on the row clock signal clk_wl, the mode clock signal clk_cfg, the write mode signal cfg_wrt, and the odd / even number determination signal cfg_addr_d. <0> / Determine the inverted signal of odd-even signals cfg_addr_d_n <0> Generate write enable logic high signal wr_en_h / write enable logic low signal wr_en_l; based on row clock signal clk_wl, mode clock signal clk_cfg, read mode signal cfg_read, and odd / even number determination signal cfg_addr_d <0> / Determine the inverted signal of odd-even signals cfg_addr_d_n <0> Generate the read enable logic high signal rd_en_h / read enable logic low signal rd_en_l.
[0070] refer to Figure 3 In some embodiments, the data conversion circuit includes logic gates (e.g., NOT gates) and a tri-state buffer (Tribuffer). When the control terminal of the tri-state buffer is enabled, the device transmits signals normally; when the control terminal is disabled, the output is in a high-impedance state, equivalent to the circuit connected to the tri-state buffer being disconnected. For example, in comparison mode, the input terminal of a tri-state buffer (Tribuffer) receives the externally input data signal pc_inst that needs to be compared. <n:0>The control terminal receives the comparison enable internal signal `match_en_inner`, and the output terminal outputs the data signal `data`. <n:0>The other tri-state buffer, Tribuffer, receives the externally input data signal pc_inst that needs to be compared. <n:0>The inverted signal is received by the control terminal, which receives the comparison enable internal signal `match_en_inner`, and the output terminal outputs the inverted signal `data_n`. <n:0>.
[0071] For example, the data conversion circuit is configured to, in write mode, generate a stored data signal data<15:8> based on the data signal to be written cfg_data_wt<7:0> and the write enable logic high signal wr_en_h; generate an inverted signal data_n<15:8> based on the inverted signal of the data signal to be written cfg_data_wt<7:0> and the write enable logic high signal wr_en_h; generate a stored data signal data<7:0> based on the data signal to be written cfg_data_wt<7:0> and the write enable logic low signal wr_en_l; and generate an inverted signal data_n<7:0> based on the inverted signal of the data signal to be written cfg_data_wt<7:0> and the write enable logic low signal wr_en_l. The stored data signals data<7:0> and data<15:8> are used to be written to the memory cell.
[0072] For example, the data conversion circuit is configured to generate a read data signal cfg_data_rd<7:0> based on the stored data signal data<7:0> and the read enable logic low signal rd_en_l in read mode, and based on the stored data signal data<15:8> and the read enable logic high signal rd_en_h.
[0073] For example, the data conversion circuit is configured to, in comparison mode, compare the required data signal pc_inst based on the external input. <n:0>The comparison enable internal signal `match_en_inner` generates the data signal `data`. <n:0>The data signal pc_inst is compared according to the external input requirements. <n:0>The inverted signal and the comparison enable internal signal match_en_inner generate the inverted signal data_n of the data signal. <n:0>Among them, the data signal is called "data". <n:0>Used for comparison with already stored data (e.g., stored data signals data<7:0> and data<15:8>). If the data already exists in the content address register, a match success signal and the corresponding new data are output; otherwise, if the data is not stored in the content address register, a match failure signal is output. (See below.) Figure 4 and Figure 5 The relevant part will be the data signal. <n:0>A detailed description of the comparison with already stored data is provided.
[0074] refer to Figure 4 and Figure 5 In some embodiments, the processing and output circuitry includes: a processing circuit coupled to a bitline bus and a storage unit, configured to: compare first data input from the bitline bus to be compared with second data already stored in the storage unit in a comparison mode, and output a data matching signal based on the comparison result; if the first data and the second data are the same, the output data matching signal is the third data already stored in the storage unit; if the first data and the second data are different, the output data matching signal is the fourth data, where each bit of the fourth data is in a preset logic state; and a decision circuit coupled to the processing circuitry, configured to: receive the data matching signal and output a comparison result based on the data matching signal; if the data matching signal is the third data, the output comparison result is a first logic state, which indicates a successful comparison; if the data matching signal is the fourth data, the output comparison result is a second logic state, which indicates a failed comparison.
[0075] The first data can be represented as a data signal and its inverse signal, data. <n:0>and data_n <n:0>In the following explanation, the first data can also be simply referred to as the data signal to be compared. <n:0>The second set of data can be represented as the stored comparison data signals pc_old<7:0>, pc_old<14:8>, and pc_old. <15> In the following description, the second data can also be referred to simply as the old data signals pc_old<7:0> and pc_old<14:8>, and the identifier signal pc_old. <15> (Or flag signal). The third data can be represented as the new data signals pc_new<7:0> and pc_new<14:8> corresponding to the old data signals pc_old<7:0> and pc_old<14:8>. In the following description, the third data can also be simply referred to as the new data signals pc_new<7:0> and pc_new<14:8>. The fourth data can be represented as whether to output the new data signals pc_new<7:0> and pc_new<14:8> based on whether the match signal is enabled or not. In the following description, the fourth data can also be simply referred to as the data match signals dou_new<7:0> and dou_new<14:8>.
[0076] It should be noted that, Figure 4 It also shows a memory cell coupled to a memory cell XOR circuit, a memory cell XOR circuit, and a memory cell coupled to a memory cell XOR circuit, hereinafter referred to as the XOR cell circuit (cam cell XOR). Figure 6A The specific structure of the XOR cell circuit (cam cell XOR) is shown. Figure 4 Also shown is a memory cell coupled to a memory cell inverting circuit, a memory cell inverting circuit, and a memory cell coupled to the memory cell inverting circuit, hereinafter referred to as the inverting cell circuit cam cellinv. Figure 6B The specific structure of the inverting unit circuit cam cell inv is shown.
[0077] refer to Figure 4 In some embodiments, the processing circuit includes a first processing circuit composed of a storage cell XOR circuit and logic gate circuits (e.g., NOR gate, NAND gate), and a second processing circuit composed of a storage cell inverting circuit and logic gate circuits (e.g., AND gate).
[0078] In some embodiments, the processing circuit is configured to: in write mode, write the data signal to be written to the memory cell (including the memory cell coupled to the memory cell XOR circuit and / or the memory cell coupled to the memory cell inverting circuit) via the bit line bus; or in read mode, read the data signal stored in the memory cell (including the memory cell coupled to the memory cell XOR circuit and / or the memory cell coupled to the memory cell inverting circuit) from the corresponding memory cell via the bit line bus; or in comparison mode, transmit the data signal to be compared to the memory cell XOR circuit via the bit line bus and match it with the second data stored in the memory cell (including the memory cell coupled to the memory cell XOR circuit), and output a data matching signal. The data matching signal is used to determine whether to output the third data stored in the memory cell (including the memory cell coupled to the memory cell inverting circuit). If the match is successful, the data matching signal output by the second processing circuit is in the first logic state, that is, the new data corresponding to the data signal to be compared (which can be understood as the data stored in the memory cell of the second processing circuit). If the match fails, the data matching signal output by the second processing circuit is in the second logic state, which is indicated as a match failure signal.
[0079] refer to Figure 5 In some embodiments, the decision circuit includes combinational logic composed of logic gates (e.g., OR gates, NOR gates, NAND gates).
[0080] In some embodiments, the decision circuit is configured to summarize and output all data matching signals output by the processing circuit, and output the comparison result. The comparison result is a first logic state, indicating that the comparison was successful, and the comparison result is new data corresponding to the data signal to be compared (which can be understood as the data stored in the storage unit of the second processing circuit); the comparison result is a second logic state, indicating that the comparison failed.
[0081] In some embodiments, the decision circuit receives the data matching signal dout_new <n:0>The data is transmitted to the output of the decision circuit in multiple clock cycles, and then aggregated into the comparison result pc_inst_new. For example, the data matching signals dou_new<7:0> and dou_new<14:8> can be transmitted to the output of the decision circuit in two clock cycles, and then aggregated into the comparison result pc_inst_new. In some embodiments, the number of data bits transmitted in each clock cycle can be the same; for example, 8 bits of data can be transmitted per clock cycle. It should be noted that one clock cycle transmits 8 bits of data as the data matching signal dou_new<7:0>, and the other clock cycle transmits 8 bits of data including 7 bits of the data matching signal dou_new<14:8> and one bit of default data dou_new. <15> One of the default data is dout_new <15> It can be left blank, discarded, or set as the default value.
[0082] In some embodiments, Figure 5 The OR gate shown has multiple inputs. For example, an OR gate with 8 inputs can receive each bit of the 8-bit data matching signal dou_new<7:0>.
[0083] refer to Figure 4 In some embodiments, the processing circuit is further configured to: in write mode, write the data to be written after being processed by the data conversion circuit to the memory cells coupled to the nth to n+3th word lines respectively within four clock cycles; the data bits of the data to be written are m bits, and the data bits of the data to be written after being processed by the data conversion circuit are 2m bits; the 1st to mth bits and the m+1th to 2mth bits of the second data are the data stored in the n+2th and n+3th words respectively; the mth and m+1th bits of the third data are the data stored in the nth and n+1th words respectively; m and n are both natural numbers, and m is a multiple of 8.
[0084] The data to be written has m bits, which can be represented as the data signal cfg_data_wt<7:0>. After processing by the data conversion circuit, the data to be written has 2m bits, which can be represented as the stored data signals data<7:0> and data<15:8>. The third data is the new data corresponding to the second data. For example, the second data can be represented as the stored comparison data signals pc_old<7:0>, pc_old<14:8> and the identification signal pc_old. <15> The third data consists of the stored new data signals pc_new<7:0>, pc_new<14:8> corresponding to the second data, and a default data pc_new. <15> ( Figure 4 (Not shown). Here, a default data pc_new <15> To match the identification signal pc_old <15> The corresponding data can be left blank, discarded, or set to a default value.
[0085] The nth to n+3rd letter lines can be represented as the first letter line wl. <0> The second character line wl <1> The third line wl <2> and the fourth line wl <3> The first character line wl <0> Eight memory cells are coupled to store new data signals pc_new<7:0>, and the second word line wl <1> Eight memory cells are coupled together to store a 7-bit new data signal pc_new<14:8> and a 1-bit default data pc_new. <15> ( Figure 4 (Not shown), third word line wl <2> Eight memory cells are coupled to store new data signals pc_old<7:0>, and the fourth word line wl <3> Eight memory cells are coupled together to store the new data signal pc_old<14:8> and the identifier signal pc_old. <15> Among them, the identifier signal pc_old <15> Used to identify the first letter wl <0> The second character line wl <1> The third line wl <2> and the fourth line wl <3> Whether the coupled storage unit has been written with data.
[0086] The processing circuit is configured as follows: In write mode, a data signal to be written, cfg_data_wt<7:0>, is the second data. Based on the data signal to be written, cfg_data_wt<7:0>, stored data signals data<7:0> and data<15:8> are generated and written to the third word line wl in two clock cycles. <2> The 8 coupled memory cells and the fourth word line WL <4> Of the eight coupled memory cells, the old data signals pc_old<7:0>, pc_old<14:8>, and the identifier signal pc_old are stored. <15> Among them, the stored data signal <15> The flag is used as an identifier signal; another data signal to be written, cfg_data_wt<7:0>, is the third data. Based on the data signal to be written, cfg_data_wt<7:0>, the stored data signals data<7:0> and data<15:8> are generated and written to the third word line wl in two clock cycles. <2> The 8 coupled memory cells and the fourth word line WL <4> Of the eight coupled memory cells, the new data signals pc_new<7:0>, pc_new<14:8> and the default data pc_new are stored. <15> Among them, one default data pc_new <15> Corresponding to the flag, it can be left blank, discarded, or set to the default value.
[0087] refer to Figure 4 In some embodiments, the processing circuit includes: a first processing circuit coupled to a bit line bus and a memory cell, configured to: compare first data with second data in a comparison mode; output a matching signal based on the comparison result; output a matching signal as a first logic state if the first data and the second data are the same; output a matching signal as a second logic state if the first data and the second data are different; and a second processing circuit coupled to the first processing circuit, configured to: receive the matching signal; output a data matching signal based on the matching signal; output a data matching signal as third data if the matching signal is in the first logic state; and output a data matching signal as fourth data if the matching signal is in the second logic state, wherein each bit of the fourth data is in the second logic state.
[0088] For example, the first data is the data signal to be compared, data<15:0>. The second data is the old data signals pc_old<7:0> and pc_old<14:8>, and the identifier signal pc_old. <15> The third data consists of the new data signals pc_new<7:0> and pc_new<14:8>, and a default data pc_new. <15> ( Figure 4 (As shown). The fourth data is the data match signal dou_new<7:0>, and dou_new<14:8> and a default data dou_new. <15> The corresponding data matching signal dot_new <15> ( Figure 4 (Not shown).
[0089] The first processing circuit is configured to, in comparison mode, compare the data signal data<15:0> to be compared with the old data signals pc_old<7:0>, pc_old<14:8> and the identifier signal pc_old. <15> Perform a comparison; based on the comparison result, output the matching signal match; based on the data signal to be compared data<15:0>, the old data signals pc_old<7:0>, pc_old<14:8>, and the identifier signal pc_old... <15> Similarly, the output matching signal `match` is in the first logic state, for example, the matching signal `match` is at a logic high level; based on the data signals to be compared `data<15:0>` and the old data signals `pc_old<7:0>`, `pc_old<14:8>`, and the identifier signal `pc_old`... <15> Unlike the previous example, the output matching signal is in the second logic state, for example, the matching signal is at a low logic level.
[0090] The second processing circuit is configured to: in comparison mode, if the matching signal match is in the first logic state, for example, if the matching signal match is at a logic high level, output the stored new data signals pc_new<7:0> and pc_new<14:8>, that is, output the data matching signals dou_new<7:0> and dou_new<14:8>; if the matching signal match is in the second logic state, for example, if the matching signal match is at a logic low level, do not output the stored new data signals pc_new<7:0> and pc_new<14:8>, that is, each bit of the output data matching signals dou_new<7:0> and dou_new<14:8> is at a logic low level.
[0091] refer to Figure 4 and Figure 6A In some embodiments, the first processing circuit includes: a plurality of memory cell XOR circuits, all coupled to a bit line bus; each memory cell XOR circuit is coupled to a memory cell and configured to: perform XOR processing on data input from the bit line bus and data stored in the memory cell, and output the XOR result xor_out; a first logic operation circuit, coupled to the plurality of memory cell XOR circuits, and configured to: receive the XOR result xor_out output of each memory cell XOR circuit corresponding to the memory cell coupled to the (n+2)th to (n+3)th word line, perform a first logic operation on each XOR result, and generate a matching signal match.
[0092] In some embodiments, a memory cell XOR circuit is configured such that, in comparison mode, the fourth word line WL <3> Enables the receiving of stored data from the storage unit pc_old <14> And, receiving data input from the bitline bus. <14> The output terminal outputs the XOR result xor_out <14> The input of the first logic operation circuit receives the XOR result xor_out. <14> The output terminal outputs a matching signal, match.
[0093] In some embodiments, a memory cell XOR circuit is configured such that, in comparison mode, the fourth word line WL <3> Enables the reception of the storage unit's identification signal pc_old. <15> And, receiving data input from the bitline bus. <15> The output terminal outputs the XOR result xor_out <15> One input of the first logic operation circuit receives the XOR result xor_out. <15> The other input receives the inverted signal match_en_n of the comparison enable signal, and the output outputs the matching signal match.
[0094] In some embodiments, the first logic operation circuit includes cascaded multi-level gate circuits. Exemplarily, the first logic operation circuit includes a first-level gate circuit composed of multiple NOR gates, a second-level gate circuit composed of multiple NAND gates, and a third-level gate circuit composed of one NOR gate. The first-level, second-level, and third-level gate circuits are cascaded sequentially. The first-level gate circuit receives the XOR result xor_out<15:0> and the inverted signal match_en_n of the comparison enable signal. The third-level gate circuit outputs the matching signal match.
[0095] refer to Figure 4 and Figure 6B In some embodiments, the second processing circuit includes: a plurality of memory cell inverting circuits; each memory cell inverting circuit is coupled to a memory cell; configured to: invert data stored in the memory cell and output an inverted result reg_out; and a second logic operation circuit, coupled to the plurality of memory cell inverting circuits, configured to: receive the inverted result reg_out output from each memory cell inverting circuit corresponding to the memory cell coupled to the nth to n+1th word lines, perform a second logic operation on each inverted result, and generate a data matching signal dou_new.
[0096] In some embodiments, a memory cell inverting circuit is configured such that, in comparison mode, the second word line wl <1> Enables the receiving of stored data from the storage unit pc_new <13> The inverted signal is inverted and then output. The inverted result is reg_out. <13> The first input of the AND gate in the second logic operation circuit receives the inverted result reg_out. <13> The second input receives the matching signal `match`, and the output outputs the data matching signal `dout_new`. <13> .
[0097] In some embodiments, the second logic operation circuit includes a plurality of AND gates. The first input of each AND gate receives one bit of data from the inverted result (e.g., the inverted result reg_out). <13> Each AND gate receives a match signal (match) at its second input and outputs one bit of the data match signal (e.g., the data match signal dot_new). <13> ).
[0098] In some embodiments, the third data is the storage address data corresponding to the second data.
[0099] For example, the second data represents the storage address (address signal), and the third data represents the data corresponding to the storage address (data signal), i.e., the storage address data. For instance, the data signal that needs to be compared according to external input is the input address signal, the stored data signal used for comparison is the storage address signal, and the storage address data signal corresponding to the storage address signal is stored. In comparison mode, the input address signal and the storage address signal are matched. If the match is successful, the storage address data signal corresponding to the storage address signal is output; otherwise, a match failure signal is output.
[0100] refer to Figure 6A In some embodiments, the bit line bus includes a first bit line bus BL and a first complementary bit line bus BL / ; the memory cell includes: a first transistor M1, a second transistor M2, a first inverter INV1 and a second inverter INV2; wherein, the control terminal of the first transistor M1 is connected to the word line wl, the first controlled terminal of the first transistor M1 is connected to the first bit line bus BL, and the second controlled terminal of the first transistor M1 is connected to both the input terminal of the first inverter INV1 and the output terminal of the second inverter INV2; the control terminal of the second transistor M2 is connected to the word line wl, the first controlled terminal of the second transistor M2 is connected to the first complementary bit line bus BL / , and the second controlled terminal of the second transistor M2 is connected to both the output terminal of the first inverter INV1 and the input terminal of the second inverter INV2.
[0101] refer to Figure 6A In some embodiments, the XOR circuit of the memory cell includes a third transistor M3, a fourth transistor M4, a fifth transistor M5, a sixth transistor M6, a seventh transistor M7, an eighth transistor M8, a ninth transistor M9, and a tenth transistor M10; wherein, the first controlled terminal of the third transistor M3 is connected to a first power supply, the second controlled terminal is connected to the first controlled terminal of the fourth transistor M4, the second controlled terminal of the fourth transistor M4 is connected to the first controlled terminal of the fifth transistor M5, the second controlled terminal of the fifth transistor M5 is connected to the first controlled terminal of the sixth transistor M6, the second controlled terminal of the sixth transistor M6 is connected to a second power supply, the first controlled terminal of the seventh transistor M7 is connected to the first power supply, the second controlled terminal is connected to the first controlled terminal of the eighth transistor M8, the second controlled terminal of the eighth transistor M8 is connected to the first controlled terminal of the ninth transistor M9, the second controlled terminal of the ninth transistor M9 is connected to the first controlled terminal of the tenth transistor M10, the second controlled terminal of the tenth transistor M10 is connected to a second power supply, and the control terminals of the third transistor M3 and the ninth transistor M9 are both connected to the XOR circuit. One end of the cross-coupled inverter (the output of the first inverter INV1 and the input of the second inverter INV2) is connected. The control terminals of the seventh transistor M7 and the fifth transistor M5 are both connected to the other end of the cross-coupled inverter (the input of the first inverter INV1 and the output of the second inverter INV2). The control terminals of the fourth transistor M4 and the sixth transistor M6 are both connected to the first bit line bus BL. The control terminals of the eighth transistor M8 and the tenth transistor M10 are both connected to the first complementary bit line bus BL / . The second controlled terminal of the fourth transistor M4, the first controlled terminal of the fifth transistor M5, the second controlled terminal of the eighth transistor M8, and the first controlled terminal of the ninth transistor M9 are all connected and serve as the output terminals of the XOR circuit of the memory cell. Among them, the third transistor M3, the fourth transistor M4, the fifth transistor M5, and the sixth transistor M6 are all PMOS transistors, and the seventh transistor M7, the eighth transistor M8, the ninth transistor M9, and the tenth transistor M10 are all NMOS transistors. The first power supply is connected to the power supply, and the second power supply is grounded.
[0102] refer to Figure 6B In some embodiments, the memory cell inverting circuit includes a third inverter, the input of which is connected to one end of a cross-coupled inverter (the output of the first inverter INV1 and the input of the second inverter INV2), and the output is used to output the data stored in the memory cell.
[0103] Referring to Table 1, taking a content-addressable register with standard cell flip-flops as the memory cell (hereinafter referred to as the comparative embodiment) as an example, the comparative embodiment has 9540 gate-level circuits (45898 NMOS transistors and 45851 PMOS transistors), with an area of approximately 0.10362 mm^2. For the same capacity as the comparative embodiment, the content-addressable register with multiple storage cells as memory cells provided in this application embodiment (hereinafter referred to as the present application embodiment) has 22205 NMOS transistors and 24975 PMOS transistors, with an area overhead of approximately 0.07, which is approximately 30% less than the comparative embodiment.
[0104] Table 1
[0105]
[0106] In this embodiment, the time for writing, reading, and comparing operations of the content addressing register is optimized. Furthermore, existing design rules (such as the design rules for SRAM memory cells and page caches) can be adopted to compress the area of the content addressing register, which can provide a more reasonable planar layout plan for the digital back-end. The planar layout plan is not difficult to implement, has low manpower and time costs, and is conducive to improving the back-end area utilization and making full use of winding resources.
[0107] Secondly, embodiments of this application provide a processor, with reference to... Figure 8 The processor includes one or more content addressing registers as provided in the first aspect.
[0108] The processor can control the content addressing register to perform functions such as reading and writing data, and retrieving input data. When the processor controls the content addressing register to perform the function of retrieving input data, that is, when using content addressing, it can compare it with the stored data. If the data already exists in the content addressing register, a match success signal and the corresponding new data are output; otherwise, if the data is not stored in the content addressing register, a match failure signal is output. The processor is mainly used to control the writing, reading, or comparison operations of data stored in the content addressing register by the bus signal mbus. The bus signal mbus can include the bus clock signal mbus_clk, the bus data address signal mbus_data_is_addr, the bus read enable signal mbus_rd_en, the bus write enable signal mbus_rd_en, and the bus write data signal mbus_wt_data<7:0>.
[0109] In some embodiments, the processor may include one or more microcontroller units (MCUs), field-programmable gate arrays (FPGAs), digital signal processors (DSPs), application-specific integrated circuits (ASICs), radio-frequency integrated circuits (RFICs), etc., for controlling content-addressing registers. In some embodiments, the processor includes a microprocessor unit (MCU). This allows the implementation of a hard macro module for the content-addressing registers of the MCU.
[0110] For example, the content-addressable register includes: multiple word lines; a bit line bus; multiple memory cells coupled to each word line and bit line bus; a timing control circuit configured to: determine the operating mode and generate control signals for the corresponding operating mode according to a received bus command; the operating modes include a read mode, a write mode, and a comparison mode; an address line control circuit coupled to the timing control circuit and the word lines and bit line bus, configured to: activate the corresponding word lines and bit line bus based on the control signals; and a processing and output circuit coupled to the bit line bus, configured to: read data stored in the memory cells from the bit line bus in read mode; write data to be written to the memory cells from the bit line bus in write mode; and compare the data to be compared input from the bit line bus with the data already stored in the memory cells in comparison mode, and output the comparison result. The specific details of the configuration of the timing control circuit, the address line control circuit, and the processing and output circuit, as well as their signal processing procedures, can be understood by referring to the corresponding embodiments provided in the first aspect, and will not be repeated here.
[0111] Thirdly, embodiments of this application provide a memory system, with reference to Figure 9 The memory system includes: at least one memory device and a memory controller coupled to and controlling the memory device; wherein the memory device includes: a memory cell array and peripheral circuitry coupled to and controlling the memory cell array; the peripheral circuitry and / or the memory controller includes one or more processors as provided in the second aspect.
[0112] In some embodiments, the memory system 102 may include a memory controller 106 and a memory device 104. The memory controller 106 is used to control the memory device 104 to perform operations such as read, write, and erase. The memory controller 106 and the memory device 104 may also be coupled in any suitable manner.
[0113] The memory controller 106 may include a processor 1063, a memory interface 1062, and a bus 1061. The processor 1063 and the memory interface 1062 are coupled to the bus 1061. The processor 1063 communicates with the memory device 104 via the bus 1061. The memory interface 1062 is the connection interface between the memory controller 106 and the memory device 104, and is used to implement data transmission between the memory controller 106 and the memory device 104. The processor 1063 is used to control the memory system 102 as a whole, and the specific steps executed by the memory controller mentioned above are mainly executed and completed by the processor 1063. In some specific embodiments, the processor 1063 may be, for example, a central processing unit (CPU) or a microprocessor (MCU).
[0114] In some embodiments, the memory device 104 may include a memory cell array 1041 and peripheral circuitry 1042 coupled to the memory cell array 1041, the peripheral circuitry 1042 including a processor 1063.
[0115] Taking the memory cell array 1041 as an example of a three-dimensional NAND-type memory cell array, the memory cells are NAND-type memory cells, provided in the form of an array of memory strings, each memory string extending vertically above a substrate (not shown). In some embodiments, each memory string includes multiple memory cells that are series-coupled and vertically stacked. Each memory cell can hold a continuous analog value, such as voltage or charge, depending on the number of electrons trapped in the region of the memory cell. Each memory cell can be a floating-gate type memory cell including a floating-gate transistor, or a charge-trapping type memory cell including a charge-trapping transistor.
[0116] Peripheral circuitry 1042 can be coupled to memory cell array 1041 via bit lines, word lines, source lines, BSG lines, and TSG lines. Peripheral circuitry 1042 may include any suitable analog, digital, and mixed-signal circuitry to facilitate operation of the memory cell array by applying voltage and / or current signals to and from each target memory cell via bit lines, word lines, source lines, BSG lines, and TSG lines. Peripheral circuitry 1041 may include various types of peripheral circuitry formed using metal-oxide-semiconductor (MOS) technology. For example, peripheral circuitry includes page buffers / sensor amplifiers, column decoders / bit line drivers, row decoders / word line drivers, voltage generators, control logic, registers, interfaces, and data buses.
[0117] Fourthly, embodiments of this application provide another content addressing register, which includes: multiple word lines wl extending along a first direction; bit line buses BL and BL / extending along a second direction; the first direction being perpendicular to the second direction; multiple repository cam units coupled to each word line and bit line bus; the multiple repositories arranged along the first direction; each repository cam Each unit includes multiple memory cells arranged along a second direction; a timing control circuit, located between two adjacent memory cells, configured to: determine the operating mode and generate control signals for the corresponding operating mode based on received bus commands; the operating modes include read mode, write mode, and comparison mode; multiple address line control circuits, all coupled to the timing control circuit; each address line control circuit is located at the edge of a memory cell and configured to: activate the corresponding word line and bit line bus based on the control signals; and a processing and output circuit, coupled to the bit line bus, configured to: read data stored in the memory cells from the bit line bus in read mode; write data to be written to the memory cells from the bit line bus in write mode; and compare the data to be compared input from the bit line bus with the data already stored in the memory cells in comparison mode, and output the comparison result.
[0118] In the embodiments of this application, the first direction and the second direction are represented as two orthogonal directions parallel to the plane of the substrate (or substrate structure); the third direction is the stacking direction of the stacked structure, which is perpendicular to the plane of the substrate (or substrate structure). Here and below, the first direction can be understood as the direction of word line extension, represented as the X direction in the figures; the second direction can be understood as the direction of bit line extension, represented as the Y direction in the figures; the third direction can be understood as the stacking direction of the first semiconductor structure and the second semiconductor structure, represented as the Z direction in the figures.
[0119] In the embodiments of this application, the specific details of the configuration of the timing control circuit (including word line decoding circuit), the address line control circuit and the processing and output circuit, as well as their signal processing process, can be understood by referring to the corresponding embodiments provided in the first aspect, and will not be repeated here.
[0120] In some embodiments, the plurality of repositories includes a first repository to a second repository arranged along a first direction, where p is a positive integer; the bit line bus includes 2p sections, each section being connected to a repository.
[0121] refer to Figure 7 For example, multiple repositories include a first to a fourth repositories column arranged along a first direction, each repository column including 48 repositories arranged along a second direction; the bit line bus includes four sections, each section connected to a repository column. For example, multiple word lines include a first word line wl0, a second word line wl1, a third word line wl2, ... a forty-fifth word line wl44, a forty-sixth word line wl45, a forty-seventh word line wl46, and a forty-eighth word line wl47, each word line coupled to four repositories (first to fourth repositories) arranged along the first direction, and each section of the bit line bus coupled to 48 memory banks arranged along the second direction. For example, each section of the bit line buses BL and BL / can transmit 16-bit data, for example, a section of the bit line buses BL and BL / transmits the data signal data0<15:0> / data0_n<15:0>.
[0122] Among them, reference Figure 4 and Figure 7 Each repository CAM unit comprises eight storage units arranged along the second direction. For details on the specific structure of each storage unit, please refer to [reference needed]. Figure 6A and Figure 6B The structure of the storage unit is explained.
[0123] In some embodiments, timing control circuit ( Figure 7 (Partially not shown) is located between the p-th repository and the p+1-th repository.
[0124] For example, the timing control circuit is located between the first and second repository columns and between the third and fourth repository columns.
[0125] In some embodiments, the word line decoding circuit of the timing control circuit is located between the p-th repository and the (p+1)-th repository. (See reference...) Figure 7 For example, the word line decoding circuit is located between the second and third repository columns.
[0126] In some embodiments, the processing circuit of the processing and output circuit is located between the m-th repository row and the (m+1)-th repository row, where m is a positive integer and m+1 is a multiple of 4; the decision circuit of the processing and output circuit is located between the p-th repository and the (p+1)-th repository. (See reference.) Figure 7 For example, the processing circuit of the processing and output circuit is located between two adjacent storage units along the second direction, and the decision circuit of the processing and output circuit is located between the second storage unit column and the third storage unit column.
[0127] In some embodiments, both the word line decoding circuit and the decision circuit are located between the second and third repository columns.
[0128] In some embodiments, the address line control circuitry is located at the edge of a storage column along a second direction; the address line control circuitry comprises 2p sections, each section being connected to a storage column. (Reference) Figure 7 For example, the address line control circuit includes four parts arranged along a first direction, each coupled to a first to a fourth memory bank column, and each part of the address line control circuit is coupled to 48 memory banks arranged along a second direction via each part of the bit line bus.
[0129] In some embodiments, the storage repository includes 2q storage cells arranged along a second direction, where q is a positive integer; the processing and output circuitry includes: a processing circuit located on one side of the storage cells and coupled to the bit line bus and the storage cells, configured to: compare first data to be compared input from the bit line bus with second data already stored in the storage cells in a comparison mode, and output a data matching signal based on the comparison result; if the first data and the second data are the same, the output data matching signal is the third data already stored in the storage cells; if the first data and the second data are different, the output data matching signal is the fourth data, where each bit of the fourth data is in a preset logic state; and a decision circuit located between the qth storage repository and the (q+1)th storage repository and coupled to the processing circuitry, configured to: receive the data matching signal and output a comparison result based on the data matching signal; if the data matching signal is the third data, the output comparison result is a first logic state, which indicates a successful comparison; if the data matching signal is the fourth data, the output comparison result is a second logic state, which indicates a failed comparison.
[0130] refer to Figure 4 and Figure 5 For example, each repository cam unit includes 8 storage units arranged along the second direction. (With the first word line wl) <0> (or Figure 7 The first word line wl0 shown corresponds to a storage repository that includes 8 storage units arranged along the second direction, and is related to the second word line wl. <2> (or Figure 7 The second word line wl1 shown corresponds to a storage repository that includes 8 storage units arranged along the second direction, and is related to the third word line wl. <2> (or Figure 7 The third word line (wl2) shown corresponds to a storage repository that includes 8 storage units arranged along the second direction, and is related to the fourth word line (wl). <3> (or Figure 7 The fourth word line (wl3) shown corresponds to a storage unit that includes 8 storage units arranged along the second direction.
[0131] In the embodiments of this application, the specific details of the configuration of the processing circuit and the decision circuit, as well as their signal processing procedures, can be understood by referring to the corresponding embodiments provided in the first aspect, and will not be repeated here.
[0132] In some embodiments, the 31-bit storage unit can be divided into four cam units, each cam unit comprising eight storage units arranged along a second direction. Two of the four cam units can be used to store the old data signal pc_old<7:0>, as well as pc_old<14:8> and the identifier signal pc_old. <15> The other two repositories in the four cam unit repositories can be used to store new data signals pc_new<7:0>, pc_new<14:8>, and a default data pc_new. <15> (identifier signal pc_old) <15> The corresponding data, Figure 4 (For illustration).
[0133] For the content addressing registers provided in the embodiments of the fourth aspect of this application, and for the technical features not disclosed in detail in the embodiments of this application, please refer to the content addressing registers in the embodiments of the first aspect above for understanding, and they will not be repeated here.
[0134] In the various embodiments of this application, the time for writing, reading, and comparing operations of the content addressing register is optimized. Furthermore, existing design rules (such as the design rules for SRAM memory cells and page buffers) can be adopted to compress the area of the content addressing register, which can provide a more reasonable planar layout plan for the digital back-end. The planar layout plan is not difficult to implement, has low manpower and time costs, and is conducive to improving the utilization rate of the back-end area and making full use of winding resources. The storage cells of the storage library can match the timing library, and the overall digital flow conforms to the general digital back-end flow, such as the digital flow of SRAM.
[0135] Fifthly, embodiments of this application provide an operation method for a content-addressable register. The content-addressable register includes: multiple word lines, a bit line bus, multiple memory cells coupled to each word line and bit line bus, a timing control circuit, and address line control circuits for the timing control circuit, word lines, and bit line buses, as well as processing and output circuits. The operation method includes: the timing control circuit determining the operating mode according to a received bus command and generating control signals for the corresponding operating mode; the operating modes include a read mode, a write mode, and a comparison mode; the address line control circuit activating the corresponding word lines and bit line buses based on the control signals; in the read mode, the processing and output circuit reading data stored in the memory cells from the bit line bus; in the write mode, writing data to be written to the memory cells from the bit line bus; and in the comparison mode, comparing the data to be compared input from the bit line bus with the data already stored in the memory cells and outputting the comparison result.
[0136] In some embodiments, the timing control circuit includes: a timing generation circuit, an address counting circuit, and a word line decoding circuit; the address line control circuit activates the corresponding word lines and bit lines based on control signals, including: the timing generation circuit determines the operating mode according to a received bus command; and generates control signals and reset signals for the corresponding mode according to the determined operating mode; the address counting circuit receives a clock signal and a reset signal, and outputs the row address signal of the next row of the currently processed row based on the reset signal and the edge change of the clock signal; the word line decoding circuit receives the row address signal output by the address counter, decodes the row address in the row address signal, and outputs a decoded signal.
[0137] In some embodiments, the address line control circuit includes: a word line control circuit and a data conversion circuit; the address line control circuit activates the corresponding word line and bit line bus based on a control signal, including: the word line control circuit receives a decoding signal and generates a word line drive signal according to the decoding signal to activate the corresponding word line; the data conversion circuit receives a control signal for a corresponding mode and, according to the control signal for the corresponding mode, performs data bit conversion on the read data in read mode, performs data bit conversion and differential processing on the data to be written in write mode, and performs differential processing on the data to be compared in comparison mode.
[0138] In some embodiments, the processing and output circuit includes: a processing circuit and a decision circuit; in comparison mode, comparing the data to be compared input from the bit line bus with the data already stored in the storage unit and outputting the comparison result includes: the processing circuit comparing the first data to be compared input from the bit line bus with the second data already stored in the storage unit in comparison mode, and outputting a data matching signal according to the comparison result; if the first data and the second data are the same, the output data matching signal is the third data already stored in the storage unit; if the first data and the second data are different, the output data matching signal is the fourth data, where each bit of the fourth data is in a preset logic state; the decision circuit receives the data matching signal and outputs the comparison result according to the data matching signal; if the data matching signal is the third data, the output comparison result is the first logic state, which indicates a successful comparison; if the data matching signal is the fourth data, the output comparison result is the second logic state, which indicates a failed comparison.
[0139] In some embodiments, in write mode, writing data to be written from the bit line bus to the memory cell includes: in write mode, the processing circuit writes the data to be written after being processed by the data conversion circuit to the memory cells coupled to the nth to n+3th word lines respectively in four clock cycles; the data bits of the data to be written are m bits, and the data bits of the data to be written after being processed by the data conversion circuit are 2m bits; the 1st to mth bits and the m+1th to 2mth bits of the second data are the data stored in the n+2th and n+3th words respectively; the mth and m+1th bits of the third data are the data stored in the nth and n+1th words respectively; m and n are both natural numbers, and m is a multiple of 8.
[0140] In some embodiments, the processing circuit includes: a first processing circuit and a second processing circuit; in comparison mode, comparing first data to be compared input from the bit line bus with second data stored in the storage unit, and outputting a data matching signal according to the comparison result, including: the first processing circuit comparing the first data with the second data in comparison mode; outputting a matching signal according to the comparison result; the output matching signal being a first logic state if the first data and the second data are the same; the output matching signal being a second logic state if the first data and the second data are different; the second processing circuit receiving the matching signal and outputting a data matching signal according to the matching signal; the output data matching signal being a third data if the matching signal is in the first logic state, and the output data matching signal being a fourth data if the matching signal is in the second logic state, wherein each bit of the fourth data is in the second logic state.
[0141] In some embodiments, the first processing circuit includes: a plurality of memory cell XOR circuits and a first logic operation circuit; in comparison mode, the first processing circuit compares first data with second data; and outputs a matching signal according to the comparison result, including: each memory cell XOR circuit performing XOR processing on the data input from the bit line bus and the data stored in the memory cell, and outputting the XOR result; the first logic operation circuit receiving the XOR results of the outputs of the memory cell XOR circuits corresponding to the memory cells coupled to the (n+2)th to (n+3)th word lines, performing a first logic operation on each XOR result, and generating a matching signal.
[0142] In some embodiments, the second processing circuit includes: a plurality of memory cell inverting circuits and a second logic operation circuit; the second processing circuit outputs a data matching signal according to the matching signal, including: each memory cell inverting circuit inverts the data stored in the memory cell and outputs an inverted result; the second logic operation circuit receives the inverted results of the outputs of the memory cell inverting circuits corresponding to the memory cells coupled to the nth to n+1th word lines, performs a second logic operation on each inverted result, and generates a data matching signal.
[0143] The content addressing register used in the operation method of the content addressing register provided in the embodiments of the fifth aspect of this application is the same as or similar to the content addressing register in the embodiments of the first aspect described above. For technical features not disclosed in detail in the embodiments of this application, please refer to the content addressing register in the embodiments of the first aspect described above for understanding, and will not be repeated here.
[0144] It should be understood that the phrase "one embodiment" or "an embodiment" throughout the specification means that a specific feature, structure, or characteristic related to the embodiment is included in at least one embodiment of this application. Therefore, "in one embodiment" or "in an embodiment" appearing throughout the specification does not necessarily refer to the same embodiment. Furthermore, these specific features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. It should be understood that in the various embodiments of this application, the sequence numbers of the above-described processes do not imply a sequential order of execution; the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application. The sequence numbers of the above-described embodiments are merely descriptive and do not represent the superiority or inferiority of the embodiments.
[0145] The methods disclosed in the several method embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments.
[0146] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any changes or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application.
Claims
1. A content-addressable register, characterized in that, include: Multiple letter lines; Bit line bus; Each of the aforementioned word lines and bit lines is coupled to multiple memory cells; The timing control circuit is configured to: determine the operating mode and generate control signals corresponding to the operating mode based on the received bus commands; The operating modes include read mode, write mode, and comparison mode; The address line control circuit, coupled to the timing control circuit and the word line and bit line buses, is configured to activate the corresponding word line and bit line buses based on the control signal. The processing and output circuitry, coupled to the bit line bus, is configured to: in read mode, read data stored in the memory cell from the bit line bus; In write mode, the data to be written is written from the bit line bus to the storage cell; In comparison mode, the data to be compared input from the bit line bus is compared with the data already stored in the storage unit, and the comparison result is output.
2. The content-addressable register according to claim 1, characterized in that, The timing control circuit includes: The timing generation circuit is configured to: determine the operating mode based on the received bus command; and generate corresponding control signals and reset signals based on the determined operating mode. The address counting circuit, coupled to the timing generation circuit, is configured to: receive a clock signal and the reset signal, and output the row address signal of the next row of the current processing row based on the reset signal and the edge change of the clock signal. The word line decoding circuit, coupled to the address counting circuit, is configured to: receive the row address signal output by the address counter, decode the row address in the row address signal, and output the decoded signal.
3. The content-addressable register according to claim 2, characterized in that, The address line control circuit includes: A word line control circuit, coupled to the word line decoding circuit, is configured to: receive the decoding signal and generate a word line drive signal based on the decoding signal to activate the corresponding word line; The data conversion circuit is configured to: receive the control signal of the corresponding mode; convert the read data into data bits according to the control signal of the corresponding mode; convert the data to be written into data bits and perform differential processing in the write mode; and perform differential processing on the data to be compared in the comparison mode.
4. The content-addressable register according to claim 1, characterized in that, The processing and output circuit includes: The processing circuit, coupled to the bit line bus and the storage unit, is configured to: in comparison mode, compare the first data to be compared input from the bit line bus with the second data already stored in the storage unit, and output a data matching signal based on the comparison result; if the first data and the second data are the same, the output data matching signal is the third data already stored in the storage unit; if the first data and the second data are different, the output data matching signal is the fourth data, wherein each bit of the fourth data is in a preset logic state; The decision circuit, coupled to the processing circuit, is configured to: receive the data matching signal; output a comparison result based on the data matching signal; if the data matching signal is the third data, output a comparison result as a first logic state, the first logic state indicating a successful comparison; if the data matching signal is the fourth data, output a comparison result as a second logic state, the second logic state indicating a failed comparison.
5. The content-addressable register according to claim 4, characterized in that, The processing circuit is further configured to: In write mode, within four clock cycles, the data to be written, after being processed by the data conversion circuit, is written to the memory cells coupled to the nth to n+3th word lines respectively; the data to be written has m bits, and the data to be written after being processed by the data conversion circuit has 2m bits; the 1st to mth bits and the (m+1th)th to 2mth bits of the second data are the data stored in the (n+2th)th and (n+3th)th words respectively; the mth and (m+1th)th bits of the third data are the data stored in the nth and (n+1th)th words respectively; m and n are both natural numbers, and m is a multiple of 8.
6. The content-addressable register according to claim 5, characterized in that, The processing circuit includes: A first processing circuit, coupled to the bit line bus and the memory cell, is configured to: in comparison mode, compare first data with second data; output a matching signal based on the comparison result; if the first data and the second data are the same, the output matching signal is a first logic state; if the first data and the second data are different, the output matching signal is a second logic state. The second processing circuit, coupled to the first processing circuit, is configured to: receive the matching signal; output a data matching signal based on the matching signal; output the data matching signal as third data based on the matching signal being in the first logic state; and output the data matching signal as fourth data based on the matching signal being in the second logic state, wherein each bit of the fourth data is in the second logic state.
7. The content-addressable register according to claim 6, characterized in that, The first processing circuit includes: Multiple memory cell XOR circuits are coupled to the bit line bus; each memory cell XOR circuit is coupled to one memory cell and is configured to: perform XOR processing on data input from the bit line bus and data stored in the memory cell, and output the XOR result; The first logic operation circuit, coupled to multiple memory cell XOR circuits, is configured to: receive the XOR results of the outputs of the XOR circuits of the memory cells corresponding to the memory cells coupled to the (n+2)th to (n+3)th word lines, perform a first logic operation on each XOR result, and generate the matching signal.
8. The content-addressable register according to claim 6, characterized in that, The second processing circuit includes: Multiple memory cell inverting circuits; each memory cell inverting circuit is coupled to one of the memory cells; configured to invert data stored in the memory cells and output an inverted result; The second logic operation circuit, coupled to the inverting circuits of the plurality of memory cells, is configured to: receive the inverted results of the outputs of the inverting circuits of each memory cell corresponding to the memory cell coupled to the nth to n+1th word lines, perform a second logic operation on each inverted result, and generate the data matching signal.
9. The content-addressable register according to claim 4, characterized in that, The third data is the storage address data corresponding to the second data.
10. The content-addressable register according to claim 1, characterized in that, The bit line bus includes a first bit line bus and a first complementary bit line bus; the memory cell includes: a first transistor, a second transistor, a first inverter, and a second inverter; wherein... The control terminal of the first transistor is connected to the word line, the first controlled terminal of the first transistor is connected to the first bit line bus, and the second controlled terminal of the first transistor is connected to both the input terminal of the first inverter and the output terminal of the second inverter. The control terminal of the second transistor is connected to the word line, the first controlled terminal of the second transistor is connected to the first complementary bit line bus, and the second controlled terminal of the second transistor is connected to both the output terminal of the first inverter and the input terminal of the second inverter.
11. A processor, characterized in that, include: One or more content addressing registers as described in any one of claims 1 to 10.
12. The processor according to claim 11, characterized in that, The processor includes a microprocessor unit (MCU).
13. A memory system, characterized in that, include: At least one memory device and a memory controller coupled to and controlling the memory device; wherein... The memory device includes: a memory cell array and peripheral circuitry coupled to the memory cell array and controlling the memory cell array; The peripheral circuitry and / or the memory controller include one or more processors as described in claim 11 or 12.
14. A content-addressable register, characterized in that, include: Multiple letter lines extending along the first direction; Bit line bus extending along the second direction; The first direction is perpendicular to the second direction; Each of the word lines and the bit line bus is coupled to multiple repositories; The plurality of repositories are arranged along a first direction; each repository includes a plurality of storage units arranged along a second direction; A timing control circuit, located between two adjacent storage repositories, is configured to: determine the operating mode and generate control signals corresponding to the operating mode based on received bus commands; the operating modes include read mode, write mode, and comparison mode; Multiple address line control circuits are coupled to timing control circuits; each address line control circuit is located at the edge of a repository and is configured to activate the corresponding word line and bit line bus based on the control signal. The processing and output circuitry, coupled to the bit line bus, is configured to: in read mode, read data stored in the memory cell from the bit line bus; In write mode, the data to be written is written from the bit line bus to the storage cell; In comparison mode, the data to be compared input from the bit line bus is compared with the data already stored in the storage unit, and the comparison result is output.
15. The content-addressable register according to claim 14, characterized in that, The plurality of repositories includes a first repository to a second repository arranged along the first direction, where p is a positive integer; the bit line bus includes 2p sections, each section being connected to a repository.
16. The content-addressable register according to claim 15, characterized in that, The timing control circuit is located between the p-th repository and the p+1-th repository.
17. The content-addressable register according to claim 14, characterized in that, The storage repository includes 2q storage units arranged along the second direction, where q is a positive integer; the processing and output circuit includes: The processing circuit, located on one side of the storage cell and coupled to the bit line bus and the storage cell, is configured to: in comparison mode, compare the first data to be compared input from the bit line bus with the second data already stored in the storage cell, and output a data matching signal based on the comparison result; if the first data and the second data are the same, the output data matching signal is the third data already stored in the storage cell; if the first data and the second data are different, the output data matching signal is the fourth data, wherein each bit of the fourth data is in a preset logic state; A decision circuit, located between the q-th storage repository and the (q+1)-th storage repository and coupled to the processing circuit, is configured to: receive the data matching signal; output a comparison result based on the data matching signal; if the data matching signal is the third data, output a comparison result as a first logic state, the first logic state indicating a successful comparison; if the data matching signal is the fourth data, output a comparison result as a second logic state, the second logic state indicating a failed comparison.
18. A method for operating a content-addressable register, characterized in that, The content addressing register includes: multiple word lines, a bit line bus, multiple memory cells coupled to each word line and bit line bus, timing control circuitry, timing control circuitry, word line and bit line bus address line control circuitry, and processing and output circuitry; the operation method includes: The timing control circuit determines the operating mode and generates control signals for the corresponding operating mode based on the received bus commands; the operating modes include read mode, write mode and comparison mode. The address line control circuit activates the corresponding word line and bit line bus based on the control signal; In read mode, the processing and output circuit reads the data stored in the storage unit from the bit line bus; in write mode, it writes the data to be written to the storage unit from the bit line bus; in comparison mode, it compares the data to be compared input from the bit line bus with the data already stored in the storage unit and outputs the comparison result.
19. The operating method according to claim 18, characterized in that, The timing control circuit includes: a timing generation circuit, an address counting circuit, and a word line decoding circuit; the address line control circuit activates the corresponding word lines and bit lines based on the control signal, including: The timing generation circuit determines the operating mode based on the received bus command; and generates corresponding control signals and reset signals based on the determined operating mode. The address counting circuit receives a clock signal and a reset signal, and outputs the row address signal of the next row of the current processing row based on the reset signal and the edge change of the clock signal. The word line decoding circuit receives the row address signal output by the address counter, decodes the row address in the row address signal, and outputs the decoded signal.
20. The operating method according to claim 19, characterized in that, The address line control circuit includes: a word line control circuit and a data conversion circuit; the address line control circuit activates the corresponding word line and bit line bus based on the control signal, including: The word line control circuit receives the decoding signal and generates a word line drive signal based on the decoding signal to activate the corresponding word line. The data conversion circuit receives the control signal of the corresponding mode, and according to the control signal of the corresponding mode, performs data bit conversion on the read data in the read mode, performs data bit conversion and differential processing on the data to be written in the write mode, and performs differential processing on the data to be compared in the comparison mode.
21. The operating method according to claim 18, characterized in that, The processing and output circuit includes a processing circuit and a decision circuit; in the comparison mode, the data to be compared input from the bit line bus is compared with the data already stored in the storage unit, and the comparison result is output, including: In comparison mode, the processing circuit compares the first data to be compared input from the bit line bus with the second data already stored in the storage unit, and outputs a data matching signal based on the comparison result; if the first data and the second data are the same, the output data matching signal is the third data already stored in the storage unit; if the first data and the second data are different, the output data matching signal is the fourth data, where each bit of the fourth data is in a preset logic state. The decision circuit receives the data matching signal and outputs a comparison result based on the data matching signal; if the data matching signal is the third data, the output comparison result is a first logic state, which indicates a successful comparison; if the data matching signal is the fourth data, the output comparison result is a second logic state, which indicates a failed comparison.
22. The operating method according to claim 21, characterized in that, In write mode, writing the data to be written from the bit line bus to the storage unit includes: In write mode, the processing circuit writes the data to be written, after being processed by the data conversion circuit, to the memory cells coupled to the nth to n+3th word lines within four clock cycles. The data to be written has m bits, and the data to be written after processing by the data conversion circuit has 2m bits. The 1st to mth bits and the (m+1th)th to 2mth bits of the second data are the data stored in the (n+2th)th and (n+3th)th words, respectively. The mth and (m+1th)th bits of the third data are the data stored in the nth and (n+1th)th words, respectively. Both m and n are natural numbers, and m is a multiple of 8.
23. The operating method according to claim 22, characterized in that, The processing circuit includes: a first processing circuit and a second processing circuit; the step of comparing the first data to be compared input from the bit line bus with the second data already stored in the storage unit in the comparison mode, and outputting a data matching signal according to the comparison result, includes: In comparison mode, the first processing circuit compares the first data with the second data; based on the comparison result, it outputs a matching signal; if the first data and the second data are the same, the output matching signal is a first logic state; if the first data and the second data are different, the output matching signal is a second logic state. The second processing circuit receives the matching signal and outputs a data matching signal based on the matching signal; if the matching signal is in the first logic state, the output data matching signal is the third data; if the matching signal is in the second logic state, the output data matching signal is the fourth data, wherein each bit of the fourth data is in the second logic state.
24. The operating method according to claim 23, characterized in that, The first processing circuit includes: multiple memory cell XOR circuits and a first logic operation circuit; in comparison mode, the first processing circuit compares the first data with the second data; based on the comparison result, it outputs a matching signal, including: Each memory cell XOR circuit performs an XOR operation between the data input from the bit line bus and the data stored in the memory cell, and outputs the XOR result. The first logic operation circuit receives the XOR results of the XOR circuits of the memory cells corresponding to the (n+2)th to (n+3)th word lines, performs the first logic operation on each XOR result, and generates the matching signal.
25. The operating method according to claim 23, characterized in that, The second processing circuit includes: multiple memory cell inverting circuits and a second logic operation circuit; the second processing circuit outputs a data matching signal according to the matching signal, including: Each memory cell's inverting circuit inverts the data stored in the memory cell and outputs the inverted result; The second logic operation circuit receives the inverted results of the outputs of the inverting circuits of each memory cell corresponding to the memory cell coupled to the nth to n+1th word lines, performs the second logic operation on each inverted result, and generates the data matching signal.
Citation Information
Cited By
Self-loading storage unit based on nonvolatile storage unit and storage array
CN121617441A
