Method and corresponding system for managing requests to access a random access memory

By introducing a programmable unavailability duration mechanism in the memory interface and setting the unavailability time according to the request type, the problem of performance degradation of random access memory at low voltage is solved, achieving more efficient operation and lower energy consumption.

CN113805795BActive Publication Date: 2024-08-27STMICROELECTRONICS (ROUSSET) SAS
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110652275.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2021-06-02
Filing Date
2021-06-11
Publication Date
2024-08-27
Estimated Expiration
2041-06-11

AI Technical Summary

Technical Problem

Random access memory performance degrades at low voltages, resulting in longer processor operation times and increased energy consumption.

Method used

By introducing a programmable unavailability duration mechanism in the memory interface, the unavailability time is set separately according to read and write requests, allowing the processor to perform operations immediately when the memory is available, reducing waiting time.

Benefits of technology

Optimizes the efficiency of processor write operations at low voltage, reduces energy consumption, and supports higher operating speeds and lower consumption.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113805795B_ABST
    Figure CN113805795B_ABST
Patent Text Reader

Abstract

Embodiments of the present disclosure relate to methods and corresponding systems for managing requests to access a random access memory. The random access memory is connected to a processing unit by means of a memory interface. Access to the random access memory is controlled by a process. The memory interface receives a request for access to the memory issued by the processing unit. In response to the request, the memory interface indicates to the processing unit that the memory is not available for receiving another access request during an unavailable duration. The duration can be distinguished according to whether the received request is a write request or a read request. The value of the unavailable duration associated with the write request and the value of the unavailable duration associated with the read request can be independently programmed separately from each other.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application claims priority from French Patent Application No. 2006167, filed on June 12, 2020, the contents of which are incorporated herein by reference in their entirety to the maximum extent permitted by law. Technical Field

[0003] Embodiments and implementations relate to the field of microelectronics, and more particularly to the field of managing access to random access memory, e.g., of the random access memory ("RAM") type, the dynamic random access memory ("DRAM") type, or the static random access memory ("SRAM") type. Background Art

[0004] Conventional electronic devices include a processor connected to a random access memory, for example, by means of a bus and a memory interface. The processor can issue an access request intended to read or write to the random access memory via the bus and the memory interface.

[0005] Typically, the performance of random access memory decreases as the supply voltage decreases, particularly due to an increase in the number of read and write accesses.

[0006] In order not to affect the frequency performance of the processor, the memory interface implements a wait state mechanism that allows the interface to indicate to the processor that the random access memory is unavailable for a fixed number of clock cycles after receiving an access request.

[0007] As a result, some operations performed by the processor last longer, which is disadvantageous in terms of consumption, in particular in low-voltage operating modes aimed at having lower consumption.

[0008] There is therefore a need to improve the low voltage performance of such electronic devices. Summary of the invention

[0009] It has been observed that the access time for writing content in a random access memory is less sensitive to variations in the memory supply voltage than the access time for reading content, and therefore, particularly at low voltages, the access time for writing content in a random access memory is shorter than the access time for reading content.

[0010] According to one implementation and embodiment, it is therefore proposed to selectively adjust the waiting time between two access requests according to the reading or writing of the content in the random access memory.

[0011] This allows in particular not to force the processor to wait the same time to be able to perform an operation after a write request to a memory as it can be performed after a read request to a memory when the memory is indeed already available.

[0012] According to one aspect, a method for managing access to a random access memory connected to a processing unit via a memory interface is provided.

[0013] The method according to this aspect includes: when a memory interface receives an access request to a memory issued by a processing unit, the memory interface indicates to the processing unit that the memory is unavailable for receiving another access request during an unavailable duration, and the unavailable duration can be distinguished according to whether the received request is a write request or a read request.

[0014] Furthermore, the value of the unavailability duration associated with a write request and the value of the unavailability duration associated with a read request may be individually programmed independently of each other.

[0015] These programmable unavailability durations are distinct from the intrinsic durations of write and / or read operations performed internally by the memory itself.

[0016] These values ​​of the read and write unavailability durations may be programmed independently of one another, for example by a user of the microcontroller, for example depending on the characteristics of the application under consideration, such as the desired supply voltage and operating frequency.

[0017] By virtue of this programming, the user can select the values ​​of these unavailable durations independently of the intrinsic durations of the write and / or read operations performed by the memory itself, for example by storing these values ​​in registers.

[0018] For example, the user can impose a non-zero number of (one or more) clock cycles (corresponding to the unavailability duration) during which the memory will be considered unavailable by the processing unit, which allows to guarantee that a write or read operation performed by the memory will be completed before another access request is received and thus that the correct operation of the microcontroller can be guaranteed taking into account the frequencies considered.

[0019] The unavailable (eg write unavailable) duration being programmed to a zero value means that the inherent duration of the considered operation (eg write operation) is compatible with the correct operation of the microcontroller, taking into account the considered frequency.

[0020] Thus, in this case, the user does not impose any transactions and causes the memory and memory interface to operate in a conventional manner.

[0021] Since it has been observed that, in particular at low voltages, the access time for writing content in a random access memory is shorter than the access time for reading content, the unavailability duration associated with a write request may then advantageously be chosen to be less than the unavailability duration associated with a read request.

[0022] This then enables limiting the duration during which the processing unit cannot perform an operation after a request to write to the memory, allowing lower consumption (fewer clock cycles during which the processing unit does not perform any operation) and higher execution speed of some operations.

[0023] Depending on the situation under consideration, these programmable values ​​can both be non-zero, or one can be zero and the other non-zero, or both can be zero, for example if, for example, during low voltage operation and at low frequencies, the inherent duration of the read and / or write operations, even if increased, is not detrimental to the correct operation of the microcontroller.

[0024] Likewise, in some cases, particularly where there are no "wait states," the unavailability duration associated with a write request may be selected to be equal to the unavailability duration associated with a read request.

[0025] According to one implementation, the processing unit is clocked by a clock signal, and the value of the unavailable duration associated with a write request and the value of the unavailable duration associated with a read request may be related to the supply voltage value of the random access memory and the frequency of the clock signal as shown above.

[0026] In fact, as mentioned above, even if the access time to the memory increases as the supply voltage drops, this may not be a problem if, for example, the clocking frequency of the processing unit remains low. The user can then decide not to increase the duration of the memory's unavailability beyond the inherent access time of the low voltage memory.

[0027] According to one implementation, if the power supply voltage is less than a first threshold and if the frequency is greater than a second threshold, the value of the unavailable duration associated with a read request is non-zero, and if the power supply voltage is less than a third threshold and if the frequency is greater than a fourth threshold, the value of the unavailable duration associated with a write request is non-zero.

[0028] The first threshold and the third threshold may be the same or different.

[0029] However, typically the first threshold is greater than the third threshold.

[0030] For example, for a supply voltage greater than 1 volt, for a given frequency, the value of the unavailable duration associated with a read request and the value of the unavailable duration associated with a write request may both be selected to be zero.

[0031] On the other hand, if the supply voltage is between 0.8 volts and 1 volt, the value of the unavailable duration associated with a read request will be selected to be non-zero, while the value of the unavailable duration associated with a write request will always be selected to be zero.

[0032] For supply voltages less than 0.8 volts, the value of the unavailable duration associated with a read request and the value of the unavailable duration associated with a write request may both be selected to be non-zero.

[0033] The second threshold and the fourth threshold may also be the same or different.

[0034] Typically, a higher desired frequency results in a non-zero unavailability duration.

[0035] Hence, having individually customizable read or write thresholds to trigger the unavailable time period enables taking into account the differences in the evolution of read and write access times in relation to supply voltage and frequency.

[0036] As previously described, according to one implementation, when the processing unit is timed by a clock signal, the value of the unavailable duration associated with a write request corresponds to a first number of cycles of the clock signal, and the value of the unavailable duration associated with a read request corresponds to a second number of cycles of the clock signal.

[0037] This allows the use of counters to implement values ​​for these unavailability durations.

[0038] According to another aspect, a system is proposed, the system comprising a random access memory connected to a processing unit by means of a memory interface.

[0039] The memory interface comprises: a receiving circuit configured to receive an access request to the memory transmitted by a processing unit; and a processing circuit connected to the receiving circuit and configured to indicate to the processing unit that the random access memory is unavailable for receiving another access request during an unavailability duration, wherein the unavailability duration can be distinguished according to whether the received request is a write request or a read request.

[0040] The system also includes a programming circuit configured to separately program a value of an unavailability duration associated with a write request and a value of an unavailability duration associated with a read request independently of each other.

[0041] According to one embodiment, the processing unit is clocked by a clock signal and the value of the unavailability duration associated with a write request and the value of the unavailability duration associated with a read request are related to the value of the supply voltage of the random access memory and the frequency of the clock signal.

[0042] According to one embodiment, if the power supply voltage is less than a first threshold and if the frequency is greater than a second threshold, the value of the unavailable duration associated with a read request is non-zero, and if the power supply voltage is less than a third threshold and if the frequency is greater than a fourth threshold, the value of the unavailable duration associated with a write request is non-zero.

[0043] According to one embodiment, the unavailability duration associated with a write request is less than or equal to the unavailability duration associated with a read request.

[0044] According to one embodiment, the processing unit is clocked by a clock signal, the value of the unavailability duration associated with a write request corresponds to a first number of cycles of the clock signal and the value of the unavailability duration associated with a read request corresponds to a second number of cycles of the clock signal.

[0045] According to one embodiment, the processing circuit includes: a first counter, which is timed by a clock signal and has a first count end value corresponding to the value of the unavailable duration associated with a write request; a second counter, which is timed by a clock signal and has a second count end value corresponding to the value of the unavailable duration associated with a read request; and a state machine, which is configured to trigger the first counter or the second counter if the first count end value or the second count end value is non-zero, respectively, output a memory unavailable signal to the processing unit when one of the counters is triggered, and output a memory available signal to the processing unit when the triggered counter reaches its count end value.

[0046] According to one embodiment, the programming circuit comprises: a first programmable memory circuit connected to the processing circuit and intended to contain a first indication representing a value of an unavailability duration associated with a write request; and a second programmable memory circuit connected to the processing circuit and intended to contain a second indication representing a value of an unavailability duration associated with a read request.

[0047] According to one embodiment, the first indication is a first count end value and the second indication is a second count end value.

[0048] According to one embodiment, the system forms a microcontroller. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] Other advantages and features of the present invention will become apparent after examining the detailed description of embodiments and implementations, which are in no way limiting, and the accompanying drawings, in which:

[0050] Figure 1 A system including a random access memory is illustrated;

[0051] Figure 2illustrates a flow chart of the operation of the state machine; and

[0052] Figure 3 Reference Figure 1 An example of a timing diagram of the system operation is shown. DETAILED DESCRIPTION

[0053] Figure 1 A system SYS is illustrated, which comprises a random access memory MM, typically a static or dynamic random access memory, which is connected to a central processing unit CPU, e.g. a processor, by means of a memory interface MM_IF. The term "random access memory" is understood here in a general manner, i.e. the random access memory MM may, for example, consist of one or more random access memories. The random access memory MM is powered by a supply voltage Vdd.

[0054] The processing unit CPU is clocked by a clock signal HCLK having a frequency Freq.

[0055] The connection between the processing unit CPU and the memory interface MM_IF is realized by a bus BS, for example of the “Advanced High Performance Bus” AHB type, or more generally by a bus corresponding to the “Advanced Microcontroller Bus Architecture” (AMBA) standard.

[0056] Likewise, the connection between the memory interface MM_IF and the random access memory MM is realized via the memory bus BS_MM.

[0057] The system SYS thus formed may be, for example, a microcontroller integrated into a mobile device such as a mobile phone, for example a microcontroller of the STM32 series sold by the company STMicroelectronics.

[0058] During operation of the system SYS, the processing unit CPU issues a read or write access request RQT (RQT) intended for the random access memory MM via the BS, BS_MM bus. Figure 2 ).

[0059] To this end, the memory interface MM_IF comprises a receiving circuit MRC configured to receive such an access request RQT.

[0060] In some applications, one generally seeks to minimize the power consumption of the system SYS, and in particular, it is advantageous to reduce the power consumption of the random access memory MM, which is usually one of the most energy-consuming components in a microelectronic device.

[0061] Furthermore, there is a low consumption mode in which the memory supply voltage Vdd is intentionally lowered.

[0062] However, the result of lowering the power supply voltage Vdd of the random access memory MM is an increase in the read and write access time to the random access memory.

[0063] A problem may occur when the random access memory MM processes a current access request RQT and receives a new access request while the memory has not yet completed writing or reading the data required by the current request.

[0064] The memory interface MM_IF therefore comprises a processing circuit MT configured to implement a "wait state" mechanism which indicates to the processing unit CPU that the random access memory MM is unavailable for a duration called the unavailable duration.

[0065] To this end, the processing circuit MT comprises a circuit capable of generating a usable signal HREADYout( Figure 2 )'s state machine SM, available signals can be communicated to the processing unit CPU via the bus BS.

[0066] The available signal HREADYout is, for example, a binary signal indicating that in a high state, the memory MM is available, and in a low state, the memory MM is not available. When the available signal HREADYout received by the processing unit CPU is in a low state, issuing a new access request to the random access memory MM is prohibited.

[0067] Advantageously, the state machine SM supports an operation for selectively adjusting the duration of the unavailability of the random access memory MM according to whether the access request RQT is a read access request or a write access request.

[0068] The unavailability duration associated with a read request is referred to as VAL_R, and the unavailability duration associated with a write request is referred to as VAL_W.

[0069] The unavailability durations VAL_R and VAL_W may be the same or different and they are programmable, for example by a user of the system SYS.

[0070] The processing circuit MT comprises a first counter CT1 and a second counter CT2 which are timed by the clock signal HCLK of the processing unit CPU.

[0071] The first counter CT1 includes a count end value corresponding to the unavailable duration VAL_W. The second counter CT2 includes a count end value corresponding to the unavailable duration VAL_R.

[0072] As about Figure 2To explain in more detail, after a write request and assuming that VAL_W is not zero, the first counter CT1 is configured to increment at the rate of the clock signal HCLK until the value VAL_W of the write unavailable duration is reached.

[0073] After a read request and assuming that VAL_R is not zero, the second counter CT2 is configured to increment at the rate of the clock signal HCLK until the value VAL_R of the read unavailable duration is reached.

[0074] Furthermore, the system SYS comprises a programming circuit PROG comprising a program control circuit MPRG in order to allow a user to individually program the values ​​VAL_W and VAL_R of the read and write unavailable durations as described above.

[0075] The programming circuit PROG further comprises: a first memory (or data storage) circuit REG1 (e.g., register) for storing a value VAL_W for the write unavailable duration; and a second memory (or data storage) circuit REG2 (e.g., register) for storing a value VAL_R for the read unavailable duration. The first memory circuit REG1 and the second memory circuit REG2 are connected to the first counter CT1 and the second counter CT2 of the processing circuit MT, respectively.

[0076] The value VAL_R of the read-write unavailable duration and the value VAL_W of the write-unavailable duration are determined according to the frequency Freq of the processing unit CPU (ie, the frequency of the clock signal HCLK) and the power supply voltage Vdd of the random access memory MM.

[0077] To determine the unavailable duration, the user may define a first write count end value set VAL_Wi and a second read count end value set VAL_Rj according to the value ranges of the power supply voltage Vdd of the random access memory MM and the frequency Freq of the processing unit CPU.

[0078] For this purpose, the user may use, for example, the first power supply voltage threshold TH1 , the second frequency threshold TH2 , the third power supply voltage threshold TH3 , and the fourth frequency threshold TH4 .

[0079] Of course, the number of thresholds may be different than four, depending on the intended application.

[0080] Thus, for example, if the power supply voltage Vdd is less than the first threshold TH1 and if the frequency Freq is greater than the second threshold TH2, the value of the unavailable duration associated with the read request may be non-zero.

[0081] On the other hand, if the power supply voltage Vdd is less than the first threshold TH1 but the processing unit CPU operates slowly, the unavailable duration associated with the read request may be zero, ie the wait state mechanism is not used (no “wait state”).

[0082] Likewise, if the power supply voltage Vdd is less than the third threshold TH3, which is substantially less than the first threshold TH1, and if the frequency Freq is greater than the fourth threshold TH4, the value of the unavailable duration associated with the write request may be non-zero.

[0083] On the other hand, if the power supply voltage is greater than the third threshold TH3, the unavailable duration associated with the write request may be zero.

[0084] For example, for a supply voltage Vdd less than or equal to 0.9 volts (TH1) and an operating frequency less than 12 MHz (TH2), the read-unavailable duration VAL_R and the write-unavailable duration VAL_W are zero (no “wait state”).

[0085] For a supply voltage Vdd less than or equal to 0.9 volts (TH1) but greater than 0.7 volts (TH3) and an operating frequency greater than 12 MHz (TH2), the read unavailable duration VAL_R can, for example, be equal to two or three clock cycles HCLK and the write unavailable duration VAL_W can be kept at zero (no "wait state").

[0086] For a supply voltage less than or equal to 0.7V (TH3) and an operating frequency greater than 12MHz (TH2=TH4), the read unavailable duration VAL_R may be equal to, for example, two or three clock cycles HCLK and the write unavailable duration VAL_W may be equal to one clock cycle HCLK.

[0087] The user can therefore program different threshold values ​​THi and different read count end values ​​VAL_Rj and write count end values ​​VAL_Wi taking these thresholds into account.

[0088] All count end values ​​VAL_Rj, VAL_Wi and threshold values ​​are stored in a memory circuit (eg, a register).

[0089] The program control circuit MPRG is then configured to select a suitable pair of count end values ​​VAL_Rj, VAL_Wi according to the supply voltage Vdd of the memory MM and the frequency of the clock signal HCLK and to store them in registers REG2 and RGEG1, respectively.

[0090] As described above, the contents of these two registers indicate the count end values ​​of the two counters CT1 and CT2.

[0091] When the values ​​VAL_W and / or VAL_R of the unavailable duration stored in the registers REG1 , REG2 , respectively, are zero, the wait state mechanism is disabled in writing and / or reading.

[0092] The programming control circuit MPRG can, for example, select a suitable pair of count end values ​​VAL_Wi, VAL_Rj at system initialization, for example according to an expected operation mode, and store them in registers REG1, REG2, respectively.

[0093] The program control circuit MPRG may be further configured to dynamically adjust the values ​​VAL_R, VAL_W of the read and / or write unavailable duration according to current values ​​of the power supply voltage Vdd and the frequency Freq.

[0094] In practice, during operation of the system SYS, if the supply voltage Vdd and / or the frequency Freq exceed one of the thresholds Thi (TH1, TH2, TH3, TH4) in one direction or the other, for example when going from full consumption mode to low consumption mode or vice versa, the programming control circuit MPRG modifies the value(s) stored in the register(s) REG1, REG2 to correspond to the count end values ​​VAL_Wi, VAL_Rj programmed by the user for these new supply voltage Vdd and frequency Freq values.

[0095] Figure 2 The diagram shows the reference Figure 1 FIG. 5 is a flow chart showing the operation of the state machine SM implemented in the memory interface MM_IF.

[0096] Prior to step S1 , the flowchart therefore comprises an initialization step, not shown, during which the programming circuit PROG determines, as described above, the value VAL_W of the unavailability duration associated with a write request, and the value VAL_R of the unavailability duration associated with a read request, and thus determines the count end values ​​of the counters CT1 and CT2 .

[0097] In step S1, because the available signal HREADYout is in the high state, the memory interface MM_IF indicates to the processing unit CPU that the random access memory MM is available.

[0098] The processing unit CPU transmits an access request RQT to the random access memory MM via the bus BS, the access request RQT being received by the memory interface MM_IF.

[0099] In a next step S2, the state machine SM determines whether the received access request RQT is intended to read or write content in the random access memory MM.

[0100] In order to determine whether the access request RQT is a read request or a write request, the state machine analyzes, for example, the signal HWRITE ( Figure 3 ), the signal HWRITE indicates a write request in a high state and indicates a read request in a low state.

[0101] According to the result determined in step S2, if the access request RQT is a write request, the next step is step S2-1, or if the access request RQT is a read request, the next step is step S2-2.

[0102] From steps S2 - 1 , S2 - 2 , the flowchart is divided into two parallel branches, the first branch comprising steps dedicated to managing write requests and the second branch comprising steps dedicated to managing read requests.

[0103] In the following step S2-1 or S2-2, the state machine SM transmits the access request RQT to the random access memory MM via the memory bus BS_MM by applying a conventional write or read protocol.

[0104] More specifically, if Figure 3 As shown in the timing diagram of FIG. 1 , the write protocol includes the conversion of the conventional and well-known CEN (“chip enable”), WEN (“write enable”) signals, and the sending of the data to be written and its address.

[0105] Likewise, the read protocol includes the conversion of the conventional and well-known CEN ("Chip Enable"), WEN ("Write Enable") signals, and the sending of the address of the data to be read.

[0106] In the next step S3-1 or S3-2, the unavailable duration value (count end value) is compared with a zero value.

[0107] If the value of the unavailable duration is zero, the random access memory MM processes the write and / or read access request RQT in a conventional manner, ie without implementing a wait state mechanism. For example, for a new request, the signal HREADYout may remain in a high state.

[0108] On the other hand, if the value of the read or write unavailable duration is not zero, in corresponding step S4-1 or S4-2 the processing circuit MT indicates to the processing unit CPU that the random access memory MM is not available by switching the available signal HREADYout to a low state.

[0109] In step S5-1 or respectively S5-2, the state machine SM triggers the first counter CT1 if the request RQT is a write request or the second counter CT2 if the request RQT is a write request, so that only the relevant counter is incremented.

[0110] Step S6-1 or S6-2 corresponds to testing the increment of the relevant counter CT1 or CT2 at each cycle of the clock signal HCLK until the count end value is reached.

[0111] In step S7-1 or S7-2, the unavailability duration finally expires, and the random access memory MM can process a new access request from the processing unit CPU.

[0112] The processing circuit MT again indicates that the random access memory MM is available by raising the available signal HREADYout to the high state.

[0113] Figure 3 Reference Figure 1 An example of a timing diagram of the operation of the system SYS is shown.

[0114] The timing diagram illustrates the management of a data write access request by the system SYS, for example the data 11111111 at address 0005FFCC (these two values ​​are in hexadecimal), followed by the management of a data read access request, for example the data previously written to the same address. The signals related to the request management are thus transmitted by the system SYS on the bus BS and the memory bus BS_MM. The signals flowing on the buses BS and BS_MM are timed by the clock signal HCLK.

[0115] On the bus BS, the signals sent by the processing unit CPU include: a selection signal HSEL activating the random access memory MM; a signal representing a read or write request HWRITE; and address information HADDR specifying an address to be read or written in the random access memory MM.

[0116] Furthermore, as part of a write request, data HWDATA to be written into the random access memory MM are transferred on the bus BS by the processing unit CPU to the memory interface MM_IF.

[0117] Still on the bus BS, the signals transmitted by the memory interface MM_IF include: an available signal HREADYout indicating that the random access memory MM is available or unavailable; and data HRDATA read in the memory and transmitted by the memory interface MM_IF to the processing unit CPU as part of a read request.

[0118] On the memory bus BS_MM, the data sent or received by the random access memory MM includes: address A corresponding to the address information HADDR; input data D to be written to the memory corresponding to the data HWDATA to be written; and output data Q read from the memory and corresponding to the read data HRDATA returned to the processing unit CPU.

[0119] Still on the memory bus BS_MM, the signals generated by the memory interface MM_IF to the random access memory MM include: a chip enable CEN signal; a signal representing a read or write WEN; and a memory clock signal CLK generated from the clock signal HCLK. The method of irregularly generating the memory clock signal CLK is obtained by a method called a pulse skipping method, which supports limiting power consumption by reducing the number of clock cycles that affect the state of the random access memory MM.

[0120] Finally, the current value of the counter CT2 is shown on the timing diagram. For simplicity, only the current value of the second counter CT2 associated with reading is shown. In fact, in the example shown, only the management of the read access request implements the wait state mechanism. The count end value of the first counter CT1 is zero here.

[0121] The timing diagram firstly shows a write access request issued by the processing unit CPU to write data HWDATA at the address HADDR in the random access memory MM.

[0122] A write access request is characterized by the generation by the processing unit CPU of a high state of the select signal HSEL and of the high state of the signal HWRITE.

[0123] The memory interface MM_IF therefore generates a low state of the chip enable CEN signal and a low state of the WEN signal at the time T1. These two signals are received by the random access memory MM and initiate writing.

[0124] The random access memory MM then processes the write access request, and between time T1 and time T2, the input data D takes on the value of the data to be written HWDATA, and the data HWDATA is written at the address A representing the address information HADDR.

[0125] The write access request is processed by the system SYS, in this example, in a single cycle of the clock signal HCLK without using any wait cycles generated by the wait state mechanism.

[0126] The available signal HREADYout maintains a high state during the entire data writing process to indicate to the processing unit CPU that the random access memory MM is available in the next clock signal HCLK cycle.

[0127] The read access request can therefore be processed immediately in the next clock signal HCLK cycle.

[0128] In response to this, the processing unit CPU issues an access request to read the content of the random access memory MM stored in the address HADDR.

[0129] A read access request is characterized in that the processing unit CPU generates a high state of the selection signal HSEL and a low state of the signal HWRITE.

[0130] The memory interface MM_IF transmits a read access request at time T3 by generating a low state of the chip enable CEN signal and a high state of the WEN signal. These two signals are received by the random access memory MM, which initiates the read process at the next rising edge of the signal CLK, and the available signal HREADYout switches to a low state from time T3 until time T4.

[0131] Counter CT2 is triggered and its current value is incremented to the count end value programmed by the user, here the value 2 corresponding to three clock cycles.

[0132] Therefore, the unavailable duration associated with a read request is three clock signal HCLK cycles.

[0133] Therefore, the available signal HREADYout is kept in a low state during the three clock cycles of the unavailable duration. The issuance of new access requests by the processing unit CPU is prohibited during these three clock cycles.

[0134] During this time, the random access memory MM processes the read access request and returns data Q to the memory interface MM_IF, and the memory interface MM_IF transmits the read data HRDATA to the processing unit.

Claims

1. A method for managing access to a random access memory, the random access memory being connected to a processing unit via a memory interface, the method comprising: Timing the processing unit, the first counter and the second counter by a clock signal; In response to receiving at the memory interface a request issued by the processing unit to access the memory, sending to the processing unit via the memory interface an indication that the memory is unavailable to receive another access request during an unavailability duration; wherein the unavailability duration is different depending on whether the received request is a write request or a read request; wherein a value of the unavailable duration associated with the write request corresponds to a first number of cycles of the clock signal; wherein a value of the unavailable duration associated with the read request corresponds to a second number of cycles of the clock signal; wherein a value of the unavailability duration associated with a write request and a value of the unavailability duration associated with a read request are individually programmed independently of each other; triggering the first counter when a first count end value corresponding to the value of the unavailable duration associated with the write request is non-zero; triggering the second counter when a second count end value corresponding to the value of the unavailable duration associated with the read request is non-zero; When one of the first counter and the second counter is triggered, outputting a memory unavailable signal to the processing unit; as well as When the triggered one of the first counter and the second counter reaches a counting end value, a memory available signal is output to the processing unit.

2. The method according to claim 1, further comprising: The value of the unavailable duration associated with the write request and the value of the unavailable duration associated with the read request are each related to a value of a power supply voltage for the random access memory and a frequency of the clock signal. 3 . The method of claim 2 , wherein if the supply voltage is less than a first threshold and if the frequency is greater than a second threshold, then the value of the unavailable duration associated with the read request is non-zero. 4 . The method of claim 2 , wherein if the power supply voltage is less than a third threshold and if the frequency is greater than a fourth threshold, then the value of the unavailable duration associated with the write request is non-zero. 5 . The method of claim 1 , wherein a value of the unavailability duration associated with the write request is less than or equal to a value of the unavailability duration associated with the read request.

6. A system comprising: Random Access Memory; a processing unit connected to the random access memory via a memory interface, wherein the processing unit is clocked by a clock signal; The memory interface comprises: a receiving circuit configured to receive a request for accessing the memory issued by the processing unit; and a processing circuit connected to the receiving circuit and configured to indicate to the processing unit that the random access memory is unavailable for receiving another access request during an unavailability duration, wherein the unavailability duration is differentiated according to whether the received request is a write request or a read request; a programming circuit configured to separately program a value of the unavailability duration associated with the write request and a value of the unavailability duration associated with the read request independently of each other; a first counter, timed by the clock signal and having a first count end value, the first count end value corresponding to a value of the unavailability duration associated with the write request; a second counter, timed by the clock signal and having a second count end value, the second count end value corresponding to a value of the unavailability duration associated with the read request; and a state machine configured to: trigger the first counter if the first count end value is non-zero, or trigger the second counter if the second count end value is non-zero; output a memory unavailable signal to the processing unit when one of the first counter and the second counter is triggered; and output a memory available signal to the processing unit when the one of the first counter and the second counter that has been triggered has reached the count end value; wherein a value of the unavailable duration associated with the write request corresponds to a first number of cycles of the clock signal; and Wherein a value of the unavailable duration associated with the read request corresponds to a second number of cycles of the clock signal.

7. The system of claim 6 , wherein the processing unit is timed by a clock signal, and wherein the value of the unavailable duration associated with the write request and the value of the unavailable duration associated with the read request are each related to the value of a supply voltage of the random access memory and the frequency of the clock signal. 8 . The system of claim 7 , wherein if the supply voltage is less than a first threshold and if the frequency is greater than a second threshold, then the value of the unavailable duration associated with the read request is non-zero.

9. The system of claim 7, wherein if the power supply voltage is less than a third threshold and if the frequency is greater than a fourth threshold, the value of the unavailable duration associated with the write request is non-zero.

10. The system of claim 6, wherein a value of the unavailability duration associated with the write request is less than or equal to a value of the unavailability duration associated with the read request.

11. The system of claim 6, wherein the programming circuit comprises: a first programmable memory circuit connected to the processing circuit and configured to store a first indication representing a value of the unavailability duration associated with the write request; as well as A second programmable memory circuit is connected to the processing circuit and is configured to store a second indication representing a value of the unavailability duration associated with the read request. 12 . The system of claim 11 , wherein the first indication is the first count end value and the second indication is the second count end value.

13. The system according to claim 6, forming a microcontroller.