JP2021185462A - Memory control circuit and memory device - Google Patents

Memory control circuit and memory device Download PDF

Info

Publication number
JP2021185462A
JP2021185462A JP2020090391A JP2020090391A JP2021185462A JP 2021185462 A JP2021185462 A JP 2021185462A JP 2020090391 A JP2020090391 A JP 2020090391A JP 2020090391 A JP2020090391 A JP 2020090391A JP 2021185462 A JP2021185462 A JP 2021185462A
Authority
JP
Japan
Prior art keywords
request
issuance
refresh
signal
memory
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2020090391A
Other languages
Japanese (ja)
Other versions
JP7406104B2 (en
Inventor
秀和 小佐野
Hidekazu Osano
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP2020090391A priority Critical patent/JP7406104B2/en
Publication of JP2021185462A publication Critical patent/JP2021185462A/en
Application granted granted Critical
Publication of JP7406104B2 publication Critical patent/JP7406104B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Memory System (AREA)
  • Dram (AREA)

Abstract

To reduce a waiting time of a request.SOLUTION: A memory control circuit determines that a continuous batch of request groups is in an issue state, when a first issue interval of a request is less than a first threshold value, during a request reception period in a memory; suppresses issue of refreshment, while determining that the request groups are in the issue state, when a second issue interval of the request is less than a second threshold value; and permits the issue of the refreshment, when the second issue interval reaches the second threshold value.SELECTED DRAWING: Figure 7

Description

本発明は、メモリ制御回路及びメモリ装置に関する。 The present invention relates to a memory control circuit and a memory device.

DRAM(Dynamic Random Access Memory)などの揮発性メモリ(以下単にメモリという)を制御するメモリ制御回路は、メモリに対するリードまたはライトのリクエストの受付期間中に、定期的にリフレッシュを発生させる。 A memory control circuit that controls a volatile memory (hereinafter simply referred to as a memory) such as a DRAM (Dynamic Random Access Memory) periodically generates a refresh during a read or write request reception period for the memory.

リフレッシュが必要なメモリでは、仕様上、リフレッシュを所定期間内に発生させなければならない。そのため、リクエストとリフレッシュが競合する場合、メモリ制御回路は、リクエストを待機させてリフレッシュを優先する制御を行うことがあった。 For memory that needs to be refreshed, the refresh must occur within a specified period according to the specifications. Therefore, when the request and the refresh conflict with each other, the memory control circuit may control the request to wait and give priority to the refresh.

従来、割り込みにより強制実施されるリフレッシュ処理によるリードやライト動作の遅延を抑制するため、バーストリードやバーストライト処理が実行されていないアイドル期間に、リフレッシュ処理を実行する技術があった(たとえば、特許文献1参照)。 Conventionally, in order to suppress the delay of read and write operations due to the refresh process forcibly executed by an interrupt, there has been a technique of executing the refresh process during an idle period when the burst read or burst write process is not executed (for example, a patent). See Document 1).

特開2009−157549号公報Japanese Unexamined Patent Publication No. 2009-157549

ところでリクエストの発行間隔は一定ではなく、発行間隔が短い場合にも、リクエストが発行されていない期間にリフレッシュを発生させる場合、リクエストの待機時間が長くなってしまう可能性がある。 By the way, the request issuance interval is not constant, and even if the issuance interval is short, if refresh is generated during the period when the request is not issued, the request waiting time may become long.

1つの側面では、本発明は、リクエストの待機時間を減らすことができるメモリ制御回路及びメモリ装置を提供することを目的とする。 In one aspect, it is an object of the present invention to provide a memory control circuit and a memory device capable of reducing the waiting time of a request.

1つの実施態様では、リフレッシュが行われるメモリに対するリードまたはライトのリクエストを生成し、前記リクエストを出力するリクエスト生成部と、前記メモリにおけるリクエスト受付期間中に、前記リクエストの第1の発行間隔が第1の閾値未満の場合、連続する一群のリクエスト群の発行状態であると判定するリクエスト連続性判定部と、前記リフレッシュの第2の発行間隔が第2の閾値未満の場合、前記リクエスト群の発行状態であると判定されている間は、前記リフレッシュの発行を抑止し、前記第2の発行間隔が前記第2の閾値に達した場合、前記リフレッシュの発行を許容するリフレッシュ発行抑止部と、を有するメモリ制御回路が提供される。 In one embodiment, a request generator that generates a read or write request for the memory to be refreshed and outputs the request, and a first issuance interval of the request during the request acceptance period in the memory are third. If it is less than the threshold value of 1, the request continuity determination unit that determines that the request group is in the issuing state of a continuous group, and if the second issuance interval of the refresh is less than the second threshold value, the request group is issued. While it is determined to be in the state, the refresh issuance suppressing unit suppresses the issuance of the refresh, and when the second issuance interval reaches the second threshold value, the refresh issuance suppressing unit allows the issuance of the refresh. A memory control circuit having is provided.

また、1つの実施態様では、メモリ装置が提供される。 Also, in one embodiment, a memory device is provided.

1つの側面では、本発明は、リクエストの待機時間を減らすことができる。 In one aspect, the invention can reduce the waiting time for a request.

第1の実施の形態のメモリ装置及びメモリ制御回路の一例を示す図である。It is a figure which shows an example of the memory apparatus and the memory control circuit of 1st Embodiment. 第2の実施の形態のメモリ装置の一例を示す図である。It is a figure which shows an example of the memory apparatus of 2nd Embodiment. リフレッシュ格納部の一例を示す図である。It is a figure which shows an example of the refresh storage part. リクエスト連続性判定部の一例を示す図である。It is a figure which shows an example of the request continuity determination part. メモリ制御回路の動作の一例の流れを示すフローチャートである。It is a flowchart which shows the flow of an example of the operation of a memory control circuit. メモリ制御回路の状態遷移図である。It is a state transition diagram of a memory control circuit. メモリ制御回路の各部の信号の時間変化の一例を示すタイミングチャートである。It is a timing chart which shows an example of the time change of the signal of each part of a memory control circuit. リクエスト連続性判定部内における各部の信号の時間変化の一例を示すタイミングチャートである。It is a timing chart which shows an example of the time change of the signal of each part in a request continuity determination part. 比較例のメモリ装置である。It is a memory device of a comparative example. 比較例のメモリ装置のメモリ制御回路の各部の信号の時間変化の一例を示すタイミングチャートである。It is a timing chart which shows an example of the time change of the signal of each part of the memory control circuit of the memory device of the comparative example.

以下、発明を実施するための形態を、図面を参照しつつ説明する。
(第1の実施の形態)
図1は、第1の実施の形態のメモリ装置及びメモリ制御回路の一例を示す図である。
Hereinafter, embodiments for carrying out the invention will be described with reference to the drawings.
(First Embodiment)
FIG. 1 is a diagram showing an example of a memory device and a memory control circuit according to the first embodiment.

メモリ装置10は、メモリ11とメモリ制御回路12を有する。
メモリ11は、DRAMやHBM(High Bandwidth Memory)など、データを保持するためのリフレッシュが行われるメモリである。
The memory device 10 includes a memory 11 and a memory control circuit 12.
The memory 11 is a memory such as a DRAM or HBM (High Bandwidth Memory) that is refreshed to hold data.

メモリ制御回路12は、リクエスト生成部12a、リクエスト格納部12b、リクエスト連続性判定部12c、リフレッシュ生成部12d、選択部12eを有する。
リクエスト生成部12aは、たとえば、メモリ装置10の外部から入力される信号(たとえば、あるアドレスを指定したリード命令やライト命令)に基づいて、メモリ11に対するリードまたはライトのリクエストを生成し、リクエストを出力(発行)する。また、リクエスト生成部12aは、リクエストの発行状態であるか否かを示す信号(以下、リクエスト発行状態信号という)を出力する。
The memory control circuit 12 includes a request generation unit 12a, a request storage unit 12b, a request continuity determination unit 12c, a refresh generation unit 12d, and a selection unit 12e.
The request generation unit 12a generates a read or write request to the memory 11 based on a signal input from the outside of the memory device 10 (for example, a read instruction or a write instruction specifying a certain address), and makes a request. Output (issue). Further, the request generation unit 12a outputs a signal indicating whether or not the request is in the issuance state (hereinafter, referred to as a request issuance state signal).

リクエスト格納部12bは、たとえば、レジスタなどを有し、リクエスト生成部12aが発行したリクエストを一時的に格納する。メモリ11の仕様により、メモリ11がリクエストを受けられない期間があるためである。また、リクエスト格納部12bは、リクエスト生成部12aと選択部12eが異なるクロックドメインの回路である場合に、クロック乗り換えを行う。 The request storage unit 12b has, for example, a register and temporarily stores the request issued by the request generation unit 12a. This is because there is a period during which the memory 11 cannot receive a request due to the specifications of the memory 11. Further, the request storage unit 12b performs clock switching when the request generation unit 12a and the selection unit 12e are circuits having different clock domains.

リクエスト連続性判定部12cは、メモリ11におけるリクエスト受付期間中に、リクエスト発行状態信号に基づいてリクエストの発行間隔を検出し、リクエストの発行間隔が第1の閾値未満の場合、連続する一群のリクエスト群の発行状態であると判定する。ライトデータやリードデータのデータサイズが大きい場合、(途中に少しの隙間はあってもよいが)ある程度連続したリクエスト群が形成されることが多い。リクエスト連続性判定部12cは、リクエストの発行間隔と第1の閾値とを比較することにより、このようなリクエスト群の発行状態であるか否かを判定できる。 The request continuity determination unit 12c detects the request issuance interval based on the request issuance status signal during the request acceptance period in the memory 11, and when the request issuance interval is less than the first threshold value, a continuous group of requests. It is determined that the group is in the issuing state. When the data size of write data or read data is large, a group of requests that are continuous to some extent is often formed (although there may be a slight gap in the middle). The request continuity determination unit 12c can determine whether or not such a request group is in the issuance state by comparing the request issuance interval with the first threshold value.

また、リクエスト連続性判定部12cは、リクエストの発行が終了した場合、第1の閾値の期間経過後に、上記リクエスト群の発行の終了を示す信号を出力する。さらにまた、リクエスト連続性判定部12cは、リクエスト生成部12aとリフレッシュ生成部12dが異なるクロックドメインの回路である場合に、クロック乗り換えを行ってもよい。リクエスト連続性判定部12cの回路例については後述する。 Further, when the issuance of the request is completed, the request continuity determination unit 12c outputs a signal indicating the end of the issuance of the request group after the elapse of the period of the first threshold value. Furthermore, the request continuity determination unit 12c may switch clocks when the request generation unit 12a and the refresh generation unit 12d are circuits of different clock domains. A circuit example of the request continuity determination unit 12c will be described later.

第1の閾値は、たとえば、リクエストをリフレッシュよりも、どの程度優先するかに応じて適宜設定される。第1の閾値を大きくするほど、複数のリクエストは、発行間隔が広くても連続する一群のリクエスト群と判定されやすくなり、後述のリフレッシュ発行抑止部12d1の機能によりリフレッシュの発行が抑止されやすくなるため、リクエストの優先度が高まる。 The first threshold is set as appropriate, for example, depending on how much priority the request has over refreshing. The larger the first threshold value, the easier it is that a plurality of requests are determined to be a continuous group of requests even if the issuance interval is wide, and the refresh issuance is more likely to be suppressed by the function of the refresh issuance suppression unit 12d1 described later. Therefore, the priority of the request is increased.

リフレッシュ生成部12dは、後述のリフレッシュ発行抑止部12d1の機能によりリフレッシュの発行が抑止されていない期間において、リフレッシュを発生させる信号を定期的に発行する。リフレッシュの発行間隔(リフレッシュを発生させる信号の発行間隔)は、一定でなくてもよく、メモリ11の仕様を満たす範囲で調整可能である。 The refresh generation unit 12d periodically issues a signal for generating a refresh during a period in which the refresh issuance is not suppressed by the function of the refresh issuance suppression unit 12d1, which will be described later. The refresh issuance interval (issue interval of the signal that causes refreshment) does not have to be constant, and can be adjusted within a range that satisfies the specifications of the memory 11.

選択部12eは、リクエスト格納部12bの出力とリフレッシュ生成部12dの出力の何れか一方を選択して、メモリ11に供給する。メモリ11において、リフレッシュ用のバスとリクエスト用のバスが共通である場合、このような選択部12eが用いられる。 The selection unit 12e selects either the output of the request storage unit 12b or the output of the refresh generation unit 12d and supplies it to the memory 11. When the refresh bus and the request bus are common in the memory 11, such a selection unit 12e is used.

図1の例では、リフレッシュ生成部12dは、リフレッシュ発行抑止部12d1を有する。
リフレッシュ発行抑止部12d1は、リフレッシュの発行間隔(リフレッシュが発行されていない期間)が第2の閾値未満の場合、連続する一群のリクエスト群の発行状態であると判定されている間は、リフレッシュの発行を抑止する。また、リフレッシュ発行抑止部12d1は、リフレッシュの発行間隔が第2の閾値に達した場合、リフレッシュの発行を許容する。
In the example of FIG. 1, the refresh generation unit 12d has a refresh issuance suppression unit 12d1.
When the refresh issuance interval (the period during which the refresh is not issued) is less than the second threshold value, the refresh issuance suppression unit 12d1 performs refresh while it is determined that a group of consecutive requests is being issued. Suppress issuance. Further, the refresh issuance suppressing unit 12d1 allows the issuance of refreshes when the refresh issuance interval reaches the second threshold value.

第2の閾値は、たとえば、メモリ11の仕様に応じて設定されるリフレッシュの発行間隔の上限値である。また、本明細書において、「抑止」とは、ある一定期間についてはリフレッシュを発行せず、その期間に発行するはずであったリフレッシュを、その期間後に遅延して発行する動作を意味し、リフレッシュの発行自体を消滅させるという意味ではない。メモリ11においてリフレッシュ処理は、仕様に応じた所定の全リフレッシュ期間内に、所定の回数、実施されるためである。 The second threshold value is, for example, an upper limit value of the refresh issuance interval set according to the specifications of the memory 11. Further, in the present specification, "suppression" means an operation in which a refresh is not issued for a certain period of time, and a refresh that should have been issued during that period is issued with a delay after that period. It does not mean that the issue itself of is extinguished. This is because the refresh process in the memory 11 is performed a predetermined number of times within a predetermined total refresh period according to the specifications.

なお、メモリ制御回路12は、リフレッシュ生成部12dが発行したリフレッシュを一時的に格納して、メモリ11に対するリフレッシュの発行間隔を調整するリフレッシュ格納部を有していてもよい。その場合、リフレッシュ発行抑止部12d1は、リフレッシュ格納部に含まれていてもよい。 The memory control circuit 12 may have a refresh storage unit that temporarily stores the refresh issued by the refresh generation unit 12d and adjusts the refresh issuance interval for the memory 11. In that case, the refresh issuance suppressing unit 12d1 may be included in the refresh storage unit.

図1には、メモリ制御回路12の一例の動作例が示されている。
リクエスト生成部12aがリクエストを発行すると、リクエスト発行状態信号の論理レベルがL(Low)レベルからH(High)レベルに立ち上がる(タイミングt1)。リクエスト連続性判定部12cは、この変化に応答して、連続する一群のリクエスト群の発行開始を示す論理レベルがHレベルのパルス信号(以下、リクエスト群発行開始信号という)を出力する。これにより、リフレッシュ発行抑止部12d1は、リフレッシュの発行の抑止を開始する。
FIG. 1 shows an operation example of an example of the memory control circuit 12.
When the request generation unit 12a issues a request, the logic level of the request issuance status signal rises from the L (Low) level to the H (High) level (timing t1). In response to this change, the request continuity determination unit 12c outputs a pulse signal having a logic level of H level (hereinafter, referred to as a request group issuance start signal) indicating the start of issuance of a continuous group of requests. As a result, the refresh issuance suppression unit 12d1 starts suppressing the issuance of refresh.

図1の例では、リクエスト生成部12aは、タイミングt2においてリクエストの発行を終了し、その後、タイミングt3において再びリクエストの発行を行っている。図1のように、このときの2つのリクエストの発行間隔であるT(=t3−t2)が、前述の第1の閾値であるTth1未満である場合、リクエスト連続性判定部12cは、連続する一群のリクエスト群の発行状態であると判定する。この場合、リクエスト連続性判定部12cは、連続する一群のリクエスト群の発行終了を示す論理レベルがHレベルのパルス信号(以下、リクエスト群発行終了信号という)を出力しない。したがって、リフレッシュ発行抑止部12d1は、リフレッシュの発行の抑止を継続する。 In the example of FIG. 1, the request generation unit 12a finishes issuing the request at the timing t2, and then issues the request again at the timing t3. As shown in FIG. 1, when T (= t3-t2), which is the issuance interval between the two requests at this time, is less than Tth1, which is the first threshold value described above, the request continuity determination unit 12c is continuous. It is determined that a group of requests is being issued. In this case, the request continuity determination unit 12c does not output a pulse signal having an H level logic level indicating the end of issuance of a continuous group of requests (hereinafter referred to as a request group issuance end signal). Therefore, the refresh issuance suppression unit 12d1 continues to suppress the issuance of refreshes.

図1の例では、リクエスト生成部12aは、タイミングt4においてリクエストの発行を終了し、タイミングt4からTth1の期間経過しても次のリクエストを発行していない。このため、リクエスト連続性判定部12cは、Tth1の期間経過後に、リフレッシュ群発行終了信号を出力する(タイミングt5)。これにより、リフレッシュ発行抑止部12d1は、リフレッシュの発行を許容する。 In the example of FIG. 1, the request generation unit 12a finishes issuing a request at timing t4, and does not issue the next request even after the period from timing t4 to Tth1 has elapsed. Therefore, the request continuity determination unit 12c outputs a refresh group issuance end signal after the period of Tth1 has elapsed (timing t5). As a result, the refresh issuance suppression unit 12d1 allows the issuance of refreshes.

このように、第1の実施の形態のメモリ装置10のメモリ制御回路12は、メモリ11におけるリクエスト受付期間中にリクエストの連続性を判定し、リクエストの発行間隔が第1の閾値未満の場合、リフレッシュの発行を抑止する。これにより、リクエストの発行間隔が短い場合においても、リクエストの合間にリフレッシュが発行されることが抑制されるため、リクエストの待機が発生することが抑制される。このため、リクエストの待機時間を減らすことができる。また、リクエストの待機時間を減らすことができるため、リードやライト動作の遅延を減らせ、メモリ装置10の性能(リクエスト処理速度)を向上させることができる。 As described above, the memory control circuit 12 of the memory device 10 of the first embodiment determines the continuity of requests during the request acceptance period in the memory 11, and when the request issuance interval is less than the first threshold value, Suppress the issuance of refreshes. As a result, even when the request issuance interval is short, the refresh is suppressed from being issued between requests, so that the waiting for the request is suppressed. Therefore, the waiting time of the request can be reduced. Further, since the request waiting time can be reduced, the delay of read and write operations can be reduced, and the performance (request processing speed) of the memory device 10 can be improved.

(第2の実施の形態)
図2は、第2の実施の形態のメモリ装置の一例を示す図である。図2において、図1に示した要素と同じ要素については、同一符号が付されている。
(Second embodiment)
FIG. 2 is a diagram showing an example of a memory device according to a second embodiment. In FIG. 2, the same elements as those shown in FIG. 1 are designated by the same reference numerals.

第2の実施の形態のメモリ装置20におけるメモリ制御回路21は、リフレッシュ生成部21bが定期的に発行したリフレッシュを発生させる信号を一時的に格納して、メモリ11に対するリフレッシュの発行間隔を調整するリフレッシュ格納部21cを有する。 The memory control circuit 21 in the memory device 20 of the second embodiment temporarily stores a signal for generating a refresh issued periodically by the refresh generation unit 21b, and adjusts the refresh issuance interval to the memory 11. It has a refresh storage unit 21c.

図3は、リフレッシュ格納部の一例を示す図である。
リフレッシュ格納部21cは、リフレッシュ発行間隔カウンタ21c1、上限設定レジスタ21c2、比較器21c3、OR回路21c4、リフレッシュ発行抑止部21c5、発行間隔調整回路21c6を有する。
FIG. 3 is a diagram showing an example of a refresh storage unit.
The refresh storage unit 21c includes a refresh issuance interval counter 21c1, an upper limit setting register 21c2, a comparator 21c3, an OR circuit 21c4, a refresh issuance suppression unit 21c5, and an issuance interval adjustment circuit 21c6.

リフレッシュ発行間隔カウンタ21c1は、リフレッシュの発行間隔(リフレッシュが発行されていない期間)を計数するカウンタである。リフレッシュ発行間隔カウンタ21c1は、発行間隔調整回路21c6が、リフレッシュを発生させる信号を出力するまで、たとえば、図示しないクロック信号に同期して計数値をカウントアップする。発行間隔調整回路21c6がリフレッシュを発生させる信号を出力した場合、リフレッシュ発行間隔カウンタ21c1は、計数値をリセットする。 The refresh issuance interval counter 21c1 is a counter that counts the refresh issuance interval (the period during which no refresh is issued). The refresh issuance interval counter 21c1 counts up the count value in synchronization with, for example, a clock signal (not shown) until the issuance interval adjustment circuit 21c6 outputs a signal that causes a refresh. When the issue interval adjustment circuit 21c6 outputs a signal to generate a refresh, the refresh issue interval counter 21c1 resets the count value.

上限設定レジスタ21c2は、リフレッシュの発行間隔の上限値が設定されるレジスタである。リフレッシュの発行間隔の上限値は、たとえば、メモリ装置20の初期設定時にメモリ11の仕様に応じて設定される。 The upper limit setting register 21c2 is a register in which the upper limit value of the refresh issuance interval is set. The upper limit of the refresh issuance interval is set, for example, according to the specifications of the memory 11 at the time of initial setting of the memory device 20.

比較器21c3は、リフレッシュ発行間隔カウンタ21c1が計数した計数値と、上限値との比較結果を出力する。以下の例では、比較器21c3は、計数値が上限値に達するまでは、論理レベルがLレベルの信号を出力し、計数値が上限値に達した場合に論理レベルがHレベルの信号を出力するものとするが、これに限定されるものではない。 The comparator 21c3 outputs a comparison result between the count value counted by the refresh issuance interval counter 21c1 and the upper limit value. In the following example, the comparator 21c3 outputs a signal whose logic level is L level until the count value reaches the upper limit value, and outputs a signal whose logic level is H level when the count value reaches the upper limit value. However, it is not limited to this.

比較器21c3の出力信号は、OR回路21c4と、リクエスト連続性判定部21aに供給される。比較器21c3の出力信号の論理レベルがHレベルの場合、リクエスト連続性判定部21aに、連続する一群のリクエスト群の発行の強制終了が指示される。 The output signal of the comparator 21c3 is supplied to the OR circuit 21c4 and the request continuity determination unit 21a. When the logic level of the output signal of the comparator 21c3 is H level, the request continuity determination unit 21a is instructed to forcibly terminate the issuance of a continuous group of requests.

OR回路21c4は、比較器21c3の出力信号と、リクエスト連続性判定部21aが出力するリフレッシュを発行するか否かを指示する信号(連続する一群のリクエスト群の発行が終了したか否かを示す信号)との論理和(OR)を出力する。OR回路21c4の出力信号は、論理レベルがHレベルの場合、前述のリクエスト群発行終了信号に相当し、リフレッシュの発行を指示するものとするが、これに限定されるものではない。 The OR circuit 21c4 indicates whether or not the output signal of the comparator 21c3 and the signal indicating whether or not to issue the refresh output by the request continuity determination unit 21a (whether or not the issuance of a continuous group of requests has been completed). The logical sum (OR) with the signal) is output. When the logic level is H level, the output signal of the OR circuit 21c4 corresponds to the above-mentioned request group issuance end signal and indicates the issuance of refresh, but is not limited thereto.

リフレッシュ発行抑止部21c5は、OR回路21c4の出力信号と、リクエスト連続性判定部21aが出力するリフレッシュの発行を抑止するか否かを指示する信号(連続する一群のリクエスト群の発行が開始したか否かを示す信号)とを受ける。そして、リフレッシュ発行抑止部21c5は、OR回路21c4の出力信号の論理レベルがLレベルの場合、またはリフレッシュの発行の抑止を指示する信号を受けた場合、リフレッシュの発行を抑止させる。以下の例では、リフレッシュの発行を抑止するか否かを指示する信号は、論理レベルがHレベルの場合は、前述のリクエスト群発行開始信号に相当し、リフレッシュの発行の抑止を指示するものとするが、これに限定されるものではない。 The refresh issuance suppression unit 21c5 has an output signal of the OR circuit 21c4 and a signal instructing whether to suppress the issuance of the refresh output by the request continuity determination unit 21a (whether the issuance of a continuous group of requests has started? (Signal indicating whether or not) is received. Then, the refresh issuance suppressing unit 21c5 suppresses the issuance of refresh when the logic level of the output signal of the OR circuit 21c4 is L level or when a signal instructing to suppress the issuance of refresh is received. In the following example, the signal instructing whether or not to suppress the issuance of refresh corresponds to the above-mentioned request group issuance start signal when the logic level is H level, and indicates to suppress the issuance of refresh. However, it is not limited to this.

リフレッシュ発行抑止部21c5は、たとえば、セット端子とリセット端子とを有し、論理値“1”または論理値“0”を保持するリセット優先のフリップフロップである。この場合、リフレッシュの発行を抑止するか否かを指示する信号がセット端子に入力され、OR回路21c4の出力信号がリセット端子に入力される。そして、リフレッシュの発行を抑止するか否かを指示する信号の論理レベルがHレベルとなると、リフレッシュ発行抑止部21c5に“1”がセットされ、リフレッシュの発行を抑止させる論理レベルがHレベルの信号が出力される。以下、リフレッシュ発行抑止部21c5に、“1”がセットされている状態をリフレッシュ発行禁止状態という。 The refresh issuance suppressing unit 21c5 is, for example, a reset-priority flip-flop having a set terminal and a reset terminal and holding a logical value “1” or a logical value “0”. In this case, a signal instructing whether or not to suppress the issuance of refresh is input to the set terminal, and the output signal of the OR circuit 21c4 is input to the reset terminal. When the logical level of the signal instructing whether to suppress the issuance of refresh becomes H level, "1" is set in the refresh issuance suppressing unit 21c5, and the logical level for suppressing the issuance of refresh is the H level signal. Is output. Hereinafter, the state in which "1" is set in the refresh issuance suppression unit 21c5 is referred to as a refresh issuance prohibition state.

また、リフレッシュの発行間隔が上限値に達するか、リフレッシュの発行を指示する信号が供給された場合、OR回路21c4の出力信号の論理レベルがHレベルになる。このとき、リフレッシュ発行抑止部21c5が“0”にリセットされ、リフレッシュ発行抑止部21c5は、論理レベルがLレベルの信号を出力する。 Further, when the refresh issuance interval reaches the upper limit value or a signal instructing the refresh issuance is supplied, the logic level of the output signal of the OR circuit 21c4 becomes H level. At this time, the refresh issuance suppression unit 21c5 is reset to "0", and the refresh issuance suppression unit 21c5 outputs a signal whose logic level is L level.

発行間隔調整回路21c6は、たとえば、レジスタを有し、リフレッシュ生成部21bが発行したリフレッシュを発生させる信号を一時的に格納して、メモリ11に対するリフレッシュの発行間隔を調整する。また、発行間隔調整回路21c6は、リフレッシュ発行抑止部21c5によって、リフレッシュの発行の抑止が指示されている間、リフレッシュを発生させる信号を出力しない。 The issuance interval adjusting circuit 21c6 has, for example, a register, temporarily stores a signal for generating a refresh issued by the refresh generation unit 21b, and adjusts the issuance interval of the refresh to the memory 11. Further, the issuance interval adjusting circuit 21c6 does not output a signal for generating a refresh while the refresh issuance suppression unit 21c5 is instructed to suppress the issuance of refresh.

図4は、リクエスト連続性判定部の一例を示す図である。
リクエスト連続性判定部21aは、リクエスト無期間カウンタ21a1、上限設定レジスタ21a2、比較器21a3、OR回路21a4,21a9、AND回路21a5,21a6,21a7,21a8、リクエスト群発行状態判定部21a10を有する。
FIG. 4 is a diagram showing an example of a request continuity determination unit.
The request continuity determination unit 21a includes a request indefinite period counter 21a1, an upper limit setting register 21a2, a comparator 21a3, an OR circuit 21a4, 21a9, an AND circuit 21a5, 21a6, 21a7, 21a8, and a request group issuance state determination unit 21a10.

リクエスト無期間カウンタ21a1は、リセット優先のカウンタであり、連続する一群のリクエスト群の発行状態のときにリクエストが発行されていない期間(リクエスト間隔)をカウントする。リクエスト無期間カウンタ21a1は、OR回路21a9の出力信号の論理レベルがLレベルで、かつAND回路21a7の出力信号の論理レベルがHレベルの場合、たとえば、図示しないクロック信号に同期して計数値をカウントアップする。また、リクエスト無期間カウンタ21a1は、OR回路21a9の出力信号がHレベルの場合、計数値をリセットし、OR回路21a9の出力信号がHレベルの間は、計数動作を行わない。 The request indefinite period counter 21a1 is a reset priority counter, and counts a period (request interval) in which a request is not issued when a continuous group of requests is issued. When the logic level of the output signal of the OR circuit 21a9 is L level and the logic level of the output signal of the AND circuit 21a7 is H level, the request indefinite period counter 21a1 calculates the count value in synchronization with a clock signal (not shown), for example. Count up. Further, the request indefinite period counter 21a1 resets the counting value when the output signal of the OR circuit 21a9 is at the H level, and does not perform the counting operation while the output signal of the OR circuit 21a9 is at the H level.

上限設定レジスタ21a2は、連続する一群のリクエスト群を判定するためのリクエスト間隔の上限値を保持する。リクエスト間隔の上限値は、たとえば、メモリ装置20の初期設定時に設定される。 The upper limit setting register 21a2 holds an upper limit value of the request interval for determining a continuous group of requests. The upper limit of the request interval is set, for example, at the time of initial setting of the memory device 20.

比較器21a3は、リクエスト無期間カウンタ21a1が計数した計数値と、上限値との比較結果を出力する。以下の例では、リクエスト無期間カウンタ21a1は、計数値が上限値に達するまでは、論理レベルがLレベルの信号を出力し、計数値が上限値に達した場合に論理レベルがHレベルの信号を出力するものとするが、これに限定されるものではない。 The comparator 21a3 outputs a comparison result between the count value counted by the request indefinite period counter 21a1 and the upper limit value. In the following example, the request indefinite period counter 21a1 outputs a signal whose logic level is L level until the count value reaches the upper limit value, and when the count value reaches the upper limit value, a signal whose logic level is H level. Is output, but is not limited to this.

OR回路21a4は、比較器21a3の出力信号と、図3に示したリフレッシュ格納部21cの比較器21c3の出力信号との論理和(OR)を出力する。
AND回路21a5は、リクエスト生成部12aが出力するリクエスト発行状態信号と、リクエスト群発行状態判定部21a10の出力信号の論理レベルを反転させた信号との論理積(AND)を出力する。以下の例では、リクエスト発行状態信号は、論理レベルがHレベルの場合、リクエストの発行状態であることを示すものとするが、これに限定されるものではない。また、以下の例では、リクエスト群発行状態判定部21a10の出力信号は、論理レベルがHレベルの場合、連続する一群のリクエスト群の発行状態であることを示すものとするが、これに限定されるものではない。AND回路21a5の出力信号は、前述のリフレッシュの発行を抑止するか否かを指示する信号であり、リクエスト群発行状態判定部21a10と、リフレッシュ格納部21cに供給される。
The OR circuit 21a4 outputs a logical sum (OR) of the output signal of the comparator 21a3 and the output signal of the comparator 21c3 of the refresh storage unit 21c shown in FIG.
The AND circuit 21a5 outputs a logical product (AND) of a request issuance state signal output by the request generation unit 12a and a signal obtained by inverting the logic level of the output signal of the request group issuance state determination unit 21a10. In the following example, the request issuance status signal indicates, but is not limited to, the request issuance status when the logic level is H level. Further, in the following example, the output signal of the request group issuance state determination unit 21a10 indicates that when the logic level is H level, it is the issuance state of a continuous group of requests, but the present invention is limited to this. It's not something. The output signal of the AND circuit 21a5 is a signal instructing whether or not to suppress the issuance of the above-mentioned refresh, and is supplied to the request group issuance state determination unit 21a10 and the refresh storage unit 21c.

AND回路21a6は、OR回路21a4の出力信号と、リクエスト群発行状態判定部21a10の出力信号との論理積を出力する。AND回路21a6の出力信号は、前述のリフレッシュを発行するか否かを指示する信号であり、リクエスト群発行状態判定部21a10と、リフレッシュ格納部21cに供給される。 The AND circuit 21a6 outputs the logical product of the output signal of the OR circuit 21a4 and the output signal of the request group issuance state determination unit 21a10. The output signal of the AND circuit 21a6 is a signal instructing whether or not to issue the above-mentioned refresh, and is supplied to the request group issuance state determination unit 21a10 and the refresh storage unit 21c.

AND回路21a7は、リクエスト生成部12aが出力するリクエスト発行状態信号の論理レベルを反転させた信号と、リクエスト群発行状態判定部21a10の出力信号との論理積を出力する。 The AND circuit 21a7 outputs the logical product of the signal obtained by inverting the logical level of the request issuance state signal output by the request generation unit 12a and the output signal of the request group issuance state determination unit 21a10.

AND回路21a8は、リクエスト生成部12aが出力するリクエスト発行状態信号と、リクエスト群発行状態判定部21a10の出力信号との論理積を出力する。
OR回路21a9は、AND回路21a6の出力信号と、AND回路21a8の出力信号との論理和を出力する。
The AND circuit 21a8 outputs the logical product of the request issuance status signal output by the request generation unit 12a and the output signal of the request group issuance status determination unit 21a10.
The OR circuit 21a9 outputs the logical sum of the output signal of the AND circuit 21a6 and the output signal of the AND circuit 21a8.

リクエスト群発行状態判定部21a10は、AND回路21a5とAND回路21a6の出力信号に基づいて、連続する一群のリクエスト群の発行状態であるか否かを示す信号を出力する。 The request group issuance state determination unit 21a10 outputs a signal indicating whether or not a continuous group of request groups is in the issuance state, based on the output signals of the AND circuit 21a5 and the AND circuit 21a6.

リクエスト群発行状態判定部21a10は、たとえば、セット端子とリセット端子とを有し論理値“1”または論理値“0”を保持するフリップフロップである。この場合、AND回路21a5の出力信号がセット端子に入力され、AND回路21a6の出力信号がリセット端子に入力される。そして、リクエスト群発行状態判定部21a10の出力信号の論理レベルがLレベルのとき、リクエストが発行されると、AND回路21a5の出力信号の論理レベルがHレベルになる。このとき、リクエスト群発行状態判定部21a10に“1”がセットされ、連続する一群のリクエスト群の発行状態であることを示す論理レベルがHレベルの信号が出力される。以下、リクエスト群発行状態判定部21a10に“1”がセットされている状態を、リクエスト群発行状態という。 The request group issuance state determination unit 21a10 is, for example, a flip-flop having a set terminal and a reset terminal and holding a logical value “1” or a logical value “0”. In this case, the output signal of the AND circuit 21a5 is input to the set terminal, and the output signal of the AND circuit 21a6 is input to the reset terminal. Then, when the logic level of the output signal of the request group issuance state determination unit 21a10 is L level, when the request is issued, the logic level of the output signal of the AND circuit 21a5 becomes H level. At this time, "1" is set in the request group issuance state determination unit 21a10, and a signal having a logic level of H level indicating that the request group is in the issuance state of a continuous group is output. Hereinafter, the state in which "1" is set in the request group issuance state determination unit 21a10 is referred to as a request group issuance state.

また、リクエスト群発行状態であるとき、リクエスト間隔が上限値に達するか、リフレッシュの発行間隔が上限値に達した場合、AND回路21a6の出力信号の論理レベルがHレベルになる。このとき、リクエスト群発行状態判定部21a10が“0”にリセットされ、リクエスト群発行状態判定部21a10は、リクエスト群発行状態ではないこと(以下、リクエスト群非発行状態という)を示す論理レベルがLレベルの信号を出力する。 Further, in the request group issuance state, when the request interval reaches the upper limit value or the refresh issuance interval reaches the upper limit value, the logical level of the output signal of the AND circuit 21a6 becomes the H level. At this time, the request group issuance status determination unit 21a10 is reset to "0", and the request group issuance status determination unit 21a10 has a logic level L indicating that the request group is not in the request group issuance state (hereinafter referred to as the request group non-issued state). Output a level signal.

なお、図1に示した第1の実施の形態のメモリ制御回路12のリクエスト連続性判定部12cも、図4に示すような回路にて実現できる。その場合、図4のAND回路21a5,21a6の出力信号は、図1のリフレッシュ生成部12dに供給される。また、リフレッシュ生成部12dは、図3に示したような、リフレッシュ発行間隔カウンタ21c1、上限設定レジスタ21c2、比較器21c3、OR回路21c4を有することになり、比較器21c3の出力信号が、リクエスト連続性判定部12cに供給されることになる。 The request continuity determination unit 12c of the memory control circuit 12 of the first embodiment shown in FIG. 1 can also be realized by the circuit as shown in FIG. In that case, the output signals of the AND circuits 21a5 and 21a6 of FIG. 4 are supplied to the refresh generation unit 12d of FIG. Further, the refresh generation unit 12d has a refresh issuance interval counter 21c1, an upper limit setting register 21c2, a comparator 21c3, and an OR circuit 21c4 as shown in FIG. 3, and the output signal of the comparator 21c3 is a continuous request. It will be supplied to the sex determination unit 12c.

以下、第2の実施の形態のメモリ制御回路21の動作例を示す図である。
図5は、メモリ制御回路の動作の一例の流れを示すフローチャートである。
リクエスト生成部12aがリクエストを発行すると(ステップS1)、リクエスト連続性判定部21aによってリクエスト群発行状態に設定されるとともに、リフレッシュ格納部21cによってリフレッシュ発行禁止状態に設定される(ステップS2)。
Hereinafter, it is a figure which shows the operation example of the memory control circuit 21 of the 2nd Embodiment.
FIG. 5 is a flowchart showing a flow of an example of the operation of the memory control circuit.
When the request generation unit 12a issues a request (step S1), the request continuity determination unit 21a sets the request group issuance state, and the refresh storage unit 21c sets the refresh issuance prohibition state (step S2).

そして、リフレッシュ発行間隔が上限値に達しておらず(ステップS3:NO)、リクエスト間隔も上限値に達していない場合(ステップS4:NO)、リクエスト群発行状態と、リフレッシュ発行禁止状態が維持される。 When the refresh issuance interval has not reached the upper limit value (step S3: NO) and the request interval has not reached the upper limit value (step S4: NO), the request group issuance state and the refresh issuance prohibition state are maintained. To.

リフレッシュ発行間隔が上限値に達した場合(ステップS3:YES)、またはリクエスト間隔が上限値に達した場合(ステップS4:YES)、リクエスト群発行状態と、リフレッシュ発行禁止状態が解除される(ステップS5)。これによってリフレッシュが発行される(ステップS6)。以上で、リクエストの発行から次にリフレッシュが発行されるまでの処理が終了する。 When the refresh issuance interval reaches the upper limit (step S3: YES) or the request interval reaches the upper limit (step S4: YES), the request group issuance state and the refresh issuance prohibition state are canceled (step). S5). As a result, a refresh is issued (step S6). This completes the process from the issuance of the request to the next issuance of the refresh.

図6は、メモリ制御回路の状態遷移図である。
図6には、リクエスト群発行状態、リクエスト群非発行状態、リフレッシュ発行禁止状態、リフレッシュ発行許容状態の4状態の間での状態遷移の例が示されている。
FIG. 6 is a state transition diagram of the memory control circuit.
FIG. 6 shows an example of a state transition between four states: a request group issuance state, a request group non-issuance state, a refresh issuance prohibition state, and a refresh issuance allowance state.

リクエスト群非発行状態において、リクエストが発行された場合、リクエスト群非発行状態からリクエスト群発行状態への状態遷移が発生する。また、リクエスト連続性判定部21aからリフレッシュ格納部21cにリフレッシュの発行を抑止する指示(リフレッシュ抑止指示)がなされ、リフレッシュ発行許容状態からリフレッシュ発行禁止状態への状態遷移が発生する。 When a request is issued in the request group non-issued state, a state transition occurs from the request group non-issued state to the request group issued state. Further, the request continuity determination unit 21a gives an instruction (refresh suppression instruction) to suppress the refresh issuance to the refresh storage unit 21c, and a state transition from the refresh issuance allowable state to the refresh issuance prohibition state occurs.

リクエスト群発行状態において、リクエスト間隔が上限値に達した場合、リクエスト群発行状態からリクエスト群非発行状態への状態遷移が発生する。また、リクエスト連続性判定部21aからリフレッシュ格納部21cにリフレッシュの発行の指示(リフレッシュ発行指示)がなされ、リフレッシュ発行禁止状態からリフレッシュ発行許容状態への状態遷移が発生する。 When the request interval reaches the upper limit in the request group issuance state, a state transition occurs from the request group issuance state to the request group non-issuance state. Further, the request continuity determination unit 21a gives an instruction to issue a refresh (a refresh issuance instruction) to the refresh storage unit 21c, and a state transition from the refresh issuance prohibition state to the refresh issuance allowable state occurs.

また、リフレッシュ発行禁止状態において、リフレッシュ発行間隔が上限値に達した場合、リフレッシュ発行禁止状態からリフレッシュ発行許容状態への状態遷移が発生する。また、リフレッシュ格納部21cからリクエスト連続性判定部21aにリクエスト群発行強制終了指示がなされ、リクエスト群発行状態からリクエスト群非発行状態への状態遷移が発生する。 Further, in the refresh issuance prohibited state, when the refresh issuance interval reaches the upper limit value, a state transition occurs from the refresh issuance prohibited state to the refresh issuance permitted state. Further, the refresh storage unit 21c gives an instruction to forcibly terminate the request group issuance to the request continuity determination unit 21a, and a state transition from the request group issuance state to the request group non-issuance state occurs.

次に、メモリ制御回路21の各部の信号の時間変化についてタイミングチャートを用いて説明する。
図7は、メモリ制御回路の各部の信号の時間変化の一例を示すタイミングチャートである。
Next, the time change of the signal of each part of the memory control circuit 21 will be described using a timing chart.
FIG. 7 is a timing chart showing an example of the time change of the signal of each part of the memory control circuit.

図7には、リクエスト生成部12aが出力するリクエスト発行状態信号、リクエスト群発行開始信号、リクエスト群発行終了信号の時間変化が示されている。さらに、図7には、リクエスト格納部12bのリクエストの格納状態と、リクエスト格納部12bのリクエストの出力状態の時間変化が示されている。リクエストの格納状態は、論理レベルがHレベルの場合、リクエストが格納されている状態を示し、論理レベルがLレベルの場合、リクエストが格納されていない状態(空の状態)を示す。リクエストの出力状態は、論理レベルがHレベルの場合、リクエスト格納部12bがリクエストを出力している状態を示し、論理レベルがLレベルの場合、リクエスト格納部12bがリクエストを出力していない状態を示す。リクエスト生成部12aが発行するリクエストが連続していても、リクエスト格納部12bからの読み出しが速い場合には、リクエスト格納部12bが一時的に空になる。図7には、その例が示されている。 FIG. 7 shows the time change of the request issuance status signal, the request group issuance start signal, and the request group issuance end signal output by the request generation unit 12a. Further, FIG. 7 shows the time change of the request storage state of the request storage unit 12b and the request output state of the request storage unit 12b. The storage state of the request indicates a state in which the request is stored when the logical level is H level, and indicates a state in which the request is not stored (empty state) when the logical level is L level. The request output state indicates a state in which the request storage unit 12b is outputting a request when the logic level is H level, and a state in which the request storage unit 12b is not outputting a request when the logic level is L level. show. Even if the requests issued by the request generation unit 12a are continuous, if the reading from the request storage unit 12b is fast, the request storage unit 12b is temporarily emptied. FIG. 7 shows an example.

また、図7には、リフレッシュ発行抑止部21c5の出力信号、リフレッシュ格納部21cの出力信号(選択部12eに供給される信号(「リフレッシュ発生信号」と図示されている))の時間変化が示されている。さらに、図7には、図3では図示が省略されていたが、たとえば、リフレッシュ格納部21cがさらに出力する、リクエストの発行を抑止するか否かを示す信号の時間変化が示されている。リクエストの発行を抑止するか否かを示す信号は、リフレッシュ発生信号の論理レベルがHレベルからLレベルに立ち下がるタイミングから所定期間(リフレッシュが実行される期間)、論理レベルがHレベルとなる信号である。リクエストの発行を抑止するか否かを示す信号は、リクエスト格納部12bに供給される。 Further, FIG. 7 shows time changes of the output signal of the refresh issuance suppressing unit 21c5 and the output signal of the refresh storage unit 21c (the signal supplied to the selection unit 12e (shown as “refresh generation signal”)). Has been done. Further, although not shown in FIG. 3, FIG. 7 shows, for example, a time change of a signal further output by the refresh storage unit 21c, which indicates whether or not to suppress the issuance of a request. The signal indicating whether to suppress the issuance of the request is a signal whose logic level becomes H level for a predetermined period (period during which refresh is executed) from the timing when the logic level of the refresh generation signal falls from H level to L level. Is. A signal indicating whether or not to suppress the issuance of the request is supplied to the request storage unit 12b.

図7の例では、タイミングt10において、リフレッシュ発生信号の論理レベルがLレベルからHレベルに立ち上がり、その後、タイミングt11においてリフレッシュ発生信号の論理レベルがHレベルからLレベルに立ち下がる。このとき、リクエストの発行を抑止するか否かを示す信号の論理レベルがLレベルからHレベルに立ち上がる。 In the example of FIG. 7, at the timing t10, the logic level of the refresh generation signal rises from the L level to the H level, and then at the timing t11, the logic level of the refresh generation signal falls from the H level to the L level. At this time, the logic level of the signal indicating whether or not to suppress the issuance of the request rises from the L level to the H level.

タイミングt12において、リクエスト生成部12aによってリクエストが発行されると、リクエスト群発行開始信号が出力される。これにより、リクエスト連続性判定部21aによりリフレッシュ格納部21cに対して前述のリフレッシュ抑止指示がなされ、タイミングt14において、リフレッシュ発行抑止部21c5の出力信号の論理レベルがLレベルからHレベルに立ち上がる。 When a request is issued by the request generation unit 12a at the timing t12, a request group issuance start signal is output. As a result, the request continuity determination unit 21a issues the above-mentioned refresh suppression instruction to the refresh storage unit 21c, and at the timing t14, the logical level of the output signal of the refresh issuance suppression unit 21c5 rises from the L level to the H level.

タイミングt13において、リクエスト格納部12bはリクエストを格納している状態となるが、リクエストの発行を抑止するか否かを示す信号の論理レベルがHレベルからLレベルに立ち下がるまでリクエストを出力しない。タイミングt14では、リクエストの発行を抑止するか否かを示す信号の論理レベルがHレベルからLレベルに立ち下がっている。これにより、リクエスト格納部12bはリクエストを出力する。 At the timing t13, the request storage unit 12b is in a state of storing the request, but does not output the request until the logical level of the signal indicating whether to suppress the issuance of the request drops from the H level to the L level. At the timing t14, the logic level of the signal indicating whether or not to suppress the issuance of the request is lowered from the H level to the L level. As a result, the request storage unit 12b outputs the request.

リフレッシュ発行抑止部21c5の出力信号の論理レベルがHレベルの間は、リフレッシュ発行禁止状態となる。このため、タイミングt15,t17で、論理レベルがLレベルからHレベルに立ち上がるはずであったリフレッシュ発生信号は変化せず、リフレッシュは発行されない。なお、発行されなかったリフレッシュは、リフレッシュ発行抑止部21c5の出力信号の論理レベルがLレベルに立ち下がったあとに、遅延して発行されることになる。 While the logic level of the output signal of the refresh issuance suppression unit 21c5 is H level, the refresh issuance prohibition state is set. Therefore, at the timings t15 and t17, the refresh generation signal whose logic level should have risen from the L level to the H level does not change, and no refresh is issued. The refresh that was not issued will be issued with a delay after the logical level of the output signal of the refresh issuance suppression unit 21c5 drops to the L level.

リクエストの発行が終了して(タイミングt16)、リクエスト間隔が上限値に達した場合、リクエスト群発行終了信号が出力される(タイミングt18)。これにより、リクエスト連続性判定部21aによりリフレッシュ格納部21cに対してリフレッシュ発行指示がなされ、タイミングt19において、リフレッシュ発行抑止部21c5の出力信号の論理レベルがHレベルからLレベルに立ち下がる。 When the issuance of the request is completed (timing t16) and the request interval reaches the upper limit, the request group issuance end signal is output (timing t18). As a result, the request continuity determination unit 21a issues a refresh issuance instruction to the refresh storage unit 21c, and at the timing t19, the logical level of the output signal of the refresh issuance suppression unit 21c5 drops from the H level to the L level.

このため、タイミングt20において、リフレッシュ発生信号の論理レベルがLレベルからHレベルに立ち上がり、たとえば、タイミングt15で発行されるはずであったリフレッシュが発行される。 Therefore, at the timing t20, the logic level of the refresh generation signal rises from the L level to the H level, and for example, the refresh that should have been issued at the timing t15 is issued.

図8は、リクエスト連続性判定部内における各部の信号の時間変化の一例を示すタイミングチャートである。
図8には、リクエスト生成部12aからリクエスト連続性判定部21aに供給されるリクエスト発行状態信号、リクエスト群発行状態判定部21a10によって判定されたリクエスト群の発行状態の時間変化が示されている。さらに、リクエスト無期間カウンタ21a1の計数値の時間変化、上限設定レジスタ21a2に設定される値(リクエスト間隔の上限値)、リクエスト群発行開始信号及びリクエスト群発行終了信号の時間変化が示されている。
FIG. 8 is a timing chart showing an example of the time change of the signal of each unit in the request continuity determination unit.
FIG. 8 shows a request issuance state signal supplied from the request generation unit 12a to the request continuity determination unit 21a, and a time change of the issuance state of the request group determined by the request group issuance state determination unit 21a10. Further, the time change of the count value of the request indefinite period counter 21a1, the value set in the upper limit setting register 21a2 (the upper limit value of the request interval), and the time change of the request group issuance start signal and the request group issuance end signal are shown. ..

なお、図8の例では、リクエスト無期間カウンタ21a1は、リクエスト群発行開始信号が出力してからリクエスト群発行終了信号が出力されるまでの間以外の期間(リクエスト群非発行状態の期間)においてはカウントアップ(計数動作)を行っていない。リクエスト無期間カウンタ21a1は、リクエスト群非発行状態においてもカウントアップを行ってもよいが、リクエスト群非発行状態における計数値は使用されないため、消費電力を削減するため、図8のようにカウントアップをしないことが望ましい。また、図8の例では、上限設定レジスタ21a2には上限値として3が設定されている。 In the example of FIG. 8, the request indefinite period counter 21a1 is used in a period other than the period from the output of the request group issuance start signal to the output of the request group issuance end signal (the period in which the request group is not issued). Is not counting up (counting operation). The request indefinite period counter 21a1 may count up even in the request group non-issued state, but since the count value in the request group non-issued state is not used, the count-up is performed as shown in FIG. 8 in order to reduce power consumption. It is desirable not to do. Further, in the example of FIG. 8, 3 is set as the upper limit value in the upper limit setting register 21a2.

リクエスト群非発行状態において、リクエスト生成部12aがリクエストを発行すると(タイミングt30)、リクエスト連続性判定部21aのAND回路21a5は、リフレッシュ群発行開始信号を出力する。これにより、リクエスト群発行状態となる。 When the request generation unit 12a issues a request (timing t30) in the request group non-issuance state, the AND circuit 21a5 of the request continuity determination unit 21a outputs a refresh group issuance start signal. As a result, the request group is issued.

図8の例では、リクエスト生成部12aは、タイミングt31においてリクエストの発行を終了し、その後、タイミングt32において再びリクエストの発行を行っている。図8のように、このときの2つのリクエストの発行間隔(リクエスト無期間カウンタ21a1の計数値)は3未満であるため、リクエスト群発行状態が維持される。 In the example of FIG. 8, the request generation unit 12a finishes issuing the request at the timing t31, and then issues the request again at the timing t32. As shown in FIG. 8, since the issuance interval of the two requests at this time (count value of the request indefinite period counter 21a1) is less than 3, the request group issuance state is maintained.

さらに図8の例では、リクエスト生成部12aは、タイミングt33においてリクエストの発行を終了し、その後、タイミングt34において再びリクエストの発行を行っている。図8のように、このときの2つのリクエストの発行間隔も3未満であるため、リクエスト群発行状態が維持される。 Further, in the example of FIG. 8, the request generation unit 12a finishes issuing the request at the timing t33, and then issues the request again at the timing t34. As shown in FIG. 8, since the issuance interval between the two requests at this time is also less than 3, the request group issuance state is maintained.

その後、リクエスト生成部12aは、タイミングt35においてリクエストの発行を終了し、タイミングt35からのリクエスト無期間カウンタ21a1の計数値が3に達しても次のリクエストを発行していない。このため、AND回路21a6は、計数値が3に達するタイミングt36において、リフレッシュ群発行終了信号を出力する。これにより、リクエスト群発行状態がリクエスト群非発行状態に変わる。 After that, the request generation unit 12a finishes issuing the request at the timing t35, and does not issue the next request even if the count value of the request indefinite period counter 21a1 from the timing t35 reaches 3. Therefore, the AND circuit 21a6 outputs a refresh group issuance end signal at the timing t36 when the count value reaches 3. As a result, the request group issuance state changes to the request group non-issued state.

このように、第2の実施の形態のメモリ装置20のメモリ制御回路21は、メモリ11におけるリクエスト受付期間中にリクエストの連続性を判定し、リクエストの発行間隔が所定の上限値未満の場合、リフレッシュの発行を抑止する。これにより、第1の実施の形態のメモリ装置10及びメモリ制御回路12と同様の効果が得られる。 As described above, the memory control circuit 21 of the memory device 20 of the second embodiment determines the continuity of requests during the request acceptance period in the memory 11, and when the request issuance interval is less than a predetermined upper limit value, Suppress the issuance of refreshes. As a result, the same effect as that of the memory device 10 and the memory control circuit 12 of the first embodiment can be obtained.

以下、上記のようなメモリ装置20に対する比較例を示す。
(比較例)
図9は、比較例のメモリ装置である。図9において、図2に示したメモリ装置20と同じ要素については同一符号が付されている。
Hereinafter, a comparative example with respect to the memory device 20 as described above will be shown.
(Comparative example)
FIG. 9 is a memory device of a comparative example. In FIG. 9, the same elements as those of the memory device 20 shown in FIG. 2 are designated by the same reference numerals.

メモリ装置30のメモリ制御回路31では、リクエスト格納部31aによるリクエストの格納状態に応じて、リフレッシュ格納部31bが、リフレッシュ発生信号の出力を抑止または許容する。 In the memory control circuit 31 of the memory device 30, the refresh storage unit 31b suppresses or allows the output of the refresh generation signal according to the storage state of the request by the request storage unit 31a.

図10は、比較例のメモリ装置のメモリ制御回路の各部の信号の時間変化の一例を示すタイミングチャートである。
図10には、リクエスト生成部12aが出力するリクエスト発行状態信号の時間変化、リクエスト格納部31aのリクエストの格納状態、リクエスト格納部31aのリクエストの出力状態の時間変化が示されている。また、図10には、リクエスト発行禁止状態、リフレッシュ格納部31bの出力信号であるリフレッシュ発生信号、リフレッシュ格納部31bがさらに出力する、リクエストの発行を抑止するか否かを示す信号の時間変化が示されている。
FIG. 10 is a timing chart showing an example of time change of a signal of each part of the memory control circuit of the memory device of the comparative example.
FIG. 10 shows the time change of the request issuance state signal output by the request generation unit 12a, the time change of the request storage state of the request storage unit 31a, and the time change of the request output state of the request storage unit 31a. Further, in FIG. 10, the request issuance prohibited state, the refresh generation signal which is the output signal of the refresh storage unit 31b, and the time change of the signal further output by the refresh storage unit 31b indicating whether or not to suppress the issuance of the request are shown. It is shown.

図10の例では、タイミングt40において、リクエスト生成部12aによってリクエストが発行されている。
比較例のメモリ制御回路31では、リクエスト格納部31aがリクエストを格納すると(タイミングt41)、リクエスト格納部31aからリフレッシュ格納部31bにリフレッシュ抑止指示がなされる。このため、リフレッシュ格納部31bでは、リフレッシュ発行禁止状態となり(タイミングt42)、リフレッシュは発行されない。
In the example of FIG. 10, a request is issued by the request generation unit 12a at the timing t40.
In the memory control circuit 31 of the comparative example, when the request storage unit 31a stores the request (timing t41), the request storage unit 31a issues a refresh suppression instruction to the refresh storage unit 31b. Therefore, in the refresh storage unit 31b, the refresh issuance is prohibited (timing t42), and no refresh is issued.

また、リクエスト格納部31aが空になると(タイミングt43)、リクエスト格納部31aからリフレッシュ格納部31bにリフレッシュ発行指示がなされる。このため、リフレッシュ格納部31bでは、リフレッシュ発行禁止状態が解除され(タイミングt44)、リフレッシュ発生信号の論理レベルがLレベルからHレベルに立ち上がり(タイミングt45)、リフレッシュが発行される。 When the request storage unit 31a becomes empty (timing t43), the request storage unit 31a issues a refresh issuance instruction to the refresh storage unit 31b. Therefore, in the refresh storage unit 31b, the refresh issuance prohibition state is released (timing t44), the logical level of the refresh generation signal rises from the L level to the H level (timing t45), and the refresh is issued.

この場合、リクエスト格納部31aは、リクエストが続けて発行されていても、リクエストの発行を抑止するか否かを示す信号の論理レベルがHレベルからLレベルに立ち下がるタイミングt46までリクエストを出力できない。 In this case, the request storage unit 31a cannot output the request until the timing t46 when the logical level of the signal indicating whether or not to suppress the issuance of the request drops from the H level to the L level even if the requests are continuously issued. ..

このため、リクエスト間隔が過度に長くなり、リードやライト動作の遅延が生じ、メモリ装置30の性能を劣化させる可能性がある。
これに対して、第2の実施の形態のメモリ装置20のメモリ制御回路21は、リクエスト連続性判定部21aが、連続する一群のリクエスト群の開始と終了をリフレッシュ格納部21cに伝える。これにより、たとえリクエスト格納部12bが空になったとしてもリクエスト連続性判定部21aは、連続する一群のリクエスト群を転送中であると判断し、リフレッシュ格納部21cにリフレッシュの発行を抑止させリクエストの発行を優先させることができる。
Therefore, the request interval becomes excessively long, delays in read and write operations occur, and the performance of the memory device 30 may deteriorate.
On the other hand, in the memory control circuit 21 of the memory device 20 of the second embodiment, the request continuity determination unit 21a conveys the start and end of a continuous group of requests to the refresh storage unit 21c. As a result, even if the request storage unit 12b becomes empty, the request continuity determination unit 21a determines that a continuous group of requests is being transferred, and causes the refresh storage unit 21c to suppress the issuance of a refresh request. Issuance can be prioritized.

以上、実施の形態に基づき、本発明のメモリ制御回路及びメモリ装置の一観点について説明してきたが、これらは一例にすぎず、上記の記載に限定されるものではない。 Although one viewpoint of the memory control circuit and the memory device of the present invention has been described above based on the embodiment, these are merely examples and are not limited to the above description.

10 メモリ装置
11 メモリ
12 メモリ制御回路
12a リクエスト生成部
12b リクエスト格納部
12c リクエスト連続性判定部
12d リフレッシュ生成部
12d1 リフレッシュ発行抑止部
12e 選択部
10 Memory device 11 Memory 12 Memory control circuit 12a Request generation unit 12b Request storage unit 12c Request continuity judgment unit 12d Refresh generation unit 12d1 Refresh issuance suppression unit 12e Selection unit

Claims (5)

リフレッシュが行われるメモリに対するリードまたはライトのリクエストを生成し、前記リクエストを出力するリクエスト生成部と、
前記メモリにおけるリクエスト受付期間中に、前記リクエストの第1の発行間隔が第1の閾値未満の場合、連続する一群のリクエスト群の発行状態であると判定するリクエスト連続性判定部と、
前記リフレッシュの第2の発行間隔が第2の閾値未満の場合、前記リクエスト群の発行状態であると判定されている間は、前記リフレッシュの発行を抑止し、前記第2の発行間隔が前記第2の閾値に達した場合、前記リフレッシュの発行を許容するリフレッシュ発行抑止部と、
を有するメモリ制御回路。
A request generator that generates a read or write request for the memory to be refreshed and outputs the request,
When the first issuance interval of the request is less than the first threshold value during the request acceptance period in the memory, the request continuity determination unit for determining that the request is in the issuance state of a continuous group of requests, and the request continuity determination unit.
When the second issuance interval of the refresh is less than the second threshold value, the issuance of the refresh is suppressed while it is determined that the request group is in the issuance state, and the second issuance interval is the second issuance interval. When the threshold value of 2 is reached, the refresh issuance suppression unit that allows the issuance of the refresh is
Memory control circuit with.
前記リクエスト連続性判定部は、前記リクエスト生成部が前記リクエストの出力を終了した場合、前記第1の閾値の期間経過後に、前記リクエスト群の発行の終了を示す第1の信号を出力し、
前記リフレッシュ発行抑止部は、前記第1の信号が出力された場合、前記リフレッシュの発行を許容する、
請求項1に記載のメモリ制御回路。
When the request generation unit ends the output of the request, the request continuity determination unit outputs a first signal indicating the end of issuance of the request group after the elapse of the period of the first threshold value.
The refresh issuance suppressing unit allows the issuance of the refresh when the first signal is output.
The memory control circuit according to claim 1.
前記リクエスト連続性判定部は、前記リクエスト生成部が前記リクエストの出力を開始した場合、前記リクエスト群の発行の開始を示す第2の信号を出力し、
前記リフレッシュ発行抑止部は、前記第2の信号が出力された場合、前記リフレッシュの発行の抑止を開始する、
請求項2に記載のメモリ制御回路。
When the request generation unit starts outputting the request, the request continuity determination unit outputs a second signal indicating the start of issuance of the request group.
When the second signal is output, the refresh issuance suppressing unit starts suppressing the issuance of the refresh.
The memory control circuit according to claim 2.
前記リクエスト連続性判定部は、前記第1の発行間隔を計数するカウンタを有し、
前記カウンタは、前記第2の信号が出力されてから前記第1の信号が出力されるまでの間以外の期間は、計数動作を停止する、
請求項3に記載のメモリ制御回路。
The request continuity determination unit has a counter for counting the first issuance interval.
The counter stops the counting operation for a period other than the period from the output of the second signal to the output of the first signal.
The memory control circuit according to claim 3.
リフレッシュが行われるメモリと、
前記メモリに対するリードまたはライトのリクエストを生成し、前記リクエストを出力するリクエスト生成部と、前記メモリにおけるリクエスト受付期間中に、前記リクエストの第1の発行間隔が第1の閾値未満の場合、連続する一群のリクエスト群の発行状態であると判定するリクエスト連続性判定部と、前記リフレッシュの第2の発行間隔が第2の閾値未満の場合、前記リクエスト群の発行状態であると判定されている間は、前記リフレッシュの発行を抑止し、前記第2の発行間隔が前記第2の閾値に達した場合、前記リフレッシュの発行を許容するリフレッシュ発行抑止部と、を備えたメモリ制御回路と、
を有するメモリ装置。
The memory to be refreshed and
A request generator that generates a read or write request for the memory and outputs the request, and a request generation unit that outputs the request are continuous when the first issuance interval of the request is less than the first threshold value during the request acceptance period in the memory. While the request continuity determination unit that determines that the request group is in the issuing state of a group and the request continuity determination unit that determines that the request group is in the issuing state when the second issuance interval of the refresh is less than the second threshold value. Is a memory control circuit including a refresh issuance suppressing unit that suppresses the issuance of the refresh and allows the issuance of the refresh when the second issuance interval reaches the second threshold value.
Memory device with.
JP2020090391A 2020-05-25 2020-05-25 Memory control circuit and memory device Active JP7406104B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2020090391A JP7406104B2 (en) 2020-05-25 2020-05-25 Memory control circuit and memory device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2020090391A JP7406104B2 (en) 2020-05-25 2020-05-25 Memory control circuit and memory device

Publications (2)

Publication Number Publication Date
JP2021185462A true JP2021185462A (en) 2021-12-09
JP7406104B2 JP7406104B2 (en) 2023-12-27

Family

ID=78815767

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2020090391A Active JP7406104B2 (en) 2020-05-25 2020-05-25 Memory control circuit and memory device

Country Status (1)

Country Link
JP (1) JP7406104B2 (en)

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005310245A (en) 2004-04-20 2005-11-04 Seiko Epson Corp Memory controller, semiconductor integrated circuit apparatus, microcomputer, and electronic equipment
JP2012198969A (en) 2011-03-22 2012-10-18 Renesas Electronics Corp Memory access control circuit and memory access control method

Also Published As

Publication number Publication date
JP7406104B2 (en) 2023-12-27

Similar Documents

Publication Publication Date Title
US8081533B2 (en) Semiconductor memory device
EP3422191B1 (en) Semiconductor device and data processing system
TWI644313B (en) Pseudo static random access memory and control method thereof
JP6224483B2 (en) Semiconductor memory device, memory access control method, and computer program
US10268257B2 (en) Memory control device that control semiconductor memory, memory control method, information device equipped with memory control device, and storage medium storing memory control program
US6795363B2 (en) Refresh control method of semiconductor memory device and semiconductor memory device comprising the same control method
US10198301B2 (en) Semiconductor device
JP2021185462A (en) Memory control circuit and memory device
JP7373034B1 (en) pseudo-static random access memory
JP2008152315A (en) Signal processing circuit
JP2011034214A (en) Memory controller
JP6700739B2 (en) Controller and control method
US20230266894A1 (en) Memory control apparatus, method for controlling memory control apparatus, and storage medium
US20220319582A1 (en) Memory management apparatus, memory management method, and computer-readable recording medium storing memory management program
CN117894353A (en) Virtual static random access memory
KR102196677B1 (en) Control circuit and control method for pseudo static random access memory
US11361809B2 (en) Pseudo static memory device
KR20240037100A (en) Pseudo-static random access memory
JP7000574B2 (en) Image processing equipment
TW202407702A (en) Pseudo-static random access memory
JP2009032170A (en) Memory controller
JP2023068341A (en) Memory controller, control method for memory controller, and program
CN114333942A (en) Virtual static random access memory device
US9128716B2 (en) Memory device and control method
JPH11175393A (en) Method and system for controlling common access to random access memory

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20230209

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20231114

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20231115

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20231127

R150 Certificate of patent or registration of utility model

Ref document number: 7406104

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150