Data reading method and device, and storage medium

By using clock signals in different working modes to generate selected signals in the processor, the problems of long data reading time and high power consumption in low-speed working mode are solved, and efficient data reading is achieved.

CN114115508BActive Publication Date: 2024-12-03PINGJIE ELECTRONIC TECHNOLOGY (JIANGSU) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111469871.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-03
Publication Date
2024-12-03
Estimated Expiration
2041-12-03

AI Technical Summary

Technical Problem

When the processor is in low-speed operating mode, the data is read from the memory for a long time, resulting in an increase in reading power consumption.

Method used

By introducing a first chip select signal generator and a second chip select signal generator into the processor, select signals with different pulse widths are generated using clock signals of different operating modes, shortening the time of memory data output and reducing reading power consumption. The specific measures include generating a first chip select signal with a larger pulse width in the first operating mode, and generating a second chip select signal with a smaller pulse width in the second operating mode according to this signal, so that the memory outputs data.

Benefits of technology

It effectively shortens the time when the processor reads data from the memory, reduces reading power consumption, and realizes efficient data reading in low-speed operating mode.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114115508B_ABST
    Figure CN114115508B_ABST
Patent Text Reader

Abstract

The present invention relates to a data reading method and device, and a storage medium. The data reading method comprises the following steps. In a first working mode, a first chip select signal is generated in response to a data reading request. A second chip select signal is generated in response to the first chip select signal and a working clock signal of a second working mode; wherein a pulse width of the second chip select signal is smaller than a pulse width of the first chip select signal. Data of a memory is read according to the second chip select signal in the first working mode. The above data reading method can shorten the reading time and reduce the reading power consumption.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of semiconductor technology, and in particular to a data reading method and device, and a storage medium. Background Art

[0002] In a system on chip (SOC), the operating modes of the processor are generally divided into normal operating mode and low-speed operating mode. In normal operating mode, the clock source of the processor uses a high-speed clock that can output a high-frequency operating clock signal. In low-speed operating mode, the high-speed clock will be turned off, and the clock source of the processor uses a low-speed clock or a crystal oscillator clock that can output a low-frequency operating clock signal, thereby achieving the purpose of saving power.

[0003] However, when the processor is in a low-speed operation mode and the processor needs to read data from the memory in the SOC, the reading time is long and the reading power consumption is increased. Summary of the invention

[0004] Based on this, it is necessary to provide a data reading method and device, and a storage medium to address the problem that in low-speed working mode, the processor takes a long time to read data from the memory, which increases the reading power consumption.

[0005] A data reading device includes: a first chip selection signal generator, a second chip selection signal generator and a processor.

[0006] The processor is connected to the first chip select signal generator and is configured to transmit a data read request to the first chip select signal generator in a first working mode. The first chip select signal generator is configured to generate a first chip select signal in response to the data read request. The second chip select signal generator is connected to the first chip select signal generator and is configured to generate a second chip select signal according to the first chip select signal and a working clock signal of the second working mode; wherein the pulse width of the second chip select signal is less than the pulse width of the first chip select signal. The second chip select signal generator is connected to the memory, and the memory is configured to output data according to the second chip select signal. The processor is also connected to the memory and is also configured to read data.

[0007] In the above-mentioned data reading device, the processor transmits a data read request to the first chip select signal generator in the first working mode to read the data in the memory. The first chip select signal generator can generate a first chip select signal with a larger pulse width in response to the data read request. After generating the first chip select signal, the second chip select signal generator can generate a second chip select signal with a smaller pulse width according to the first chip select signal and the working clock signal of the second working mode. In this way, the memory is made to output data for the processor to read according to the second chip select signal with a smaller pulse width, which can shorten the reading time of the processor to read data from the memory, thereby reducing the reading power consumption.

[0008] In some embodiments, the data reading device further includes: a first oscillator and a second oscillator.

[0009] The first oscillator is connected to the first chip select signal generator and is configured to provide a working clock signal of the first working mode. The first chip select signal generator is further configured to generate the first chip select signal according to the working clock signal of the first working mode. The second oscillator is connected to the second chip select signal generator and is configured to provide a working clock signal of the second working mode. The frequency of the working clock signal of the second working mode is greater than the frequency of the working clock signal of the first working mode.

[0010] In the above data reading device, the first oscillator can provide a working clock signal of the first working mode, and the second oscillator can provide a working clock signal of the second working mode. The frequency of the working clock signal of the second working mode is greater than the frequency of the working clock signal of the first working mode. In this way, the first chip select signal can be directly generated according to the working clock signal of the first working mode, and the second chip select signal can be directly generated according to the working clock signal of the second working mode under the triggering of the first chip select signal, thereby simplifying the generation process of the second chip select signal, so as to further shorten the reading time used by the processor to read data from the memory, and further reduce the reading power consumption.

[0011] In some embodiments, the data reading device further comprises: a clock controller connected to the first chip select signal generator and the second oscillator respectively. The clock controller is configured to: start the second oscillator in response to the first chip select signal, and shut down the second oscillator after the second oscillator outputs at least one cycle of the working clock signal of the second working mode.

[0012] In the above-mentioned data reading device, a clock controller is used to control the turning on and off of the second oscillator, so as to reasonably control the working time of the second oscillator in the first working mode, so as to avoid the second oscillator from increasing power consumption due to too long starting time while using the second oscillator to provide the working clock signal of the second working mode.

[0013] In some embodiments, the data reading device further includes: a bus keeper connected in series between the memory and the processor; the bus keeper is configured to latch data output by the memory.

[0014] In the above data reading device, the memory outputs data in response to the second chip select signal, and the pulse width of the second chip select signal is smaller than the pulse width of the first chip select signal. In this way, the data output by the memory is latched by the bus holder, and the data output by the memory can be held for a period of time when the pulse width of the second chip select signal is small, so that the processor can read the corresponding data latched by the bus holder after the next working clock signal of the first working mode is output.

[0015] Based on the same inventive concept, the present application also provides a data reading method for reading data from a memory. The data reading method is applied to the data reading device in some of the above embodiments.

[0016] The data reading method comprises the following steps: in a first working mode, generating a first chip select signal in response to a data read request; generating a second chip select signal in response to the first chip select signal and a working clock signal of a second working mode; wherein a pulse width of the second chip select signal is smaller than a pulse width of the first chip select signal; and reading data of a memory according to the second chip select signal in the first working mode.

[0017] In the above data reading method, first, in the first working mode, a first chip select signal with a larger pulse width is generated in response to a data read request. Then, a second chip select signal with a smaller pulse width is generated in response to the first chip select signal and the working clock signal of the second working mode. In this way, data in the memory can be read in the first working mode based on the second chip select signal with a smaller pulse width, so as to shorten the reading time of reading data from the memory, thereby reducing the reading power consumption.

[0018] In some embodiments, the first chip select signal is generated in response to a working clock signal of the first working mode, wherein the frequency of the working clock signal of the second working mode is greater than the frequency of the working clock signal of the first working mode.

[0019] In the above data reading method, the first chip select signal can be directly generated in response to the working clock signal of the first working mode, and under the triggering of the first chip select signal, the second chip select signal can be directly generated in response to the working clock signal of the second working mode. Moreover, the frequency of the working clock signal of the second working mode is greater than the frequency of the working clock signal of the first working mode. In this way, the generation process of the second chip select signal can be simplified, so as to further shorten the reading time used by the processor to read data from the memory, and further reduce the reading power consumption.

[0020] In some embodiments, generating a second chip select signal in response to a first chip select signal and a working clock signal of a second working mode includes the following steps: In response to the first chip select signal, triggering a clock start signal of the second working mode. Generating a working clock signal of the second working mode according to the clock start signal. Generating a second chip select signal according to the working clock signal of the second working mode.

[0021] In some embodiments, generating a second chip select signal according to a working clock signal of a second working mode includes the following steps: After acquiring at least one cycle of the working clock signal of the second working mode, triggering a clock off signal of the second working mode. Generating a second chip select signal according to the acquired working clock signal of the second working mode of at least one cycle.

[0022] In the above data reading method, the working clock signal of the second working mode is triggered after responding to the first chip select signal. After acquiring the working clock signal of the second working mode of at least one cycle, the clock off signal of the second working mode will be triggered. Then, the second chip select signal can be generated according to the acquired working clock signal of the second working mode of at least one cycle. In this way, the second working mode does not need to be continuously in the startup state, so that the duration of the second working mode can be reasonably controlled to avoid the second working mode from increasing power consumption due to too long duration.

[0023] In some embodiments, reading data from a memory according to a second chip select signal comprises the following steps: outputting data from the memory according to the second chip select signal; latching the data to obtain latched data; and reading the latched data.

[0024] In the above data reading method, the data in the memory can be output according to the second chip select signal. After the data is output, the data can be latched to obtain latched data. In this way, when the pulse width of the second chip select signal is small, the data can be kept for a period of time to facilitate reading the latched data after the next working clock signal of the first working mode is output.

[0025] Based on the same inventive concept, the embodiment of the present application further provides a storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the data reading method in some of the aforementioned embodiments are implemented. The technical effects that can be achieved by the aforementioned data reading method can also be achieved by the storage medium, which will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] Figure 1 A structural block diagram of a data reading device provided by an embodiment;

[0027] Figure 2 A timing diagram of various signals when a data reading device is used to read data according to an embodiment;

[0028] Figure 3 A schematic diagram of a flow chart of a data reading method provided by an embodiment;

[0029] Figure 4 A schematic flow chart of each step in step S200 provided in an embodiment;

[0030] Figure 5 A flowchart of each step in step S230 provided in an embodiment;

[0031] Figure 6 A schematic flow chart of the steps of reading data from a memory according to a second chip select signal provided in an embodiment.

[0032] Description of Figure Numbers:

[0033] 10-a first chip select signal generator; 20-a second chip select signal generator; 30-a processor;

[0034] 40 - memory; 50 - first oscillator; 60 - second oscillator; 70 - clock controller;

[0035] 80-Bus keeper. DETAILED DESCRIPTION

[0036] In order to facilitate the understanding of the present invention, the present invention will be described more fully below with reference to the relevant drawings. Preferred embodiments of the present invention are given in the drawings. However, the present invention can be implemented in many different forms and is not limited to the embodiments described herein. On the contrary, the purpose of providing these embodiments is to make the understanding of the disclosure of the present invention more thorough and comprehensive.

[0037] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art of the present invention. The terms used herein in the specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. The term "and / or" used herein includes any and all combinations of one or more related listed items.

[0038] In the case of using “including”, “having”, and “comprising” described herein, another component may be added unless a clear limiting term such as “only”, “consisting of”, etc. is used. Unless mentioned otherwise, a term in the singular form may include a plural form and should not be understood as being one in number.

[0039] For ease of understanding, we first need to explain the role of the chip select signal. The memory is often composed of multiple chips. If you want to independently transmit data, address or command to one of the chips, you need a signal to notify the chip, and this signal is the chip select signal.

[0040] In SOC, the working mode of the processor is generally divided into normal working mode and low-speed working mode. In normal working mode, the clock source of the processor uses a high-speed clock that can output a working clock signal with a higher frequency, for example, a high-speed RC oscillator clock that can output a working clock signal with a frequency of 8MHz. In low-speed working mode, the high-speed clock will be turned off, and the clock source of the processor uses a low-speed clock or crystal oscillator clock that can output a working clock signal with a lower frequency, for example, a low-speed RC oscillator clock that can output a working clock signal with a frequency of 32768Hz, thereby achieving the purpose of saving power consumption.

[0041] When the processor is in low-speed working mode, the frequency of the working clock signal output by the low-speed clock will also be low. At this time, if the processor is used to read data from the memory in the SOC, the pulse width of the chip select signal received by the memory is at least half a cycle of the working clock signal. For example, the frequency of the working clock signal output by the low-speed clock is 32768Hz, and the duty cycle of the working clock signal is 1:1, and the pulse width of the chip select signal is at least 15.26 microseconds. However, it is difficult for the processor to read data from the memory in nanoseconds. In other words, in the low-speed working mode, the processor takes a long time to read data from the memory, which increases the reading power consumption.

[0042] See also Figure 1 The present application provides a data reading device, including: a first chip select signal generator 10, a second chip select signal generator 20 and a processor 30.

[0043] The processor 30 is connected to the first chip select signal generator 10 and is configured to transmit a data read request RD to the first chip select signal generator 10 in the first working mode.

[0044] By way of example, the processor 30 includes a central processing unit (CPU), a microprocessor (MPU), a graphics processing unit (GPU), a tensor processing unit (TPU), or a digital signal processing unit (DSP).

[0045] The first chip select signal generator 10 is configured to generate a first chip select signal CE1 in response to a data read request RD.

[0046] The second chip select signal generator 20 is connected to the first chip select signal generator 10, and is configured to generate the second chip select signal CE2 according to the first chip select signal CE1 and the working clock signal CLK2 of the second working mode; wherein the pulse width of the second chip select signal CE2 is less than the pulse width of the first chip select signal CE1. The pulse width is the duration of the effective level, and the effective level is, for example, a high level. For example, the memory will output data only when the pulse of the chip select signal input therein is in a high level state.

[0047] The second chip selection signal generator 20 is connected to the memory 40, and the memory 40 is configured to output data according to the second chip selection signal CE2. The processor 30 is also connected to the memory 40, and is also configured to read data in the first working mode.

[0048] For example, the first working mode may be a low-speed working mode, and the second working mode may be a normal working mode.

[0049] For example, the memory 40 includes: a read-only memory (ROM) and a random access memory (RAM). The read-only memory is, for example, a one-time programmable read-only (OTP ROM) memory, a mask read-only (MASK ROM) memory, or a flash erasable read-only memory (FLASH ROM). The random access memory is, for example, a static random access memory (SRAM) or a dynamic random access memory (DRAM).

[0050] For example, the processor 30 is further configured to transmit an address signal ADDR to the memory 40. The address signal ADDR is used to determine a specific address line in a chip.

[0051] In the above data reading device, the processor 30 transmits a data read request RD to the first chip select signal generator 10 in the first working mode to read the data in the memory 40. The first chip select signal generator 10 can generate a first chip select signal CE1 with a larger pulse width in response to the data read request RD. After generating the first chip select signal CE1, the second chip select signal generator 20 can generate a second chip select signal CE2 with a smaller pulse width according to the first chip select signal CE1 and the working clock signal CLK2 of the second working mode. In this way, the memory 40 outputs data for the processor 30 to read according to the second chip select signal CE2 with a smaller pulse width, which can shorten the reading time of the processor 30 to read data from the memory 40, thereby reducing the reading power consumption.

[0052] In some embodiments, the data reading device further includes: a first oscillator 50 and a second oscillator 60 .

[0053] The first oscillator 50 is connected to the first chip selection signal generator 10 and is configured to provide a working clock signal CLK1 of the first working mode.

[0054] The first chip select signal generator 10 is further configured to generate the first chip select signal CE1 according to the working clock signal CLK1 of the first working mode. That is, the first oscillator 50 provides the working clock signal CLK1 of the first working mode to the first chip select signal generator 10. Optionally, the pulse width of the first chip select signal CE1 is equal to a half period of the working clock signal CLK1 of the first working mode.

[0055] For example, the processor 30 is also connected to the first oscillator 50, and is configured to output a data read request RD to the first chip select signal generator 10 according to the working clock signal CLK1 of the first working mode. That is, the first oscillator 50 provides the working clock signal CLK1 of the first working mode to the processor 30. Optionally, the pulse width of the data read request RD is equal to the period of the working clock signal CLK1 of the first working mode.

[0056] The second oscillator 60 is connected to the second chip selection signal generator 20 and is configured to provide a working clock signal CLK2 of the second working mode, wherein the frequency of the working clock signal CLK2 of the second working mode is greater than the frequency of the working clock signal CLK1 of the first working mode.

[0057] For example, the first oscillator 50 is, for example, an RC oscillator that can provide a working clock signal with a frequency of 32768 Hz. The second oscillator 60 is, for example, an RC oscillator that can provide a working clock signal with a frequency of 8 MHz.

[0058] In the above data reading device, the first oscillator 50 can provide the working clock signal CLK1 of the first working mode, and the second oscillator 60 can provide the working clock signal CLK2 of the second working mode. The frequency of the working clock signal CLK2 of the second working mode is greater than the frequency of the working clock signal CLK1 of the first working mode. In this way, the first chip select signal CE1 can be directly generated according to the working clock signal CLK1 of the first working mode, and the second chip select signal CE2 can be directly generated according to the working clock signal CLK2 of the second working mode under the triggering of the first chip select signal CE1, thereby simplifying the generation process of the second chip select signal CE2, so as to further shorten the reading time used by the processor 30 to read data from the memory 40, and further reduce the reading power consumption.

[0059] In some embodiments, the data reading device further includes: a clock controller 70 respectively connected to the first chip select signal generator 10 and the second oscillator 60. The clock controller 70 is configured to: start the second oscillator 60 in response to the first chip select signal CE1, and shut down the second oscillator 60 after the second oscillator 60 outputs at least one cycle of the working clock signal CLK2 of the second working mode.

[0060] The clock controller 70 outputs a clock start signal OSCEN1 of the second working mode to the second oscillator 60 in response to the first chip select signal CE1, so as to start the second oscillator 60 and make the second oscillator 60 output the working clock signal CLK2 of the second working mode. In addition, the clock controller 70 outputs a clock shut-down signal OSCEN2 of the second working mode to shut down the second oscillator 60 after the second oscillator 60 outputs the working clock signal CLK2 of the second working mode for at least one cycle.

[0061] In one example, the pulse width of the second chip select signal CE2 is equal to the period of the working clock signal CLK2 of the second working mode output by the second oscillator 60 multiplied by the number of output periods. For example, when the second oscillator 60 outputs the working clock signal CLK2 of the second working mode for 1 period, the pulse width of the second chip select signal CE2 is the period of the working clock signal CLK2 of the second working mode. When the second oscillator 60 outputs the working clock signal CLK2 of the second working mode for 2 periods, the pulse width of the second chip select signal CE2 is twice the period of the working clock signal CLK2 of the second working mode.

[0062] In the above data reading device, the clock controller 70 can control the opening and closing of the second oscillator 60, that is, the second oscillator 60 outputs the working clock signal CLK2 of the second working mode, and is turned off after outputting at least one cycle of the working clock signal CLK2 of the second working mode. In this way, the working time of the second oscillator 60 in the first working mode can be reasonably controlled, so as to avoid the increase of power consumption of the second oscillator 60 due to too long opening time while using the second oscillator 60 to provide the working clock signal CLK2 of the second working mode.

[0063] In some embodiments, the data reading device further includes: a bus holder 80 connected in series between the memory 40 and the processor 30. The bus holder 80 is configured to latch the data DATA1 output by the memory 40.

[0064] After the bus holder 80 latches the data DATA1 outputted from the memory 40 , latched data DATA2 can be obtained. The bus holder 80 is further configured to output the latched data DATA2 to the processor 30 for the processor 30 to read.

[0065] For example, the processor 30 reads the data in the memory 40 at the next rising edge of the working clock signal CLK1 of the first working mode.

[0066] In the above data reading device, the memory 40 outputs data in response to the second chip select signal CE2, and the pulse width of the second chip select signal CE2 is smaller than the pulse width of the first chip select signal CE1. In this way, the bus holder 80 is used to latch the data output by the memory 40, and the data output by the memory 40 can be held for a period of time when the pulse width of the second chip select signal CE2 is small, so that the processor 30 can read the corresponding data latched by the bus holder 80 after the next working clock signal CLK1 of the first working mode is output.

[0067] In order to facilitate understanding of the operating principle of the data reading device in the embodiment of the present application, a specific embodiment is taken as an example for explanation below.

[0068] Please combine Figure 1 and Figure 2 It is understood that in the first working mode (low-speed working mode), the first oscillator 50 provides the working clock signal CLK1 of the first working mode to the processor 30 and the first chip select signal generator 10. The frequency of the working clock signal CLK1 of the first working mode is 32768 Hz, and the duty cycle is 1:1.

[0069] The processor 30 outputs a data read request RD to the first chip select signal generator 10 according to the working clock signal CLK1 of the first working mode, and outputs an address signal ADDR to the memory 40. The first chip select signal generator 10 generates a first chip select signal CE1 in response to the read request RD and the working clock signal CLK1 of the first working mode. The pulse width of the first chip select signal CE1 is half a period of the working clock signal CLK1 of the first working mode, that is, 15.26 microseconds.

[0070] The rising edge of the first chip select signal CE1 triggers the clock controller 70, so that the clock controller 70 outputs a clock start signal OSCEN1 (i.e., Figure 2 The second oscillator 60 outputs the working clock signal CLK2 of the second working mode in response to the clock start signal OSCEN1. The frequency of the working clock signal CLK2 of the second working mode is 8 MHz. The clock controller 70 outputs the clock shutdown signal OSCEN2 (i.e., the clock shutdown signal OSCEN2 is turned on) after the second oscillator 60 outputs the working clock signal CLK2 of the second working mode for 2 cycles. Figure 2 The second oscillator 60 is turned off by using the signal output by OSCEN in a low level state.

[0071] The second chip select signal generator 20 outputs the second chip select signal CE2 according to the two-cycle working clock signal CLK2 of the second working mode and the first chip select signal CE1. The pulse width of the second chip select signal CE2 is twice the cycle of the working clock signal CLK2 of the second working mode, that is, 250ns.

[0072] The memory 40 outputs the data DATA1 according to the second chip selection signal CE2. The bus holder 80 latches the data DATA1 to obtain latched data DATA2, and outputs the latched data DATA2 to the processor 30 for the processor 30 to read.

[0073] The data reading device in the above embodiment takes a shorter reading time (250 ns) to read data from the memory 40 , which meets the requirement of nanosecond-level reading time and can reduce reading power consumption.

[0074] The present application also provides a data reading method for reading data from a memory, and the data reading method is applied to the data reading device in some of the above embodiments.

[0075] See also Figure 3 , the data reading method includes the following steps.

[0076] S100 , in a first working mode, generating a first chip select signal in response to a data read request.

[0077] S200, generating a second chip select signal in response to the first chip select signal and the working clock signal of the second working mode; wherein a pulse width of the second chip select signal is smaller than a pulse width of the first chip select signal.

[0078] The pulse width is the duration of the effective level, and the effective level is, for example, a high level. For example, the memory will output data only when the pulse of the chip selection signal input therein is in a high level state.

[0079] S300, reading data from the memory according to the second chip selection signal in the first working mode.

[0080] For example, the memory includes: read-only memory (ROM) and random access memory (RAM). Among them, the read-only memory is, for example, a one-time programmable read-only (OTP ROM) memory, a mask read-only (MASK ROM) memory, or a flash erasable read-only memory (FLASH ROM). The random access memory is, for example, a static random access memory (SRAM) or a dynamic random access memory (DRAM).

[0081] In the above data reading method, first, in the first working mode, a first chip select signal with a larger pulse width is generated in response to a data read request. Then, a second chip select signal with a smaller pulse width is generated in response to the first chip select signal and the working clock signal of the second working mode. In this way, data in the memory can be read in the first working mode in response to the second chip select signal with a smaller pulse width, so as to shorten the reading time of reading data from the memory, thereby reducing the reading power consumption.

[0082] In some embodiments, the first chip select signal is generated in response to a working clock signal of the first working mode, wherein the frequency of the working clock signal of the second working mode is greater than the frequency of the working clock signal of the first working mode.

[0083] For example, the pulse width of the first chip select signal is equal to a half period of the working clock signal of the first working mode.

[0084] For example, the first working mode may be a low-speed working mode, and the second working mode may be a normal working mode.

[0085] For example, the frequency of the working clock signal in the first working mode may be 32768 Hz, and the frequency of the working clock signal in the second working mode may be 8 MHz.

[0086] In one example, the data read request is also generated in response to the working clock signal of the first working mode. The pulse width of the data read request is equal to the period of the working clock signal of the first working mode.

[0087] In the above data reading method, the first chip select signal can be directly generated in response to the working clock signal of the first working mode, and under the triggering of the first chip select signal, the second chip select signal can be directly generated in response to the working clock signal of the second working mode. Moreover, the frequency of the working clock signal of the second working mode is greater than the frequency of the working clock signal of the first working mode. In this way, the generation process of the second chip select signal can be simplified, so as to further shorten the reading time used by the processor to read data from the memory, and further reduce the reading power consumption.

[0088] In some embodiments, see Figure 4 , step S200 includes the following steps.

[0089] S210, in response to the first chip selection signal, triggering a clock start signal of the second working mode.

[0090] S220, generating a working clock signal of a second working mode according to the clock start signal.

[0091] S230, generating a second chip selection signal according to the working clock signal of the second working mode.

[0092] In some embodiments, see Figure 5 , step S230 includes the following steps.

[0093] S231, after acquiring at least one cycle of the working clock signal of the second working mode, triggering a clock shutoff signal of the second working mode.

[0094] S232: Generate a second chip select signal according to the acquired working clock signal of the second working mode of at least one cycle.

[0095] In one example, the pulse width of the second chip select signal is equal to the period of the acquired working clock signal of the second working mode multiplied by the number of cycles acquired. For example, when the acquired working clock signal of the second working mode is 1 cycle, the pulse width of the second chip select signal is the period of the working clock signal of the second working mode. When the acquired working clock signal of the second working mode is 2 cycles, the pulse width of the second chip select signal is twice the period of the working clock signal of the second working mode.

[0096] In the above data reading method, the working clock signal of the second working mode is triggered after responding to the first chip select signal. After acquiring the working clock signal of the second working mode of at least one cycle, the clock off signal of the second working mode will be triggered. Then, the second chip select signal can be generated according to the acquired working clock signal of the second working mode of at least one cycle. In this way, the second working mode does not need to be continuously in the startup state, so that the duration of the second working mode can be reasonably controlled to avoid the second working mode from increasing power consumption due to too long duration.

[0097] In some embodiments, see Figure 6 , reading the data of the memory according to the second chip select signal, including the following steps.

[0098] S310, outputting the data of the memory according to the second chip selection signal.

[0099] In some embodiments, the data of the memory may also be output according to the second chip selection signal and the address signal. The address signal is used to determine a specific address line in a chip.

[0100] S320, latching the data to obtain latched data.

[0101] S330, read latched data.

[0102] For example, data is read at a rising edge of the next working clock signal of the first working mode.

[0103] In the above data reading method, the data in the memory can be output according to the second chip select signal. After the data is output, the data can be latched to obtain latched data. In this way, when the pulse width of the second chip select signal is small, the data can be kept for a period of time to facilitate reading the latched data after the next working clock signal of the first working mode is output.

[0104] Based on the same inventive concept, an embodiment of the present application further provides a storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the data reading method in some of the aforementioned embodiments are implemented.

[0105] It should be noted that the storage medium here is different from the memory in some of the aforementioned embodiments, and the processor is also different from the processor in some of the aforementioned embodiments.

[0106] In some embodiments, the processor can be implemented by a general-purpose integrated circuit chip or a special-purpose integrated circuit chip. For example, the integrated circuit chip can be set on a motherboard. For example, a storage medium and a power supply circuit can also be set on the motherboard; in addition, the processor can also be implemented by a circuit or by software, hardware (circuit), firmware or any combination thereof.

[0107] In some embodiments, the processor may also be a central processing unit, a microprocessor, such as an X86 processor, an ARM processor, or may be a graphics processing unit (GPU) or a tensor processing unit (TPU), or may be a digital signal processor (DSP), etc.

[0108] The storage medium used in each embodiment provided in the present application may include at least one of non-volatile and volatile memory. Non-volatile memory may include read-only memory (ROM), magnetic tape, floppy disk, flash memory or optical memory, etc. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM may be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc.

[0109] The technical effects that can be achieved by the aforementioned data reading method can also be achieved by this storage medium, and will not be elaborated here.

[0110] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0111] The above-mentioned embodiments only express several implementation methods of the present invention, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.

Claims

1. A data reading method, characterized in that: Used to read data from a memory; the method comprises: In a first working mode, a first chip select signal is generated in response to a data read request; the processor is connected to the first chip select signal generator; the data read request is transmitted by the processor to the first chip select signal generator when the processor is configured in the first working mode; generating a second chip select signal in response to the first chip select signal and a working clock signal of a second working mode; wherein a pulse width of the second chip select signal is smaller than a pulse width of the first chip select signal; Reading data from the memory according to the second chip select signal in the first working mode; the first working mode is a low-speed working mode, and the second working mode is a normal working mode; The first chip select signal is generated based on the working clock signal of the first working mode; The frequency of the working clock signal in the second working mode is greater than the frequency of the working clock signal in the first working mode.

2. The data reading method according to claim 1, characterized in that: The generating a second chip select signal in response to the first chip select signal and a working clock signal of a second working mode comprises: In response to the first chip select signal, triggering a clock start signal of the second working mode; generating a working clock signal of the second working mode according to the clock start signal; The second chip select signal is generated according to the working clock signal of the second working mode.

3. The data reading method according to claim 2, characterized in that: The step of generating the second chip select signal according to the working clock signal of the second working mode comprises: After acquiring at least one cycle of the working clock signal of the second working mode, triggering a clock shutoff signal of the second working mode; The second chip select signal is generated according to the acquired working clock signal of the second working mode of the at least one cycle.

4. The data reading method according to any one of claims 1 to 3, characterized in that: The step of reading data from the memory according to the second chip select signal comprises: outputting the data of the memory according to the second chip select signal; latching the data to obtain latched data; The latched data is read.

5. A data reading device, characterized in that: include: A first chip select signal generator, a second chip select signal generator and a processor; The processor is connected to the first chip select signal generator and is configured to transmit a data read request to the first chip select signal generator in a first working mode; The first chip select signal generator is configured to generate a first chip select signal in response to a data read request; The second chip select signal generator is connected to the first chip select signal generator and is configured to generate a second chip select signal according to the first chip select signal and a working clock signal of a second working mode; wherein a pulse width of the second chip select signal is smaller than a pulse width of the first chip select signal; Wherein, the second chip select signal generator is connected to a memory, and the memory is configured to output data according to the second chip select signal; The processor is also connected to the memory and is also configured to read the data; the first working mode is a low-speed working mode, and the second working mode is a normal working mode; The data reading device also includes: A first oscillator is connected to the first chip select signal generator and is configured to provide a working clock signal of the first working mode; the first chip select signal generator is further configured to: generate the first chip select signal according to the working clock signal of the first working mode; A second oscillator, connected to the second chip select signal generator, configured to provide a working clock signal of the second working mode; The frequency of the working clock signal in the second working mode is greater than the frequency of the working clock signal in the first working mode.

6. The data reading device according to claim 5, characterized in that: The data reading device further includes: a clock controller connected to the first chip selection signal generator and the second oscillator respectively; The clock controller is configured to start the second oscillator in response to the first chip selection signal, and shut down the second oscillator after the second oscillator outputs at least one cycle of the working clock signal of the second working mode.

7. The data reading device according to claim 5, characterized in that: The data reading device further includes: a bus holder serially connected between the memory and the processor; the bus holder is configured to latch the data output by the memory.

8. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the data reading method according to any one of claims 1 to 4 are implemented.