JP5919918B2 - Memory control apparatus and mask timing control method - Google Patents

Memory control apparatus and mask timing control method Download PDF

Info

Publication number
JP5919918B2
JP5919918B2 JP2012060895A JP2012060895A JP5919918B2 JP 5919918 B2 JP5919918 B2 JP 5919918B2 JP 2012060895 A JP2012060895 A JP 2012060895A JP 2012060895 A JP2012060895 A JP 2012060895A JP 5919918 B2 JP5919918 B2 JP 5919918B2
Authority
JP
Japan
Prior art keywords
circuit
mask
signal
memory
data
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.)
Expired - Fee Related
Application number
JP2012060895A
Other languages
Japanese (ja)
Other versions
JP2013196178A (en
Inventor
敦史 川田
敦史 川田
岩崎 敬一
敬一 岩崎
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.)
Ricoh Co Ltd
Original Assignee
Ricoh Co 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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP2012060895A priority Critical patent/JP5919918B2/en
Publication of JP2013196178A publication Critical patent/JP2013196178A/en
Application granted granted Critical
Publication of JP5919918B2 publication Critical patent/JP5919918B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Dram (AREA)

Description

本発明は、ソースシンクロナス方式のデータ受信に関し、特に、DDR(Double Data Rate)方式のSDRAM(Synchronous Dynamic Random Access Memory)(以下、DDR−SDRAMという。)などのメモリ回路のリードデータの受信回路のためのメモリ制御装置と、メモリ回路のリードデータを取り込むためのストローブ信号を制御するマスク信号のためのマスクタイミング制御方法に関する。   BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to source-synchronous data reception, and in particular, a read data reception circuit for a memory circuit such as a DDR (Double Data Rate) SDRAM (Synchronous Dynamic Random Access Memory) (hereinafter referred to as DDR-SDRAM). And a mask timing control method for a mask signal for controlling a strobe signal for fetching read data of a memory circuit.

DDR−SDRAMは、双方向のデータバス、ストローブ信号を用いライト動作及びリード動作を行う。リード動作時は、ストローブ信号がハイインピーダンス状態(以下、Hi−Z状態という。)からプリアンブルと呼ばれる状態を経て、必要なストローブエッジの組(立ち上がりと立ち下がり)が必要分の複数組出力され、最後にポストアンブルと呼ばれる状態を経てHi−Zに戻る。リードデータの受信回路は、プリアンブルの状態を検知してデータ受信に必要なストローブ信号のエッジをクロックとして取り込む必要がある。   The DDR-SDRAM performs a write operation and a read operation using a bidirectional data bus and a strobe signal. During the read operation, the strobe signal is output from a high impedance state (hereinafter referred to as Hi-Z state) through a state called a preamble, and a plurality of necessary sets of strobe edges (rising and falling) are output as necessary, Finally, the state returns to Hi-Z through a state called postamble. The read data receiving circuit needs to detect the preamble state and capture the edge of the strobe signal necessary for data reception as a clock.

例えば、特許文献1においては、単一の読出し動作でDQSイネーブル信号の最適なタイミングを決定するスナップショットデータトレーニングの方法が提供される。ここで、まずグレイコードカウントのシーケンスをメモリに書き込み、次いで単一のバーストでそれを読み出すことで実現する。コントローラは、コマンドが発行された時点から一定間隔で読出しバーストをサンプリングし、周回遅延を決定する。簡単な真理値表の検索により、通常読出しに対する最適のDQSイネーブルのタイミングを決定する。通常の読出し動作中、イネーブルされたDQS信号の第1のポジティブエッジを使用して、コマンドが発行されるたびにイネーブルされたカウンタをサンプリングすることが好ましい。カウンタサンプルが変化した場合、これはタイミングの変動が生じたことを示すが、DQSイネーブル信号を調整して変動を補正し、DQSプリアンブルの中央に合わせた位置に保つことができる。   For example, Patent Document 1 provides a snapshot data training method for determining the optimum timing of the DQS enable signal in a single read operation. Here, the gray code count sequence is first written to the memory and then read out in a single burst. The controller samples the read burst at regular intervals from the time when the command is issued, and determines the circulation delay. A simple truth table search determines the optimal DQS enable timing for normal reading. During a normal read operation, the first positive edge of the enabled DQS signal is preferably used to sample the enabled counter each time a command is issued. If the counter sample changes, this indicates that a timing variation has occurred, but the DQS enable signal can be adjusted to correct the variation and keep it in the center of the DQS preamble.

また、特許文献2においては、ストローブ信号を取り込むタイミングを決める目的で、メモリに対して遅延調整用のダミーのリードコマンドを発行し、メモリから出力されるデータ信号及びデータストローブ信号を用いてプリアンブル期間を検出し、データを取り込むタイミングを調整する回路構成が開示されている。   Further, in Patent Document 2, a dummy read command for delay adjustment is issued to the memory for the purpose of determining the timing for taking in the strobe signal, and a preamble period using the data signal and data strobe signal output from the memory. A circuit configuration for adjusting the timing of detecting data and taking in data is disclosed.

しかしながら、今までのストローブ信号を取り込む手段は、メモリの初期化シーケンス時に実施されることが前提となっており、デバイスが動作することによって発生する電圧/温度変化の影響を受けて、プリアンブル期間が変動した場合、リード期間でストローブ信号が取り込めない問題があった。   However, the conventional means for capturing the strobe signal is assumed to be performed during the initialization sequence of the memory, and the preamble period is affected by the voltage / temperature change caused by the operation of the device. When it fluctuates, there is a problem that the strobe signal cannot be captured in the read period.

特許文献2においても、上記デバイスが動作することによって発生する電圧/温度変化の影響を受けプリアンブル期間が変動した場合、リード期間でストローブ信号を取り込むという問題を解消できない。   Also in Patent Document 2, when the preamble period fluctuates due to the voltage / temperature change generated by the operation of the device, the problem of capturing the strobe signal in the read period cannot be solved.

本発明の目的は以上の問題点を解決し、メモリ初期化時に検出されたプリアンブル期間がメモリ動作中に変動した際も、メモリのリード期間でストローブ信号を取り込むことができるメモリ制御装置、並びに、ストローブ信号を制御するマスク信号のためのマスクタイミング制御方法を提供することにある。   An object of the present invention is to solve the above problems, and a memory control device that can capture a strobe signal during a memory read period even when a preamble period detected during memory initialization fluctuates during memory operation, and It is an object to provide a mask timing control method for a mask signal for controlling a strobe signal.

第1の発明に係るメモリ制御装置は、メモリ回路から読み出されたデータを、メモリリード期間以外に上記メモリ回路から発生されるストローブ信号に同期して受信するように制御する同期式のメモリ制御装置において、
マスク信号を生成するマスク信号生成回路と、互いに縦続に接続された複数の遅延素子とを備え、上記マスク信号を上記複数の遅延素子により順次遅延させ、上記複数の遅延素子の段数に対応した遅延量の複数のタイミングを有するマスク信号を生成するマスク生成回路と、
上記ストローブ信号を上記マスク信号と論理積をして得られた信号を用いて、上記マスク信号を所定の複数のタイミングで検出して、検出した複数の検出データからなるデータを出力するタイミング測定回路と、
上記メモリ回路の動作中において、上記タイミング測定回路から出力されるデータと、上記マスク信号のL期間の所定の期待値及びH期間の所定の期待値とを比較して各比較結果を示すデータを出力する比較回路と、
上記メモリ回路の動作中において、上記比較回路からのデータに基づいて、上記マスク信号の変化タイミングを補正する補正制御回路とを備えたことを特徴とする。
A memory control device according to a first aspect of the present invention is a synchronous memory control for controlling so that data read from a memory circuit is received in synchronization with a strobe signal generated from the memory circuit during a period other than the memory read period. In the device
A mask signal generating circuit for generating a mask signal; and a plurality of delay elements connected in cascade with each other, the mask signal being sequentially delayed by the plurality of delay elements, and a delay corresponding to the number of stages of the plurality of delay elements A mask generating circuit for generating a mask signal having a plurality of timings of an amount;
A timing measurement circuit for detecting the mask signal at a plurality of predetermined timings using a signal obtained by ANDing the strobe signal with the mask signal, and outputting data composed of the detected plurality of detection data When,
During operation of the memory circuit, data indicating the data output from the upper Symbol timing measurement circuit, each comparison result is compared with a predetermined expected value of the predetermined expected value and H period the L period of the mask signal A comparison circuit that outputs
And a correction control circuit for correcting the change timing of the mask signal based on data from the comparison circuit during the operation of the memory circuit .

第2の発明に係るメモリ制御装置のためのマスクタイミング制御方法は、メモリ回路から読み出されたデータを、メモリリード期間以外に上記メモリ回路から発生されるストローブ信号に同期して受信するように制御する同期式のメモリ制御装置のためのマスクタイミング制御方法において、
上記メモリ制御装置は、
マスク信号を生成するマスク信号生成回路と、互いに縦続に接続された複数の遅延素子とを備え、上記マスク信号を上記複数の遅延素子により順次遅延させ、上記複数の遅延素子の段数に対応した遅延量の複数のタイミングを有するマスク信号を生成するマスク生成回路と、
上記ストローブ信号を上記マスク信号と論理積をして得られた信号を用いて、上記マスク信号を所定の複数のタイミングで検出して、検出した複数の検出データからなるデータを出力するタイミング測定回路とを備え、
上記マスクタイミング制御方法は、
上記メモリ回路の動作中において、上記タイミング測定回路から出力されるデータと、上記マスク信号のL期間の所定の期待値及びH期間の所定の期待値とを比較して各比較結果を示すデータを出力するステップと、
上記メモリ回路の動作中において、上記各比較結果を示すデータに基づいて、上記マスク信号の変化タイミングを補正するステップとを含むことを特徴とする。
According to a second aspect of the present invention, there is provided a mask timing control method for a memory control device, wherein data read from a memory circuit is received in synchronization with a strobe signal generated from the memory circuit other than a memory read period. In a mask timing control method for a synchronous memory control device to be controlled,
The memory control device
A mask signal generating circuit for generating a mask signal; and a plurality of delay elements connected in cascade with each other, the mask signal being sequentially delayed by the plurality of delay elements, and a delay corresponding to the number of stages of the plurality of delay elements A mask generating circuit for generating a mask signal having a plurality of timings of an amount;
A timing measurement circuit for detecting the mask signal at a plurality of predetermined timings using a signal obtained by ANDing the strobe signal with the mask signal, and outputting data composed of the detected plurality of detection data And
The mask timing control method is as follows:
During the operation of the memory circuit, data output from the timing measurement circuit is compared with a predetermined expected value for the L period and a predetermined expected value for the H period of the mask signal, and data indicating each comparison result is obtained. Output step;
And correcting the change timing of the mask signal based on the data indicating the comparison results during the operation of the memory circuit .

従って、本発明によれば、メモリ動作中のプリアンブル期間の変動を検出し、ストローブ信号を取り込むタイミングを補正するので、メモリ初期化時に検出されたプリアンブル期間がメモリ動作中に変動した場合でも、リード期間のみストローブ信号を取り込むことができる。   Therefore, according to the present invention, the fluctuation of the preamble period during the memory operation is detected and the timing for capturing the strobe signal is corrected. Therefore, even if the preamble period detected at the time of memory initialization changes during the memory operation, A strobe signal can be captured only during the period.

本発明の一実施形態に係るメモリ制御装置1を含むメモリ制御システムの構成を示すブロック図である。1 is a block diagram showing a configuration of a memory control system including a memory control device 1 according to an embodiment of the present invention. 図1のメモリ制御装置1においてストローブ信号DQSを取り込むタイミングを示すタイミングチャートである。3 is a timing chart showing timing for taking in a strobe signal DQS in the memory control device 1 of FIG. 1. 図1のタイミング測定回路13の構成を示す回路図である。FIG. 2 is a circuit diagram showing a configuration of a timing measurement circuit 13 in FIG. 1. 図3のタイミング測定回路13の動作を示す各信号のタイミングチャートである。4 is a timing chart of each signal showing the operation of the timing measurement circuit 13 of FIG. 3. 図1のマスク生成回路11の構成を示す回路図である。FIG. 2 is a circuit diagram illustrating a configuration of a mask generation circuit 11 in FIG. 1. 図1のL期間比較器18とH期間比較器17の動作を説明するための図である。FIG. 2 is a diagram for explaining operations of an L period comparator 18 and an H period comparator 17 in FIG. 1. 図1の補正制御回路19の動作を示す各信号のタイミングチャートである。3 is a timing chart of each signal showing the operation of the correction control circuit 19 of FIG. 1. 変形例に係る補正制御回路19の構成を示すブロック図である。It is a block diagram which shows the structure of the correction control circuit 19 which concerns on a modification.

以下、本発明に係る実施形態について図面を参照して説明する。なお、以下の各実施形態において、同様の構成要素については同一の符号を付している。   Hereinafter, embodiments according to the present invention will be described with reference to the drawings. In addition, in each following embodiment, the same code | symbol is attached | subjected about the same component.

図1は本発明の一実施形態に係るメモリ制御装置1を含むメモリ制御システムの構成を示すブロック図である。メモリ制御装置1は、タイミング補正回路10を含み、タイミング補正回路10は、メモリリード期間でストローブ信号を取り込む処理に際して、プリアンブルのL期間とプリアンブル後のH期間をメモリリード期間中に常にモニターし、ローレベルベル期間(以下、L期間という。)とハイレベル期間(以下、H期間という。)の割合が決められた値を超えた際にフラグを立て、メモリリードが発生しない期間でストローブ信号を取り込むタイミングを補正変更することを特徴としている。   FIG. 1 is a block diagram showing a configuration of a memory control system including a memory control device 1 according to an embodiment of the present invention. The memory control device 1 includes a timing correction circuit 10, and the timing correction circuit 10 always monitors the L period of the preamble and the H period after the preamble during the memory read period in the process of capturing the strobe signal in the memory read period, A flag is set when the ratio between the low level bell period (hereinafter referred to as L period) and the high level period (hereinafter referred to as H period) exceeds a predetermined value, and a strobe signal is captured during a period when no memory read occurs. It is characterized by correcting and changing the timing.

図1において、メモリ制御装置1は、ソースシンクロナス方式でDDR−SDRAM(以下、SDRAMという。)2に対するクロック及びその他のメモリ制御信号を発生するコマンド制御回路20とともに、SDRAM2に対してデータを書き込み、もしくはSDRAM2からデータを読み出すことを制御する。内部クロックCLKはコマンド制御回路20及びメモリ制御装置1に入力され、例えば外部コントローラのCPU(図示せず。内部コントローラであってもよい。)からの制御信号がコマンド制御回路20及びメモリ制御装置1内のマスク生成回路11等に入力される。コマンド制御回路20は、上記CPUからの制御信号に基づいてデータ読み出しのためのリードコマンドを発行する場合、特有のレイテンシ(SDRAM2のCL値に対応する。)に対応したタイミングでマスク生成回路11に対してマスク信号MSK生成のトリガ信号TRIを発生してマスク生成回路11に出力する。また、コマンド制御回路20はメモリクロックを発生してSDRAM2に出力するとともに、その他のメモリ制御信号を発生してSDRAM2に出力する。   In FIG. 1, the memory control device 1 writes data to the SDRAM 2 together with a command control circuit 20 that generates a clock and other memory control signals for a DDR-SDRAM (hereinafter referred to as SDRAM) 2 in a source synchronous manner. Alternatively, it controls the reading of data from the SDRAM 2. The internal clock CLK is input to the command control circuit 20 and the memory control device 1, and a control signal from, for example, a CPU (not shown; may be an internal controller) of an external controller is used as the command control circuit 20 and the memory control device 1. It is input to the mask generation circuit 11 and the like. When the command control circuit 20 issues a read command for reading data based on the control signal from the CPU, the command control circuit 20 supplies the mask generation circuit 11 with a timing corresponding to a specific latency (corresponding to the CL value of the SDRAM 2). On the other hand, a trigger signal TRI for generating the mask signal MSK is generated and output to the mask generating circuit 11. The command control circuit 20 generates a memory clock and outputs it to the SDRAM 2, and generates other memory control signals and outputs them to the SDRAM 2.

SDRAM2からのストローブ信号DQS,DQSBは信号バッファ15を介してストローブ信号DQSのみとなり、マスク用アンドゲート12を介してファーストエッジ検出回路14及びリードデータ制御回路21に入力される。アンドゲート12は、入力されるストローブ信号DQSをマスク信号MSKに基づいてマスクして、マスク後ストローブ信号dqs_mskを発生してリードデータ制御回路10及びファーストエッジ検出回路14に出力する。リードデータ制御回路10は公知の回路であって、SDRAM2からのデータDQをストローブ信号DQSのタイミングでラッチして読み出すように制御する。なお、16はSDRAM2への出力信号用の信号バッファである。   The strobe signals DQS and DQSB from the SDRAM 2 become only the strobe signal DQS via the signal buffer 15 and are input to the first edge detection circuit 14 and the read data control circuit 21 via the mask AND gate 12. The AND gate 12 masks the input strobe signal DQS based on the mask signal MSK, generates a post-mask strobe signal dqs_msk, and outputs it to the read data control circuit 10 and the first edge detection circuit 14. The read data control circuit 10 is a known circuit and controls to latch and read data DQ from the SDRAM 2 at the timing of the strobe signal DQS. Reference numeral 16 denotes a signal buffer for an output signal to the SDRAM 2.

図1において、マスク生成回路11はクロックCLKに基づいて動作し、リードストローブ信号DQSに対して、後述する補正制御回路19からの遅延補正数データdelay_numに基づき補正しつつ、リード期間以外をマスクするマスク信号mask_nを生成してタイミング測定回路13に出力するとともに、アンドゲート12を介してファーストエッジ検出回路14及びリードデータ制御回路21に出力する。タイミング測定回路13は、ファーストエッジ検出回路14からのマスクエッジ信号dqs_msk_edgeに基づいて、マスク信号mask_nのアサートタイミングを測定してその測定結果のデータをメモリ制御データとして例えばCPU(図示せず。)などに出力する。ファーストエッジ検出回路14は、マスク信号mask_nによってマスクされたリードストローブ信号dqs_mskの最初の立上りを検出して、検出タイミングを示すマスクエッジ信号dqs_msk_edgeを生成してタイミング測定回路13に出力する。L期間比較器18は、タイミング測定回路13からのメモリ制御データからL期間の長さを測定して、測定結果を示す比較結果データl_cmp_outを補正制御回路19に出力する。また、H期間比較器17は、タイミング測定回路13からのメモリ制御データからH期間の長さを測定して、測定結果を示す比較結果データh_cmp_outを補正制御回路19に出力する。補正制御回路19は、L期間比較器18からのデータl_cmp_out及びH期間比較器17からのデータh_cmp_outに基づいて、マスク信号の補正量を決定して補正量を示す遅延補正数データdelay_numをマスク生成回路11に出力する。これに応答して、補正制御回路19は、メモリのコマンド制御回路20よりライト、もしくはリフレッシュを発行するタイミングの制御信号を受信して当該補正量を更新する。   In FIG. 1, a mask generation circuit 11 operates based on a clock CLK, and masks other than the read period while correcting a read strobe signal DQS based on delay correction number data delay_num from a correction control circuit 19 described later. A mask signal mask_n is generated and output to the timing measurement circuit 13 and also output to the first edge detection circuit 14 and the read data control circuit 21 via the AND gate 12. The timing measurement circuit 13 measures the assert timing of the mask signal mask_n based on the mask edge signal dqs_msk_edge from the first edge detection circuit 14 and uses the measurement result data as memory control data, for example, a CPU (not shown). Output to. The first edge detection circuit 14 detects the first rising edge of the read strobe signal dqs_msk masked by the mask signal mask_n, generates a mask edge signal dqs_msk_edge indicating the detection timing, and outputs the mask edge signal dqs_msk_edge to the timing measurement circuit 13. The L period comparator 18 measures the length of the L period from the memory control data from the timing measurement circuit 13 and outputs comparison result data l_cmp_out indicating the measurement result to the correction control circuit 19. The H period comparator 17 measures the length of the H period from the memory control data from the timing measurement circuit 13 and outputs comparison result data h_cmp_out indicating the measurement result to the correction control circuit 19. The correction control circuit 19 determines a mask signal correction amount based on the data l_cmp_out from the L period comparator 18 and the data h_cmp_out from the H period comparator 17, and generates delay correction number data delay_num indicating the correction amount as a mask. Output to the circuit 11. In response to this, the correction control circuit 19 receives a control signal at the timing of issuing a write or refresh from the command control circuit 20 of the memory and updates the correction amount.

図2は図1のメモリ制御装置1においてストローブ信号DQSを取り込むタイミングを示すタイミングチャートである。図1から明らかなように、マスク信号dqs_mskは、リードストローブ信号DQSをアンドゲート12によりマスク信号mask_nと論理積して得られた信号である。マスク信号mask_nは、ストローブ信号DQSのプリアンブル期間にローレベル(L)からハイレベル(H)に遷移し、リード期間の最後のパルスの立下りでローレベル(L)に遷移します。こうすることで、ストローブ信号DQSのハイインピーダンス期間を回路内部へ取り込まないようにしている。   FIG. 2 is a timing chart showing the timing for taking in the strobe signal DQS in the memory control device 1 of FIG. As is apparent from FIG. 1, the mask signal dqs_msk is a signal obtained by ANDing the read strobe signal DQS with the mask signal mask_n by the AND gate 12. The mask signal mask_n changes from the low level (L) to the high level (H) during the preamble period of the strobe signal DQS, and changes to the low level (L) at the falling edge of the last pulse in the read period. By doing so, the high impedance period of the strobe signal DQS is not taken into the circuit.

図3は図1のタイミング測定回路13の構成を示す回路図である。図3において、タイミング測定回路13は、互いに縦続接続された複数N個の遅延素子41−0〜41−(N−1)と、各遅延素子41−0〜41−(N−1)の前後の端子からのデータをマスクエッジ信号dqs_msk_edgeのタイミングで取り込んでデータQ0〜QNを出力する複数(N+1)個の遅延型フリップフロップ42−0〜42−Nと、マスクエッジ信号dqs_msk_edgeをバッファする信号バッファ43と、マスク信号msk_nを所定逓倍数だけ逓倍してクロックとして各遅延素子41−0〜41−(N−1)に出力する逓倍器44とを備えて構成される。ここで、マスクエッジ信号dqs_msk_edgeは、マスク信号dqs_mskの最初の立上りでローレベル(L)からハイレベル(H)になる信号である。   FIG. 3 is a circuit diagram showing a configuration of the timing measurement circuit 13 of FIG. In FIG. 3, the timing measurement circuit 13 includes a plurality of N delay elements 41-0 to 41-(N−1) cascaded to each other, and before and after each delay element 41-0 to 41-(N−1). A plurality of (N + 1) delay flip-flops 42-0 to 42-N that take in data from the terminals at the timing of the mask edge signal dqs_msk_edge and output data Q0 to QN, and a signal buffer that buffers the mask edge signal dqs_msk_edge 43 and a multiplier 44 that multiplies the mask signal msk_n by a predetermined multiplication number and outputs it as a clock to each of the delay elements 41-0 to 41- (N-1). Here, the mask edge signal dqs_msk_edge is a signal that changes from the low level (L) to the high level (H) at the first rising edge of the mask signal dqs_msk.

図4は図3のタイミング測定回路13の動作を示す各信号のタイミングチャートである。図4において、マスク信号mask_nは、逓倍器44からのクロックに基づいて動作する各遅延素子41−0〜41−(N−1)によって各所定の遅延時間だけ遅延され、マスクエッジ信号dqs_msk_edgeの立上りで各フリップフロップ42−0〜42−Nにより取り込まれる。ここで、各フリップフロップ42−0〜42−Nからの出力データがQ0〜QNとなる。なお、本実施形態では、複数の遅延素子41−0〜41−(N−1)により実施しているが、可能ならば位相をずらした高速クロックによってマスク信号mask_nを取り込んでもよい。   FIG. 4 is a timing chart of each signal showing the operation of the timing measurement circuit 13 of FIG. In FIG. 4, the mask signal mask_n is delayed by a predetermined delay time by each delay element 41-0 to 41- (N-1) operating based on the clock from the multiplier 44, and the rising edge of the mask edge signal dqs_msk_edge In each flip-flop 42-0 to 42-N. Here, output data from the flip-flops 42-0 to 42-N are Q0 to QN. In this embodiment, a plurality of delay elements 41-0 to 41- (N-1) are used. However, if possible, the mask signal mask_n may be captured by a high-speed clock whose phase is shifted.

図5は図1のマスク生成回路11の構成を示す回路図である。図5において、マスク生成回路11は、マスク信号生成回路51と、互いに縦続接続された複数N個の遅延素子52−1〜52−Nと、マスク信号生成回路51及び各遅延素子52−1〜52−Nからの出力信号のうち1つの信号を、遅延補正数データdelay_numに基づいて選択してマスク信号mask_nとして出力するマルチプレクサ53とを備えて構成される。ここで、マスク信号生成回路51は、メモリのリードタイミングでマスク信号を生成し、各遅延素子52−1〜52−Nによって遅延させる。さらに、遅延補正数データdelay_numに基づいて上記複数の出力信号のうちの1つを選択してマスク信号mask_nとして出力する。   FIG. 5 is a circuit diagram showing a configuration of the mask generation circuit 11 of FIG. In FIG. 5, the mask generation circuit 11 includes a mask signal generation circuit 51, a plurality of N delay elements 52-1 to 52-N connected in cascade, the mask signal generation circuit 51, and the delay elements 52-1 to 52-1. The multiplexer 53 is configured to select one of the output signals from 52-N based on the delay correction number data delay_num and output the selected signal as a mask signal mask_n. Here, the mask signal generation circuit 51 generates a mask signal at the read timing of the memory and delays it by the delay elements 52-1 to 52-N. Further, one of the plurality of output signals is selected based on the delay correction number data delay_num and is output as a mask signal mask_n.

図6は図1のL期間比較器18とH期間比較器17の動作を説明するための図である。タイミング測定回路13からのメモリ制御データは、マスク信号mask_nがどのタイミングでローレベル(L)からハイレベル(H)に遷移したかを示している。H比較器17は、タイミング測定回路13からのメモリ制御データがハイレベル(H)であることを期待する期間をH比較パラメータ(データ)として与え、図6に示すように、メモリ制御データをH比較パラメータと比較し、H比較パラメータが示す期待期間のうち、0の数を比較結果データh_cmp_outとして出力し、比較結果データh_cmp_outが0であれば、期待期間でマスク信号mask_nはハイレベル(H)であったことを示す。また、L比較器18は、タイミング測定回路13からのメモリ制御データがローレベル(L)であることを期待する期間をL比較パラーメータ(データ)として与え、図6に示すように、メモリ制御データをL比較パラメータと比較し、L比較パラメータが示す期待期間のうち、1の数を比較結果データl_cmp_outとして出力する。比較結果データl_cmp_outが0であれば、期待期間でマスク信号mask_nがローレベル(L)であったことを示す。図6では、比較結果データl_cmp_out=2なので、期待するより早く、マスク信号mask_nがハイレベル(H)に遷移していることを示している。2つの比較結果データh_cmp_out,l_cmp_outともに0であれば、マスク信号のタイミング補正は不要であり、そうでなければタイミング補正が必要となる。   FIG. 6 is a diagram for explaining the operation of the L period comparator 18 and the H period comparator 17 of FIG. The memory control data from the timing measurement circuit 13 indicates at what timing the mask signal mask_n has transitioned from the low level (L) to the high level (H). The H comparator 17 gives a period during which the memory control data from the timing measurement circuit 13 is expected to be at a high level (H) as an H comparison parameter (data). As shown in FIG. Compared with the comparison parameter, the number of 0s in the expected period indicated by the H comparison parameter is output as the comparison result data h_cmp_out. If the comparison result data h_cmp_out is 0, the mask signal mask_n is at the high level (H) in the expected period. It shows that it was. The L comparator 18 gives a period during which the memory control data from the timing measurement circuit 13 is expected to be at a low level (L) as an L comparison parameter (data). As shown in FIG. 6, the memory control data Are compared with the L comparison parameter, and one of the expected periods indicated by the L comparison parameter is output as comparison result data l_cmp_out. If the comparison result data l_cmp_out is 0, it indicates that the mask signal mask_n was at the low level (L) in the expected period. In FIG. 6, since the comparison result data l_cmp_out = 2, the mask signal mask_n is changed to the high level (H) earlier than expected. If the two comparison result data h_cmp_out and l_cmp_out are both 0, the timing correction of the mask signal is unnecessary. Otherwise, the timing correction is necessary.

図7は図1の補正制御回路19の動作を示す各信号のタイミングチャートである。図7において、wr_com_trgは、メモリ制御回路1がライトコマンドを発行するタイミングを示す信号であって、コマンド制御回路20によって発生される。比較結果データl_cmp_outが0から2へ変化したことにより、マスク信号mask_nの遅延量を増やす必要があることを検知する。遅延量更新のタイミングは、リード最中でないことが望ましいので、図7ではライトコマンド発行のタイミングで補正量を示す遅延補正数データdelay_numを更新する。   FIG. 7 is a timing chart of each signal showing the operation of the correction control circuit 19 of FIG. In FIG. 7, wr_com_trg is a signal indicating the timing at which the memory control circuit 1 issues a write command, and is generated by the command control circuit 20. When the comparison result data l_cmp_out changes from 0 to 2, it is detected that the delay amount of the mask signal mask_n needs to be increased. Since it is desirable that the delay amount update timing is not in the middle of reading, the delay correction number data delay_num indicating the correction amount is updated at the write command issuance timing in FIG.

以上の図7の実施形態においては、ライトコマンド発行のタイミングで更新しているが、リフレッシュなどリード以外の別のコマンド発行のタイミングで更新してもよい。   In the embodiment of FIG. 7 described above, the update is performed at the write command issuance timing, but the update may be performed at another command issuance timing other than the read such as refresh.

図8は変形例に係る補正制御回路19の構成を示すブロック図である。図8の変形例は、補正制御回路19に温度センサ入力端子を設けて温度センサ61からの温度情報に基づいてマスク信号の補正制御を行うことを特徴としている。   FIG. 8 is a block diagram showing a configuration of the correction control circuit 19 according to the modification. The modification of FIG. 8 is characterized in that the correction control circuit 19 is provided with a temperature sensor input terminal and mask signal correction control is performed based on temperature information from the temperature sensor 61.

図7で説明したようにリード以外のコマンド発行時に、遅延補正数データdelay_numを調整する方法をとった場合、遅延補正数データdelay_numを更新後、しばらくアイドル状態が続き、デバイスの温度が低下した場合、遅延補正数データdelay_numの値が適正でなくなっている可能性がある。そこで、温度センサ61を搭載し、リード時は、温度センサ61からの温度情報と、比較器17,18の比較結果データとを使って補正値テーブルを作成して補正値テーブルメモリ60mに格納しておく。そして、動作時には、温度センサ61からの温度情報に基づいて、リード時に登録しておいた補正値テーブルメモリ60m内のテーブル値(温度情報に対応する)を選択し、遅延補正数データdelay_numを更新する。このようにすることで、アイドル状態が長く続く場合でも適正な値に補正可能である。また、電源電圧の変化による遅延変動を考慮したい場合は、温度センサ61に加え、電圧センサを用いてよい。すなわち、温度情報や電源電圧の変化などの遅延変動パラメータに基づいて遅延補正数データdelay_numを補正することができる。   As described with reference to FIG. 7, when the method of adjusting the delay correction number data delay_num is used when a command other than read is issued, the idle temperature continues for a while after the delay correction number data delay_num is updated, and the temperature of the device decreases. There is a possibility that the value of the delay correction number data delay_num is not appropriate. Therefore, the temperature sensor 61 is mounted, and at the time of reading, a correction value table is created using the temperature information from the temperature sensor 61 and the comparison result data of the comparators 17 and 18, and stored in the correction value table memory 60m. Keep it. At the time of operation, based on the temperature information from the temperature sensor 61, the table value (corresponding to the temperature information) registered in the correction value table memory 60m registered at the time of reading is selected, and the delay correction number data delay_num is updated. To do. In this way, even when the idle state continues for a long time, it can be corrected to an appropriate value. In addition to the temperature sensor 61, a voltage sensor may be used in order to take into account delay variation due to changes in the power supply voltage. That is, the delay correction number data delay_num can be corrected based on delay variation parameters such as temperature information and a change in power supply voltage.

以上の実施形態においては、DDR−SDRAMに適用しているが、本発明はこれに限らず、その他の種類のメモリ回路に提供することができる。   In the above embodiment, the present invention is applied to the DDR-SDRAM. However, the present invention is not limited to this and can be provided to other types of memory circuits.

以上詳述したように、本発明によれば、メモリ動作中のプリアンブル期間の変動を検出し、ストローブ信号を取り込むタイミングを補正するので、メモリ初期化時に検出されたプリアンブル期間がメモリ動作中に変動した場合でも、リード期間のみストローブ信号を取り込むことができる。   As described above in detail, according to the present invention, since the fluctuation of the preamble period during the memory operation is detected and the timing for taking in the strobe signal is corrected, the preamble period detected at the time of memory initialization varies during the memory operation. Even in this case, the strobe signal can be captured only during the read period.

1…メモリ制御装置、
2…DDR−SDRAM(SDRAM)、
10…タイミング補正回路、
11…マスク生成回路、
12…アンドゲート、
13…タイミング測定回路、
14…ファーストエッジ検出回路、
15,16…信号バッファ、
20…コマンド制御回路、
21…リードデータ制御回路、
41−0〜41−(N−1)…遅延素子、
42−0〜42−N…遅延型フリップフロップ、
43…信号バッファ、
51…マスク信号生成回路、
52−1〜52−N…遅延素子、
53…マルチプレクサ、
60…コントローラ、
60m…補正値テーブルメモリ、
61…温度センサ。
1 ... Memory control device,
2. DDR-SDRAM (SDRAM),
10: Timing correction circuit,
11 ... Mask generation circuit,
12 ... Andgate,
13 ... Timing measurement circuit,
14: First edge detection circuit,
15, 16 ... signal buffer,
20 ... Command control circuit,
21: Read data control circuit,
41-0 to 41- (N-1) ... delay elements,
42-0 to 42-N ... delay type flip-flops,
43 ... Signal buffer,
51. Mask signal generation circuit,
52-1 to 52-N ... delay elements,
53 ... Multiplexer,
60 ... Controller,
60m ... correction value table memory,
61 ... Temperature sensor.

特表2009−541868号公報JP-T 2009-541868 特開2010−122842号公報JP 2010-122842 A

Claims (5)

メモリ回路から読み出されたデータを、メモリリード期間以外に上記メモリ回路から発生されるストローブ信号に同期して受信するように制御する同期式のメモリ制御装置において、
マスク信号を生成するマスク信号生成回路と、互いに縦続に接続された複数の第1の遅延素子とを備え、上記マスク信号を上記複数の第1の遅延素子により順次遅延させ、上記複数の第1の遅延素子の段数に対応した遅延量の複数のタイミングを有するマスク信号を生成するマスク生成回路と、
上記ストローブ信号を上記マスク信号と論理積をして得られた信号を用いて、上記マスク信号を所定の複数のタイミングで検出して、検出した複数の検出データからなるデータを出力するタイミング測定回路と、
上記メモリ回路の動作中において、上記タイミング測定回路から出力されるデータと、上記マスク信号のL期間の所定の期待値及びH期間の所定の期待値とを比較して各比較結果を示すデータを出力する比較回路と、
上記メモリ回路の動作中において、上記比較回路からのデータに基づいて、上記マスク信号の変化タイミングを補正する補正制御回路とを備えたことを特徴とするメモリ制御回路。
In a synchronous memory control device that controls to read data read from a memory circuit in synchronization with a strobe signal generated from the memory circuit other than the memory read period,
A mask signal generating circuit for generating a mask signal; and a plurality of first delay elements connected in cascade to each other, the mask signal being sequentially delayed by the plurality of first delay elements, and the plurality of first delay elements A mask generation circuit for generating a mask signal having a plurality of timings of delay amounts corresponding to the number of stages of the delay elements;
A timing measurement circuit for detecting the mask signal at a plurality of predetermined timings using a signal obtained by ANDing the strobe signal with the mask signal, and outputting data composed of the detected plurality of detection data When,
During operation of the memory circuit, data indicating the data output from the upper Symbol timing measurement circuit, each comparison result is compared with a predetermined expected value of the predetermined expected value and H period L period of the mask signal A comparison circuit that outputs
A memory control circuit comprising: a correction control circuit that corrects a change timing of the mask signal based on data from the comparison circuit during operation of the memory circuit.
上記タイミング測定回路は、
(1)互いに縦続接続されかつ上記マスク信号を逓倍したクロックにより駆動される複数の第2の遅延素子に、上記マスク信号を入力し、
(2)上記ストローブ信号を上記マスク信号と論理積をして得られた信号のタイミングにおいて、上記マスク信号を上記複数の第2の遅延素子を用いて上記複数のタイミングで検出することで、検出した複数の検出データからなるデータを出力することを特徴とする請求項記載のメモリ制御回路。
The timing measurement circuit
(1) The mask signal is input to a plurality of second delay elements that are cascade-connected to each other and driven by a clock obtained by multiplying the mask signal.
(2) Detection is performed by detecting the mask signal at the plurality of timings using the plurality of second delay elements at the timing of the signal obtained by ANDing the strobe signal with the mask signal. the memory control circuit according to claim 1, wherein the outputting the data comprising a plurality of detection data.
上記補正制御回路は、上記マスク信号の変化タイミングを補正するための補正値データを予め記憶する記憶手段を含み、所定の遅延変動パラメータの値に基づいて、上記記憶手段から所定の補正値データを選択し、当該補正値データに基づいて上記マスク信号の変化タイミングを補正することを特徴とする請求項1又は2記載のメモリ制御回路。 The correction control circuit includes storage means for preliminarily storing correction value data for correcting the change timing of the mask signal. Based on the value of a predetermined delay variation parameter, the correction control circuit receives the predetermined correction value data from the storage means. 3. The memory control circuit according to claim 1, wherein the memory control circuit is selected and the change timing of the mask signal is corrected based on the correction value data. 上記遅延変動パラメータは、温度センサの温度情報を含むことを特徴とする請求項記載のメモリ制御回路。 4. The memory control circuit according to claim 3 , wherein the delay variation parameter includes temperature information of a temperature sensor. メモリ回路から読み出されたデータを、メモリリード期間以外に上記メモリ回路から発生されるストローブ信号に同期して受信するように制御する同期式のメモリ制御装置のためのマスクタイミング制御方法において、
上記メモリ制御装置は、
マスク信号を生成するマスク信号生成回路と、互いに縦続に接続された複数の遅延素子とを備え、上記マスク信号を上記複数の遅延素子により順次遅延させ、上記複数の遅延素子の段数に対応した遅延量の複数のタイミングを有するマスク信号を生成するマスク生成回路と、
上記ストローブ信号を上記マスク信号と論理積をして得られた信号を用いて、上記マスク信号を所定の複数のタイミングで検出して、検出した複数の検出データからなるデータを出力するタイミング測定回路とを備え、
上記マスクタイミング制御方法は、
上記メモリ回路の動作中において、上記タイミング測定回路から出力されるデータと、上記マスク信号のL期間の所定の期待値及びH期間の所定の期待値とを比較して各比較結果を示すデータを出力するステップと、
上記メモリ回路の動作中において、上記各比較結果を示すデータに基づいて、上記マスク信号の変化タイミングを補正するステップとを含むことを特徴とするメモリ制御回路のためのマスクタイミング制御方法。
In a mask timing control method for a synchronous memory control device for controlling to read data read from a memory circuit in synchronization with a strobe signal generated from the memory circuit other than the memory read period,
The memory control device
A mask signal generating circuit for generating a mask signal; and a plurality of delay elements connected in cascade with each other, the mask signal being sequentially delayed by the plurality of delay elements, and a delay corresponding to the number of stages of the plurality of delay elements A mask generating circuit for generating a mask signal having a plurality of timings of an amount;
A timing measurement circuit for detecting the mask signal at a plurality of predetermined timings using a signal obtained by ANDing the strobe signal with the mask signal, and outputting data composed of the detected plurality of detection data And
The mask timing control method is as follows:
During the operation of the memory circuit, data output from the timing measurement circuit is compared with a predetermined expected value for the L period and a predetermined expected value for the H period of the mask signal, and data indicating each comparison result is obtained. Output step;
A mask timing control method for the memory control circuit, comprising: correcting the change timing of the mask signal based on data indicating each comparison result during the operation of the memory circuit .
JP2012060895A 2012-03-16 2012-03-16 Memory control apparatus and mask timing control method Expired - Fee Related JP5919918B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2012060895A JP5919918B2 (en) 2012-03-16 2012-03-16 Memory control apparatus and mask timing control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2012060895A JP5919918B2 (en) 2012-03-16 2012-03-16 Memory control apparatus and mask timing control method

Publications (2)

Publication Number Publication Date
JP2013196178A JP2013196178A (en) 2013-09-30
JP5919918B2 true JP5919918B2 (en) 2016-05-18

Family

ID=49395092

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2012060895A Expired - Fee Related JP5919918B2 (en) 2012-03-16 2012-03-16 Memory control apparatus and mask timing control method

Country Status (1)

Country Link
JP (1) JP5919918B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6999654B2 (en) 2016-09-26 2022-01-18 ヴェリリー ライフ サイエンシズ エルエルシー Casting for Perspective Contact Lenses-Moldable, High Refractive Index, Rigidity, Gas Permeable Polymer Formulation

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011170516A (en) * 2010-02-17 2011-09-01 Elpida Memory Inc Memory controller, semiconductor memory device and memory system including them
JP5577776B2 (en) * 2010-03-17 2014-08-27 株式会社リコー Memory control apparatus and mask timing control method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6999654B2 (en) 2016-09-26 2022-01-18 ヴェリリー ライフ サイエンシズ エルエルシー Casting for Perspective Contact Lenses-Moldable, High Refractive Index, Rigidity, Gas Permeable Polymer Formulation

Also Published As

Publication number Publication date
JP2013196178A (en) 2013-09-30

Similar Documents

Publication Publication Date Title
US9531363B2 (en) Methods and apparatuses including command latency control circuit
US7379383B2 (en) Methods of DDR receiver read re-synchronization
US7672191B2 (en) Data output control circuit
US20100205386A1 (en) Memory controller and memory control method
JP5577776B2 (en) Memory control apparatus and mask timing control method
JP2010272026A (en) Timing adjusting circuit and timing adjusting method
US20110176372A1 (en) Memory interface
WO2010146763A1 (en) Latch timing adjustment apparatus and memory access system using same
US9196349B2 (en) Semiconductor device
JP5733126B2 (en) Memory interface circuit and timing adjustment method
KR20180005081A (en) Memory device having command window generator
US8593897B2 (en) Memory controller, semiconductor storage device, and memory system including the memory controller and the semiconductor storage device for outputting temperature value in low power consumption mode
US7733129B2 (en) Method and circuit for generating memory clock signal
US20150194196A1 (en) Memory system with high performance and high power efficiency and control method of the same
JP5005928B2 (en) Interface circuit and storage control device including the interface circuit
US8169851B2 (en) Memory device with pseudo double clock signals and the method using the same
JP2015103262A (en) Semiconductor device
US9036434B1 (en) Random access memory and method of adjusting read timing thereof
JP5919918B2 (en) Memory control apparatus and mask timing control method
KR20060053431A (en) Device for controlling the data output timing of a memory device and the method therefor
US9570149B2 (en) Output signal generation device having a phase adjustment unit and method for adjusting a phase difference between an input and an output signal
JP4855908B2 (en) Latency counter and related methods
US8631214B2 (en) Memory control circuit, control method therefor, and image processing apparatus
JP2011061666A (en) Device and method for adjusting impedance
JP5394562B2 (en) Memory interface and image processing apparatus

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20150218

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20151216

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20151222

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20160212

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20160219

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: 20160315

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20160328

R151 Written notification of patent or utility model registration

Ref document number: 5919918

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

LAPS Cancellation because of no payment of annual fees