JP2007250087A - Dynamic memory controller - Google Patents
Dynamic memory controller Download PDFInfo
- Publication number
- JP2007250087A JP2007250087A JP2006072441A JP2006072441A JP2007250087A JP 2007250087 A JP2007250087 A JP 2007250087A JP 2006072441 A JP2006072441 A JP 2006072441A JP 2006072441 A JP2006072441 A JP 2006072441A JP 2007250087 A JP2007250087 A JP 2007250087A
- Authority
- JP
- Japan
- Prior art keywords
- request
- dynamic memory
- wait
- refresh
- cpu bus
- 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.)
- Pending
Links
Images
Landscapes
- Dram (AREA)
Abstract
Description
本発明は、CPUバスとダイナミックメモリの間に位置してCPUバスからダイナミックメモリへのデータアクセスを制御し、ダイナミックメモリのリフレッシュを制御するダイナミックメモリコントローラに関する。 The present invention relates to a dynamic memory controller that is located between a CPU bus and a dynamic memory, controls data access from the CPU bus to the dynamic memory, and controls refresh of the dynamic memory.
例えばAHB(Advanced High-performance Bus)バスのようなCPUバスと例えばSDRAM(Synchronous Dynamic Random Access Memory)のようなダイナミックメモリとの間に位置するダイナミックメモリコントローラは、CPUバスからダイナミックメモリへのデータアクセス動作の制御およびダイナミックメモリの定期的なリフレッシュ動作の制御を行う。 For example, a dynamic memory controller located between a CPU bus such as an AHB (Advanced High-performance Bus) bus and a dynamic memory such as an SDRAM (Synchronous Dynamic Random Access Memory), provides data access from the CPU bus to the dynamic memory. It controls the operation and the periodic refresh operation of the dynamic memory.
このデータアクセス動作とリフレッシュ動作はダイナミックメモリにおいて両立し得ないので、ダイナミックメモリへのデータアクセス中にリフレッシュ周期が重なった場合、データアクセス処理を中断するか、データアクセス処理の終了までリフレッシュ動作を延期させることになる。 Since this data access operation and refresh operation cannot be compatible in the dynamic memory, if the refresh cycle overlaps during data access to the dynamic memory, the data access processing is interrupted or the refresh operation is postponed until the end of the data access processing I will let you.
ただし、リフレッシュ動作を延期させることにすると、リフレッシュ期間がバーストアクセスのアクセス長により不定期となることでダイナミックメモリのデータの損失を招くおそれがあることから、従来では、リフレッシュ動作を優先してCPUバスに対してWait要求を出してデータアクセス動作を中断させることが行なわれている。 However, if the refresh operation is postponed, the refresh period may become irregular due to the access length of burst access, which may cause loss of data in the dynamic memory. A data access operation is interrupted by issuing a Wait request to the bus.
しかしながら、システムのパフォーマンスを保証するためにデータアクセス開始から連続最短データ(8バーストや16バースト)の転送が終るまではデータ転送を止めることができないプロセッサが出現している。このようなプロセッサを接続する予定のCPUバスに接続されるダイナミックメモリコントローラにあっては、データアクセス動作とリフレッシュ動作が重なったときにWait要求を出してデータアクセス動作を中断させることができない場合を生じる。
したがって本発明の目的は、連続最短データ転送の要請を満足し、かつ、定期的なリフレッシュ動作を可能にするダイナミックメモリコントローラを提供することにある。 Therefore, an object of the present invention is to provide a dynamic memory controller that satisfies the requirement for continuous shortest data transfer and enables a periodic refresh operation.
本発明によれば、CPUバスとダイナミックメモリの間に位置して、CPUバスからダイナミックメモリへのデータアクセスを制御し、ダイナミックメモリのリフレッシュを制御するダイナミックメモリコントローラであって、ダイナミックメモリに対して定期的にリフレッシュ要求を発生するリフレッシュ制御部と、該リフレッシュ要求よりも所定期間先行して開始する待機要求を発生する待機要求制御部と、CPUバスからダイナミックメモリへのデータアクセス要求の発生時において、待機要求中であれば即時ウェイト要求を発生するウェイト制御部とを具備するダイナミックメモリコントローラが提供される。 According to the present invention, there is provided a dynamic memory controller that is located between a CPU bus and a dynamic memory, controls data access from the CPU bus to the dynamic memory, and controls a refresh of the dynamic memory. At the time of occurrence of a data access request from the CPU bus to the dynamic memory, a refresh control unit that periodically generates a refresh request, a standby request control unit that generates a standby request that precedes the refresh request for a predetermined period of time A dynamic memory controller is provided that includes a wait control unit that generates an immediate wait request if a standby request is being made.
前記ウェイト制御部はさらに、例えば、前記待機要求の発生時において、CPUバスからダイナミックメモリへのデータアクセス中であり、データアクセス開始から所定期間経過前であれば、データアクセス開始から該所定期間経過後においてウェイト要求を発生し、CPUバスからダイナミックメモリへのデータアクセス中であり、データアクセス開始から該所定期間経過後であれば即時ウェイト要求を発生する。 Further, the wait control unit may, for example, access the dynamic memory from the CPU bus to the dynamic memory when the standby request occurs, and if the predetermined period has elapsed since the start of data access, if the predetermined period has elapsed. Later, a wait request is generated, data is being accessed from the CPU bus to the dynamic memory, and if the predetermined period has elapsed since the start of data access, an immediate wait request is generated.
或いは、前記ウェイト制御部はさらに、CPUバスからダイナミックメモリへのデータアクセス開始から所定期間経過後において、待機要求中であれば即時ウェイト要求を発生することでも良い。
或いはまた、前記ウェイト制御部はさらに、リフレッシュ要求発生時においてCPUバスからダイナミックメモリへのデータアクセス中であれば即時ウェイト要求を発生することでも良い。
Alternatively, the wait control unit may further generate an immediate wait request if a standby request is being made after a predetermined period has elapsed from the start of data access from the CPU bus to the dynamic memory.
Alternatively, the wait control unit may further generate an immediate wait request if data is being accessed from the CPU bus to the dynamic memory when the refresh request is generated.
定期的に発生されるリフレッシュ要求に先行して発生される待機要求が出ている時にCPUバスからのデータアクセス要求が発生したときにウェイト要求を発生してデータアクセスを許可しないことにより、連続最短データ転送の要請を満足しつつ定期的なリフレッシュ動作が可能となる。 By issuing a wait request and not permitting data access when a data access request from the CPU bus is generated when a wait request is issued prior to a periodically generated refresh request, the continuous shortest A periodic refresh operation can be performed while satisfying the data transfer request.
本発明を、AHB(Advanced High-performance Bus)バスとSDRAM(Synchronous Dynamic RAM)との間に位置するSDRAMコントローラを例にとって説明する。図1はAHBバス10とSDRAM12の間に位置するSDRAMコントローラ14の概略構成を示す。SDRAMコントローラ14は、AHBバス10とインターフェースし、アドレス変換やウェイト制御を行うAHBバスインターフェース16と、SDRAM12とインターフェースし、SDRAM12の読み出し、書き込みおよびリフレッシュの制御を行うSDRAMインターフェース18とから構成される。
The present invention will be described by taking an SDRAM controller located between an AHB (Advanced High-performance Bus) bus and an SDRAM (Synchronous Dynamic RAM) as an example. FIG. 1 shows a schematic configuration of an
本発明によれば、前述のリフレッシュ制御部および待機要求制御部に相当するSDRAMインターフェース18はSDRAM12に対して定期的に(例えば7.8μsec周期で)リフレッシュ要求20を出すと共に、リフレッシュ要求に所定期間先行してアクティブになる待機要求22をAHBバスインターフェース16に対して出す。この所定期間は、AHBバス10に接続されるCPU(例えば富士通製マイクロプロセッサFRU)において規定されている最短規定バースト長(例えば8バースト、ただし1バーストは1〜数バイト)のデータの処理に要する時間に相当する。前述のウェイト制御部に相当するAHBバスインターフェース16は、この待機要求に基づき、AHBバス10からのアクセス要求に対してウェイト要求24を制御する。
According to the present invention, the
図2はSDRAMインターフェース18内のリフレッシュ要求および待機要求を生成するため回路の一例を示す図であり、図3はそれらの信号を説明するタイミングチャートである。図2において、1周期7.8μsecのリフレッシュカウンタ30のカウント値がデコーダ32でデコードされ、カウント値C2のデコード出力がリフレッシュ要求となり、カウント値C1のデコード出力でセットされカウント値C3のデコード出力でリセットされるフリップフロップ34の出力が待機要求となる。図3に示すように、7.8μsecごとに、リフレッシュカウンタ値C2でリフレッシュ処理が開始し、リフレッシュカウンタ値C3で終了する。待機要求はリフレッシュカウンタ値C2のタイミングよりも先行するC1のタイミングでアクティブとなる。C1からC2までの長さは前述の最短規定バースト長に対応しており、従って、図3に示すように、待機要求が有効になると同時にまたはその直前に始まったデータ処理は、リフレッシュ処理が開始する前に最短規定バースト長のデータを処理し終えることができる。従って、AHBバスインターフェース16において、待機要求が有効である間に、アクセス要求があれば直ちにウェイト要求を出してリフレッシュ処理が終るまで処理を待たせ、待機要求が有効になる前にアクセスが開始される時はアクセスを許し、最短規定バースト長のデータを処理し終った時点で待機要求が有効であれば直ちにウェイト要求を出してリフレッシュ処理が終了するまで処理を中断させることにより、最短規定バースト長の要件を満足しつつ定期的なリフレッシュ処理を行うことが可能となる。
FIG. 2 is a diagram showing an example of a circuit for generating a refresh request and a standby request in the
図4は上記に基づくAHBバスインターフェース16におけるウェイト要求の制御の処理のフローチャートである。図4において、AHBバス10からSDRAM12のアクセス要求があるとき(ステップ1000)、SDRAMインターフェース18から待機要求が既に出ているかどうかを調べ(ステップ1002)、出ていなければ何もせず、待機要求が既に出ていればリフレッシュ処理の開始までに最短規定バースト長が確保できないのでAHBバス10へ即時にウェイト要求を出してリフレッシュ処理が終了するまでデータ処理を待たせる(ステップ1004)。また、待機要求が新たに発生したとき(ステップ1006)、AHBバス10からSDRAM12へアクセス中であるかどうかを調べアクセス中であれば、最短規定ポイントまでのデータ転送が終わっているかどうかを調べ(ステップ1010)、最短規定ポイントの前であれば最短規定ポイントまでのデータ転送が終わった後にウェイト要求を出す(ステップ1012)。最短規定ポイントまでのデータ転送が既に終わっていれば、即時にウェイト要求を出して以後のデータ転送をリフレッシュ処理が終わるまで中断させる(ステップ1014)。
FIG. 4 is a flowchart of wait request control processing in the
図4に示した例は、アクセス要求発生時および待機要求発生時に着目した処理であるが、図5はアクセス要求発生時およびデータ処理が最短規定ポイントに到達した時に着目した処理を示す。まず、アクセス要求発生時には、図4の例と同様に、SDRAMインターフェース18から待機要求が既に出ているか調べ(ステップ1102)、出ていればAHBバス10に即時にウェイト要求を出してリフレッシュ処理が終了するまでデータ処理を待たせる(ステップ1104)。また、データ処理が最短規定ポイントに到達したとき(ステップ1106)も同様に、待機要求が既に出ていれば(ステップ1108)即時にウェイト要求を出して処理を中断させる(ステップ1110)。
或いはまた、図6に示すようにリフレッシュ要求をAHBバスインターフェース16にも入力し、図7のフローチャートに示すように、図4および図5の例と同様に、アクセス要求発生時に(ステップ1200)待機要求がアクティブであれば(ステップ1202)即時ウェイト要求を出してデータの処理を待たせ(ステップ1204)、従来と同様にリフレッシュ要求発生時に(ステップ1206)アクセス中であれば(ステップ1208)ウェイト要求を出してデータの処理を中断させるようにしても良い。
The example shown in FIG. 4 shows processing focused on when an access request occurs and when a standby request occurs. FIG. 5 shows processing focused on when an access request occurs and when data processing reaches the shortest prescribed point. First, when an access request occurs, as in the example of FIG. 4, it is checked whether a standby request has already been issued from the SDRAM interface 18 (step 1102), and if it is issued, a wait request is immediately issued to the
Alternatively, as shown in FIG. 6, a refresh request is also input to the
Claims (4)
ダイナミックメモリに対して定期的にリフレッシュ要求を発生するリフレッシュ制御部と、
該リフレッシュ要求よりも所定期間先行して開始する待機要求を発生する待機要求制御部と、
CPUバスからダイナミックメモリへのデータアクセス要求の発生時において、待機要求中であれば即時ウェイト要求を発生するウェイト制御部とを具備するダイナミックメモリコントローラ。 A dynamic memory controller, located between the CPU bus and the dynamic memory, for controlling data access from the CPU bus to the dynamic memory and for controlling the refresh of the dynamic memory,
A refresh control unit that periodically generates a refresh request for the dynamic memory;
A standby request control unit that generates a standby request that starts a predetermined period before the refresh request;
A dynamic memory controller comprising: a wait control unit that generates an immediate wait request if a wait request is in progress when a data access request from the CPU bus to the dynamic memory is generated.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2006072441A JP2007250087A (en) | 2006-03-16 | 2006-03-16 | Dynamic memory controller |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2006072441A JP2007250087A (en) | 2006-03-16 | 2006-03-16 | Dynamic memory controller |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2007250087A true JP2007250087A (en) | 2007-09-27 |
Family
ID=38594201
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2006072441A Pending JP2007250087A (en) | 2006-03-16 | 2006-03-16 | Dynamic memory controller |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2007250087A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2009041511A1 (en) | 2007-09-26 | 2009-04-02 | Fujifilm Corporation | Composition for formation of hydrophilic film, and hydrophilic member |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS49122939A (en) * | 1973-03-26 | 1974-11-25 | ||
JPS51140435A (en) * | 1975-05-30 | 1976-12-03 | Hitachi Ltd | Information processing apparatus |
JPS53101238A (en) * | 1977-02-16 | 1978-09-04 | Hitachi Ltd | Operation control system for memory device |
JPS60242590A (en) * | 1984-05-15 | 1985-12-02 | Sanyo Electric Co Ltd | Memory control system |
JPS63247996A (en) * | 1987-04-01 | 1988-10-14 | Fujitsu Ltd | Method for accessing memory |
JPH11353872A (en) * | 1998-06-04 | 1999-12-24 | Oki Electric Ind Co Ltd | Memory interface circuit |
JP2004005780A (en) * | 2002-04-15 | 2004-01-08 | Fujitsu Ltd | Semiconductor memory |
-
2006
- 2006-03-16 JP JP2006072441A patent/JP2007250087A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS49122939A (en) * | 1973-03-26 | 1974-11-25 | ||
JPS51140435A (en) * | 1975-05-30 | 1976-12-03 | Hitachi Ltd | Information processing apparatus |
JPS53101238A (en) * | 1977-02-16 | 1978-09-04 | Hitachi Ltd | Operation control system for memory device |
JPS60242590A (en) * | 1984-05-15 | 1985-12-02 | Sanyo Electric Co Ltd | Memory control system |
JPS63247996A (en) * | 1987-04-01 | 1988-10-14 | Fujitsu Ltd | Method for accessing memory |
JPH11353872A (en) * | 1998-06-04 | 1999-12-24 | Oki Electric Ind Co Ltd | Memory interface circuit |
JP2004005780A (en) * | 2002-04-15 | 2004-01-08 | Fujitsu Ltd | Semiconductor memory |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2009041511A1 (en) | 2007-09-26 | 2009-04-02 | Fujifilm Corporation | Composition for formation of hydrophilic film, and hydrophilic member |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10649935B2 (en) | Deferred inter-processor interrupts | |
JP4786209B2 (en) | Memory access device | |
JP2008287873A5 (en) | ||
JP5102789B2 (en) | Semiconductor device and data processor | |
US8169852B2 (en) | Memory control circuit, control method, and storage medium | |
JP2008009817A (en) | Semiconductor device and data transfer method | |
JP2011081553A (en) | Information processing system and control method thereof | |
JP2011095967A (en) | Bus sharing system | |
CN103440215A (en) | Method and device allowing primary device to carry out fast burst visiting on SDRAM memorizer on basis of FPGA | |
JP2007066490A (en) | Semiconductor memory device | |
JP2007250087A (en) | Dynamic memory controller | |
JP2005339624A (en) | Semiconductor storage device and method for controlling the same | |
JP2006343946A (en) | Memory access controller, and computer program | |
JPS6234252A (en) | Transfer of data between microprocessor and memory and apparatus for implementation thereof | |
JP5715670B2 (en) | Communication device | |
CN102243526A (en) | Double date rate internal memory controller and control method thereof | |
JP4707017B2 (en) | Signal processing device | |
JP2003271445A (en) | Memory control device and method | |
JP2006240130A (en) | Controller of printing device | |
JP4254541B2 (en) | Initialization circuit for semiconductor integrated circuit | |
JP4107278B2 (en) | Processor control circuit and information processing apparatus | |
JP2006011593A (en) | Memory controller | |
JP5390967B2 (en) | Processor system and control method thereof | |
JP6418983B2 (en) | MEMORY ACCESS CONTROL DEVICE, ITS CONTROL METHOD, AND PROGRAM | |
JP5676169B2 (en) | Flash ROM emulator and data control method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20080704 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20110203 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20110208 |
|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20110607 |