JPH058646U - Memory device - Google Patents
Memory deviceInfo
- Publication number
- JPH058646U JPH058646U JP5511991U JP5511991U JPH058646U JP H058646 U JPH058646 U JP H058646U JP 5511991 U JP5511991 U JP 5511991U JP 5511991 U JP5511991 U JP 5511991U JP H058646 U JPH058646 U JP H058646U
- Authority
- JP
- Japan
- Prior art keywords
- cpu
- address
- holding means
- signal
- 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.)
- Withdrawn
Links
Landscapes
- Techniques For Improving Reliability Of Storages (AREA)
- Retry When Errors Occur (AREA)
Abstract
(57)【要約】
【目的】CPUのソフトウェアによって行われていた前
回値の退避動作を、シーケンサが代わって行うもので、
CPUのパフォーマンスを向上させる。
【構成】CPUからのアドレス信号を保持する保持手段
と、アドレス信号を発生するアドレスカウンタと、CP
Uアドレス信号とアドレスカウンタからのアドレスのい
ずれかを選択する第1のマルチプレクサと、CPUから
の書込みデータを保持する保持手段と、メモリ部から読
出されたデータを保持する読出しデータ保持手段と、C
PUアドレス、書込みデータ、読出しデータのいずれか
を選択する第2のマルチプレクサと、CPUからの退避
動作指令を受けると共に、CPUからのアクセス信号を
受け、所定のシーケンスで第1,第2のマルチプレクサ
への選択信号、前記メモリコントローラへのアクセス信
号を出力するシーケンサとで構成される。
(57) [Summary] [Purpose] The sequencer performs the saving operation of the previous value, which was performed by the software of the CPU, instead of the sequencer.
Improve CPU performance. [Structure] Holding means for holding an address signal from a CPU, an address counter for generating an address signal, and a CP
A first multiplexer for selecting either the U address signal or the address from the address counter, a holding unit for holding the write data from the CPU, a read data holding unit for holding the data read from the memory unit, and C
A second multiplexer that selects one of PU address, write data, and read data, and an evacuation operation command from the CPU, and an access signal from the CPU, to the first and second multiplexers in a predetermined sequence. And a sequencer that outputs an access signal to the memory controller.
Description
【0001】[0001]
本考案は、マイクロプロセッサ(CPU)によってアクセスされるメモリ装置 に関し、さらに詳しくは、CPUのエラー再試行を容易にするために、メモリの 内容の前回値を効率よく保存できるようにしたメモリ装置に関する。 The present invention relates to a memory device accessed by a microprocessor (CPU), and more particularly, to a memory device capable of efficiently storing the previous value of the memory contents in order to facilitate error retry of the CPU. ..
【0002】[0002]
図5は、CPUがメモリをアクセスする場合の従来装置の動作概念図である。 CPUは、いま、斜線で示す領域11に格納されているデータを用いて仕事をし ようとする場合、、はじめにメモリの内容の区切りのよい単位(再試行ができ るような単位)で、その内容(前回値データ)を、前回値を保存するために設け られたバッファ領域12に退避・保存させる。次に、、CPUは、斜線領域1 1に今回のデータを書込んだり、読み出したりしながら作業を行う。以後、と とのステップを繰返す。 この様な作業の中で、エラーが発生した場合は、、バッファ領域12に退避 している内容を復元して再試行を行うこととなる。 FIG. 5 is an operation conceptual diagram of the conventional apparatus when the CPU accesses the memory. When the CPU attempts to work using the data stored in the shaded area 11, the CPU first uses a unit with good memory content division (a unit that can be retried). The contents (previous value data) are saved / saved in the buffer area 12 provided for saving the previous value. Next, the CPU performs the work while writing or reading the current data in the hatched area 11. After that, the steps of and are repeated. When an error occurs during such work, the contents saved in the buffer area 12 are restored and the retry is performed.
【0003】[0003]
しかしながら、この様な従来装置においては、CPUはソフトウェアによって 区切りのよい単位で、バッファ領域に前回値を退避した後今回値を書込む動作を 行う必要があり、この様なデータの退避動作に時間がかかり、CPUのパフォー マンスが低下するという不具合があった。 本考案は、この様な点に鑑みてなされたもので、CPUのエラー発生時の再試 行動作を容易にでき、CPUのパフォーマンスの向上ができるメモリ装置を提供 することを目的とする。 However, in such a conventional device, the CPU needs to perform the operation of writing the current value after saving the previous value in the buffer area in units that are well separated by software, and such data saving operation takes time. Therefore, there is a problem that the performance of the CPU is deteriorated. The present invention has been made in view of the above circumstances, and an object thereof is to provide a memory device that can easily perform a retry operation when an error occurs in the CPU and improve the performance of the CPU.
【0004】[0004]
この様な目的を達成する本考案は、 CPUからアクセスされるメモリ部と、このメモリ部へのデータの書込み読出 しを制御するメモリコントローラとを備えたメモリ装置において、 CPUからのアドレス信号を保持するCPUアドレス保持手段と、 アドレス信号を発生するアドレスカウンタと、 CPUアドレス保持手段からのアドレス信号とアドレスカウンタからのアドレ スのいずれかを選択する第1のマルチプレクサと、 CPUからの書込みデータを保持する書込みデータ保持手段と、 メモリ部から読出されたデータを保持する読出しデータ保持手段と、 CPUアドレス保持手段が保持しているアドレス信号、書込みデータ保持手段 が保持している書込みデータ、読出しデータ保持手段が保持している読出しデー タのいずれかを選択する第2のマルチプレクサと、 CPUからの退避動作指令を受けると共に、CPUからのアクセス信号を受け 、所定のシーケンスで前記第1,第2のマルチプレクサへの選択信号、前記メモ リコントローラへのアクセス信号を出力するシーケンサとを設けたことを特徴と するメモリ装置である。 The present invention that achieves such an object is to hold an address signal from a CPU in a memory device including a memory unit accessed from a CPU and a memory controller that controls writing and reading of data to and from the memory unit. CPU address holding means, an address counter for generating an address signal, a first multiplexer for selecting either the address signal from the CPU address holding means or the address from the address counter, and the write data from the CPU Write data holding means, read data holding means for holding data read from the memory section, address signal held by the CPU address holding means, write data held by the write data holding means, read data holding Select one of the read data held by the method. And a second multiplexer for receiving an evacuation operation command from the CPU and an access signal from the CPU, and a selection signal to the first and second multiplexers and an access signal to the memory controller in a predetermined sequence. Is a memory device characterized by being provided with a sequencer for outputting.
【0005】[0005]
シーケンサは、CPUからの退避動作指令を受けると、メモリ部から前回値を 読出し、退避するメモリ部のアドレスと共にその前回値をバッファ領域に書込む 動作を行う。また、アドレスカウンタ(バッファアドレス)のインクリメント、 今回値の書込み等の動作を順次行わせるためのタイミング信号を出力する。 これにより、メモリの前回値の退避動作がCPUのソフトウェアによらず実行 される。 Upon receiving the save operation command from the CPU, the sequencer reads the previous value from the memory unit and writes the previous value in the buffer area together with the address of the memory unit to be saved. It also outputs a timing signal for sequentially performing operations such as incrementing the address counter (buffer address) and writing the current value. As a result, the saving operation of the previous value of the memory is executed without depending on the software of the CPU.
【0006】[0006]
以下図面を用いて、本考案の実施例を詳細に説明する。 図1は、本考案の一実施例を示す構成ブロック図である。図において、1はC PU(図示せず)からアクセスされるメモリ部、2はメモリ部1へのデータの書 込み、読出しを制御するメモリコントローラで、アドレス信号やデータ、チップ セレクト信号C/S、リード/ライトコマンド等が印加される。3はCPUから のアドレス信号を保持するCPUアドレス保持手段、4はバッファ領域へのメモ リアドレスを指定する信号を発生するアドレスカウンタ(バッファアドレス)、 5はCPUアドレス保持手段3からのアドレス信号と、アドレスカウンタ4から のバッファアドレスのいずれかを選択する第1のマルチプレクサで、ここで選択 されたアドレス信号がメモリコントローラ2を経て、メモリ部1のアドレスを指 定する。 6はCPUからの書込みデータを保持する書込みデータ保持手段、7はメモリ 部1から読出されたデータを保持する読出しデータ保持手段で、ここで保持され ている読出しデータは、CPU側にも出力される。8はCPUアドレス保持手段 3が保持しているアドレス信号、書込みデータ保持手段6が保持している書込み データ、読出しデータ保持手段7が保持している読出しデータのいずれかを選択 する第2のマルチプレクサで、ここで選択された信号がメモリコントローラ2に 与えられている。9はCPUからの指令に基づいて設定される退避動作指示用の 制御レジスタ、10は制御レジスタ9からのイネーブル信号を受けると共に、C PUからのアクセス信号を受け、所定のシーケンスで第1,第2のマルチプレク サ5,8への選択信号、メモリコントローラ2へのアクセス信号などを出力する シーケンサである。 Embodiments of the present invention will be described in detail below with reference to the drawings. FIG. 1 is a configuration block diagram showing an embodiment of the present invention. In the figure, 1 is a memory unit accessed from a CPU (not shown), 2 is a memory controller that controls writing and reading of data to the memory unit 1, and is an address signal, data, and chip select signal C / S. , Read / write commands, etc. are applied. 3 is a CPU address holding means for holding an address signal from the CPU, 4 is an address counter (buffer address) for generating a signal for designating a memory address to the buffer area, and 5 is an address signal from the CPU address holding means 3. The first multiplexer selects any one of the buffer addresses from the address counter 4 and the address signal selected here is passed through the memory controller 2 to specify the address of the memory section 1. Reference numeral 6 is a write data holding means for holding the write data from the CPU, and 7 is a read data holding means for holding the data read from the memory section 1. The read data held here is also output to the CPU side. It A second multiplexer 8 selects one of the address signal held by the CPU address holding means 3, the write data held by the write data holding means 6 and the read data held by the read data holding means 7. The signal selected here is given to the memory controller 2. Reference numeral 9 is a control register for instructing a save operation which is set based on a command from the CPU, and 10 is an enable signal from the control register 9 and an access signal from the CPU. This is a sequencer that outputs selection signals to the second multiplexers 5 and 8 and access signals to the memory controller 2.
【0007】 制御レジスタ9は、CPUからの退避動作指令を受けてセットされ、シーケン サ10にイネーブル信号を出力する。シーケンサ10は、制御レジスタ9からイ ネーブル信号が印加され、また、CPUからのアドレスストローブ信号AS、リ ード/ライトコマンドR/Wなどを受け、メモリ部1から前回値を読出し、退避 させる動作、メモリ部1のアドレスと共にその前回値をバッファ領域に書込む動 作、アドレスカウンタ(バッファアドレス)4のインクリメント動作、今回値の 書込み等の動作を順次行わせるための各種のタイミング信号をそれぞれの部分に 出力する様に構成してある。The control register 9 is set in response to a save operation command from the CPU, and outputs an enable signal to the sequencer 10. The sequencer 10 receives the enable signal from the control register 9, the address strobe signal AS from the CPU, the read / write command R / W, etc., and reads and saves the previous value from the memory unit 1. , Various timing signals for sequentially performing the operation of writing the previous value together with the address of the memory unit 1 in the buffer area, the increment operation of the address counter (buffer address) 4, and the writing of the current value. It is configured to output to the part.
【0008】 このように構成した装置の動作を、次に説明する。 (通常のリード/ライト動作) 通常のリード/ライト動作時は、CPUは制御レジスタ9をディスエーブルに 設定しておく。この状態では、シーケンサ10は、メモリコントローラ2にアド レス・ストローブASや、例えばライトアクセスであれば、ライトコマンドなど を出力する。また、第1,第2の各マルチプレクサ3,8に対しては、それぞれ CPUアドレス保持手段3からのアドレスと、CPUからの書込みデータを選択 し、それらをメモリコントローラ2に出力するように指示している。これにより 、メモリコントローラ2は、メモリ部1の指定アドレスにそのデータを書き込む 動作を行う。 リードアクセスであれば、メモリ部1から読出したデータを保持手段7に保持 させると共に、CPU側に転送する。この様な通常のリード/ライト動作の中で 、何等かのエラーが発生すると、CPUは、メモリ部1から前回値をバッファ領 域に退避させる退避動作を行うように、制御レジスタ9の内容をイネーブルにセ ットする。The operation of the apparatus thus configured will be described next. (Normal Read / Write Operation) During a normal read / write operation, the CPU sets the control register 9 to be disabled. In this state, the sequencer 10 outputs to the memory controller 2 an address strobe AS and, for example, a write command in the case of write access. The first and second multiplexers 3 and 8 are instructed to select the address from the CPU address holding unit 3 and the write data from the CPU and output them to the memory controller 2. ing. As a result, the memory controller 2 performs an operation of writing the data to the designated address of the memory unit 1. In the case of read access, the data read from the memory unit 1 is held in the holding unit 7 and transferred to the CPU side. When some kind of error occurs during such a normal read / write operation, the CPU writes the contents of the control register 9 so as to perform a save operation for saving the previous value from the memory unit 1 to the buffer area. Set to enable.
【0009】 (退避動作) 図2は、メモリ部1から前回値を退避させる退避動作を示すフローチャートで ある。ここでは、CPUからのライトアクセスの場合にシーケンサ10が指示す る動作を例にとって示してある。制御レジスタ9の内容がイネーブルにセットさ れると、保持手段3にCPUアドレスを保持させると共に、保持手段6に書込み データを保持させる(ステップ1)。次に第1のマルチプレクサ5に対して、C PUアドレスを選択させ、また、リードコマンドを出力して、これらをメモリコ ントローラ2を経てメモリ部1に与え、前回値を読み出す(ステップ2)。そし て、読出した前回値を保持手段7に保持させる(ステップ3)。 続いて、第1のマルチプレクサ3は、アドレスカウンタ(バッファアドレス) 4のアドレスを選択し、第2のマルチプレクサはCPUアドレスを選択し、ライ トコマンドを出力してメモリ部1に退避するメモリのアドレスを書込む(ステッ プ4)。続いて、アドレスカウンタ(バッファアドレス)4のアドレスを、イン クリメントすると共に(ステップ5)、第1のマルチプレクサ5はこのバッファ アドレスを選択する。また、第2のマルチプレクサ8は保持手段7に保持されて いる前回値を選択し、ライトコマンドを出力して、この前回値をメモリ部1に書 込む(ステップ6)。これにより、前回値及びそのアドレスがバッファ領域に書 込まれ、退避動作が完了する。 次に、アドレスカウンタ(バッファアドレス)4のアドレスを、インクリメン トしておき(ステップ7)、第1のマルチプレクサ5は、今度は保持手段3に保 持されているCPUアドレスを選択し、第2のマルチプレクサ8は保持手段6に 保持されているCPUからの書込みデータを選択する。そして、ライトコマンド を出力して、今回値をメモリ部1に書込む(ステップ8)。(Saving Operation) FIG. 2 is a flowchart showing a saving operation for saving the previous value from the memory unit 1. Here, the operation indicated by the sequencer 10 in the case of write access from the CPU is shown as an example. When the contents of the control register 9 are set to enable, the holding means 3 holds the CPU address and the holding means 6 holds the write data (step 1). Next, the first multiplexer 5 is caused to select the CPU address, the read command is output, these are given to the memory unit 1 via the memory controller 2, and the previous value is read (step 2). Then, the read previous value is held in the holding means 7 (step 3). Then, the first multiplexer 3 selects the address of the address counter (buffer address) 4, the second multiplexer selects the CPU address, outputs the write command, and saves the address in the memory unit 1. Write (Step 4). Then, the address of the address counter (buffer address) 4 is incremented (step 5), and the first multiplexer 5 selects this buffer address. The second multiplexer 8 selects the previous value held in the holding means 7, outputs a write command, and writes this previous value in the memory section 1 (step 6). As a result, the previous value and its address are written in the buffer area, and the save operation is completed. Next, the address of the address counter (buffer address) 4 is incremented (step 7), and the first multiplexer 5 selects the CPU address held in the holding means 3 this time, and the second The multiplexer 8 selects the write data from the CPU held in the holding means 6. Then, the write command is output and the current value is written in the memory unit 1 (step 8).
【0010】 図3は、以上の退避動作でメモリ部1のバッファ領域に書込まれたデータの様 子を示す概念図である。退避する前にそのデータ(前回値)が格納されていたア ドレスと、前回値とがペアになって順次書込まれている。 図4は、メモリ部1から前回値を退避させる退避動作時のタイムチャートであ る。(a)〜(d)は、CPUから出力される各信号の波形図であり、(e)〜 (h)は、メモリコントローラ2に与えられる各信号の波形図である。このタイ ムチャートに示されるように、シーケンサ10は、CPUのライトあるいはリー ドアクセスサイクル内において、前回値の読出し、CPUアドレス及び前回値の バッファ領域への書込みを行い、その後、CPU指定のアドレスに今回値の書込 み動作を行わせる。この様な一連の退避動作は、各構成素子がシーケンサ10か らのタイミング信号を受けて行うもので、この間CPUは、他の仕事に専念する ことが可能となる。FIG. 3 is a conceptual diagram showing a state of data written in the buffer area of the memory unit 1 by the above saving operation. The address where the data (previous value) was stored before the evacuation and the previous value are paired and written sequentially. FIG. 4 is a time chart during the saving operation for saving the previous value from the memory unit 1. (A)-(d) is a waveform diagram of each signal output from CPU, (e)-(h) is a waveform diagram of each signal given to the memory controller 2. As shown in this timing chart, the sequencer 10 reads the previous value, writes the CPU address and the previous value to the buffer area in the CPU write or read access cycle, and then writes to the address specified by the CPU. Write the value this time. Such a series of evacuation operation is performed by each constituent element receiving the timing signal from the sequencer 10, and during this time, the CPU can concentrate on other work.
【0011】[0011]
以上詳細に説明したように、本考案によれば、これまでCPUのソフトウェア によって行われていた前回値の退避動作を、シーケンサが代わって行うもので、 CPUのパフォーマンスを向上させることができる。 As described in detail above, according to the present invention, the sequencer performs the saving operation of the previous value, which was previously performed by the software of the CPU, instead of the previous value, so that the performance of the CPU can be improved.
【0012】[0012]
【図1】本考案の一実施例を示す構成ブロック図であ
る。FIG. 1 is a configuration block diagram showing an embodiment of the present invention.
【図2】前回値退避動作を示すフローチャートである。FIG. 2 is a flowchart showing a previous value saving operation.
【図3】バッファ領域に書込まれたデータの様子を示す
概念図である。FIG. 3 is a conceptual diagram showing a state of data written in a buffer area.
【図4】メモリ部から前回値を退避させる退避動作時の
タイムチャートである。FIG. 4 is a time chart during a save operation for saving the previous value from the memory unit.
【図5】CPUがメモリをアクセスする場合の従来装置
の動作概念図である。FIG. 5 is an operation conceptual diagram of a conventional device when a CPU accesses a memory.
1 メモリ部 2 メモリコントローラ 3 CPUアドレス保持手段 4 アドレスカウンタ(バッファアドレス) 5 第1のマルチプレクサ 6 書込みデータ保持手段 7 読出しデータ保持手段 8 第2のマルチプレクサ 9 制御レジスタ 10 シーケンサ 1 Memory Unit 2 Memory Controller 3 CPU Address Holding Means 4 Address Counter (Buffer Address) 5 First Multiplexer 6 Write Data Holding Means 7 Read Data Holding Means 8 Second Multiplexer 9 Control Register 10 Sequencer
Claims (1)
のメモリ部へのデータの書込み読出しを制御するメモリ
コントローラとを備えたメモリ装置において、 CPUからのアドレス信号を保持するCPUアドレス保
持手段と、 アドレス信号を発生するアドレスカウンタと、 CPUアドレス保持手段からのアドレス信号とアドレス
カウンタからのアドレスのいずれかを選択する第1のマ
ルチプレクサと、 CPUからの書込みデータを保持する書込みデータ保持
手段と、 メモリ部から読出されたデータを保持する読出しデータ
保持手段と、 CPUアドレス保持手段が保持しているアドレス信号、
書込みデータ保持手段が保持している書込みデータ、読
出しデータ保持手段が保持している読出しデータのいず
れかを選択する第2のマルチプレクサと、 CPUからの退避動作指令を受けると共に、CPUから
のアクセス信号を受け、所定のシーケンスで前記第1,
第2のマルチプレクサへの選択信号、前記メモリコント
ローラへのアクセス信号を出力するシーケンサとを設け
たことを特徴とするメモリ装置。Claims for utility model registration: 1. A memory device comprising a memory unit accessed by a CPU and a memory controller for controlling writing and reading of data to and from the memory unit. CPU address holding means for holding, an address counter for generating an address signal, a first multiplexer for selecting either the address signal from the CPU address holding means or the address from the address counter, and the write data from the CPU Write data holding means, read data holding means for holding the data read from the memory section, and an address signal held by the CPU address holding means,
A second multiplexer for selecting one of the write data held by the write data holding means and the read data held by the read data holding means, and a save operation command from the CPU, and an access signal from the CPU. In response to the predetermined sequence,
A memory device provided with a sequencer for outputting a selection signal to a second multiplexer and an access signal to the memory controller.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP5511991U JPH058646U (en) | 1991-07-16 | 1991-07-16 | Memory device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP5511991U JPH058646U (en) | 1991-07-16 | 1991-07-16 | Memory device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH058646U true JPH058646U (en) | 1993-02-05 |
Family
ID=12989868
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP5511991U Withdrawn JPH058646U (en) | 1991-07-16 | 1991-07-16 | Memory device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH058646U (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2009181422A (en) * | 2008-01-31 | 2009-08-13 | Denso Corp | Data saving apparatus and data saving method |
-
1991
- 1991-07-16 JP JP5511991U patent/JPH058646U/en not_active Withdrawn
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2009181422A (en) * | 2008-01-31 | 2009-08-13 | Denso Corp | Data saving apparatus and data saving method |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPS5847741B2 (en) | pattern generator | |
| JPH03252993A (en) | Information writing device for e2prom | |
| JPH058646U (en) | Memory device | |
| JP4553998B2 (en) | Bus control device | |
| JPH05189332A (en) | Information processor | |
| JP3695078B2 (en) | Programmable controller with pulse output instructions | |
| JP2884620B2 (en) | Digital image processing device | |
| JPS63155347A (en) | Auxiliary circuit for diagnosis of memory | |
| JP2961781B2 (en) | Data processing device | |
| JPH01303549A (en) | Memory | |
| JP3034013B2 (en) | Display memory processing device | |
| JPH0321936B2 (en) | ||
| JPS63301338A (en) | Memory with control memory | |
| JPS61105789A (en) | Magnetic bubble control circuit | |
| JPH04262449A (en) | Data transfer system | |
| JPH05151020A (en) | Digital signal processor | |
| JPH0479016B2 (en) | ||
| JPS62206632A (en) | Main storage control method | |
| JPS63314660A (en) | Cache test system | |
| JPH06110506A (en) | Program controller's comment storage method | |
| JPS61204747A (en) | Information reading-out/writing system for logic device | |
| JPH04232536A (en) | Diagnostic control system | |
| JPS6010337A (en) | Micro instruction controller | |
| JPH0535548A (en) | Address tracer | |
| JPH05274172A (en) | Microcomputer |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A300 | Withdrawal of application because of no request for examination |
Free format text: JAPANESE INTERMEDIATE CODE: A300 Effective date: 19951102 |