Device, system and method for determining extreme value
By using the CAM stack and accumulator circuit in the semiconductor device, the extreme value stored in the semiconductor device is efficiently determined, and the attacker detector circuit identifies and refreshes the rows affected by the row hammer event, solving the problem of the existing technology. The problem of time-consuming power consumption and line hammer refresh is found in the extreme value.
Patent Information
- Application Number
- CN202010493174.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-06-03
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2040-06-03
AI Technical Summary
When searching for the maximum or minimum value stored in a semiconductor device, the existing technology requires a bit-by-bit search, which is time-consuming and power-consuming. Moreover, during the refresh operation of the memory, it is difficult to effectively identify and refresh victims caused by line hammering events. OK.
An apparatus and method are designed including a content addressable memory (CAM) stack and an accumulator circuit for matching by comparing a sequence of bits with bits stored in a CAM cell, the accumulator circuit maintaining or changing a signal state in the event of a match , thereby determining the extreme value stored in the stack, and identifying and refreshing the rows affected by the row hammering event through the attacker detector circuit.
It achieves efficient determination of extreme values in semiconductor devices, reduces the time and energy consumption of the search process, and effectively prevents and refreshes data loss caused by row hammering events by identifying attacker rows.
Smart Images

Figure CN112071348B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates generally to semiconductor devices and, more particularly, to semiconductor components for storing bits. Background Art
[0002] Semiconductor logic devices may typically operate in binary logic, where signals and information are stored as one or more bits, each of which may be at a high logic level or a low logic level. There may be several applications where it is useful to store a number of numerical values encoded as binary numbers, where each digit of the binary number is stored as a bit. For example, a memory device may store a numerical value that is a count of access operations to a word line of the memory. In many applications, it may further be desirable to determine the maximum (and / or minimum) value of the stored numerical value. For example, in order to identify the word line that has been accessed the most times. Summary of the invention
[0003] One aspect relates to an apparatus. The apparatus comprises: a stack comprising a plurality of files, wherein each of the plurality of files is configured to store a numerical value comprising a plurality of stored bits; a control logic circuit configured to provide a comparison signal to one of the stored bits in each of the plurality of files, wherein each of the plurality of files is configured to provide one of a plurality of match signals, each of the plurality of match signals indicating whether the comparison signal matches the one of the plurality of stored bits of the numerical value in an associated one of the plurality of files; a plurality of accumulator circuits, each associated with a respective one of the plurality of files, the accumulator circuits ... Each of the multiple accumulator circuits includes a latch circuit configured to store an accumulator signal, wherein each accumulator circuit is configured to maintain the accumulator signal at a first logic level if the match signal from the associated one of the multiple files indicates a match, and to change the accumulator signal to a second logic level if the match signal does not indicate a match, unless any of the match signals of any of the multiple files having an accumulator signal at the first logic level does not indicate a match, in which case the accumulator signal is maintained at the first logic level.
[0004] Another aspect relates to a method. The method includes: providing a comparison bit sequence to a content addressable memory (CAM) stack including a plurality of files, wherein each comparison bit is provided to a CAM cell in each of the plurality of files; performing a comparison operation for each bit in the comparison bit sequence, wherein the comparison operation includes: determining for each bit in the comparison bit sequence whether the comparison bit matches a stored bit in the CAM cell; determining for each bit in the comparison bit sequence whether the comparison bit matches any of the stored bits in any of the files of the CAM stack; and setting values of a plurality of accumulator signals each associated with one of the files, wherein when the comparison bit does not match the stored bit and when the comparison bit matches at least one file of the CAM stack where the accumulator signal is at a first level, the value of a corresponding one of the plurality of accumulator signals is changed from the first level to a second level; and determining which of the plurality of files contains an extreme value based on the values of the plurality of accumulator signals.
[0005] Another aspect relates to an apparatus. The apparatus comprises: a first stack comprising a plurality of content addressable memory (CAM) cells configured to store a first value, wherein each bit of the first value is stored in one of the plurality of CAM cells; a second stack comprising a plurality of content addressable memory (CAM) cells configured to store a second value, wherein each bit of the second value is stored in one of the plurality of CAM cells; a first accumulator circuit associated with the first stack, wherein the first accumulator circuit is configured to provide a first accumulator bit; a second accumulator circuit associated with the second stack, wherein the second accumulator circuit is configured to provide a second accumulator bit; and a control logic circuit configured to provide a comparison bit sequence to the first stack and the second stack, wherein the first accumulator circuit and the second accumulator circuit are each configured to change a state of the corresponding first accumulator bit and the second accumulator bit based on a comparison of the first value and the second value with the comparison bit, wherein the control logic circuit is further configured to determine an extreme value between the first value and the second value based on the first accumulator bit and the second accumulator bit.
[0006] Another aspect relates to an apparatus. The apparatus comprises: a memory array comprising a plurality of word lines; and an aggressor detector circuit configured to receive a row address associated with one of the plurality of word lines, the aggressor detector circuit comprising: a stack comprising a plurality of files, each of the plurality of files configured to store a row address and a count value associated with each of the stored row addresses; a plurality of accumulator circuits each associated with one of the plurality of files, wherein the plurality of accumulator circuits are configured to store accumulator bits associated with the count values; and a control logic circuit configured to provide a comparison bit sequence to the plurality of files, wherein the plurality of accumulator circuits are each configured to change a state of the corresponding accumulator bit based on a comparison of the associated count value with the comparison bit, wherein the control logic circuit is further configured to determine an extreme value of the count value in the plurality of files based on the associated accumulator bits. BRIEF DESCRIPTION OF THE DRAWINGS
[0007] Figure 1 is a block diagram of a stack according to an embodiment of the present invention.
[0008] Figure 2 is a flow chart of a method for performing an extremum search operation according to an embodiment of the present invention.
[0009] Figure 3 is a schematic diagram of a CAM cell according to an embodiment of the present invention.
[0010] Figure 4 is a schematic diagram of an accumulator circuit according to an embodiment of the present invention.
[0011] Figure 5 is a block diagram showing an overall configuration of a semiconductor device according to at least one embodiment of the present invention.
[0012] Figure 6 is a block diagram of a refresh address control circuit according to an embodiment of the present invention.
[0013] Figure 7 is a block diagram of an aggressor detector circuit according to the present invention. DETAILED DESCRIPTION
[0014] The following description of certain embodiments is merely exemplary in nature and is in no way intended to limit the scope of the invention or its application or use. In the following detailed description of the embodiments of the system and method of the present invention, reference is made to the accompanying drawings that form a part of the present invention and show in a graphical manner the specific embodiments of the described system and method in which they can be practiced. These embodiments are described in sufficient detail to enable those skilled in the art to practice the currently disclosed system and method, and it should be understood that other embodiments may be utilized and structural and logical changes may be made without departing from the spirit and scope of the present invention. In addition, for the purpose of clarity, when certain features are obvious to those skilled in the art, detailed descriptions thereof will not be discussed so as not to obscure the description of the embodiments of the present invention. Therefore, the following detailed description should not be considered to have a limiting meaning.
[0015] Information in a semiconductor device may be typically represented by one or more binary bits, where each bit is at a high logic level (e.g., 1) or a low logic level (e.g., 0). Each bit may be stored in a memory cell (e.g., a latch circuit). A memory cell may store a specific bit of information that may be retrieved later and / or overwritten by a new bit of information to be stored. Groups of memory cells may be organized together to form files (or registers) that store information (e.g., data) comprising a number of bits. Several files (e.g., registers) may be organized into a stack (e.g., a data storage unit) to store multiple pieces of information (e.g., each file may have N latch circuits to store information comprising N bits and there may be M files in the stack). The number of files in a stack may be typically referred to as the depth of the stack. The number of latch circuits in a register may be typically referred to as the width of the stack.
[0016] The stack may include values stored in different registers. The values may be represented as binary numbers, where each bit of the binary number is stored in a different memory cell. It may be desirable to search the stack to determine which of the stored values has an extreme value, such as a maximum and / or minimum value. However, reading all values out to a circuit that interprets the values and searches the register stack for the maximum / minimum value may be a time consuming and / or power consuming process. It may be desirable to search the stack to find an extreme value by searching the values on a bit-by-bit basis.
[0017] The present invention relates to an apparatus, system and method for determining the maximum and minimum values stored in a content addressable memory (CAM) cell. A stack may contain a number of files, each of which is composed of a number of CAM cells. A value (represented as a binary number) may be stored in one or more of the files, where each bit of the value is in one of the CAM cells of the file. Each CAM cell may have a latch portion for storing bits and a comparator portion for returning a match signal based on a comparison between the stored bits and an external bit. Each file may be coupled to an accumulator circuit that stores an accumulator signal. During an extreme value search operation, a comparison bit may be compared with each bit in each of the files. The comparison bit may be provided starting with the most significant bit and working to the least significant. For example, the comparison bit may be compared with each of the most significant bits in each of the files, followed by the next most significant bit in each of the files, and so on. In some embodiments, the comparison bit may be compared with each of the most significant bits in all files simultaneously. The accumulator circuit may change the state of the accumulator signal based on a match signal from a file in the stack when the comparison bit is provided. An extreme value (eg, a maximum or minimum value) stored in the stack may be identified based on the state of the accumulator signal.
[0018] Figure 1 1 is a block diagram of a stack according to an embodiment of the present invention. The stack 100 includes a number of files 102, each of which includes a number of content addressable memory (CAM) cells 104. The CAM cells 104 in the files 102 are commonly coupled to a signal line carrying a corresponding match signal Match based on a comparison of a stored bit Q in the CAM cells 104 with an external signal Compare. Each file 102 is coupled to an accumulator circuit 106, which stores an accumulator signal MaxMin and determines the state of the accumulator signal MaxMin. The stack 100 also includes a control logic circuit 110, which can provide a signal to perform a comparison operation as part of an extreme value search operation to determine a file 102 containing an extreme value value. Various actions can be performed based on the extreme value search operation. For example, the control logic can provide a signal YMaxMin indicating an index / several indices of one or more of the files 102 containing an extreme value value (e.g., a maximum or minimum value).
[0019] The stack 100 includes a number of files 102 that may store data in one or more fields of the file 102. Each field may include a number of CAM cells 104, each of which stores a bit of data in the field. For the sake of brevity and clarity, Figure 1The file 102 is shown as including only a single field containing a numeric value. Other example embodiments may contain multiple fields per file 102, some of which may be numeric values (e.g., count values) and some of which may be non-numeric data (e.g., row addresses, flags). In general, the CAM cells 104 for each field are commonly coupled to a different signal line carrying a match signal for that field. Figure 1 The example includes only a single field, so only a single matching signal line is shown and discussed.
[0020] The stack 100 may have a certain number of files 102 , which is often referred to as the depth of the stack 100 . Figure 1 The example stack 100 of includes n files 102 which may be generally designated by an index Y. Thus, a given file 102 may be referred to as File(Y), where Y is any value between 0 and n, inclusive. Each file 102 of the stack 100 may include a number of CAM cells 104, which is generally referred to as the width of the stack 100. Figure 1 The example stack 100 of includes m different CAM cells 104, which may be generally designated by an index X. Thus, a given CAM cell 104 within a given file 102 may be referred to as Cell(X), where X is any value between 0 and m, inclusive. Each CAM cell 104 may store a bit of information, which may be generally referred to as a stored bit Q(X), where X is any value between 0 and m, inclusive. Thus, the stack 100 may have a total of n×m CAM cells 104.
[0021] All CAM cells 104 in a given file 102 may be commonly coupled to a signal line that provides a match signal Match. Since there are as many signals Match as there are files 102, the match signal may be generally referred to as Match(Y), where Y is any number between 0 and n, inclusive. Each file 102 may receive external information that may be compared to one or more designated bits Q stored in the CAM cells 104 of the file 102. Each of the CAM cells 104 within a given File(Y) 102 may be capable of changing the state of the corresponding signal Match(Y) based on a comparison between the stored bits Q and the provided external information.
[0022] In some embodiments, the CAM cell 104 may use dynamic logic to determine the state of the associated signal Match (Y). For example, all signals Match (Y) may be precharged to a first logic level indicating a match between the stored bit Q and the provided external bit. The signal Match (Y) may be precharged by one or more driver circuits (not shown). In some embodiments, the accumulator circuit 106 coupled to the signal line Match (Y) may include a driver circuit and may precharge the signal line in response to a control signal from the control logic 110. If the CAM cell 104 determines that there is no match, it may change the state of the associated signal Match (Y) to a second logic level indicating that there is no match. Figure 3 The operation of the example CAM cell 104 is described in more detail in .
[0023] Each of the signals Match (Y) is coupled to an accumulator circuit 106. There may be a certain number n of accumulator circuits, which matches the depth of the stack 100. Each accumulator circuit 106 has an accumulator latch 108 that stores an accumulator signal MaxMin (Y). At the beginning of the extreme value search operation, all accumulator signals MaxMin may be set to a first level (e.g., a high logic level). When the comparison signal Compare (X) is provided, the state of the accumulator signal MaxMin may be changed to a second level to indicate that the associated file 102 has been disqualified and does not include an extreme value. After the control logic circuit 110 performs the extreme value search operation, the state of the accumulator signal MaxMin (Y) indicates whether the associated file 102 is an extreme value. Figure 4 The structure and operation of an example accumulator circuit are described in more detail in .
[0024] The control logic circuit 110 may perform an extreme value search operation by performing a sequence of comparison operations. During one of these comparison operations, the control logic 110 may provide a comparison signal Compare(X). The signal Compare(X) may be a signal provided to all CAM cells 104 having a particular index X in all files 102. The state of the match signal Match may be used to determine whether the state of the stored bit Q(X) in any of the files 102 matches the state of the comparison signal Compare(X). For example, Compare(X) may be provided at a high logic level. Thus, if the bit Q(X) in a given File(Y) is at a high logic level, the match signal Match(Y) may be at a high logic level, and otherwise, the match signal Match(Y) may be at a low logic level. The state of the signal Compare(X) may determine the type of extreme value search operation. If the signal Compare(X) is provided at a high logic level, the extreme value search operation may be a maximum value search operation. If the signal Compare(X) is provided at a low logic level, the extreme value search operation may be a minimum value search operation.
[0025] In some embodiments, during an extremum search operation, the control logic circuit 110 may perform a comparison operation (e.g., provide Compare(X)) from the most significant bit Q(m) to the least significant bit Q(0) in the file 102. The accumulator circuit 106 may be configured such that during an extremum search operation, the states of all accumulator signals MaxMin(Y) may begin the extremum search operation in a first state and change to a second state if Match(Y) indicates that there is no match during the current comparison operation, unless all signals Match indicate that there is no match in a given comparison operation, in which case the accumulator signal MaxMin(Y) may remain in the same state regardless of the state of the associated match signal Match(Y).
[0026] The accumulator circuits 106 may be commonly coupled to a signal AnyMatchF that indicates whether any of the match signals Match(Y) indicates a match after each of the comparison signals Compare(X) is provided. The signal AnyMatchF may indicate whether a match exists for any of the accumulator circuits in which the accumulator signal MaxMin(Y) is still in an initial state (e.g., a high logic level). The accumulator circuits 106 in which the accumulator signal MaxMin(Y) has changed to a second state (e.g., a low logic level) may not be used to determine the state of the signal AnyMatchF.
[0027] The accumulator circuit 106 may use the signal AnyMatchF to determine in part whether to change the state of the accumulator signal MaxMin(Y). In some example embodiments, the control logic circuit 110 may receive all of the match signals Match and may provide the signal AnyMatchF based on the state of the signal Match(Y) and its associated accumulator signal MaxMin(Y). In some example embodiments, the accumulator circuits 106 may be commonly coupled to a signal line carrying AnyMatchF, and each of the accumulator circuits 106 may change the state of the signal AnyMatchF on the signal line based on the state of the match signal Match(Y) coupled to the accumulator circuit 106 and the state of the accumulator signal MaxMin(Y) stored in the accumulator circuit 106. During a given extremum search operation, once the accumulator signal MaxMin(Y) has changed to the second state, it may not change back to the first logic level until after the extremum search operation ends. Figure 2 The process of performing the extreme value search operation is described in more detail in .
[0028] In some embodiments, after all comparison operations as part of the extremum search operation, the control logic circuit 110 and / or the accumulator circuit 106 may resolve any ties. For example, if the extremum search operation is a search for a maximum value, it may happen that more than one of the files 102 contains the same value that is the maximum value. The stack 100 may resolve ties by, for example, keeping the accumulator signal MaxMin(Y) associated with the file 102 with the lowest index (e.g., the File(Y) with the lowest value of Y among the files 102 containing the maximum value that caused the tie) at a high level and setting the accumulator signals MaxMin of the other accumulator circuits 106 to a low level.
[0029] In some embodiments, the accumulator circuits 106 may be coupled together in a 'daisy chain' fashion such that a given accumulator (Y) receives the accumulator signal MaxMin(Y-1) from the previous accumulator (Y-1) and provides its accumulator signal MaxMin(Y) to the next accumulator (Y+1). Additional control signals (not shown) may also be coupled in a 'daisy chain' fashion between the accumulator circuits 106. These daisy chained signals may allow the accumulator circuits 106 to resolve ties such that only a single one of the accumulator signals MaxMin(Y) remains at a high level after an extremum search operation.
[0030] In some embodiments, control logic 110 may determine if an extremum was not found, and may provide one or more signals (not shown) indicating that the extremum search operation did not return a value. For example, if all files 102 contain a value of 0, the extremum search operation may return no results. In some embodiments, control logic 110 may indicate a particular file (e.g., with signal YMaxMin) in addition to (or instead of) a signal indicating that an extremum was not found.
[0031] In addition to providing the comparison signal Compare(X) and the signal AnyMatchF, the control logic 110 may also provide Figure 1 106. The control signal Control may be used to operate the accumulator circuit 106 during the extreme value search operation. The control logic circuit 110 may be a state machine that provides different control signal sequences to operate the accumulator circuit 106. For example, one of the control signals may be used to indicate that the extreme value search operation is about to begin and the states of all accumulator signals MaxMin(Y) should be set to a first state. The control signal Control may be commonly provided to the accumulator circuit 106. Figure 4 Different example control signals and their operation are discussed in more detail in .
[0032] For clarity, Figure 1 The stack 100 is shown only as coupled to the control logic circuit 110 and the signals used in the extreme value search operation. The stack 100 may also be coupled to the input data and a write signal, which may be used to overwrite one or more of the bits Q in the file 102 with the associated bits of the input data. The stack 100 may also provide one or more of the stored bits Q from one or more of the files 102. For example, a given file 102 may provide its stored values (e.g., bits Q (0 to m)) to a counter circuit, which may update the values (e.g., increment them) and then provide a write signal so that the updated values are written back to the CAM cells 104 in the file 102. In some embodiments, the state of the write signal that determines whether new data may be written to the file 102 may be determined in part by the accumulator circuit 106 based on the state of the accumulator signal MaxMin.
[0033] Figure 2 200 is a flowchart of a method for performing an extreme value search operation according to an embodiment of the present invention. In some embodiments, method 200 may be performed by Figure 1 A stack of 100 is implemented.
[0034] Method 200 may generally begin with block 205, which depicts setting an accumulator signal to a first state. The accumulator signal (e.g., Figure 1MaxMin(Y)) may be stored in an accumulator latch in the accumulator circuit (e.g., Figure 1 In some embodiments, the accumulator latch 108 in the accumulator circuit 106 of the embodiment of the present invention can be set to a first state. In some embodiments, the accumulator signal can be a one-bit signal (e.g., an accumulator bit) and the first state can be at a high logic level. In some embodiments, the control logic circuit (e.g., Figure 1 In response to receiving the initialization signal, the accumulator circuit may store a high logic level as the accumulator signal in its accumulator latch. In some embodiments, block 205 may also include setting various other signals to initial states. For example, the previous match signal ( Figure 4 ) is set to an initial inactive level.
[0035] Block 205 may generally be followed by block 210, which describes providing a first comparison bit from a comparison bit sequence. Each comparison bit (e.g., Figure 1 Compare(X)) provides a file to the stack (for example, Figure 1 All bits in a given position in each of the files 102 of FIG. 10A are compared. For example, if a given comparison bit in the sequence is the Xth bit, the comparison bit may be provided commonly to bit Q(X) in all files. In some embodiments, the sequence may start with the most significant bit (e.g., Q(m)) and then count down bit by bit to the least significant bit (e.g., Q(0)). Thus at block 210, the first comparison bit may be provided to bit Q(i) and then the next comparison bit may be provided to bit Q(i-1), and so on.
[0036] The state of the compare bit can determine the type of extremum search operation being performed. For example, if the extremum search operation is to search for the maximum value in the stack, the compare bit can be provided at a high logic level. If the extremum search operation is to search for the minimum value in the stack, the compare bit can be provided at a low logic level.
[0037] Block 210 may generally be followed by block 215, which depicts precharging the match signal to a first state. Figure 1 The signal lines of the Match (Y) of FIG. 1 are each charged to a voltage level representing a high logic level. The control logic may send a precharge signal to a driver circuit (which may be located in the accumulator circuit). The precharge signal may activate the driver circuit, thereby precharging the signal line.
[0038] Block 215 may generally be followed by block 220, which describes comparing the compare bit to the corresponding stored bit in each file. As previously discussed, the compare bit Compare(X) may be provided commonly to all bits Q(X) in all files having a given index X. Each CAM cell storing a bit Q(X) may compare the state of the stored bit Q(X) to the compare bit Compare(X). If there is a match (e.g., the bits have the same state), then the match signal Match(Y) for that file may remain in a first state (e.g., a high logic level). If there is no match, then the CAM cell may change the state of the match signal Match(Y) to a second state (e.g., a low logic level).
[0039] Block 220 may generally be followed by block 225, which describes determining whether a match exists for any of the files in which the accumulator signal is at a high level. The determination may be made based on the state of the match signal after the comparison operation described in block 220. There may be a signal (e.g., Figure 1 AnyMatchF of the accumulator signal at a low logic level). Files associated with the accumulator signal at a low logic level may be disqualified based on this determination. For example, each of the accumulator circuits may be commonly coupled to a signal line carrying AnyMatchF, which is precharged to a first level as part of block 225. Any of the accumulator circuits may then change the state of the signal line (and thus AnyMatchF) based on its associated match signal, as long as the accumulator signal stored in the accumulator circuit is at a high logic level. If the accumulator signal is at a low level, it may not affect the state of signal AnyMatchF, regardless of whether a match exists. The state of the signal line may therefore indicate whether there is at least one match in the file associated with the accumulator signal at a high logic level. If there is not at least one match (e.g., signal AnyMatchF is high), then block 225 may generally be followed by block 240, as described in more detail herein.
[0040] If there is at least one match (e.g., signal AnyMatchF is low), then block 225 may generally be followed by block 230, which describes setting a previous match signal to an active level. The control logic may contain a previous match signal having an active level that indicates that there was at least one match between the stored bit and the comparison bit at least once during the current extremum search operation. In some embodiments, the previous match signal may be a one-bit signal (e.g., a flag) where the active level is a high logic level.
[0041] Block 230 may be typically followed by block 235, which describes changing the state of the accumulator signal based on a match between the associated stored bit of the accumulator signal and the compare bit. For each file, the accumulator signal may be changed based on whether the bit Q(X) in the file matches the compare bit Compare(X). If there is no match, the accumulator signal may be changed from the first state to the second state. If there is a match, the accumulator signal may be kept in its current state. Note that once the accumulator signal is in the second state, it is typically not reset to the first state until a new extremum search operation is performed. In some embodiments, the state of the Match signal may be written to the accumulator latch to change the state of the accumulator signal, and logic (e.g., feedback) may be used to prevent the accumulator signal from returning to the first state if it is currently in the second state. Block 235 may be typically followed by block 250, as described in more detail herein.
[0042] Returning to block 225, if there is no match between the comparison bit in any of the files and the stored bit Q(X), then block 225 may generally be followed by block 240, which describes maintaining all accumulator signals at their current levels. When there is no match in any of the files (e.g., as indicated by the state of any Match signal), all accumulator signals may be maintained at their current states even if there is no match between the Match signal Match(Y) and the associated accumulator signal MaxMin(Y).
[0043] Block 240 may generally be followed by block 250. Block 235 may also generally be followed by block 250. Block 250 describes determining whether the last comparison bit from the comparison bit sequence has been provided. For example, in block 250, it may be determined whether the most recently provided comparison bit is the least significant bit Compare(0). If the last comparison bit has been provided, it may indicate that method 200 has completed providing comparison bits, and block 250 may generally be followed by block 270.
[0044] If the last compare bit has not been provided, block 250 may be typically followed by block 255, which describes providing the next compare bit in the sequence. For example, if the sequence is counting down from the most significant bit Q(m) to the least significant bit Q(0) and the previous compare bit is Compare(X), then at block 255, a compare bit Compare(X-1) may be provided. Block 255 is typically followed by block 215. The loop from block 215 to block 255 may typically continue until method 200 completes providing compare bits.
[0045] Once method 200 completes providing the comparison bits, method 200 may proceed to block 270, which describes determining whether the previous match signal is at an active level. If the previous match signal is not at an active level, it may indicate that there is no operation in which there is at least one match for the comparison bits in one of the files. For example, if all files contain numbers that are 0 (e.g., and therefore all of their bits are at a low level) and the extreme value search operation is to find a maximum value, then no bit will match the comparison bit.
[0046] If the previous match signal is at an active level (e.g., there is at least one match), then block 270 may generally be followed by optional block 260 or may be followed by block 265 without performing optional block 260. Block 260 describes resolving any ties when more than one accumulator signal is in a first state. An accumulator signal in a first state may indicate that the associated file contains an extreme value. In some applications, it may be desirable to identify only a single file as containing an extreme value. Therefore, if multiple accumulator signals are in a first state, during block 260, the control logic circuit and / or the accumulator circuit may select one of them and may change the other accumulator signals to a second state. In one example criterion for selecting a single accumulator signal (e.g., for breaking a tie), the file with the highest index may be selected (e.g., File (Y), where Y is closest to the maximum value Y=m). Other criteria may be used in other examples.
[0047] Block 260 may generally be followed by block 265, which describes determining files having extreme value values based on the state of the extreme value signal. The control logic circuit may identify files containing extreme values based on which one (or more, if block 260 is not performed) of the accumulator signals is in the first state. In some embodiments, the control logic circuit may provide a signal indicating which file contains an index of the extreme value (e.g., Figure 1 In some embodiments, various actions may be performed on files containing extreme values (or on files that do not contain extreme values). For example, after finding the minimum value in the stack, the stack may receive new data and a write signal. Only accumulator circuits where the accumulator signal is still high (e.g., the minimum value) may pass the write signal to the CAM cells of the file and thus only the minimum value may be rewritten.
[0048] Returning to block 270, if the previous match signal is not at an active level (e.g., there is no match), block 270 may generally be followed by block 275, which describes indicating that no extrema were determined. For example, block 275 may involve determining that no extrema exist because all count values are equal. In some embodiments, block 275 may involve providing a signal indicating that the extrema search operation was not successfully completed (e.g., because all files store equal count values). In some embodiments, files may still be indicated as placeholders, for example, by following a procedure similar to that described in block 260.
[0049] Figure 3 3 is a schematic diagram of a CAM unit according to an embodiment of the present invention. In some embodiments, the CAM unit 300 may implement Figure 1 CAM cell 104. CAM cell 300 includes latch portion 312 and comparator portion 314. CAM cell 300 may generally use voltages to represent the values of various bits. CAM cell 300 may include conductive elements (e.g., nodes, conductive lines) that carry voltages representing the logical values of the bits. For example, a high logic level may be represented by a first voltage (e.g., a system voltage such as VPERI), while a low logic level may be represented by a second voltage (e.g., a ground voltage such as VSS).
[0050] The latch portion of the CAM cell 300 may store a latch representing a stored bit (e.g., Figure 1 When CAM cell 300 receives a bit of input data represented by signals D and DF and a write signal Write, the value of the input data may overwrite the stored bit and become the new stored bit. CAM cell 300 may receive an external bit represented by signals X_Compare and XF_Compare (e.g., Figure 1 Based on the comparison, the CAM cell may change a match signal BitMatch (e.g., BitMatch) that may be shared with one or more other CAM cells in the same field of the file. Figure 1 The status of Match(Y)).
[0051] The latch portion 312 includes a first transistor 316 having a source coupled to a node providing a voltage VPERI that can represent a high logic level. The first transistor 316 has a drain coupled to a node 327 having a voltage representing the value of the signal Q and a gate coupled to a node 329 having a voltage representing the value of the complementary signal QF. The signal Q represents the logic level of the bit stored in the latch portion 312. The first transistor 316 can be a p-type transistor. The latch portion 312 also includes a second transistor 317 having a source coupled to a node providing VPERI, a gate coupled to the node 327, and a drain coupled to the node 329. The second transistor 317 can be a p-type transistor.
[0052] The latch portion 312 includes a third transistor 318 having a drain coupled to a node 327, a gate coupled to a node 329, and a source coupled to a node providing a ground voltage VSS that may represent a low logic level. The third transistor 318 may be an n-type transistor. The latch portion 312 includes a fourth transistor 319 having a drain coupled to a node 329, a gate coupled to a node 327, and a source coupled to a node providing a ground voltage VSS. The fourth transistor 319 may be an n-type transistor. The transistors 316 and 318 may form an inverter circuit, and the transistors 317 and 319 may form another inverter circuit, and the two inverter circuits are cross-coupled with each other.
[0053] In operation, the first, second, third, and fourth transistors 316 to 319 can work to store the values of the stored signals Q and QF. Transistors 316 to 319 can work together to couple node 327 carrying Q and node 329 carrying QF to nodes that provide a system voltage (e.g., VPERI or VSS) associated with the values of the signals Q and QF. For example, if the stored signal Q is at a high logic level, the inverted signal QF is at a low logic level. The first transistor 316 can be active, and VPERI can be coupled to node 327. The second transistor 317 and the third transistor 318 can be inactive. The fourth transistor 319 can be active and can couple VSS to node 329. This can keep node 327 at a voltage VPERI representing a high logic level and keep node 329 at a voltage VSS representing a low logic level. In another example, if the stored signal Q is at a low logic level, the inverted signal QF can be at a high logic level. Both the first transistor 316 and the fourth transistor 319 may be inactive. The second transistor 317 may be active and may couple VPERI to the node 329. The third transistor 318 may also be active and may couple VSS to the node 327. In this manner, the stored signals Q and QF may be coupled to respective system voltages corresponding to their current logic levels, which may maintain the current logic value of the stored bit.
[0054] The latch portion 312 also includes a fifth transistor 320 and a sixth transistor 321. Transistors 320 and 321 may be used as switches that may couple a signal line carrying input data D and a signal line carrying inverted input data DF to nodes 327 and 329 carrying Q and QF, respectively, when a write signal Write is active. The fifth transistor 320 has a gate coupled to a line carrying the Write signal, a drain coupled to the signal D, and a source coupled to the node 329. The sixth transistor 321 has a gate coupled to the Write signal, a drain coupled to the signal DF, and a source coupled to the node 329. Thus, when the Write signal is at a high level (e.g., at a voltage such as VPERI), transistors 320 and 321 may be active, and the voltages of the signals D and DF may be coupled to nodes 327 and 329 carrying Q and QF, respectively.
[0055] In some embodiments, the first transistor 316 to the sixth transistor 321 may generally all be the same size as each other. For example, transistors 316 to 321 may have a gate width of approximately 300 nm. Other sizes of transistors 316 to 321 may be used in other examples. The CAM cell 300 also includes a comparator portion 314. The comparator portion 314 may compare signals Q and QF with signals X_Compare and XF_Compare. The signal X_Compare may represent the logic level of an external bit provided to the comparator portion 314. If there is no match between the signals Q and X_Compare (and therefore between QF and XF_Compare), the comparator portion 314 may change the state of the BitMatch signal from a first logic level (e.g., a high logic level) to a second logic level (e.g., a low logic level). For example, if the stored bit does not match the external bit, the comparator portion 314 may couple the ground voltage VSS to the signal line carrying the signal BitMatch. In some embodiments, if there is a match between the stored bit and the external bit, then comparator portion 314 may perform any such operation. In some embodiments, signal BitMatch may be precharged to a voltage associated with a high logic level (e.g., VPERI) prior to the comparison operation. Figure 2 During block 225), both X_Compare and XF_Compare may be maintained at a low logic level.
[0056] The comparator portion includes a seventh transistor 322, an eighth transistor 323, a ninth transistor 324, and a tenth transistor 325. The seventh transistor 322 and the ninth transistor 324 may implement Figure 1 The eighth transistor 323 and the tenth transistor 325 may implement Figure 1 The seventh transistor 322 includes a drain coupled to the signal BitMatch, a gate coupled to a node 327 (eg, signal Q), and a source coupled to the drain of the ninth transistor 324. The ninth transistor 324 also has a gate coupled to the signal XF_Compare and a source coupled to a signal line providing a ground voltage VSS.
[0057] The eighth transistor 323 has a drain coupled to the signal BitMatch, a gate coupled to the node 329 (eg, signal QF), and a source coupled to the drain of the tenth transistor 325. The tenth transistor has a gate coupled to the signal X_Compare and a source coupled to the ground voltage VSS.
[0058] Since signal Q is complementary to signal QF, comparator portion 314 may operate by comparing external signal X_Compare to signal QF to see if they match and comparing inverted external signal XF_Compare to stored signal Q to see if they match. If they do match, it may indicate that signal X_Compare does not match signal Q and signal XF_Compare does not match signal QF, and therefore the external bit does not match the associated stored bit.
[0059] Comparator portion 314 may use relatively few components because it changes signal BitMatch from a known state (e.g., a precharged high logic level) to a low logic level. Therefore, it may not be necessary to include additional components (e.g., additional transistors) to change the logic level of signal BitMatch from low to high or from an unknown level to low or high. Comparator portion 314 may utilize this to provide dynamic logic. For example, comparator portion 314 has two portions (e.g., transistors 322 / 324 and transistors 324 / 325), either of which may couple signal BitLine to voltage VSS if there is no match between the stored bit and the external bit. Since only one of the portions is active at a time, the active portion only needs to check the state of signal Q or QF. Either of the portions is equally capable of changing signal BitMatch to a low logic level.
[0060] In example operation, if the stored signal Q is at a high logic level (and therefore signal QF is low) and the external signal X_Compare is also high (and signal XF_Compare is low), the external signal may match the stored signal, and transistors 322 and 325 may be active while transistors 324 and 323 are inactive. This may prevent ground voltage VSS from coupling to signal BitMatch. If signal X_Compare is low (e.g., if there is no match), the external signal may not match the stored signal, and transistors 322 and 324 may be active while transistors 323 and 325 are inactive. Transistors 322 and 324, which are active at the same time, may couple ground voltage VSS to signal BitMatch.
[0061] In another example operation, if the stored signal Q is low (and therefore signal QF is high), transistor 322 may be inactive and transistor 323 may be active. If the external signal X_Compare is low (and XF_Compare is high), the external signal may match the stored bit, and transistor 324 may be active and transistor 325 may be inactive. If the signal X_Compare is high (and signal XF_Compare is low), the external signal may not match the stored signal, and transistor 324 may be inactive and transistor 325 may be active. Thus, signal BitMatch may be coupled to ground voltage VSS through active transistors 323 and 325.
[0062] In some embodiments, transistors 322-325 of comparator portion 314 may generally all be the same size as one another. In some embodiments, transistors 322-325 of comparator portion 314 may be a different size than transistors 316-321 of latch portion 312. For example, transistors 322-325 may have a gate width of approximately 400 nm and a gate length of approximately 45 nm. Other sizes of transistors 322-325 may be used in other examples.
[0063] Figure 4 4 is a schematic diagram of an accumulator circuit according to an embodiment of the present invention. In some embodiments, the accumulator circuit 400 may be implemented Figure 1 The accumulator circuit 400 includes a storage accumulator signal MaxMinY (which is Figure 4 accumulator bits in the case of the example accumulator circuit 400) of the latch circuit 408 (e.g., Figure 1 The latch circuit 408 may provide a signal MaxMinY (eg, Figure 1 The accumulator circuit 400 may receive various inputs and control signals for determining the state of the accumulator signal stored in the latch circuit 408 during the extreme value search operation.
[0064] The accumulator circuit 400 is commonly coupled to all other accumulator circuits from a control logic circuit (e.g., Figure 1 The control logic circuit 110 of the embodiment receives the control signal BitxCompPre. The signal BitxCompPre can be used for a precharge operation (eg, Figure 2 In some embodiments, the match signal BitxMatch_Y may be implemented as Figure 1 Match signal Match (Y) and / or Figure 3 Thus, whenever a compare operation is performed (e.g., whenever a compare bit is provided to a file in the stack), the control logic circuit may provide the signal BitxCompPre to be at a high logic level (e.g., a high voltage). The signal BitxCompPre may be 'pulsed' (e.g., briefly provided to be at a high level and then returned to a low level) by the control logic in order to precharge the node carrying the match signal BitxMatch_Y.
[0065] It may also be desirable to prevent the node carrying the signal BitxMatch_Y from floating between operations. The control signal Standby may be used to indicate that a comparison operation is not currently being performed. The signal Standby may be provided in common to all accumulator circuits of the stack. Thus, the control logic circuit may provide a pulse of the signal BitxCompPre when a comparison operation is to be performed and provide the signal Standby when a comparison operation is not being performed. During a comparison operation, the state of the node carrying the signal BitxMatch_Y may be allowed to change (e.g., both BitxCompPre and Standby are not active).
[0066] The node carrying the signal Standby is coupled to the gate of transistor 433, which has a source coupled to a ground voltage (e.g., VSS) and a drain coupled to the node carrying the match signal BitxMatch_Y. Transistor 433 may be an n-type transistor. Thus, when the signal Standby is provided, transistor 433 is active and the node carrying the signal BitxMatch_Y is coupled to ground to prevent it from floating.
[0067] In one embodiment, Figure 4 4, the signal BitxCompPre may be coupled to the gate of transistor 432 through an inverter circuit. The source of transistor 432 is coupled to a system voltage (e.g., VPERI) that is higher than the ground voltage VSS and the drain of transistor 432 is coupled to a node carrying the matching signal BitxMatch_Y. Transistor 432 may be a p-type transistor. Thus, in this embodiment, when the signal BitxCompPre is provided at a high level, transistor 432 may be active and may couple the node carrying BitxMatch_Y to the system voltage in order to precharge it.
[0068] In some embodiments, for example Figure 4In the embodiment shown in , it may be desirable to allow only files containing extreme values to be precharged for comparison operations. For example, after finding the extreme value, it may be useful to compare only the external numerical value with the file containing the extreme value. In order to achieve this functionality, the signal BitxCompPre is coupled to one of the input terminals of the "NAND" gate 431. The other input terminal of the "NAND" gate 431 can be coupled to the output terminal of the "OR" gate 430, and the "OR" gate 430 has an input terminal coupled to the control signal FindMaxMinOp and the accumulator signal MaxMinY. The control signal FindMaxMinOp can be provided to all accumulator circuits in the stack together. The accumulator signal MaxMinY is the value stored in the latch circuit 408 of the specific accumulator circuit 400, and therefore the value of the accumulator signal MaxMinY can be different in different accumulator circuits.
[0069] When it is desired to precharge all match signals BitxMatch_Y across the depth of the stack, the signal FindMaxMinOp may be pulsed at the same time as the signal BitxCompPre is pulsed. Thus, the OR gate 430 may provide a high logic output, and thus both inputs of the NAND gate 431 may be at a high level, causing it to return a low logic level signal to activate transistor 432.
[0070] If it is desired to precharge only nodes carrying match signals in files with extreme values, then the signal FindMaxMinOp may be kept at a low level (e.g., not provided) when the signal BitxCompPre is pulsed. The state of the accumulator signal MaxMinY may determine whether the accumulator circuit 400 for a particular file charges the signal line carrying the match signal BitxMatch_Y. If the accumulator signal MaxMinY is at a high level (e.g., indicating that the accumulator circuit is associated with a file containing an extreme value), then the match signal BitxMatch_Y may be precharged when the signal BitxCompPre is pulsed. If the accumulator signal is at a low level (e.g., indicating that the accumulator circuit is not associated with an extreme value), then the match signal BitxMatch_Y is not precharged. In some embodiments, the signal FindMaxMinOp may be omitted, and since the signal MaxMinY is initially set to a high level, the signal MaxMinY may be used to activate the transistor 432 (together with BitxCompPre).
[0071] like Figures 1 to 3, after precharging the signal line carrying the match signal BitxMatch_Y, a comparison operation may be performed in which a comparison bit is provided and compared with one of the bits in the file coupled to the accumulator circuit 400. After the comparison operation, the node carrying the match signal BitxMatch_Y may have a voltage indicating the comparison result, which is a high voltage (e.g., VPERI) if the comparison bit matches the stored bit or a low voltage (e.g., VSS) if there is no match. The node carrying the match signal BitxMatch_Y is coupled to the input terminal D of the latch circuit 408. When the latch terminals LAT and LATf of the latch circuit 408 are triggered, the value of the match signal BitxMatch_Y may be saved as the value of the accumulator signal stored in the latch circuit 408.
[0072] The accumulator circuit 400 receives the control signal BitxMatchAccumSample in common with other accumulator circuits. The control logic circuit may pulse the signal BitxMatchAccumSample after each of the comparison operations (e.g., a delay time after pulsing the signal BitxCompPre). The control signal BitxMatchAccumSample may partially determine whether and when the latch circuit 408 captures the value of the match signal BitxMatch_Y and saves it as the value of the accumulator signal MaxMinY.
[0073] The signal BitxMatchAccumSample is coupled to an input terminal of a NAND gate 436. Another input terminal of the NAND gate 436 is coupled to a node carrying the accumulator signal MaxMinY stored in the latch. When the signal BitxMatchAccumSample is pulsed, the current value of the match signal BitxMatch_Y can be captured in the latch circuit 408 only if the current value of the accumulator signal MaxMinY is still at a high level. If the accumulator signal MaxMinY has changed to a low level (e.g., due to a mismatch caused by a previous comparison operation), the latch circuit 408 will be blocked from capturing future values of the match signal BitxMatch_Y. The NAND gate 436 has an output terminal coupled to the latch input LAT of the latch circuit 408 and also coupled to the inverted latch input LATf through the inverter circuit 437.
[0074] The latch circuit 408 has a setting input Sf coupled to a control signal FindMaxMinOp_InitF. The signal FindMaxMinOp_InitF may be commonly coupled to all accumulator circuits of the stack. The signal FindMaxMinOp_InitF may be used to set all latch circuits 408 in different accumulator circuits to be set before an extreme value search operation (e.g., as Figure 2 The signal FindMaxMinOp_InitF may be pulsed from a high level to a low level and then returned to a high level. This may cause all latch circuits 408 to be set to store a high level before starting the extreme value search operation. Since all latch circuits 408 are initialized to store a high level as the accumulator signal, all latch circuits 408 may initially respond to the signal BitxMatchAccumSample until the latch is disqualified by the match signal BitxMatch_Y being at a low level after the comparison operation.
[0075] All accumulator circuits may be commonly coupled to a signal line carrying a signal AnyYbitMatchF, which in some embodiments may be Figure 1 The signal AnyYbitMatchF can indicate whether any of the match signals BitxMatch_Y is at a high logic level after the comparison operation. In some embodiments, the state of the signal AnyYbitMatchF can be determined using dynamic logic (e.g., similar to Figure 2 For example, after each comparison operation, the signal AnyYbitMatchF may be precharged to a high level (e.g., a system voltage, such as VPERI), and each of the accumulator circuits 400 may be capable of changing the state of the signal AnyYbitMatchF to a low level if the match signal BitxMatch_Y of the file is at a high level (e.g., indicating a match) after the comparison operation.
[0076] The signal line carrying the signal AnyYbitMatchF may be coupled to a driver circuit (not shown) that may precharge the signal line prior to a comparison operation. The driver circuit may precharge the signal line in response to a control signal CrossRegCompPreF provided by the control logic. The signal CrossRegCompPreF may be pulsed low to precharge the signal line carrying AnyYbitMatchF. In some embodiments, the driver circuit may include a transistor having a gate coupled to CrossRegCompPreF, a source coupled to a system voltage (e.g., VPERI), and a drain coupled to the signal line carrying AnyYbitMatchF. The transistor may be a p-type transistor such that when the signal CrossRegCompPreF is pulsed low, the transistor is active and couples the signal line to VPERI to precharge it.
[0077] Each of the accumulator circuits 400 has a transistor 434 having a source coupled to a signal line carrying AnyYbitMatchF and a drain coupled to the source of transistor 443. The drain of transistor 443 is coupled to the source of transistor 435. The drain of transistor 435 is coupled to a ground voltage (e.g., VSS). Transistors 434, 435, and 443 may be n-type transistors. The gate of transistor 434 is coupled to a control signal CrossRegComp that may be provided commonly to all accumulator circuits. Signal CrossRegComp may be pulsed high by control logic to determine whether to return to the state of the accumulator circuit after a comparison operation (e.g., as a Figure 2 225 of the block 225 of FIG. 225 ) is at a high level. The gate of transistor 443 is coupled to the signal MaxMinY. The gate of transistor 435 is coupled to the node carrying the match signal BitxMatch_Y. Therefore, when the signal CrossRegComp is pulsed, transistor 434 is activated. If the match signal BitxMatch_Y is high, then transistor 435 is activated. If the accumulator signal MaxMinY is at a high level, then transistor 443 is active. If all transistors 434, 435 and 443 are activated, then the signal line carrying AnyYbitMatchF is coupled to the ground voltage VSS. Therefore, the state of the signal AnyYbitMatchF can only be changed when the accumulator signal MaxMinY is at a high level, the match signal BitxMatch_Y is at a high level, and the command signal CrossRegComp is provided.
[0078] During the extreme value search operation, for each comparison operation, the signal line AnyYbitMatchF may be precharged to a high level and may be pulled to a low level if any of the match signals BitxMatch_Y is at a high level (e.g., indicating a match). The control logic circuit may use the state of the signal AnyYbitMatchF to determine whether the state of the accumulator signal should be changed (e.g., as Figure 2 For example, in response to signal AnyYbitMatchF being at a low level (e.g., indicating at least one match), control logic may provide a pulse of signal BitXMatchAccumSample. In response to signal AnyYbitMatchF being at a high level (e.g., indicating no match), control logic may skip providing signal BitXMatchAccumSample for a given comparison operation.
[0079] In some embodiments, different accumulator circuits 400 may be connected together in a 'daisy chain' fashion. This may allow the accumulator circuits 400 and control logic circuits to work together to resolve any ties so that only one accumulator latch 408 in one of the accumulator circuits 400 holds a high value. For example, the accumulator circuits 400 may collectively receive a control signal ClrLessSigAccums indicating that a tie should be resolved. Each accumulator circuit 400 may also receive signals AccumYp1_Clr and MaxMinYp1 from the previous accumulator circuit 400. The signal MaxMinYp1 may be the accumulator signal MaxMinY of the previous accumulator circuit. The signal AccumYp1_Clr may be the signal AccumsLessThanY_Clr from the previous accumulator circuit (which will be described herein).
[0080] The accumulator circuit includes an OR gate 438 having an input terminal coupled to the signal AccumYp1_Clr and an input terminal coupled to the signal MaxMinYp1. The output terminal of the OR gate 438 is coupled to one of the input terminals of the NAND gate 439. The other input terminal of the NAND gate 439 is coupled to the control signal ClrLessSigAccums. The first accumulator circuit in the daisy chain may have inputs AccumYp1_Clr and MaxMinYp1 coupled to a ground voltage to initialize the signals. When the control signal ClrLessSigAccums is pulsed, if AccumYp1_Clr or MaxMinYp1 is at a high level, the inverting reset terminal Rf of the latch circuit 408 may receive a low signal (e.g., a ground voltage) from the NAND gate 439 and may reset the value stored in the latch circuit 408 (e.g., resetting the signal MaxMinY to a low level). The output terminal of the NAND gate 439 passes through the inverter circuit 440 to become the signal AccumsLessThanY_Clr, which is provided to the next accumulator circuit in the daisy chain (eg, becomes the signal AccumYp1_Clr).
[0081] The direction in which the accumulator circuits 400 are coupled together may determine the criteria used to break ties. For example, the accumulator circuit associated with File(Y) may receive signals AccumYp1_Clr and MaxMinYp1 from the accumulator circuit associated with File(Y+1), and so on. This may cause any ties to be broken in favor of the accumulator circuit with the highest index. Note that in some embodiments, the accumulator circuits may be daisy-chained in opposite directions (e.g., File(0) may provide a signal to File(1)), and they only change the direction in which the tie is broken (e.g., from the lowest numbered register to the highest numbered register).
[0082] In example operation, after all comparison bits have been provided (e.g., in Figure 2), there may be 3 accumulator circuits that each store a corresponding accumulator signal: MaxMin2 is high; MaxMin1 is low; MaxMin0 is high. In this example, the accumulator circuits are daisy-chained from the highest index to the lowest index. When the signal ClrLessSigAccums is pulsed, the first accumulator circuit may receive a low logic input on both AccumYp1_Clr and MaxMinYp1 (because this is how those signals are initialized). Therefore, the accumulator signal MaxMin2 is not reset and remains at a high value. The second accumulator receives the signal AccumYp1_Clr at a low logic level (because the previous accumulator circuit was not reset) and receives MaxMinYp1 at a high level because MaxMinYp1=MaxMin2. Therefore, the second accumulator circuit receives a reset signal (e.g., the output of the "NAND" gate 439 is at a low level), but the accumulator signal MaxMin1 is already at a low level and remains at a low level. The third accumulator circuit receives the signal AccumYp1_Clr at a high level (because the previous circuit did receive a reset signal, even though it did not cause any changes) and MaxMinYp1 at a low level (e.g., because MaxMin1 is low). Thus, the third accumulator circuit may be reset (because at least one of AccumYp1_Clr and MaxMinYp1 is high) and the third accumulator signal MaxMin0 may change to a low level. Thus, after the signal ClrLessSigAccums is pulsed, MaxMin2 is high, MaxMin1 is low, and MaxMin0 is low.
[0083] In some embodiments, the accumulator circuit 400 can control whether data can be written to the associated file based on the state of the accumulator signal. Each of the accumulator circuits 400 can commonly receive a signal CountWriteEn that can be coupled to an input terminal of a NAND gate 441. Another input terminal of the NAND gate 441 can be coupled to an output terminal Q of the latch circuit 408 that provides the accumulator signal MaxMinY. The NAND gate 441 can provide a signal as CountWriteY through an inverter circuit 442. The signal CountWriteY can be a write signal indicating a value in a rewritable register (e.g., Figure 3 Due to the NAND gate 441 and the inverter 442, when the signal CountWriteEn is provided, the signal CountWriteY may be at a high level only for the accumulator circuits storing the accumulator signal at a high logic level (eg, indicating an extreme value).
[0084] An example environment in which storing numerical values and identifying extreme values may be useful is a semiconductor memory device. A memory device may be used to store one or more bits of information in a memory cell array that contains a plurality of memory cells, each of which includes one or more bits of information. The memory cells may be organized at the intersection of rows (word lines) and columns (bit lines). During various operations, the memory device may access one or more memory cells along a specified word line or bit line by providing a row and / or column address for the specified word line and bit line.
[0085] An example application of the stack, accumulator circuits, and control logic circuits of the present invention is a refresh operation in a memory device. Information in a memory cell may decay over time, and may need to be periodically refreshed (e.g., by rewriting the original value of the information to the memory cell). Repeated accesses to a particular row of memory (e.g., an aggressor row) may cause an increase in the decay rate in an adjacent row (e.g., a victim row), due, for example, to electromagnetic coupling between the rows. This may be generally referred to as a 'hammered' row or row hammer event. In order to prevent information from being lost due to row hammering, it may be necessary to identify the aggressor row so that the corresponding victim row can be refreshed (a 'row hammer refresh' or RHR). The row address of the accessed row may be stored and may be compared to the new row address to determine whether one or more rows require an RHR operation.
[0086] Access counts to different rows of memory may be stored in a stack (eg Figure 1 The row address may be stored in one field of each file, and the count value associated with the row address may be stored in another field of the file. Whenever a row address is accessed, its count value may be updated (e.g., incremented). Based on the count value, the victim row associated with the stored row address may be refreshed. For example, the extremum search operation for the maximum value (e.g., as in Figure 2 The maximum count value is selected as described in . The victim row associated with the aggressor row associated with the maximum value may then be refreshed. In another example, in some cases, it may be necessary to replace the row address in the stack, and an extremum search operation may be performed to find the minimum value in the stack, and the row address associated with the minimum value may be rewritten. Figure 4 The functionality described in where write signals are only supplied to files associated with extreme values may be useful in this example.
[0087] Figure 5 is a block diagram showing an overall configuration of a semiconductor device according to at least one embodiment of the present invention. Semiconductor device 500 may be a semiconductor memory device, such as a DRAM device integrated on a single semiconductor chip.
[0088] Semiconductor device 500 includes a memory array 568. Memory array 568 is shown as including a plurality of memory banks. Figure 1 In the embodiment of the present invention, the memory array 568 is shown to include eight memory banks BANK0 to BANK7. More or fewer memory banks may be included in the memory array 568 of other embodiments. Each memory bank includes a plurality of word lines WL, a plurality of bit lines BL and / BL, and a plurality of memory cells MC arranged at the intersections of the plurality of word lines WL and the plurality of bit lines BL and / BL. The selection of the word lines WL is performed by the row decoder 558, and the selection of the bit lines BL and / BL is performed by the column decoder 560. Figure 1 In the embodiment of the present invention, the row decoder 558 includes a corresponding row decoder for each memory bank and the column decoder 560 includes a corresponding column decoder for each memory bank. The bit lines BL and / BL are coupled to corresponding sense amplifiers (SAMPs). The read data from the bit line BL or / BL is amplified by the sense amplifier SAMP and transmitted to the read / write amplifier 570 via the complementary local data line (LIOT / B), the transfer gate (TG) and the complementary main data line (MIOT / B). Conversely, the write data output from the read / write amplifier 570 is transmitted to the sense amplifier SAMP via the complementary main data line MIOT / B, the transfer gate TG and the complementary local data line LIOT / B and written in the memory cell MC coupled to the bit line BL or / BL.
[0089] The semiconductor device 500 may employ a plurality of external terminals, including a command and address (C / A) terminal coupled to a command and address bus to receive commands and addresses and a CS signal, a clock terminal for receiving clocks CK and / CK, a data terminal DQ for providing data, and a power supply terminal for receiving power supply potentials VDD, VSS, VDDQ, and VSSQ.
[0090] The clock terminal is supplied with external clocks CK and / CK provided to the input circuit 562. The external clocks may be complementary. The input circuit 562 generates an internal clock ICLK based on the CK and / CK clocks. The ICLK clock is provided to the command decoder 560 and to the internal clock generator 564. The internal clock generator 564 provides various internal clocks LCLK based on the ICLK clock. The LCLK clock can be used to time the operation of various internal circuits. The internal data clock LCLK is provided to the input / output circuit 572 to time the operation of the circuit included in the input / output circuit 572, for example, to the data receiver to time the reception of the write data.
[0091] The C / A terminal may be supplied with a memory address. The memory address supplied to the C / A terminal is transmitted to the address decoder 554 via the command / address input circuit 552. The address decoder 554 receives the address and supplies the decoded row address XADD to the row decoder 558 and the decoded column address YADD to the column decoder 560. The address decoder 554 may also supply a decoded memory bank address BADD, which may indicate a memory bank of the memory array 568 containing the decoded row address XADD and the column address YADD. The C / A terminal may be supplied with a command. Examples of commands include timing commands for controlling the timing of various operations, access commands for accessing memory (e.g., a read command for performing a read operation and a write command for performing a write operation), and other commands and operations. The access command may be associated with one or more row addresses XADD, column addresses YADD, and memory bank addresses BADD to indicate the memory cells to be accessed.
[0092] The command may be provided as an internal command signal via the command / address input circuit 552 to the command decoder 556. The command decoder 556 includes circuits to decode the internal command signal to generate various internal signals and commands for performing operations. For example, the command decoder 556 may provide a row command signal to select a word line and a column command signal to select a bit line.
[0093] The device 500 may receive an access command that is a read command. When the read command is received and the bank address, row address, and column address are supplied in time with the read command, read data is read from the memory cell corresponding to the row address and column address in the memory array 568. The read command is received by the command decoder 556, which provides an internal command so that the read data from the memory array 568 is provided to the read / write amplifier 570. The read data is output to the data terminal DQ externally via the input / output circuit 572.
[0094] The device 500 may receive an access command that is a write command. When the write command is received and the memory address, row address, and column address are supplied in time with the write command, the write data supplied to the data terminal DQ is written to the memory cell corresponding to the row address and column address in the memory array 568. The write command is received by the command decoder 556, which provides an internal command so that the write data is received by the data receiver in the input / output circuit 572. The write clock may also be provided to the external clock terminal to time the reception of the write data by the data receiver of the input / output circuit 572. The write data is supplied to the read / write amplifier 570 via the input / output circuit 572 and supplied to the memory array 568 by the read / write amplifier 570 to be written into the memory cell MC.
[0095] The device 500 may also receive a command that causes it to perform a refresh operation. The refresh signal AREF may be a pulse signal that is activated when the command decoder 556 receives a signal indicating an automatic refresh command. In some embodiments, the automatic refresh command may be issued to the memory device 500 from the outside. In some embodiments, the automatic refresh command may be periodically generated by a component of the device. In some embodiments, the refresh signal AREF may also be activated when an external signal indicates a self-refresh entry command. The refresh signal AREF may be activated once immediately after the command is input, and may thereafter be cyclically activated at a desired internal timing. Thus, the refresh operation may continue automatically. The self-refresh exit command may cause the automatic activation of the refresh signal AREF to stop and return to an idle state.
[0096] The refresh signal AREF is supplied to the refresh address control circuit 566. The refresh address control circuit 566 supplies the refresh row address RXADD to the row decoder 558, and the row decoder 558 can refresh the word line WL indicated by the refresh row address RXADD. The refresh address control circuit 566 can control the timing of the refresh operation, and can generate and provide the refresh address RXADD. The refresh address control circuit 566 can be controlled to change the details of the refresh address RXADD (e.g., how to calculate the refresh address, the timing of the refresh address), or can operate based on internal logic.
[0097] The refresh address control circuit 566 may selectively output a target refresh address (e.g., a victim address) or an automatic refresh address (auto-refresh address) as the refresh address RXADD. The auto-refresh address may be an address sequence provided based on activation of the auto-refresh signal AREF. The refresh address control circuit 566 may cycle through the auto-refresh address sequence at a rate determined by AREF.
[0098] The refresh address control circuit 566 may also determine a target refresh address for an address that needs to be refreshed (e.g., a victim address corresponding to a victim row) based on an access pattern of nearby addresses (e.g., an aggressor address corresponding to an aggressor row) in the memory array 568. The refresh address control circuit 566 may selectively use one or more signals of the device 500 to calculate the target refresh address RXADD. For example, the refresh address RXADD may be calculated based on a row address XADD provided by the address decoder. The refresh address control circuit 566 may sample the current value of the row address XADD provided by the address decoder 554 and determine the target refresh address based on one or more of the sampled addresses.
[0099] The refresh address RXADD may be provided at a timing based on the timing of the refresh signal AREF. The refresh address control circuit 566 may have time slots corresponding to the timing of AREF, and may provide one or more refresh addresses RXADD during each time slot. In some embodiments, the target refresh address may be issued in a time slot that would otherwise be assigned to an auto-refresh address (e.g., "stolen") time slot. In some embodiments, certain time slots may be reserved for the target refresh address, and the refresh address control circuit 566 may determine whether to provide a target refresh address, provide no address during that time slot, or provide an auto-refresh address instead during that time slot.
[0100] The target refresh address may be based on the characteristics of the row address XADD received from the address decoder 554 over time. The refresh address control circuit 566 may sample the current row address XADD to determine its characteristics over time. The sampling may occur intermittently, with each sample being acquired based on a random or semi-random timing. The access count associated with the received row address XADD may be stored in a stack (e.g., Figure 1 In some embodiments, an access count exceeding a threshold value may cause its victim address to be calculated and refreshed. In some embodiments, an extreme value search operation may be performed (e.g., Figure 2 ), and the address with the largest access count can be identified as the attacker.
[0101] The refresh address control circuit 566 may use different methods to calculate the target refresh address based on the sampled row address XADD. For example, the refresh address control circuit 566 may determine whether a given row is an aggressor address and then calculate and provide an address corresponding to the victim address of the aggressor address as the target refresh address. In some embodiments, more than one victim address may correspond to a given aggressor address. In this case, the refresh address control circuit may queue up multiple target refresh addresses and sequentially provide the multiple target refresh addresses when it determines that a target refresh address should be provided. The refresh address control circuit 566 may provide the target refresh address immediately, or may queue up the target refresh address to be provided at a later time (e.g., in the next time slot available for target refresh).
[0102] The power supply terminal is supplied with power supply potentials VDD and VSS. The power supply potentials VDD and VSS are supplied to the internal voltage generator circuit 574. The internal voltage generator circuit 574 generates various internal potentials VPP, VOD, VARY, VPERI, etc. based on the power supply potentials VDD and VSS supplied to the power supply terminal. The internal potential VPP is mainly used in the row decoder 558, the internal potentials VOD and VARY are mainly used in the sense amplifier SAMP included in the memory array 568, and the internal potential VPERI is used in many peripheral circuit blocks.
[0103] The power supply terminal is also supplied with power supply potentials VDDQ and VSSQ. The power supply potentials VDDQ and VSSQ are supplied to the input / output circuit 572. In an embodiment of the present invention, the power supply potentials VDDQ and VSSQ supplied to the power supply terminal may be the same potentials as the power supply potentials VDD and VSS supplied to the power supply terminal. In another embodiment of the present invention, the power supply potentials VDDQ and VSSQ supplied to the power supply terminal may be different from the power supply potentials VDD and VSS supplied to the power supply terminal. The power supply potentials VDDQ and VSSQ supplied to the power supply terminal are used for the input / output circuit 572 so that the power supply noise generated by the input / output circuit 572 is not propagated to other circuit blocks.
[0104] Figure 6 666 and row decoders 658. In some embodiments, the components shown within the dashed lines may be located in each of the memory banks 668. Thus, there may be multiple refresh address control circuits 666 and row decoders 658. For the sake of brevity, only the components of a single memory bank will be described.
[0105] The DRAM interface 676 may provide one or more signals to the address refresh control circuit 676 and the row decoder 658. The refresh address control circuit 666 may include a sample timing generator 680, an aggressor detector circuit 682, a row hammer refresh (RHR) state control 686, and a refresh address generator 684. The DRAM interface 676 may provide one or more control signals, such as an auto-refresh signal AREF and a row address XADD. The optional sample timing generator 680 generates a sampling signal ArmSample.
[0106] In some embodiments, the aggressor detector circuit 682 may receive each row address XADD associated with each access operation. In some embodiments, the aggressor detector circuit 682 may sample the current row address XADD in response to activation of ArmSample.
[0107] Aggressor detector circuit 682 may store received row addresses XADD and determine whether a current row address XADD is an aggressor address based on one or more previously stored addresses. Aggressor detector circuit 682 may include a stack (e.g., Figure 1The attacker detector circuit 682 may provide one or more of the stored addresses as a matching address HitXADD to the refresh address generator 684 based on their associated count values.
[0108] The RHR state control 686 may control the timing of a target refresh operation. The RHR state control 686 may provide a signal RHR to indicate that a row hammer refresh (e.g., a refresh of a victim row corresponding to an identified aggressor row) should occur. The RHR state control 686 may also provide an internal refresh signal IREF to indicate that an auto-refresh should occur. In response to activation of RHR, the refresh address generator 684 may provide a refresh address RXADD, which may be an auto-refresh address or may be one or more victim addresses corresponding to a victim row of an aggressor row corresponding to a matching address HitXADD. The row decoder 658 may perform a target refresh operation in response to the refresh address RXADD and the row hammer refresh signal RHR. The row decoder 658 may perform an auto-refresh operation based on the refresh address RXADD and the internal refresh signal IREF. In some embodiments, the row decoder 658 may be coupled to the auto-refresh signal AREF provided by the DRAM interface 676, and the internal refresh signal IREF may not be used.
[0109] DRAM interface 676 may represent one or more components that provide signals to components of memory bank 668. In some embodiments, DRAM interface 676 may represent a device coupled to a semiconductor memory device (e.g., Figure 1 In some embodiments, DRAM interface 676 may represent, for example, Figure 1 Components such as the command address input circuit 652, the address decoder 654 and / or the command decoder 656 of the DRAM interface 676. The DRAM interface 676 can provide a row address XADD, an auto-refresh signal AREF, an activation signal ACT, and a precharge signal Pre. The auto-refresh signal AREF can be a periodic signal that can indicate when an auto-refresh operation will occur. The activation signal ACT can be provided to activate a given bank 668 of the memory. The row address XADD can be a signal including multiple bits (which can be transmitted serially or in parallel) and can correspond to a specific row of a bank (e.g., a bank activated by ACT / Pre).
[0110] exist Figure 6In an example embodiment of , the attacker detector circuit 600 uses the sampling signal ArmSample to determine when the attacker detector circuit 682 should check the value of the row address XADD. The sample timing generator 680 provides a sampling signal ArmSample that can alternate between a low logic level and a high logic level. The activation of ArmSample can be a 'pulse', where ArmSample is raised to a high logic level and then returned to a low logic level. The sample timing generator 680 can provide a pulse train of ArmSample. Each pulse can be separated from the next pulse by a time interval. The sample timing generator 680 can randomly (and / or semi-randomly and / or pseudo-randomly) change the time interval.
[0111] Aggressor detector circuit 682 may receive row address XADD from DRAM interface 676 and ArmSample from sample timing generator 680. Row address XADD may direct access to memory cell array (eg, Figure 1 The attacker detector circuit 682 may change when access operations (eg, read and write operations) are performed on different rows of the memory cell array 118. Each time the attacker detector circuit 682 receives activation (eg, a pulse) of ArmSample, the attacker detector circuit 682 may sample the current value of XADD.
[0112] In response to the activation of ArmSample, the aggressor detector circuit 682 may determine whether one or more rows are aggressor rows based on the sampled row address XADD, and may provide the identified aggressor row as the matching address HitXADD. As part of this determination, the aggressor detector circuit 682 may record (e.g., by latching and / or storing in a stack) the current value of XADD in response to the activation of ArmSample. The current value of XADD may be compared with previously stored addresses in the aggressor detector circuit 682 (e.g., addresses stored in the stack) to determine the access pattern of the sampled addresses over time. If the aggressor detector circuit 682 determines that the current row address XADD is repeatedly accessed (e.g., is an aggressor row), the activation of ArmSample may also cause the aggressor detector circuit 682 to provide the address of the aggressor row as the matching address HitXADD. In some embodiments, the matching address (e.g., the aggressor address) HitXADD may be stored in a latch circuit for later retrieval by the refresh address generator 684.
[0113] For example, the attacker detector circuit 682 may store the values of the sampled addresses in a stack and may have a counter associated with each of the stored addresses. When ArmSample is activated, if the current row address XADD matches one of the stored addresses, the value of the counter may be updated (e.g., incremented). In response to the activation of ArmSample, the attacker detector circuit 682 may provide the address associated with the maximum value counter as the matching address HitXADD. An extreme value search operation (e.g., such as Figure 2 Other methods of identifying the attacker's address may be used in other examples.
[0114] The RHR state control 686 may receive an auto-refresh signal AREF and provide a row hammer refresh signal RHR. The auto-refresh signal AREF may be generated periodically and may be used to control the timing of a refresh operation. The memory device may perform an auto-refresh operation sequence to periodically refresh the rows of the memory device. The RHR signal may be generated to indicate that the device should refresh a specific target row (e.g., a victim row) instead of an address from an auto-refresh address sequence. The RHR state control 686 may use internal logic to provide the RHR signal. In some embodiments, the RHR state control 686 may provide the RHR signal based on a certain number of activations of AREF (e.g., every 4 activations of AREF). The RHR state control 686 may also provide an internal refresh signal IREF that may indicate that an auto-refresh operation should occur. In some embodiments, the signals RHR and IREF may be generated so that they are not active at the same time (e.g., both are not at a high logic level at the same time).
[0115] The refresh address generator 684 may receive a row hammer refresh signal RHR and a matching address HitXADD. The matching address HitXADD may represent an aggressor row. The refresh address generator 684 may determine the location of one or more victim rows based on the matching address HitXADD and provide them as refresh addresses RXADD. In some embodiments, the victim rows may include rows that are physically adjacent to the aggressor rows (e.g., HitXADD+1 and HitXADD-1). In some embodiments, the victim rows may also include rows that are physically adjacent to physically adjacent rows of the aggressor rows (e.g., HitXADD+2 and HitXADD-2). Other relationships between victim rows and identified aggressor rows may be used in other examples.
[0116] The refresh address generator 684 may determine the value of the refresh address RXADD based on the row hammer refresh signal RHR. In some embodiments, when the signal RHR is not active, the refresh address generator 684 may provide an auto-refresh address in the auto-refresh address sequence. When the signal RHR is active, the refresh address generator 684 may provide a target refresh address (e.g., a victim address) as the refresh address RXADD.
[0117] The row decoder 658 may perform one or more operations on a memory array (not shown) based on the received signals and addresses. For example, in response to the activation signal ACT and the row address XADD (and IREF and RHR are at low logic levels), the row decoder 658 may direct one or more access operations (e.g., read operations) to the specified row address XADD. In response to the RHR signal being active, the row decoder 658 may refresh the refresh address RXADD.
[0118] Figure 7 7 is a block diagram of an attacker detector circuit according to the present invention. In some embodiments, the attacker detector circuit 700 may implement the attacker detector circuit 682. The attacker detector circuit 700 includes a stack 790 and a stack control logic 792. In some embodiments, the stack 790 may implement Figure 1 A stack of 100.
[0119] The stack 790 includes a number of files 702, each of which includes a row address field 788 storing a row address XADD(Y) and an associated count value field 789 storing a count value Count(Y). Each file 702 is associated with an accumulator circuit 706. The files 702 and accumulator circuits 706 are coupled to a memory device that can be used to perform an extreme value search operation (e.g., Figure 2 Although Figure 7 Although not shown for clarity, stack 790 may typically be used similar to Figure 1 The signals (e.g., Match(Y), Compare(X), etc.) discussed in connection with stack 100 .
[0120] The stack 790 is coupled to a stack logic circuit 792, which can be used to provide signals and control the operation of the stack 790. In some embodiments, the control logic circuit 710 that manages the extreme value search operation can be included as part of the stack logic circuit 792. The row address field 788 can include a certain number of bits based on the number of bits in the row address (e.g., a certain number of CAM cells). For example, in some embodiments, the row address field 788 can be 16 bits wide. The count value field 789 can have a certain number of bits based on the maximum possible value in the count value it is expected to track. In some embodiments, for example, the count value field 789 can be 11 bits wide. In some embodiments, the stack 790 can have a depth of 100 (e.g., the number of files 702). Other widths and depths of the stack 790 can be used in other embodiments.
[0121] In some embodiments, the stack 790 may include additional fields in the files 702 that may be used to store additional information associated with the stored row addresses. For example, each file 702 may include an empty flag that may be used to indicate whether the data in the file 702 is ready to be overwritten. The empty flag may be a single bit, having a first state indicating that the file is 'full' and a second state indicating that the file is empty (e.g., the information in the file is ready to be overwritten). When the row address and count are removed from the stack 790 (e.g., after refreshing its victim) rather than deleting the data in the file 702, the empty flag may instead be set to the second state.
[0122] When the row address XADD is received by the attacker detector circuit 700, it may be stored in the address latch 793. In some embodiments, when the signal ArmSample is provided, the stack logic circuit 792 may save the current value of the row address XADD in the address latch 793. The address latch 793 may include a number of bits equal to the number of bits of the row address XADD. Therefore, the address latch 793 may have the same width as the row address field 788 of the stack 790. The address latch 793 may include a number of latch circuits to store the bits of the row address. In some embodiments, the address latch 793 may include a CAM unit (e.g., Figure 3 CAM unit 300) and may be structurally similar to file 702 of stack 790.
[0123] The address comparator 794 can compare the row address XADD stored in the address latch 793 with the address in the stack 790. The stack logic circuit 792 can perform a comparison operation based on the CAM cells of the stack 790. For example, as described with respect to Figure 1As discussed, each CAM cell of each row address field 788 may be commonly coupled to a signal line carrying a match signal. When the address is compared to the row address field 788, the match signal line may be precharged (e.g., by providing a Figure 2 The stack logic circuit 792 may then provide the address as a comparison signal to all row address fields 788 in common. The first bit in each of the row address fields 788 may receive the first bit of the row address XADD for comparison, the second bit in each of the row address fields 788 may receive the second bit of the row address XADD, and so on. After the CAM unit performs the comparison operation, the match signal may remain at a precharged level (e.g., a high logic level) only if each bit of the comparison address matches each bit of the stored address XADD (Y). The address comparator 794 may determine whether there is any match in the file in which the accumulator signal is at a high level based on the state of the match signal (e.g., the voltage on the match signal line) and the accumulator signal.
[0124] If there is a match between the received address XADD and one of the stored addresses XADD(Y), the count value Count(Y) associated with the matched stored address XADD(Y) may be updated. The count value Count(Y) may be read out to the working counter 795, which may update the value of the count value Count(Y) and then write it back to the same file 702 associated with the matched stored address XADD(Y). For example, the working counter 795 may increment the count value Count(Y).
[0125] In some embodiments, components of accumulator circuit 706 may be used to provide additional functionality. For example, in accumulator circuit 706 (e.g., as in Figure 4The accumulator circuit 400 of the file (described in detail in the accumulator circuit 400 of the file) can also be used to serially read out the contents of the count value CAM for further operations, such as loading it into the working counter 795 and incrementing its value. For example, when the address comparator indicates a match between the row address XADD and one of the stored addresses 788, the result can be coupled to the corresponding match signal (e.g., BitxMatch) to the associated accumulator circuit 706 and the signal BitxMatchAccumSample can then be pulsed. Therefore, the accumulator signal MaxMinY of only that file will be high, thereafter allowing its corresponding match signal BixMatch_Y to be precharged high when the global BitxCompPre is asserted. Then only the comparison signal X_Compare of the selected bits of the count value CAM array will be asserted (e.g., at a high logic level). The signals CrossRegCompPreF and CrossRegComp will then be as previously described (e.g., in Figure 4 The control logic 710 of the selected file is used to determine the contents of the selected count value 789 bit returned to the control circuit 710, where it will be loaded into the working counter 795. This process will then be repeated for each bit. After incrementing the working counter 795, the updated count will then be written back to the selected file's count value 789 in parallel (e.g., by providing a write signal CountWriteY).
[0126] If there is no match between the received address XADD and one of the stored addresses XADD(Y), the address XADD may be added to the stack 790. This may be accomplished by providing a write signal along with the bits of XADD to one of the files of the stack 790. If there is room in the stack 790, the received row address XADD may be stored in the empty file 702 and the working counter may set the associated count value in the file 702 to an initial value (e.g., 0, 1).
[0127] If there is no match between the received address XADD and one of the stored addresses XADD(Y) and the stack 790 is full, the stack logic circuit 792 may replace one of the stored addresses currently in the stack 790 with the received address. In some embodiments, the control logic 710 may be used to perform an extreme value search operation to find the minimum value of the stored count values Count(Y). The stack logic circuit 792 may then provide the new address XADD commonly to all row address fields 788 and a master write signal (e.g., Figure 4CountWriteEn) is provided to all accumulator circuits 706 together. The accumulator circuits 706 may only provide a write signal to the file 702 associated with the smallest count value. Since in some embodiments, the accumulator circuits 706 may also break ties, this means that the write signal will only be provided to one file 702 and thus the address XADD may be written to the file 702 containing the smallest value. The identified smallest count value may then be reset to an initial value.
[0128] The stack logic circuit 792 can identify and provide a matching address HitXADD based on the count value Count(Y) stored in the stack. In general, when one of the stored addresses XADD(Y) is provided as the matching address HitXADD, the stored address XADD(Y) can be removed from the stack 790 (or the empty flag of the file 702 can be set) and the count value Count(Y) can be reset to an initial value.
[0129] In some embodiments, the stack logic circuit 792 may include a threshold comparator circuit 797 that may compare an updated count value (e.g., after the count value is updated by the working counter 795) to a threshold value. If the updated count value is greater than the threshold value, the stored address XADD(Y) associated with the updated count value may be provided as the matching address HitXADD.
[0130] In some embodiments, the stack logic circuit 792 may provide the stored row address XADD(Y) associated with the maximum count value as the matching address HitXADD. For example, the control logic 710 may perform an extreme value search operation to locate the maximum value and then may provide an index of the file 702 containing the maximum value and the associated row address.
[0131] In some embodiments, the location of the current maximum and / or minimum value may be indicated by a pointer, which may be operated by pointer logic circuit 796. For example, control logic 710 may perform an extreme value search to locate the maximum value and then may return an index of the file 702 containing the maximum value. Pointer logic circuit 796 may direct the maximum value pointer to indicate the file 702 containing the maximum value. When the count value changes, a new extreme value search operation may be performed to update the maximum value. When a matching address needs to be provided, the maximum value pointer may be used to quickly supply the address associated with the current maximum value.
[0132] Of course, it should be understood that any of the examples, embodiments, or processes described herein may be combined with one or more other examples, embodiments, and / or processes, or may be separated and / or performed in separate devices or device portions in accordance with the present systems, devices, and methods.
[0133] Finally, the above discussion is intended to be merely illustrative of the inventive system and should not be considered as limiting the invention to be protected. Therefore, although the inventive system has been described in particular detail with reference to exemplary embodiments, it should also be understood that a person skilled in the art may devise numerous modifications and alternative embodiments without departing from the broader and intended spirit and scope of the inventive system. Therefore, the description and drawings should be viewed in an illustrative manner and are not intended to limit the scope of the invention to be protected.
Claims
1. A semiconductor device comprising: a stack comprising a plurality of files, wherein each of the plurality of files is configured to store a value comprising a plurality of stored bits; a control logic circuit configured to provide a comparison signal to one of the stored bits in each of the plurality of files, wherein each of the plurality of files is configured to provide one of a plurality of match signals, each of the plurality of match signals indicating whether the comparison signal matches the one of the plurality of stored bits of the numerical value in an associated one of the plurality of files; A plurality of accumulator circuits, each associated with a corresponding one of the plurality of files, each of the plurality of accumulator circuits comprising a latch circuit configured to store an accumulator signal, wherein each accumulator circuit is configured to maintain the accumulator signal at a first logic level if the match signal from the associated one of the plurality of files indicates a match, and to change the accumulator signal to a second logic level if the match signal does not indicate a match, unless any of the match signals of any of the plurality of files having the accumulator signal at the first logic level does not indicate a match associated with the accumulator signal being maintained at the first logic level, wherein the control logic circuit is further configured to determine which of the plurality of files contains an extreme value based on the value of the accumulator signal in the plurality of accumulator circuits.
2. The semiconductor device of claim 1 , wherein the plurality of accumulator circuits are commonly coupled to a signal line that carries any matching signal, and wherein each of the plurality of accumulator circuits is configured to change a voltage of the signal line from a first voltage to a second voltage when the matching signal associated with the accumulator circuit indicates a match.
3. The semiconductor device of claim 2 , wherein the control logic circuit provides a sampling signal commonly to the plurality of accumulator circuits, and wherein in response to the sampling signal, the plurality of accumulator circuits change the state of the accumulator signal from the first level to the second level when the associated one of the match signals does not indicate a match, and wherein the control logic circuit does not provide the sampling signal in response to the signal line being at the second voltage.
4. The semiconductor device of claim 1 , further comprising a memory array comprising a plurality of word lines, wherein the plurality of files are each configured to store a row address associated with one of the plurality of word lines, and wherein the numerical value is associated with a number of accesses to the one of the plurality of word lines. 5 . The semiconductor device of claim 4 , wherein victim addresses associated with the row addresses stored in the plurality of files are refreshed based on the logic level of the accumulator signal associated with the file. 6 . The semiconductor device of claim 1 , wherein the control logic circuit is configured to provide a signal indicating which one of the plurality of files is associated with the accumulator signal at the first logic level.
7. A method for operating a semiconductor device, comprising: providing a sequence of compare bits to a content addressable memory CAM stack comprising a plurality of files, wherein each compare bit is provided to a CAM cell in each of the plurality of files; Performing a comparison operation for each bit in the comparison bit sequence, wherein the comparison operation comprises: determining, for each bit in the comparison bit sequence, whether the comparison bit matches a stored bit in the CAM cell; determining, for each bit in the sequence of compare bits, whether the compare bit matches any one of the stored bits in any one of the files of the CAM stack; and setting values of a plurality of accumulator signals each associated with one of the files, wherein when the compare bit does not match the stored bit and when the compare bit matches at least one file of the CAM stack in which the accumulator signal is at a first level, changing the value of a respective one of the plurality of accumulator signals from the first level to a second level; and A determination is made based on the values of the plurality of accumulator signals as to which of the plurality of files contains an extreme value. The method according to claim 7 , wherein the comparison bit sequence is provided bit by bit from the most significant bit to the least significant bit.
9. The method of claim 7, wherein each comparison bit is provided at a high logic level and the extreme value is a maximum value.
10. The method of claim 7, wherein each comparison bit is provided at a low logic level and the extreme value is a minimum value.
11. The method of claim 7, further comprising resolving a tie by maintaining one of the accumulator signals at the level at the first level and setting the remaining one of the accumulator signals at the first level to the second level.
12. The method of claim 7, further comprising, after each comparison operation, determining whether the extreme value has been identified and responsive to the determination not performing the remainder of the comparison operations.
13. The method of claim 7, further comprising writing a new value to a selected one of the plurality of files associated with the accumulator signal being at the first level.
14. The method of claim 7, further comprising setting the plurality of accumulator signals to a first state prior to providing the comparison bit sequence.
15. A semiconductor device comprising: a first stack comprising a plurality of content addressable memory (CAM) cells configured to store a first value, wherein each bit of the first value is stored in one of the plurality of CAM cells; a second stack comprising a plurality of content addressable memory (CAM) cells configured to store a second value, wherein each bit of the second value is stored in one of the plurality of CAM cells; a first accumulator circuit associated with the first stack, wherein the first accumulator circuit is configured to provide a first accumulator bit; a second accumulator circuit associated with the second stack, wherein the second accumulator circuit is configured to provide a second accumulator bit; and A control logic circuit configured to provide a comparison bit sequence to the first stack and the second stack, wherein the first accumulator circuit and the second accumulator circuit are each configured to change the state of the corresponding first accumulator bit and the second accumulator bit based on a comparison of the first value and the second value with the comparison bit, wherein the control logic circuit is further configured to determine an extreme value between the first value and the second value based on the first accumulator bit and the second accumulator bit.
16. The semiconductor device of claim 15 , wherein each of the plurality of CAM cells in the first stack and the second stack includes a latch portion configured to store the bit of the first value or the second value, and a comparator portion configured to change a state of a corresponding first or second match signal based on a comparison of the comparison bit with the stored bit.
17. The semiconductor device of claim 15, wherein the control logic is configured to provide the comparison bit sequence such that the comparison bits are provided from most significant bit to least significant bit to the selected bits of the plurality of CAM cells in the first stack and the corresponding selected bits of the plurality of CAM cells in the second stack. 18 . The semiconductor device of claim 15 , wherein the first accumulator circuit and the second accumulator circuit each include a latch circuit configured to store a respective first accumulator bit or the second accumulator bit.
19. A semiconductor device comprising: a memory array comprising a plurality of word lines; and an aggressor detector circuit configured to receive a row address associated with one of the plurality of word lines, the aggressor detector circuit comprising: a stack comprising a plurality of files each configured to store a row address and a count value associated with each of the stored row addresses; a plurality of accumulator circuits each associated with one of the plurality of files, wherein the plurality of accumulator circuits are configured to store accumulator bits associated with the count value; and A control logic circuit configured to provide a comparison bit sequence to the plurality of files, wherein the plurality of accumulator circuits are each configured to change a state of a corresponding accumulator bit based on a comparison of the associated count value with the comparison bit, wherein the control logic circuit is further configured to determine extreme values of the count values in the plurality of files based on the associated accumulator bits.
20. The semiconductor device of claim 19, wherein the control logic is configured to determine an extreme value that is a minimum value, and wherein when the aggressor detector circuit receives the row address, the row address associated with the minimum value is replaced in response to the plurality of files being full.
21. The semiconductor device of claim 19, further comprising a refresh address generator configured to determine a victim address based on the received matching address, wherein the control logic is configured to determine an extreme value that is a maximum value, and wherein the row address associated with the maximum value is provided as the matching address.
22. The semiconductor device of claim 19, wherein the plurality of files each include a plurality of content addressable memory (CAM) cells each configured to store bits of the row address or the count value.
23. The semiconductor device of claim 22, wherein each of the plurality of CAM cells comprises a latch portion configured to store the bit and a comparator portion configured to compare a provided comparison bit with the stored bit and change a state of a match signal based on the comparison.
Citation Information
Patent Citations
Scoped search engine
US20160140243A1
