JP2005107733A - Memory controller and memory control system and its method - Google Patents

Memory controller and memory control system and its method Download PDF

Info

Publication number
JP2005107733A
JP2005107733A JP2003338597A JP2003338597A JP2005107733A JP 2005107733 A JP2005107733 A JP 2005107733A JP 2003338597 A JP2003338597 A JP 2003338597A JP 2003338597 A JP2003338597 A JP 2003338597A JP 2005107733 A JP2005107733 A JP 2005107733A
Authority
JP
Japan
Prior art keywords
sdram
memory
control
mode register
access
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
Application number
JP2003338597A
Other languages
Japanese (ja)
Inventor
Yoshinori Furukabu
由徳 古株
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.)
NEC Engineering Ltd
Original Assignee
NEC Engineering 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 NEC Engineering Ltd filed Critical NEC Engineering Ltd
Priority to JP2003338597A priority Critical patent/JP2005107733A/en
Publication of JP2005107733A publication Critical patent/JP2005107733A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To minimize the illegal operation of an SDRAM due to the change of a mode register value to be caused by the factor of an SEU(Single Event Upset) or the like. <P>SOLUTION: This SDRAM control system is incorporated in a memory device connected to a control/data bus or the like, and constituted of an SDRAM 103, an SDRAM controller 102 which performs SDRAM access control to the SDRAM 103 and a memory access device 101 which receives an instruction from a CPU or the like through a control/data bus or the like, and issues an SDRAM access instruction to the SDRAM controller 102. The SDRAM controller 102 performs mode register setting just before performing SDRAM access control to the SDRAM 103. <P>COPYRIGHT: (C)2005,JPO&NCIPI

Description

本発明は、レジスタを内蔵するメモリの制御に関し、特にSEUの発生に対処するメモリの制御に関する。   The present invention relates to control of a memory containing a register, and more particularly to control of a memory that copes with the occurrence of SEU.

SDRAMは、レーテンシモード、ラップタイプ、バースト長などの、SDRAMの動作モードを決定するモードレジスタを有している。また、モードレジスタの値はユーザーにより設定可能であるが、一度設定を行うと、モードレジスタ値を再設定するか、SDRAMの電源を切断するまで、SDRAMはモードレジスタの値を保持する。   The SDRAM has a mode register that determines an operation mode of the SDRAM, such as a latency mode, a wrap type, and a burst length. The value of the mode register can be set by the user, but once set, the SDRAM holds the value of the mode register until the mode register value is reset or the power of the SDRAM is turned off.

そのため従来では、SDRAMに電源を投入すると、一度だけモードレジスタの設定が行われ、ユーザーがSDRAMに要求する動作モードを変更しないか、SDRAMの電源を切断して再度電源を投入しない限り、モードレジスタが再設定されることはなかった。   Therefore, conventionally, when the SDRAM is turned on, the mode register is set only once. Unless the user changes the operation mode required for the SDRAM or the SDRAM is turned off and turned on again, the mode register is set. Was never reset.

ここで、従来のSDRAM制御システムについて図面を参照して説明する。   Here, a conventional SDRAM control system will be described with reference to the drawings.

図5に示すように、従来のSDRAM制御システムは、ユーザーやCPU等がSDRAMアクセス(メモリリード、メモリライト等)を指示すると、メモリアクセス装置はSDRAM制御装置に対してSDRAMアクセス指令301を出力する。SDRAMアクセス指令301を受けたSDRAM制御装置は、SDRAMに対してSDRAM制御304を行う。SDRAM制御304は、SDRAMアクセス制御303を行う。   As shown in FIG. 5, in a conventional SDRAM control system, when a user, CPU, or the like instructs SDRAM access (memory read, memory write, etc.), the memory access device outputs an SDRAM access command 301 to the SDRAM control device. . The SDRAM control device that has received the SDRAM access command 301 performs SDRAM control 304 on the SDRAM. The SDRAM control 304 performs SDRAM access control 303.

メモリアクセス装置からのSDRAMアクセス指令(「メモリリード」)があると、図6に示すように、SDRAMアクセス指令(メモリリード指令)に対するSDRAM制御304は、クロックに同期して、アクティブ化(ACT)、リードコマンド(RD)、プリチャージコマンド(PRE)を順次発行することで、SDRAMからデータをリードする。   When there is an SDRAM access command (“memory read”) from the memory access device, the SDRAM control 304 for the SDRAM access command (memory read command) is activated (ACT) in synchronization with the clock as shown in FIG. The read command (RD) and the precharge command (PRE) are sequentially issued to read data from the SDRAM.

特開平11−213660号Japanese Patent Application Laid-Open No. 11-213660

しかし、宇宙用機器にてSDRAMを使用すると、SEU(Single Event Upset)の発生によりSDRAMの動作モードを決定するSDRAM内のモードレジスタ値がある確立で変化してしまう。   However, when an SDRAM is used in a space device, the mode register value in the SDRAM that determines the operation mode of the SDRAM changes due to the occurrence of SEU (Single Event Upset).

SDRAMはSDRAM制御プロトコルがSDRAM動作モードに従って行われるため、SDRAMはモードレジスタ値の変化により不正動作(不正動作とは、ユーザーが期待した動作モードにてSDRAMが動作しないことを言う)を行い、ユーザーの期待する動作をしなくなってしまう問題があった。   In SDRAM, since the SDRAM control protocol is performed according to the SDRAM operation mode, the SDRAM performs an illegal operation (an illegal operation means that the SDRAM does not operate in the operation mode expected by the user) due to a change in the mode register value. There was a problem that would not work as expected.

また、SDRAM内のモードレジスタの値は、一般に外部からモニタすることができないため、SEU等の要因によって引き起こされるモードレジスタ値の変化によるSDRAMの不正動作を事前に発見することができず、上記問題を有効に解決する手段がなかった。   In addition, since the value of the mode register in the SDRAM cannot generally be monitored from the outside, it is not possible to detect in advance an illegal operation of the SDRAM due to a change in the value of the mode register caused by factors such as SEU. There was no means to effectively solve the problem.

そこでかかる課題を解決するために、本発明にかかるメモリ制御装置は、メモリアクセス装置からのレジスタを内蔵しているメモリに対するメモリアクセス指令を受けて前記メモリに対してメモリ制御を行うメモリ制御装置において、前記メモリアクセス装置からメモリアクセス指令を受けると、メモリ制御に先立って前記メモリにモードレジスタ設定を行うこととし、前記モードレジスタ設定は、前記メモリアクセス装置からメモリアクセス指令がある度に行うことが望ましい。   Accordingly, in order to solve such a problem, a memory control device according to the present invention is a memory control device that receives a memory access command from a memory access device to a memory having a register and performs memory control on the memory. When a memory access command is received from the memory access device, a mode register setting is performed in the memory prior to memory control, and the mode register setting is performed each time a memory access command is received from the memory access device. desirable.

また、本発明にかかるメモリ制御システムは、レジスタを内蔵しているメモリと、前記メモリに対してメモリ制御を行うメモリ制御装置と、前記メモリ制御装置にメモリアクセス指令を行うメモリアクセス装置とを有するメモリ制御システムにおいて、前記メモリ制御装置は、前記メモリアクセス装置からメモリアクセス指令を受けると、メモリ制御に先立って前記メモリにモードレジスタ設定を行うこととし、前記モードレジスタ設定は、前記メモリアクセス装置からメモリアクセス指令がある度に行うことが望ましい。   The memory control system according to the present invention includes a memory having a built-in register, a memory control device that performs memory control on the memory, and a memory access device that issues a memory access command to the memory control device. In the memory control system, when the memory control device receives a memory access command from the memory access device, the memory control device performs mode register setting in the memory prior to memory control, and the mode register setting is transmitted from the memory access device. It is desirable to do this whenever there is a memory access command.

また、本発明にかかるメモリ制御方法は、メモリアクセス装置からのメモリアクセス指令を受けてメモリに対してメモリ制御を行うメモリ制御装置において、
前記メモリアクセス装置からメモリアクセス指令を受けると、メモリ制御に先立って前記メモリにモードレジスタ設定を行うこととし、前記モードレジスタ設定は、前記メモリアクセス装置からメモリアクセス指令がある度に行うことが望ましい。
The memory control method according to the present invention is a memory control device that performs memory control on a memory in response to a memory access command from the memory access device.
When a memory access command is received from the memory access device, it is preferable to set a mode register in the memory prior to memory control, and the mode register setting is preferably performed every time there is a memory access command from the memory access device. .

以上説明したように本発明によれば、アクセス制御を行う直前にてモードレジスタの設定を行うことにより、SDRAM内のモードレジスタの値を外部からモニタすること無く、SEU等の要因によって引き起こされるモードレジスタ値の変化によるSDRAMの不正動作を最小限に抑えることができる。   As described above, according to the present invention, the mode register is set immediately before the access control is performed, so that the mode caused by factors such as SEU is not monitored from the outside without monitoring the value of the mode register in the SDRAM. Unauthorized operation of the SDRAM due to changes in register values can be minimized.

次に本発明にかかる実施の形態について図面を参照して説明する。図1は本発明にかかるSDRAM制御システムのブロック図を示している。   Next, embodiments of the present invention will be described with reference to the drawings. FIG. 1 shows a block diagram of an SDRAM control system according to the present invention.

SDRAM制御システムは、制御/データバス等に接続されるメモリ装置に内蔵され、SDRAM103と、SDRAM103に対してSDRAMアクセス制御を行うSDRAM制御装置102と、制御/データバス等を介してCPU等(図示しない)からの命令を受けて前記SDRAM制御装置102にSDRAMアクセス指令を行うメモリアクセス装置101とから構成される。   The SDRAM control system is built in a memory device connected to a control / data bus or the like, and includes an SDRAM 103, an SDRAM control device 102 for controlling SDRAM access to the SDRAM 103, a CPU (not shown) via the control / data bus, and the like. And a memory access device 101 that receives an instruction from the memory control device 102 and issues an SDRAM access command to the SDRAM control device 102.

SDRAM103及びメモリアクセス装置101は周知のもので通常の動作を行うが、SDRAM制御装置102は、SDRAMアクセス制御を行う直前にSDRAM103に対してモードレジスタの設定を行うように設定されている。   The SDRAM 103 and the memory access device 101 are well-known and perform normal operations, but the SDRAM control device 102 is set to set the mode register for the SDRAM 103 immediately before performing SDRAM access control.

次に本発明にかかるSDRAM制御システムの動作について図面を参照して説明する。図2は本発明の動作フローを示しており、図3は第1態様のタイムチャートを、図4は第2態様のタイムチャートを示している。   Next, the operation of the SDRAM control system according to the present invention will be described with reference to the drawings. 2 shows an operation flow of the present invention, FIG. 3 shows a time chart of the first mode, and FIG. 4 shows a time chart of the second mode.

ユーザーやCPU等がSDRAMアクセス(メモリリード、メモリライト等)を指示すると、メモリアクセス装置101はSDRAM制御装置102に対してSDRAMアクセス指令201を出力する。SDRAMアクセス指令201とは、メモリリード指令やメモリライト指令等を指す。   When a user, CPU, or the like instructs SDRAM access (memory read, memory write, etc.), the memory access device 101 outputs an SDRAM access command 201 to the SDRAM control device 102. The SDRAM access command 201 indicates a memory read command, a memory write command, or the like.

SDRAMアクセス指令201を受けたSDRAM制御装置102は、SDRAM103に対してSDRAM制御204を行う。SDRAM制御204は、まずSDRAM103に対してモードレジスタ設定202を行い、その後、従来と同様にSDRAMアクセス制御203を行う。実際は、SDRAMアクセス制御203の先頭にモードレジスタ設定コマンド202を付加させ、SDRAM制御204を行うことになる。   The SDRAM control device 102 that has received the SDRAM access command 201 performs SDRAM control 204 on the SDRAM 103. The SDRAM control 204 first performs mode register setting 202 for the SDRAM 103, and then performs SDRAM access control 203 as in the conventional case. Actually, the SDRAM control 204 is performed by adding the mode register setting command 202 to the head of the SDRAM access control 203.

つまり、SDRAMアクセス制御203はSDRAMの動作モードに従って行われるため、SDRAMアクセス制御203の直前にてモードレジスタ設定202を行うことで、SEUによるモードレジスタ値の変化の起こる確率が最も低いタイミングにてSDRAMアクセス制御203を行えるようにしたものである。   In other words, since the SDRAM access control 203 is performed according to the SDRAM operation mode, by performing the mode register setting 202 immediately before the SDRAM access control 203, the SDRAM access control 203 is performed at the timing when the mode register value change probability due to SEU is the lowest. The access control 203 can be performed.

このSDRAM制御204の詳細を図3及び図4に示す。   Details of the SDRAM control 204 are shown in FIGS.

図3はメモリアクセス装置101からのSDRAMアクセス指令201が1回(「メモリリード」)あった場合を示し、図4はメモリアクセス装置101からのSDRAMアクセス指令201が複数回(本例では「メモリリード」と「メモリライト」)あった場合を示している。   FIG. 3 shows a case where the SDRAM access command 201 from the memory access device 101 is once (“memory read”), and FIG. 4 shows a case where the SDRAM access command 201 from the memory access device 101 is multiple times (in this example “memory” "Read" and "Memory write").

まず、SDRAMアクセス指令201が1回(「メモリリード」)あった場合の動作について説明する。   First, an operation when the SDRAM access command 201 is once (“memory read”) will be described.

図に示すように、SDRAMアクセス指令(メモリリード指令)に対するSDRAM制御204は、クロックに同期して、まずモードレジスタ設定コマンドを発行してSDRAM103のモードレジスタの設定を行い、その後、アクティブ化(ACT)、リードコマンド(RD)、プリチャージコマンド(PRE)を順次発行することで、SDRAMのアクセスが行われる。   As shown in the figure, the SDRAM control 204 in response to the SDRAM access command (memory read command) first issues a mode register setting command in synchronization with the clock to set the mode register of the SDRAM 103, and then activates (ACT). ), A read command (RD), and a precharge command (PRE) are sequentially issued to access the SDRAM.

次に、SDRAMアクセス指令201が複数回(本例では「メモリリード」と「メモリライト」の2回)あった場合の動作について説明する。   Next, the operation when the SDRAM access command 201 is performed a plurality of times (in this example, “memory read” and “memory write” twice) will be described.

一番目のSDRAMアクセス指令201がメモリアクセス装置101からSDRAM制御装置102に出力されると、SDRAM制御装置102はSDRAM103に対してSDRAMアクセス制御203の先頭にモードレジスタ設定202を付加したSDRAM制御204を行う。SDRAM制御204は、クロックに同期して、まずモードレジスタ設定コマンドを発行してSDRAMのモードレジスタの設定を行い、その後、アクティブ化(ACT)、リードコマンド(RD)、プリチャージコマンド(PRE)を順次発行することで、SDRAMからデータをリードする。   When the first SDRAM access command 201 is output from the memory access device 101 to the SDRAM control device 102, the SDRAM control device 102 sends an SDRAM control 204 with the mode register setting 202 added to the head of the SDRAM access control 203 to the SDRAM 103. Do. The SDRAM control 204 first issues a mode register setting command in synchronization with the clock to set the mode register of the SDRAM, and then activates (ACT), a read command (RD), and a precharge command (PRE). By issuing sequentially, data is read from the SDRAM.

1番目のSDRAM制御204が完了し、二番目のSDRAMアクセス指令201がSDRAM制御装置102に出力されると、SDRAM制御装置102は2番目のSDRAM制御204を行う。   When the first SDRAM control 204 is completed and the second SDRAM access command 201 is output to the SDRAM control device 102, the SDRAM control device 102 performs the second SDRAM control 204.

このときの2番目のSDRAM制御204においても、1番目のSDRAM制御204と同様に、SDRAMアクセス制御(ライト・プロトコル)203の直前にてモードレジスタ設定203を行い、その後、アクティブ化(ACT)、ライトコマンド(WR)、プリチャージコマンド(PRE)を順次発行することで、SDRAMにデータをライトする。   Also in the second SDRAM control 204 at this time, as in the first SDRAM control 204, the mode register setting 203 is performed immediately before the SDRAM access control (write protocol) 203, and thereafter, activation (ACT), Data is written to the SDRAM by sequentially issuing a write command (WR) and a precharge command (PRE).

なお、上記各実施例ではメモリとしてSDRAMを用いて説明したが、本発明はSEUの発生によるモードレジスタ値の変化に対処するものであるため、本発明はSDRAMに限定されるものではなく、DDRやフラッシュメモリ等のようにレジスタを内蔵しているメモリの全てを含むものである。   In each of the above embodiments, the SDRAM is used as the memory. However, since the present invention deals with a change in the mode register value due to the generation of SEU, the present invention is not limited to the SDRAM. And all of the memories with built-in registers such as flash memory.

本発明にかかるSDRAM制御システムのブロック図を示している。1 shows a block diagram of an SDRAM control system according to the present invention. 本発明の動作フローを示している。The operation | movement flow of this invention is shown. 第1態様のタイムチャートを示している。The time chart of the 1st mode is shown. 第2態様のタイムチャートを示している。The time chart of the 2nd mode is shown. 従来のSDRAM制御システムの動作フローを示している。The operation | movement flow of the conventional SDRAM control system is shown. 従来のタイムチャートを示している。;The conventional time chart is shown. ;

符号の説明Explanation of symbols

101:メモリアクセス装置
102:SDRAM制御装置
103:SDRAM
201、301:SDRAMアクセス指令
202:モードレジスタ設定
203、303:SDRAMアクセス制御
204、304:SDRAM制御

101: Memory access device 102: SDRAM control device 103: SDRAM
201, 301: SDRAM access command 202: Mode register setting 203, 303: SDRAM access control 204, 304: SDRAM control

Claims (6)

メモリアクセス装置からのレジスタを内蔵しているメモリに対するメモリアクセス指令を受けて前記メモリに対してメモリ制御を行うメモリ制御装置において、
前記メモリアクセス装置からメモリアクセス指令を受けると、メモリ制御に先立って前記メモリにモードレジスタ設定を行うことを特徴とするメモリ制御装置。
In a memory control device that performs memory control on the memory in response to a memory access command for a memory having a built-in register from the memory access device,
When a memory access command is received from the memory access device, a mode register is set in the memory prior to memory control.
前記モードレジスタ設定は、前記メモリアクセス装置からメモリアクセス指令がある度に行うことを特徴とする請求項1に記載のメモリ制御装置。 2. The memory control device according to claim 1, wherein the mode register setting is performed every time a memory access command is issued from the memory access device. レジスタを内蔵しているメモリと、前記メモリに対してメモリ制御を行うメモリ制御装置と、前記メモリ制御装置にメモリアクセス指令を行うメモリアクセス装置とを有するメモリ制御システムにおいて、
前記メモリ制御装置は、前記メモリアクセス装置からメモリアクセス指令を受けると、メモリ制御に先立って前記メモリにモードレジスタ設定を行うことを特徴とするメモリ制御システム。
In a memory control system having a memory incorporating a register, a memory control device that performs memory control on the memory, and a memory access device that issues a memory access command to the memory control device,
The memory control device, when receiving a memory access command from the memory access device, sets a mode register in the memory prior to memory control.
前記モードレジスタ設定は、前記メモリアクセス装置からメモリアクセス指令がある度に行うことを特徴とする請求項3に記載のメモリ制御装置。 4. The memory control device according to claim 3, wherein the mode register setting is performed every time a memory access command is issued from the memory access device. メモリアクセス装置からのメモリアクセス指令を受けてメモリに対してメモリ制御を行うメモリ制御装置において、
前記メモリアクセス装置からメモリアクセス指令を受けると、メモリ制御に先立って前記メモリにモードレジスタ設定を行うことを特徴とするメモリ制御方法。
In a memory control device that performs memory control on a memory in response to a memory access command from the memory access device,
When a memory access command is received from the memory access device, a mode register is set in the memory prior to memory control.
前記モードレジスタ設定は、前記メモリアクセス装置からメモリアクセス指令がある度に行うことを特徴とする請求項5に記載のメモリ制御方法。

6. The memory control method according to claim 5, wherein the mode register setting is performed every time a memory access command is issued from the memory access device.

JP2003338597A 2003-09-29 2003-09-29 Memory controller and memory control system and its method Pending JP2005107733A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003338597A JP2005107733A (en) 2003-09-29 2003-09-29 Memory controller and memory control system and its method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003338597A JP2005107733A (en) 2003-09-29 2003-09-29 Memory controller and memory control system and its method

Publications (1)

Publication Number Publication Date
JP2005107733A true JP2005107733A (en) 2005-04-21

Family

ID=34534067

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003338597A Pending JP2005107733A (en) 2003-09-29 2003-09-29 Memory controller and memory control system and its method

Country Status (1)

Country Link
JP (1) JP2005107733A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018000495A1 (en) * 2016-06-27 2018-01-04 中国科学院深圳先进技术研究院 Chip single-event effect detection method and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018000495A1 (en) * 2016-06-27 2018-01-04 中国科学院深圳先进技术研究院 Chip single-event effect detection method and device

Similar Documents

Publication Publication Date Title
US6795899B2 (en) Memory system with burst length shorter than prefetch length
JP2007073052A (en) Accessing external memory from integrated circuit
JP2004280790A (en) Ecc control unit
JP4663274B2 (en) MEMORY CONTROLLER, SMART CARD HAVING THE SAME, AND MEMORY DATA READING OPERATION CONTROL METHOD
JP2006120307A5 (en)
JP2008090851A (en) Storage system and data transfer method
JP4419074B2 (en) Semiconductor memory device
US8793540B2 (en) Test apparatus and test method
JP2005116167A (en) Memory system and method for setting operation mode by address signal
JP4615896B2 (en) Semiconductor memory device and control method of semiconductor memory device
JPH09180438A (en) Memory control device
JP2009282721A (en) Memory controller, memory control system, and method of controlling amount of delay in memory
JP2005107733A (en) Memory controller and memory control system and its method
JP3954208B2 (en) Semiconductor memory device
JP4757582B2 (en) Data transfer operation end detection circuit and semiconductor memory device including the same
KR101191942B1 (en) Semiconductor memory device and command input method of the semiconductor memory device
US20080059748A1 (en) Method, mobile device, system and software for a write method with burst stop and data masks
JP2008027296A (en) Memory device
JP2009110567A (en) Initialization circuit and initialization method of semiconductor memory device
JP2019133657A (en) Method for scheduling page size recognition and non-temporary computer readable recording medium
US9570146B1 (en) Alternate access to DRAM data using cycle stealing
JP2005141846A (en) Memory device
JP2009217310A (en) Memory access method and memory access device
JP2008310371A (en) Synchronous memory controller, synchronous memory, and its control method
CN110134181B (en) Dynamic control crystal clock generator control system and control method

Legal Events

Date Code Title Description
RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20050401

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20060817

RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20070129

RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20080618

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20081117

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20081125

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20090317