Low-power FIFO memory, control device and method, and chip
By dividing the SRAM array of the FIFO memory into multiple and setting up independent power management modules to dynamically control the power on and off of the SRAM array, the problem of inflexibility in reducing the static power consumption of the SRAM array in the existing technology is solved, and a more efficient implementation is achieved. The static power consumption is reduced.
Patent Information
- Application Number
- CN202310390626.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-12
- Publication Date
- 2024-10-18
AI Technical Summary
The existing technology is not flexible enough in reducing the static power consumption of SRAM arrays, and the effect is limited. Especially in modern integrated circuit chips, the static power consumption of SRAM arrays has become a decisive factor in limiting circuit power consumption.
By dividing the SRAM array of the FIFO memory into multiple SRAM arrays of the same size, and setting up an independent power management module for each array, the power on and off of the SRAM array is dynamically controlled according to the read and write addresses, so as to achieve the goal of temporarily unused data. Complete power outage of the array.
It effectively reduces the static power consumption of the FIFO memory and minimizes the power supply voltage of the SRAM array, thus improving the overall performance of the circuit.
Smart Images

Figure CN118800295A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of buffer technology, and in particular to a low-power FIFO memory, a control device and method, and a chip. Background Art
[0002] With the continuous development of modern integrated circuit technology, the integration level is constantly increasing, and the manufacturing process is constantly decreasing, the impact of the static power consumption of the chip has become more significant. At 65nm and below, the static power consumption of the chip will exceed the dynamic power consumption, becoming the decisive factor limiting the overall performance of the circuit power consumption.
[0003] In modern integrated circuit chips, the SRAM (Static Random Access Memory) array occupies a large area. Therefore, the static power consumption of the SRAM array becomes the decisive factor in limiting the static power consumption of the circuit. During each access, only a small part of the storage cells in the SRAM array performs read and write operations, and the vast majority of the other cells remain static. In other words, the main source of power consumption of the SRAM array is static power consumption. If the SRAM array can be reasonably divided into structures, and the part of the SRAM that remains static and temporarily unused can be effectively power-managed, and its power supply voltage can be appropriately reduced or completely shut down, the static power consumption of the SRAM array when the chip is working can be effectively reduced.
[0004] At present, there are technical solutions for power management or voltage adjustment of SRAM arrays to reduce the static power consumption of SRAM arrays to a certain extent. For example, in Xilinx's Ultrascale+ series FPGA chips, the BRAM (Block RAM) module responsible for data storage supports sleep mode. The implementation scheme is to control it through a sleep input port, which can synchronously or asynchronously control the BRAM to enter sleep mode or wake up from sleep mode. In sleep mode, BRAM cannot be read or written, and the power supply voltage of the SRAM array will be reduced by 20-30%, which reduces the static power consumption to a certain extent without damaging the stored data.
[0005] The existing technical solution of appropriately reducing the power supply voltage of the SRAM array requires the user to control it to enter the sleep mode, and the power supply voltage of the SRAM array can only be appropriately reduced, that is, the static power consumption can only be reduced to a certain extent. In general, the existing technical solution is not flexible enough, and the effect of reducing static power consumption is limited. Summary of the invention
[0006] The embodiments of the present invention provide a low-power FIFO memory, a control device and method, and a chip, which can effectively reduce the static power consumption of the FIFO memory.
[0007] To this end, the embodiment of the present invention provides the following technical solutions:
[0008] On the one hand, an embodiment of the present invention provides a low-power FIFO memory, the memory comprising: a plurality of SRAM arrays with the same capacity, and a power management module corresponding to each SRAM array one by one;
[0009] The power management module is used to control the corresponding SRAM array and its address decoding and read / write path to power on or off according to the external power management control signal.
[0010] Optionally, the power management control signal includes a first control signal and a second control signal;
[0011] The power management module is used to pull up the power of the corresponding SRAM array to an external power supply according to the first control signal; and to power off the corresponding SRAM array and its address decoding and read / write paths according to the second control signal.
[0012] Optionally, the power management module includes: a PMOS tube;
[0013] The source of the PMOS tube is connected to the external power supply, the drain of the PMOS tube is connected to the power supply of the corresponding SRAM array, and the gate of the PMOS tube is used to input the power management control signal.
[0014] Optionally, according to the size of the SRAM array, there are one or more PMOS tubes constituting the power management module.
[0015] Optionally, there are four SRAM arrays.
[0016] On the other hand, an embodiment of the present invention further provides a control device for controlling the aforementioned low-power FIFO memory, the control device comprising: a control module coupled to each power management module, and a read counter and a write counter coupled to the control module;
[0017] The read counter is used to generate continuous read pointers and serve as read addresses of the FIFO memory;
[0018] The write counter is used to generate continuous write pointers and serve as write addresses of the FIFO memory;
[0019] The control module is used to determine the address space to be used and the SRAM array to be powered on and the SRAM array to be powered off according to the read address and the write address, and output different power management control signals to the power management module of the SRAM array to be powered on and the power management module of the SRAM array to be powered off; and is also used to generate chip selection and read-write control signals of the SRAM array according to the read address and the write address.
[0020] Optionally, the control module determines that the SRAM array is a SRAM array that needs to be powered on before writing the first address on the chip of the SRAM array, and determines that the SRAM array is a SRAM array that needs to be powered off after reading the last address on the chip of the SRAM array.
[0021] Optionally, the control device further includes:
[0022] A setting module, used to set a logical relationship mapping table, wherein the logical mapping relationship represents a used SRAM array and an unused SRAM array corresponding to each read address and write address;
[0023] The control module searches the logic relationship mapping table according to the read address and the write address to determine the SRAM array that needs to be powered on and the SRAM array that needs to be powered off.
[0024] On the other hand, an embodiment of the present invention further provides a control method for controlling the low-power FIFO memory described above, the control method comprising:
[0025] Using a read counter to generate continuous read pointers as read addresses of the FIFO memory;
[0026] Using a write counter to generate continuous write pointers as write addresses of the FIFO memory;
[0027] Determine the address space to be used and the SRAM array to be powered on and the SRAM array to be powered off according to the read address and the write address;
[0028] Different power management control signals are output to the power management module of the SRAM array that needs to be powered on and the power management module of the SRAM array that needs to be powered off.
[0029] Optionally, determining the address space to be used and the SRAM array to be powered on and the SRAM array to be powered off according to the read address and the write address includes:
[0030] If the write address is an address before the first address on the chip of the SRAM array, determining that the SRAM array is an SRAM array that needs to be powered on;
[0031] If the read address is the last address in the chip of the SRAM array, it is determined that the SRAM array is a SRAM array that needs to be powered off.
[0032] Optionally, outputting different power management control signals to the power management module of the SRAM array that needs to be powered on and the power management module of the SRAM array that needs to be powered off includes:
[0033] Before writing the first address in the chip of the SRAM array that needs to be powered on, outputting a first control signal to the power management module of the SRAM array, so that the power management module controls the SRAM array and its address decoding and read / write paths to be powered on according to the first control signal;
[0034] After the last address in the chip of the SRAM array that needs to be powered off is read out, a second control signal is output to the power management module of the SRAM array, so that the power management module controls the SRAM array and its address decoding and read-write paths to power off according to the second control signal.
[0035] Optionally, the control method further includes:
[0036] Establishing a logical relationship mapping table, wherein the logical mapping relationship indicates a used SRAM array and an unused SRAM array corresponding to each read address and write address;
[0037] The determining, according to the read address and the write address, of the address space to be used and the SRAM array to be powered on and the SRAM array to be powered off comprises:
[0038] The logic relationship mapping table is searched according to the read address and the write address to determine the address space to be used and the SRAM array to be powered on and the SRAM array to be powered off.
[0039] On the other hand, an embodiment of the present invention further provides a chip, wherein the chip includes the low-power FIFO memory described above, and / or the control device described above.
[0040] The low-power FIFO memory, control device and method, and chip provided by the embodiments of the present invention divide the SRAM array of the FIFO memory into multiple SRAM arrays of the same size, and set a power management module corresponding to each SRAM array one by one, and independently power each SRAM array. During the reading and writing process of the SRAM array, the SRAM array that is temporarily not used is powered off, thereby effectively reducing the static power consumption of the FIFO memory.
[0041] Furthermore, the unused SRAM array is completely powered off, that is, the power supply voltage of the SRAM array is reduced as much as possible, thereby reducing its static power consumption to the greatest extent.
[0042] Furthermore, the power-on and power-off of the SRAM array are automatically and dynamically controlled by the FIFO control logic without user intervention, which is convenient for application. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] Figure 1 It is a structural schematic diagram of a low-power FIFO memory provided by an embodiment of the present invention;
[0044] Figure 2 is a structural schematic diagram of a power management module in an embodiment of the present invention;
[0045] Figure 3 is a structural schematic diagram of a control device provided by an embodiment of the present invention;
[0046] Figure 4 is a schematic diagram of the structure of a control device implementing a control module using a comparator provided in an embodiment of the present invention;
[0047] Figure 5 Schematic diagram of the power state of the read / write pointer and the SRAM array in an embodiment of the present invention;
[0048] Figure 6 It is a flow chart of a control method provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0049] The principle and spirit of the present invention will be described below with reference to the exemplary embodiments shown in the accompanying drawings. It should be understood that these embodiments are described only to enable those skilled in the art to better understand and implement the present invention, and are not intended to limit the scope of the present invention in any way.
[0050] FIFO (First In First Out) is a first-in-first-out data storage device with a working characteristic of continuous read / write addresses. After each read / write operation, the corresponding read / write pointer is automatically incremented by 1 and used as the next read / write address. During the operation of FIFO, the read / write pointer is constantly and dynamically changed, and only the SRAM array corresponding to the continuous address from the read pointer to the write pointer is dynamically used. The SRAM array corresponding to other addresses will not be accessed, and there is no need to keep the data stored inside.
[0051] Based on the above characteristics of the FIFO memory and the problem that the existing technical solutions for appropriately reducing the power supply voltage of the SRAM array are not flexible enough and have limited effect in reducing static power consumption, the embodiments of the present invention provide a low-power FIFO memory and a control device and method thereof, which divide the SRAM array of the FIFO memory into multiple SRAM arrays of the same size, and set a power management module corresponding to each SRAM array one by one, respectively supply power to each SRAM array independently, and power off the SRAM array that is temporarily not used during the reading and writing process of the SRAM array, thereby effectively reducing the static power consumption of the FIFO memory.
[0052] It should be noted that the capacity of the FIFO memory can be set according to actual needs, and the number and size of the multiple SRAM arrays obtained by division can also be set according to actual needs, which is not limited in the embodiment of the present invention.
[0053] The number of the plurality of SRAM arrays may be set to 2 n For example, the number may be 2, 4, or 8. Considering the complexity and flexibility of the control logic, the number may preferably be 4.
[0054] The following description is made by taking an example where a FIFO memory includes four SRAM arrays.
[0055] like Figure 1 FIG. 1 is a schematic diagram of a structure of a low-power FIFO memory provided by an embodiment of the present invention.
[0056] The FIFO memory 100 includes: four SRAM arrays 101 with the same capacity, and a power management module 102 corresponding to each SRAM array one by one.
[0057] The power management module 102 is used to control the corresponding SRAM array and its address decoding and read / write paths to be powered on or off according to an external power management control signal.
[0058] In practical applications, the SRAM array and its corresponding address decoding and read / write paths can be powered on for data reading and writing, or powered off to reduce static power consumption, under the control of its corresponding power management module.
[0059] It should be noted that the corresponding power management control signals are different for powering on and off the SRAM array. For ease of description, the power-on control signal is referred to as the first control signal, and the power-off control signal is referred to as the second control signal. That is, each power management module powers on the corresponding SRAM array according to the first control signal, such as pulling up the power supply of the corresponding SRAM array to the external power supply; and powers off the corresponding SRAM array according to the second control signal, and powers off the power supply of the corresponding SRAM array and its address decoding and read-write paths.
[0060] like Figure 2 FIG. 1 is a schematic diagram of a structure of a power management module in an embodiment of the present invention.
[0061] In this embodiment, the power management module 102 is implemented by a PMOS tube P1, the source of the PMOS tube P1 is connected to the external power supply VCC, the drain of the PMOS tube P1 is connected to the corresponding SRAM array 101 and powers the SRAM array, and the gate of the PMOS tube P1 is used to input the power management control signal.
[0062] It should be noted that the SRAM array and its address decoding and read / write paths use the same power supply, i.e. Figure 2 For the convenience of description, the power supply VCCSRAM is called the power supply of the SRAM array. When the gate of the PMOS tube P1 is logic 0 (i.e., low level) or logic 1 (i.e., high level), the SRAM array and its address decoding and read / write paths have only two states: power-on and power-off. When the gate of the PMOS tube P1 is logic 1, the power supply VCCSRAM of the SRAM array will stabilize at a first voltage, which is close to 0v, and can be regarded as power-off.
[0063] Reference Figure 2 , the working principle of the power management module 102 is as follows:
[0064] When the power management control signal input to the gate of the PMOS tube P1 is at a low level (for example, 0V), the PMOS tube P1 is turned on, and the power supply VCCSRAM of the SRAM array is pulled up to the global power supply VCC, and the SRAM array can be read and written normally; when the power management control signal input to the gate of the PMOS tube P1 is at a high level (for example, +5V), the PMOS tube P1 is turned off. At this time, the PMOS tube P1 is equivalent to a large resistor and is connected in series with the SRAM array. By increasing the overall resistance of the PMOS tube P1 and the SRAM storage array, the overall static leakage current can be reduced, thereby achieving the purpose of reducing static power consumption. When the PMOS tube P1 is turned off, due to the voltage division of the series resistor, the power supply voltage of the SRAM array will stabilize at a lower voltage value, which is equivalent to powering off the SRAM array.
[0065] It should be noted that in a specific circuit, it is necessary to use pull-up PMOS tubes of appropriate size and quantity according to the storage capacity of the SRAM array and its corresponding address decoding and read-write path layout area, so that the power-on speed of the SRAM array and the power supply voltage of the SRAM array after power failure meet the performance requirements.
[0066] In addition, it should be noted that, in practical applications, according to the size of the SRAM array, the number of PMOS transistors constituting the power management module 102 may be one or more, which is not limited in the embodiment of the present invention.
[0067] By setting a power management module corresponding to each SRAM array, each SRAM array can be independently powered or powered off, so that the SRAM array that is not needed temporarily can be powered off during the reading and writing process of the SRAM array, effectively reducing the static power consumption of the FIFO memory.
[0068] Correspondingly, an embodiment of the present invention further provides a control device for the above-mentioned low-power FIFO memory, which realizes the control of powering on and off of each SRAM array in the low-power FIFO memory.
[0069] like Figure 3 , which is a schematic diagram of the structure of a control device provided by an embodiment of the present invention.
[0070] The control device comprises: a control module 303 coupled to the power management module (not shown) of the FIFO memory 100 and the storage array, and a read counter 301 and a write counter 302 coupled to the control module 303.
[0071] The read counter 301 is used to generate continuous read pointers and serve as the read address of the FIFO memory 100;
[0072] The write counter 302 is used to generate continuous write pointers and serve as write addresses of the FIFO memory 100;
[0073] The control module 303 is used to determine the address space that needs to be used and the SRAM array that needs to be powered on and the SRAM array that needs to be powered off according to the read address and the write address, and output different power management control signals to the power management module of the SRAM array that needs to be powered on and the power management module of the SRAM array that needs to be powered off; and is also used to generate chip selection and read-write control signals of the SRAM array according to the read address and the write address.
[0074] Specifically, the control module 303 determines that the SRAM array is a SRAM array that needs to be powered on before writing the first address in the SRAM array, and determines that the SRAM array is a SRAM array that needs to be powered off after reading the last address in the SRAM array.
[0075] Because during the operation of the FIFO memory, after a certain address has been written and read once, the data stored at the address has been cached and transmitted, that is, the data no longer needs to be kept in the SRAM array. Therefore, the SRAM array can be completely powered off after use, and the internal stored data will be lost. Wait until the next write pointer points to the address again, that is, before the next write operation, and then power on the SRAM array again.
[0076] by Figure 3 Taking the four SRAM arrays shown as an example, a two-level decoding structure can be used when decoding the read / write address, that is: the upper two bits of the address are used as the SRAM array chip select decoding to select one of the four SRAM arrays; the other low-order addresses are used as the on-chip decoding of the SRAM array to select a specific address inside the SRAM array.
[0077] During the operation of the FIFO memory, the address space actually used is the continuous address space from the read address to the write address. Therefore, it is necessary to use the read address and the write address at the same time to determine the address space actually used and the corresponding SRAM array.
[0078] Furthermore, in order to facilitate the implementation of the corresponding control logic, in a non-limiting embodiment, the control device may also include: a setting module (not shown) for setting a logical relationship mapping table, wherein the logical mapping relationship represents the used SRAM array and the unused SRAM array corresponding to each read address and write address.
[0079] Accordingly, the control module 303 may search the logic relationship mapping table according to the read address and the write address to determine the SRAM array that needs to be powered on and the SRAM array that needs to be powered off.
[0080] Taking the above four SRAM arrays as an example, the mapping relationship between the read / write address and the used and unused SRAM arrays is shown in Tables 1 to 3 below.
[0081] Among them, Table 1 shows the usage of the SRAM array when the upper two bits of read and write addresses are different; Table 2 shows the usage of the SRAM array when the upper two bits of read and write addresses are the same and the remaining low-order write addresses are greater than the read addresses; Table 3 shows the usage of the SRAM array when the upper two bits of read and write addresses are the same and the remaining low-order write addresses are less than the read addresses.
[0082] Table 1
[0083]
[0084] As can be seen from Table 1, after the FIFO memory starts working, when the upper two bits of the read and write addresses are different, only the upper two bits need to be compared to determine the usage of the four SRAM arrays.
[0085] Table 2
[0086]
[0087] Table 3
[0088]
[0089]
[0090] It can be seen from Table 2 and Table 3 that after the FIFO memory starts working, when the upper two bits of the read / write address are the same, the lower bits of the read / write address need to be compared to determine the usage of the four SRAM arrays.
[0091] According to the correspondence between the read / write addresses and the usage of the SRAM array in Tables 1 to 3 above, the corresponding decoding logic is designed to decode the read / write addresses generated by the two counters to generate the power management control signal of the SRAM array.
[0092] It should be noted that each SRAM array needs to be powered on before writing to the first address in the chip, and can only be powered off after reading the last address in the chip.
[0093] In a specific application, the control module 303 can be implemented by using a comparator.
[0094] like Figure 4 As shown, the four outputs of the comparator 303, namely: SRAM3_EN, SRAM2_EN, SRAM1_EN, SRAM0_EN, are used to control the gate of the PMOS tube in the power management module of the SRAM array. These four output ends are equipped with latches, and the output ends will flip only when the read / write pointer reaches a specific preset value, otherwise the output ends maintain the current output value.
[0095] Furthermore, the comparator 303 may also include outputs EMPTY and FULL, wherein the output EMPTY is used to indicate that the FIFO memory is empty, that is, no data has been written; and the output FULL is used to indicate that all addresses in the FIFO memory have been written with data and there is no free address.
[0096] After resetting the FIFO memory, both the read and write pointers are reset to 0, and the state of the SRAM array after the power supply is reset is that SRAM array 0 is powered on, and other SRAM arrays are powered off.
[0097] For the convenience of description, assuming that the address depth of each SRAM array is N, the address depth of the FIFO memory is 4N.
[0098] When the write pointer points to a specific address, the power state of the corresponding SRAM array is triggered to change, so that it is powered on; when the read pointer points to a specific address, the power state of the corresponding SRAM array is triggered to change, so that it is powered off. As shown in Table 4, it is a truth table of the read and write pointers and the corresponding SRAM array power state changes.
[0099] Table 4
[0100]
[0101] The following description is made by taking a FIFO memory with a depth of 16 as an example, that is, N=4.
[0102] like Figure 5 As shown, at a certain moment, the write pointer points to address 11 (ie 3N-1), at which time the power state of the storage array SRAM3 should be changed to power-on; the read pointer points to address 4 (ie N), at which time the power state of the storage array SRAM0 should be changed to power-off.
[0103] It should be noted that Figure 5 The address represented by the middle stripe is the power-on address. When the write pointer points to the power-on address, the corresponding SRAM array is powered on immediately; the address represented by the grid is the power-off address. When the read pointer points to the power-off address, the corresponding SRAM array can be powered off.
[0104] The control device for low-power FIFO memory provided by the embodiment of the present invention independently supplies power to each SRAM array in the FIFO memory, and in the process of reading and writing the SRAM array, the SRAM array that is temporarily not used is powered off, thereby effectively reducing the static power consumption of the FIFO memory. Moreover, the power-on and power-off of the SRAM array are automatically and dynamically controlled by the FIFO control logic, without user intervention, and are easy to use.
[0105] Compared with the prior art, the low-power FIFO memory and its control circuit provided by the embodiment of the present invention are more flexible and convenient in use. The low-power FIFO memory provided by the embodiment of the present invention is no different from the ordinary FIFO memory in use, has no additional control signal, and does not cause additional burden to the user.
[0106] In addition, the present invention fully considers the working characteristics of the FIFO memory. After a certain address in the FIFO memory is written and read once, the data stored at the address is cached and transmitted, and there is no need to retain it, so the corresponding SRAM unit can be completely powered off. Based on this, the solution of the present invention can completely power off the SRAM arrays and their address decoding circuits and read-write paths for SRAM arrays that are temporarily unused, because there is no need to maintain their storage content, thereby minimizing static power consumption.
[0107] Accordingly, an embodiment of the present invention further provides a control method for the above-mentioned low-power FIFO memory, such as Figure 6 As shown, it is a flow chart of the method, comprising the following steps:
[0108] Step 601: Use a read counter to generate continuous read pointers, and use them as read addresses of the FIFO memory.
[0109] Step 602: Use a write counter to generate continuous write pointers, and use them as write addresses of the FIFO memory.
[0110] Step 603: Determine the address space to be used and the SRAM array to be powered on and the SRAM array to be powered off according to the read address and the write address.
[0111] Specifically, if the write address is the previous address of the first address in the chip of the SRAM array, the SRAM array is determined to be an SRAM array that needs to be powered on; if the read address is the last address in the chip of the SRAM array, the SRAM array is determined to be an SRAM array that needs to be powered off.
[0112] Step 604: output different power management control signals to the power management module of the SRAM array that needs to be powered on and the power management module of the SRAM array that needs to be powered off.
[0113] Specifically, before writing the first address within the chip of the SRAM array that needs to be powered on, a first control signal is output to the power management module of the SRAM array, so that the power management module controls the SRAM array and its address decoding and read-write paths to be powered on according to the first control signal; after reading the last address within the chip of the SRAM array that needs to be powered off, a second control signal is output to the power management module of the SRAM array, so that the power management module controls the SRAM array and its address decoding and read-write paths to be powered off according to the second control signal.
[0114] Furthermore, in order to facilitate the implementation of corresponding control logic, in a non-limiting embodiment, the control method further includes the following steps: establishing a logical relationship mapping table, wherein the logical mapping relationship represents the used SRAM array and the unused SRAM array corresponding to each read address and write address.
[0115] Accordingly, in the above step 603, the logical relationship mapping table may be searched according to the read address and the write address to determine the address space to be used and the SRAM array to be powered on and the SRAM array to be powered off.
[0116] The control method for a low-power FIFO memory provided by an embodiment of the present invention independently supplies power to each SRAM array in the FIFO memory, and in the process of reading and writing the SRAM array, the SRAM array that is temporarily not used is powered off, thereby effectively reducing the static power consumption of the FIFO memory. Moreover, the power-on and power-off of the SRAM array are automatically and dynamically controlled by the FIFO control logic, without user intervention, and are easy to use.
[0117] The control device and method provided by the embodiment of the present invention specifically combine the working characteristics of the FIFO memory, are more convenient and flexible in use, and can also reduce the static power consumption of the SRAM array to the maximum extent.
[0118] Correspondingly, an embodiment of the present invention further provides a chip, wherein the chip includes the low-power FIFO memory described above, and / or the control device described above.
[0119] It should be understood that the term "and / or" in this article is only a description of the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article indicates that the associated objects before and after are in an "or" relationship.
[0120] The “plurality” mentioned in the embodiments of the present invention refers to two or more than two.
[0121] The first, second, etc. descriptions appearing in the embodiments of the present invention are only used for illustration and distinction of the description objects. There is no order, nor does it indicate any special limitation on the number of devices in the embodiments of the present application, and cannot constitute any limitation on the embodiments of the present application.
[0122] The “coupling” in the embodiments of the present invention refers to various connection modes such as direct connection or indirect connection to achieve communication between devices, and the embodiments of the present invention do not impose any limitation on this.
[0123] In a specific implementation, each module / unit included in each device or product described in the above embodiments may be a software module / unit or a hardware module / unit, or may be partly a software module / unit and partly a hardware module / unit.
[0124] For example, for each device or product applied to or integrated in a chip, each module / unit contained therein may be implemented in the form of hardware such as circuits, or at least some of the modules / units may be implemented in the form of software programs, which run on a processor integrated inside the chip, and the remaining (if any) modules / units may be implemented in the form of hardware such as circuits; for each device or product applied to or integrated in a chip module, each module / unit contained therein may be implemented in the form of hardware such as circuits, and different modules / units may be located in the same component (such as a chip, circuit module, etc.) or different components of the chip module, or at least some of the modules / units may be implemented in the form of software programs. The element can be implemented in the form of a software program, which runs on a processor integrated inside the chip module, and the remaining (if any) modules / units can be implemented in the form of hardware such as circuits; for various devices and products applied to or integrated in the terminal, the various modules / units contained therein can be implemented in the form of hardware such as circuits, and different modules / units can be located in the same component (for example, chip, circuit module, etc.) or in different components in the terminal, or, at least some modules / units can be implemented in the form of a software program, which runs on a processor integrated inside the terminal, and the remaining (if any) modules / units can be implemented in the form of hardware such as circuits.
[0125] Although the present invention is disclosed as above, the present invention is not limited thereto. Any person skilled in the art can make various changes and modifications without departing from the spirit and scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the scope defined by the claims.
Claims
1. A low-power FIFO memory, characterized in that: The memory comprises: a plurality of SRAM arrays with the same capacity, and a power management module corresponding to each SRAM array one by one; The power management module is used to control the corresponding SRAM array and its address decoding and read / write path to power on or off according to the external power management control signal.
2. The low-power FIFO memory according to claim 1, characterized in that: The power management control signal includes a first control signal and a second control signal; The power management module is used to pull up the power of the corresponding SRAM array to an external power supply according to the first control signal; and to power off the corresponding SRAM array and its address decoding and read / write paths according to the second control signal.
3. The low-power FIFO memory according to claim 2, characterized in that: The power management module includes: a PMOS tube; The source of the PMOS tube is connected to the external power supply, the drain of the PMOS tube is connected to the power supply of the corresponding SRAM array, and the gate of the PMOS tube is used to input the power management control signal.
4. The low-power FIFO memory according to claim 3, characterized in that: According to the size of the SRAM array, there are one or more PMOS tubes constituting the power management module.
5. The low-power FIFO memory according to any one of claims 1 to 4, characterized in that: There are four SRAM arrays.
6. A control device, characterized in that: Used to control the low-power FIFO memory according to any one of claims 1 to 5, the control device comprising: a control module coupled to each power management module, and a read counter and a write counter coupled to the control module; The read counter is used to generate continuous read pointers and serve as read addresses of the FIFO memory; The write counter is used to generate continuous write pointers and serve as write addresses of the FIFO memory; The control module is used to determine the address space to be used and the SRAM array to be powered on and the SRAM array to be powered off according to the read address and the write address, and output different power management control signals to the power management module of the SRAM array to be powered on and the power management module of the SRAM array to be powered off; and is also used to generate chip selection and read-write control signals of the SRAM array according to the read address and the write address.
7. The control device according to claim 6, characterized in that: The control module determines that the SRAM array is a SRAM array that needs to be powered on before writing the first address in the chip of the SRAM array, and determines that the SRAM array is a SRAM array that needs to be powered off after reading the last address in the chip of the SRAM array.
8. The control device according to claim 6 or 7, characterized in that: The control device also includes: A setting module, used to set a logical relationship mapping table, wherein the logical mapping relationship represents a used SRAM array and an unused SRAM array corresponding to each read address and write address; The control module searches the logic relationship mapping table according to the read address and the write address to determine the SRAM array that needs to be powered on and the SRAM array that needs to be powered off.
9. A control method, characterized in that: Used to control the low-power FIFO memory according to any one of claims 1 to 5, the control method comprising: Using a read counter to generate continuous read pointers as read addresses of the FIFO memory; Using a write counter to generate continuous write pointers as write addresses of the FIFO memory; Determine the address space to be used and the SRAM array to be powered on and the SRAM array to be powered off according to the read address and the write address; Different power management control signals are output to the power management module of the SRAM array that needs to be powered on and the power management module of the SRAM array that needs to be powered off.
10. The control method according to claim 9, characterized in that: The determining, according to the read address and the write address, of the address space to be used and the SRAM array to be powered on and the SRAM array to be powered off comprises: If the write address is an address before the first address on the chip of the SRAM array, determining that the SRAM array is an SRAM array that needs to be powered on; If the read address is the last address in the chip of the SRAM array, it is determined that the SRAM array is a SRAM array that needs to be powered off.
11. The control method according to claim 10, characterized in that: The outputting different power management control signals to the power management module of the SRAM array that needs to be powered on and the power management module of the SRAM array that needs to be powered off comprises: Before writing the first address in the chip of the SRAM array that needs to be powered on, outputting a first control signal to the power management module of the SRAM array, so that the power management module controls the SRAM array and its address decoding and read / write paths to be powered on according to the first control signal; After the last address in the chip of the SRAM array that needs to be powered off is read out, a second control signal is output to the power management module of the SRAM array, so that the power management module controls the SRAM array and its address decoding and read-write paths to power off according to the second control signal.
12. The control method according to claim 9, 10 or 11, characterized in that: The control method further comprises: Establishing a logical relationship mapping table, wherein the logical mapping relationship indicates a used SRAM array and an unused SRAM array corresponding to each read address and write address; The determining, according to the read address and the write address, of the address space to be used and the SRAM array to be powered on and the SRAM array to be powered off comprises: The logic relationship mapping table is searched according to the read address and the write address to determine the address space to be used and the SRAM array to be powered on and the SRAM array to be powered off.
13. A chip, characterized in that: The chip comprises the low-power FIFO memory as claimed in any one of claims 1 to 5, and / or the control device as claimed in any one of claims 6 to 8.
