Automatic control circuit of static random access memory and control method thereof
By designing an automatic control circuit in the static random access memory and using temperature sensors and lookup tables to automatically adjust the read and write timing and power consumption, the problem of frequent interruptions of the central processing unit is solved and the real-time processing efficiency of the static random access memory is improved. .
Patent Information
- Application Number
- CN202310314281.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2023-03-08
- Filing Date
- 2023-03-28
- Publication Date
- 2024-09-10
AI Technical Summary
When the temperature and power consumption of existing static random access memories change, the central processing unit needs to be frequently interrupted to adjust the read and write timing and power consumption, which increases the burden of software operation and cannot be effectively processed in real time.
An automatic control circuit is designed, including a temperature sensor, a read and write timing adjustment circuit and a power consumption adjustment circuit. The read and write timing is adjusted through the temperature sensing signal and the read and write status signal, and a lookup table is used to realize automatic adjustment of the static random access memory. , to avoid software intervention.
It effectively avoids increasing the software running burden, realizes real-time processing of static random access memory read and write timing and power consumption adjustment, and improves processing efficiency.
Smart Images

Figure CN118629458A
Abstract
Description
Technical Field
[0001] The invention relates to a control device, in particular to an automatic control circuit of a static random access memory and a control method thereof. Background Art
[0002] Static random access memory (SRAM) is a type of semiconductor memory used in computing applications that require, for example, high-speed data access. For example, cache applications use SRAM to store frequently accessed data (e.g., data accessed by a central processing unit).
[0003] Generally speaking, SRAM suppliers will provide different SRAM read / write timing and current settings for different temperatures and power consumptions. The SRAM read / write timing and current settings can be performed by the central processing unit. However, as the temperature and power consumption settings change, the central processing unit may often need to be interrupted to process the SRAM read / write timing adjustment and power consumption adjustment. This adjustment method will increase the burden on software operation and cannot be processed efficiently in real time. Summary of the invention
[0004] The invention provides an automatic control circuit and control method of a static random access memory, which can avoid increasing the burden of software operation and efficiently perform real-time processing of read-write timing adjustment and power consumption adjustment of the static random access memory.
[0005] The automatic control circuit of the static random access memory of the present invention includes a temperature sensor, a control circuit, a read / write timing adjustment circuit and a power consumption adjustment circuit. The temperature sensor provides a temperature sensing signal. The control circuit provides a read / write status signal and a power consumption mode indication signal. The read / write timing adjustment circuit is coupled to the temperature sensor and the control circuit, and adjusts the read / write timing of at least one static random access memory according to the temperature sensing signal, the read / write status signal and the read / write timing lookup table, wherein the read / write status signal indicates whether the static random access memory is performing a read / write operation. The power consumption adjustment circuit is coupled to the control circuit, and adjusts the power consumption of the static random access memory according to the power consumption mode indication signal and the power consumption adjustment lookup table, wherein the power consumption mode indication signal indicates the power consumption mode of the static random access memory.
[0006] In one embodiment of the present invention, the read / write timing adjustment circuit further outputs an adjustment state signal to the control circuit, and the adjustment state signal indicates whether the static random access memory is performing a read / write timing adjustment operation.
[0007] In one embodiment of the present invention, the read / write timing adjustment circuit outputs a read / write timing adjustment signal to a read / write timing control pin of the static random access memory to adjust the read / write timing of the static random access memory.
[0008] In an embodiment of the present invention, the power consumption adjustment circuit outputs a power consumption adjustment signal to a power consumption control pin of the static random access memory to adjust the power consumption of the static random access memory.
[0009] In one embodiment of the present invention, the automatic control circuit of the static random access memory further includes a first switching circuit and a second switching circuit. The first switching circuit couples the read / write timing adjustment circuit, the first register circuit and the static random access memory, and connects the static random access memory to the read / write timing adjustment circuit or the first register circuit, so that the read / write timing adjustment circuit or the first register circuit adjusts the read / write timing of the static random access memory. The second switching circuit couples the power consumption adjustment circuit, the second register circuit and the static random access memory, and connects the static random access memory to the power consumption adjustment circuit or the second register circuit, so that the power consumption adjustment circuit or the second register circuit adjusts the power consumption of the static random access memory.
[0010] The present invention also provides a control method for an automatic control circuit of a static random access memory, the automatic control circuit includes a temperature sensor, a read / write timing adjustment circuit and a power consumption adjustment circuit, and the control method for the automatic control circuit includes the following steps. A temperature sensor is used to provide a temperature sensing signal. A read / write status signal is provided to the read / write timing adjustment circuit, so that the read / write timing adjustment circuit adjusts the read / write timing of at least one static random access memory according to the temperature sensing signal, the read / write status signal and the read / write timing lookup table, wherein the read / write status signal indicates whether the static random access memory is performing a read / write operation. A power consumption mode indication signal is provided to the power consumption adjustment circuit, so that the power consumption adjustment circuit adjusts the power consumption of the static random access memory according to the power consumption mode indication signal and the power consumption adjustment lookup table, wherein the power consumption mode indication signal indicates the power consumption mode of the static random access memory.
[0011] In one embodiment of the present invention, the control method of the automatic control circuit of the static random access memory includes determining whether the static random access memory is performing a read / write timing adjustment operation according to an adjustment state signal output by the read / write timing adjustment circuit.
[0012] In one embodiment of the present invention, the read / write timing adjustment circuit outputs a read / write timing adjustment signal to a read / write timing control pin of the static random access memory to adjust the read / write timing of the static random access memory.
[0013] In an embodiment of the present invention, the power consumption adjustment circuit outputs a power consumption adjustment signal to a power consumption control pin of the static random access memory to adjust the power consumption of the static random access memory.
[0014] In one embodiment of the present invention, the above-mentioned automatic control circuit also includes a first switching circuit and a second switching circuit, the first switching circuit is coupled to the read-write timing adjustment circuit, the first register circuit and the static random access memory, and the second switching circuit is coupled to the power consumption adjustment circuit, the second register circuit and the static random access memory. The control method of the automatic control circuit includes the following steps. Control the first switching circuit to connect the static random access memory to the read-write timing adjustment circuit or the first register circuit, so that the read-write timing adjustment circuit or the first register circuit adjusts the read-write timing of the static random access memory. Control the second switching circuit to connect the static random access memory to the power consumption adjustment circuit or the second register circuit, so that the power consumption adjustment circuit or the second register circuit adjusts the power consumption of the static random access memory.
[0015] Based on the above, the read / write timing adjustment circuit of the embodiment of the present invention adjusts the read / write timing of the static random access memory according to the temperature sensing signal, the read / write state signal and the read / write timing lookup table, and the power consumption adjustment circuit can adjust the power consumption of the static random access memory according to the power consumption mode indication signal and the power consumption adjustment lookup table. In this way, by using the additional hardware circuit to perform the read / write timing adjustment and power consumption adjustment of the static random access memory, it is possible to avoid increasing the burden of software operation and efficiently perform real-time processing of the read / write timing adjustment and power consumption adjustment of the static random access memory.
[0016] In order to make the above features and advantages of the present invention more clearly understood, embodiments are given below with reference to the accompanying drawings for detailed description. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 is a schematic diagram of a static random access memory and an automatic control circuit thereof according to an embodiment of the present invention;
[0018] Figure 2 is a schematic diagram of a static random access memory and an automatic control circuit thereof according to another embodiment of the present invention;
[0019] Figure 3 is a flow chart of a control method of an automatic control circuit of a static random access memory according to an embodiment of the present invention;
[0020] Figure 4 is a flow chart of a method for adjusting the read and write timing of a static random access memory according to an embodiment of the present invention;
[0021] Figure 5The invention is a flow chart of a method for adjusting power consumption of a static random access memory according to an embodiment of the invention. DETAILED DESCRIPTION
[0022] In order to make the content of the present invention more understandable, the following embodiments are specifically cited as examples on which the present invention can be implemented. In addition, wherever possible, components / members with the same reference numerals are used in the drawings and embodiments to represent the same or similar components.
[0023] Figure 1 is a schematic diagram of a static random access memory and its automatic control circuit according to an embodiment of the present invention, please refer to Figure 1 The automatic control circuit 100 may be implemented, for example, by a hardware description language (HDL) digital circuit, but is not limited thereto. The automatic control circuit 100 may include a temperature sensor 102, a control circuit 104, a read / write timing adjustment circuit 106, and a power consumption adjustment circuit 108. The temperature sensor 102 is coupled to the read / write timing adjustment circuit 106. The control circuit 104 is coupled to the read / write timing adjustment circuit 106 and the power consumption adjustment circuit 108. The read / write timing adjustment circuit 106 and the power consumption adjustment circuit 108 are coupled to a static random access memory 110. Figure 1 In the embodiment, only one static random access memory 110 is shown. However, in other embodiments, the automatic control circuit 100 may be coupled to more static random access memories 110 , and is not limited to this embodiment.
[0024] The temperature sensor 102 is used to sense temperature (e.g., sense the temperature of the static random access memory 110 or the ambient temperature of the static random access memory 110) and provide a temperature sensing signal S1 to the read / write timing adjustment circuit 106. The control circuit 104 can provide a read / write status signal S2 and a power consumption mode indication signal S3 to the read / write timing adjustment circuit 106 and the power consumption adjustment circuit 108, respectively, wherein the read / write status signal S2 indicates whether the static random access memory 110 is performing a read / write operation, and the read / write status signal S2 can be, for example, an address signal of the static random access memory 110 that is performing a read / write operation, but is not limited thereto, and the power consumption mode indication signal S3 is used to indicate the power consumption mode of the static random access memory 110, such as a standby mode or a normal mode, but is not limited thereto.
[0025] The read / write timing adjustment circuit 106 may store a read / write timing lookup table, which is used to look up the read / write timing of the static random access memory 110 corresponding to different temperatures. The read / write timing adjustment circuit 106 may adjust the read / write timing of the static random access memory 110 according to the temperature sensing signal S1, the read / write state signal S2, and the read / write timing lookup table. In addition, the power consumption adjustment circuit 108 may store a power consumption adjustment lookup table, which is used to look up the current parameter settings of the static random access memory 110 corresponding to different modes. The power consumption adjustment circuit 108 may, for example, adjust the current parameter settings of the static random access memory 110 according to the power consumption mode indication signal S3 and the power consumption adjustment lookup table to adjust the power consumption mode of the static random access memory 110.
[0026] Further, the static random access memory 110 may include a read / write timing control pin and a power consumption control pin. The read / write timing adjustment circuit 106 may adjust the read / write timing of the static random access memory 110 by outputting a read / write timing adjustment signal S4 to the read / write timing control pin. The power consumption adjustment circuit 108 may adjust the current parameter setting of the static random access memory 110 by outputting a power consumption adjustment signal S5 to the power consumption control pin of the static random access memory 110, thereby adjusting the power consumption of the static random access memory 110. For example, the static random access memory 110 may enter a low power consumption mode (such as a standby mode, but not limited thereto). In an embodiment where there are multiple static random access memories 110, the power consumption adjustment circuit 108 may also, for example, cause part of the static random access memory 110 to enter a sleep mode according to the power consumption mode indication signal S3 and the power consumption adjustment lookup table, or wake up part of the static random access memory 110 from the sleep mode and enter a normal mode of operation.
[0027] In addition, the read / write timing adjustment circuit 106 can also output an adjustment status signal S6 to the control circuit 104. The adjustment status signal S6 is used to indicate whether the static random access memory 110 is performing a read / write timing adjustment operation. The control circuit 104 can know whether the static random access memory 110 is performing a read / write timing adjustment operation based on the adjustment status signal S6, so as to avoid the control circuit 104 performing a read / write operation on the static random access memory 110 when the static random access memory 110 has not completed the read / write timing adjustment operation, thereby causing a read / write error.
[0028] By using an additional hardware circuit (automatic control circuit 100) to perform read / write timing adjustment and power consumption adjustment of the static random access memory 110, it is possible to avoid increasing the burden of software operation and efficiently perform real-time processing of read / write timing adjustment and power consumption adjustment of the static random access memory 110.
[0029] Figure 2FIG. 1 is a schematic diagram of a static random access memory and an automatic control circuit thereof according to another embodiment of the present invention. The automatic control circuit 100 of this embodiment and Figure 1 The difference between the automatic control circuit 100 of the embodiment is that the automatic control circuit 100 of the embodiment further includes switching circuits 202, 204 and register circuits 206, 208, wherein the switching circuit 202 is coupled between the read / write timing adjustment circuit 106 and the static random access memory 110, the switching circuit 204 is coupled between the power consumption adjustment circuit 108 and the static random access memory 110, the register circuit 206 is coupled to the switching circuit 202, and the register circuit 208 is coupled to the switching circuit 204. The switching circuits 202, 204 can be implemented by multiplexers, for example, but are not limited thereto, and the register circuits 206, 208 are register circuits of a central processing unit. The switching circuit 202 can switch the static random access memory 110 to the read / write timing adjustment circuit 106 or the register circuit 206, so that the read / write timing adjustment circuit 106 or the register circuit 206 can adjust the read / write timing of the static random access memory 110. The switching circuit 204 can connect the static random access memory 110 to the power adjustment circuit 108 or the register circuit 208, so that the power adjustment circuit 108 or the register circuit 208 can adjust the power consumption of the static random access memory 110. In this way, the static random access memory 110 is switched to be connected to the read / write timing adjustment circuit 106, the power adjustment circuit 108 or the register circuits 206 and 208 through the switching circuits 202 and 204, and the read / write timing adjustment and power consumption adjustment of the static random access memory can be performed by the automatic control circuit 100 or the register circuit of the central processing unit according to actual needs, so that the adjustment method of the static random access memory 110 is more flexible.
[0030] Figure 3 It is a flow chart of a control method of an automatic control circuit of a static random access memory according to an embodiment of the present invention. It can be seen from the above embodiments that the control method of the automatic control circuit of a static random access memory may include the following steps. First, a temperature sensor is used to sense the temperature to provide a temperature sensing signal (step S302). Next, a read-write status signal is provided to the read-write timing adjustment circuit, so that the read-write timing adjustment circuit adjusts the read-write timing of at least one static random access memory according to the temperature sensing signal, the read-write status signal, and the read-write timing lookup table (step S304), wherein the read-write status signal indicates whether the static random access memory is performing a read-write operation. Further, the method of adjusting the read-write timing of the static random access memory according to the temperature sensing signal, the read-write status signal, and the read-write timing lookup table may be as follows. Figure 4As shown. First, determine whether the temperature changes according to the temperature sensing signal (step S402). Then, determine whether the static random access memory is busy (step S404), for example, determine whether the read and write operations are being performed according to the read and write status signal. When it is determined that the static random access memory is not in a busy state, the read and write timing adjustment circuit searches for the read and write timing corresponding to the temperature sensing signal according to the temperature sensing signal and the read and write timing lookup table, and outputs a read and write timing adjustment signal to the read and write timing control pin of the static random access memory to adjust the read and write timing of the static random access memory (step S406). In some embodiments, when the adjustment of the read and write timing of the static random access memory is completed, the read and write timing adjustment circuit can output an adjustment status signal, and it can be known whether the static random access memory has completed the read and write timing adjustment operation according to the adjustment status signal.
[0031] Then, after step S304, a power consumption mode indication signal may be provided to the power consumption adjustment circuit, so that the power consumption adjustment circuit adjusts the power consumption of the static random access memory according to the power consumption mode indication signal and the power consumption adjustment lookup table (step S306), wherein the power consumption mode indication signal indicates the power consumption mode of the static random access memory. Further, the method of adjusting the power consumption of the static random access memory according to the power consumption mode indication signal and the power consumption adjustment lookup table may be as follows: Figure 5 As shown. First, a power consumption mode indication signal is provided to the power consumption adjustment circuit (step S502). Next, it is determined whether the static random access memory is busy (step S504), for example, whether a read and write operation is being performed based on a read and write status signal. When it is determined that the static random access memory is not in a busy state, the power consumption adjustment circuit outputs a power consumption adjustment signal to the power consumption control pin of the static random access memory based on the power consumption mode indication signal and the power consumption adjustment lookup table to adjust the power consumption of the static random access memory (step S506). In addition, when the static random access memory is in a low power consumption mode, such as a sleep mode, a power consumption mode indication signal for waking up the static random access memory can be provided to the power consumption adjustment circuit (step S508), so that the power consumption adjustment circuit wakes up the static random access memory and enters a normal mode according to the power consumption mode indication signal (step S510).
[0032] In some embodiments, the automatic control circuit may further include a first switching circuit and a second switching circuit, and the control method of the automatic control circuit may further include controlling the first switching circuit to connect the static random access memory to the read / write timing adjustment circuit or the first register circuit, and controlling the second switching circuit to connect the static random access memory to the power consumption adjustment circuit or the second register circuit. In this way, when the first switching circuit and the second switching circuit are controlled to connect the static random access memory to the read / write timing adjustment circuit and the power consumption adjustment circuit, the automatic control circuit may be controlled by Figure 3 to Figure 5The control method of the embodiment adjusts the read / write timing and power consumption of the static random access memory. When the first switching circuit and the second switching circuit are controlled to connect the static random access memory to the first register circuit and the second register circuit, the read / write timing and power consumption of the static random access memory can be adjusted by the central processing unit.
[0033] In summary, the read / write timing adjustment circuit of the embodiment of the present invention adjusts the read / write timing of the static random access memory according to the temperature sensing signal, the read / write state signal and the read / write timing lookup table, and the power consumption adjustment circuit can adjust the power consumption of the static random access memory according to the power consumption mode indication signal and the power consumption adjustment lookup table. In this way, by using the additional hardware circuit to perform the read / write timing adjustment and power consumption adjustment of the static random access memory, it is possible to avoid increasing the burden of software operation and efficiently perform real-time processing of the read / write timing adjustment and power consumption adjustment of the static random access memory.
[0034] Although the present invention has been disclosed as above by way of embodiments, it is not intended to limit the present invention. Any person skilled in the art may make some changes and modifications without departing from the spirit and scope of the present invention. Therefore, the protection scope of the present invention shall be determined by the claims.
Claims
1. An automatic control circuit for a static random access memory, It is characterized in that include: A temperature sensor, providing a temperature sensing signal; A control circuit, providing a read / write status signal and a power consumption mode indication signal; a read / write timing adjustment circuit coupled to the temperature sensor and the control circuit, and adjusting the read / write timing of at least one static random access memory according to the temperature sensing signal, the read / write status signal, and a read / write timing lookup table, wherein the read / write status signal indicates whether the static random access memory is performing a read / write operation; and The power consumption adjustment circuit is coupled to the control circuit and adjusts the power consumption of the static random access memory according to the power consumption mode indication signal and a power consumption adjustment lookup table, wherein the power consumption mode indication signal indicates the power consumption mode of the static random access memory.
2. The automatic control circuit of the static random access memory according to claim 1, It is characterized in that The read / write timing adjustment circuit also outputs an adjustment state signal to the control circuit, wherein the adjustment state signal indicates whether the static random access memory is performing a read / write timing adjustment operation.
3. The automatic control circuit of the static random access memory according to claim 1, It is characterized in that The read / write timing adjustment circuit outputs a read / write timing adjustment signal to the read / write timing control pin of the static random access memory to adjust the read / write timing of the static random access memory.
4. The automatic control circuit of the static random access memory according to claim 1, It is characterized in that The power consumption adjustment circuit outputs a power consumption adjustment signal to a power consumption control pin of the static random access memory to adjust the power consumption of the static random access memory.
5. The automatic control circuit of the static random access memory according to claim 1, It is characterized in that Also includes: a first switching circuit, coupling the read / write timing adjustment circuit, the first register circuit and the static random access memory, connecting the static random access memory to the read / write timing adjustment circuit or the first register circuit, so that the read / write timing adjustment circuit or the first register circuit adjusts the read / write timing of the static random access memory; as well as The second switching circuit couples the power consumption adjustment circuit, the second register circuit and the static random access memory, and connects the static random access memory to the power consumption adjustment circuit or the second register circuit so that the power consumption of the static random access memory can be adjusted by the power consumption adjustment circuit or the second register circuit.
6. A control method for an automatic control circuit of a static random access memory, It is characterized in that The automatic control circuit includes a temperature sensor, a read / write timing adjustment circuit, and a power consumption adjustment circuit. The control method of the automatic control circuit of the static random access memory includes: Using the temperature sensor to provide a temperature sensing signal; Providing a read / write status signal to the read / write timing adjustment circuit, so that the read / write timing adjustment circuit adjusts the read / write timing of at least one static random access memory according to the temperature sensing signal, the read / write status signal and the read / write timing lookup table, wherein the read / write status signal indicates whether the static random access memory is performing a read / write operation; and A power consumption mode indication signal is provided to the power consumption adjustment circuit so that the power consumption adjustment circuit adjusts the power consumption of the static random access memory according to the power consumption mode indication signal and a power consumption adjustment lookup table, wherein the power consumption mode indication signal indicates the power consumption mode of the static random access memory.
7. The control method of the automatic control circuit of the static random access memory according to claim 6, It is characterized in that include: It is determined whether the static random access memory is performing a read / write timing adjustment operation according to an adjustment state signal output by the read / write timing adjustment circuit.
8. The control method of the automatic control circuit of the static random access memory according to claim 6, It is characterized in that The read / write timing adjustment circuit outputs a read / write timing adjustment signal to the read / write timing control pin of the static random access memory to adjust the read / write timing of the static random access memory.
9. The control method of the automatic control circuit of the static random access memory according to claim 6, It is characterized in that The power consumption adjustment circuit outputs a power consumption adjustment signal to a power consumption control pin of the static random access memory to adjust the power consumption of the static random access memory.
10. The control method of the automatic control circuit of the static random access memory according to claim 6, It is characterized in that The automatic control circuit further includes a first switching circuit and a second switching circuit, the first switching circuit is coupled to the read / write timing adjustment circuit, the first register circuit and the static random access memory, the second switching circuit is coupled to the power consumption adjustment circuit, the second register circuit and the static random access memory, and the control method of the automatic control circuit includes: controlling the first switching circuit to connect the static random access memory to the read / write timing adjustment circuit or the first register circuit, so that the read / write timing adjustment circuit or the first register circuit adjusts the read / write timing of the static random access memory; and The second switching circuit is controlled to connect the static random access memory to the power consumption adjustment circuit or the second register circuit, so that the power consumption of the static random access memory is adjusted by the power consumption adjustment circuit or the second register circuit.
