JP2928537B2 - RAM scan method - Google Patents
RAM scan methodInfo
- Publication number
- JP2928537B2 JP2928537B2 JP1117382A JP11738289A JP2928537B2 JP 2928537 B2 JP2928537 B2 JP 2928537B2 JP 1117382 A JP1117382 A JP 1117382A JP 11738289 A JP11738289 A JP 11738289A JP 2928537 B2 JP2928537 B2 JP 2928537B2
- Authority
- JP
- Japan
- Prior art keywords
- ram
- scan
- data
- word
- register
- 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 - Lifetime
Links
Landscapes
- Techniques For Improving Reliability Of Storages (AREA)
- Test And Diagnosis Of Digital Computers (AREA)
Description
【発明の詳細な説明】 〔産業上の利用分野〕 本発明はデータ処理装置内に設けられたRAMに対する
保守用のデータ更新、参照機能に関する。Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a maintenance data update and reference function for a RAM provided in a data processing device.
従来、データ処理装置内のレジスタに関しては、全て
のレジスタの各ビットごとに異なるスキャン・アドレス
が付与され、このアドレスを順次指定することによっ
て、レジスタの機能や構造、大きさにかかわらない一定
手順によるスキャン・イン/アウト動作を行うことがで
きた。なお、この種の技術としては特開昭55−32158号
が挙げられる。Conventionally, for a register in a data processing device, a different scan address is assigned to each bit of all registers, and by sequentially specifying this address, a fixed procedure is performed regardless of the function, structure, and size of the register. Scan in / out operation could be performed. Incidentally, Japanese Patent Application Laid-Open No. 55-32158 is mentioned as this kind of technology.
データ処理装置内のRAMに関しては、上記レジスタの
場合と同様にRAMデータの全ビットにスキャン・アドレ
スを付与すると膨大なものになり、またRAMは構造上RAM
ワード・アドレスをあらかじめ指定した上で1ワード分
のデータの書込み/読出しを行う必要があるため、RAM
データのビット指定を一律にスキャン・アドレスのみで
行おうとすると、これをRAMアクセスの枠組の中に組み
入れるために各RAMまわりにスキャン動作専用の相当量
のハードウェアの付加が必要となる。Regarding the RAM in the data processing device, if a scan address is given to all bits of the RAM data as in the case of the above register, it becomes enormous, and the RAM is structurally a RAM.
Since it is necessary to write / read one word of data after specifying the word address in advance, the RAM
If the data bits are to be specified uniformly using only the scan address, a considerable amount of hardware dedicated to the scan operation needs to be added around each RAM in order to incorporate this into the RAM access framework.
そこで従来は、RAMスキャン動作を起動するファーム
ウェア側でRAMアクセスの手順を意識し、RAMワード・ア
ドレス・レジスタとデータ・レジスタに対するスキャン
・イン/アウト動作とデータ・レジスタからRAMへのデ
ータ書込み/読出し動作を組み合わせてRAMスキャン動
作を行っていた。Conventionally, the firmware that activates the RAM scan operation is aware of the RAM access procedure, scans in / outs the RAM word address register and data register, and writes / reads data from the data register to RAM. The RAM scan operation was performed by combining the operations.
ところが上記方法では、ファームウェア側で各RAM個
別のアクセス手順を意識するため、RAMスキャン動作手
順が各RAMまわりのハードウェアの構造に依存しかつ複
雑になり、その結果としてスキャン動作速度が大幅に低
下するという問題があった。However, in the above method, since the firmware side is aware of the access procedure for each RAM, the RAM scan operation procedure depends on the hardware structure around each RAM and becomes complicated, resulting in a drastic reduction in scan operation speed. There was a problem of doing.
本発明の目的は、かかる問題点を解決することにあ
る。An object of the present invention is to solve such a problem.
本発明では、上記各RAM個別のアクセス手順をデータ
処理装置内に全てのRAMに対して共通に設けられたスキ
ャン制御部のハードウェアに吸収することによって、フ
ァームウェア手順の一般化、簡単化、さらにその結果と
してのRAMスキャン動作の高速化をはかっている。In the present invention, generalization and simplification of the firmware procedure are achieved by absorbing the above-described access procedure for each RAM into the hardware of the scan control unit provided commonly to all the RAMs in the data processing device. As a result, the speed of the RAM scan operation is increased.
本発明の方式によれば、アクセスするRAMを選択する
情報、RAMの先頭ワード・アドレス及び該当RAM1ワード
のデータ長をあらかじめスキャン制御部に設定しておけ
ば、RAMワード・アドレスのRAM部への設定、更新、RAM
ワード内アドレスの生成、更新といったRAM個別の構造
に依存した処理はスキャン制御部のハードウェアによっ
て自動的に行われるため、ファームウェアとしてはRAM
データの書込み/読出しという一般的でかつ簡単な手順
でRAMデータのスキャン・イン/アウト動作が実施され
る。According to the method of the present invention, if the information for selecting the RAM to be accessed, the head word address of the RAM and the data length of one word of the RAM are set in the scan control unit in advance, the RAM word address can be stored in the RAM unit. Settings, updates, RAM
Processing that depends on the structure of each RAM, such as generation and updating of addresses in words, is automatically performed by the hardware of the scan control unit.
The scan-in / out operation of the RAM data is performed by a general and simple procedure of writing / reading data.
以下に本発明の一実施例を図を用いて説明する。第1
図は本発明を実施するために必要なハードウェアの構成
を示す。制御ハードウェア1〜11はスキャン制御部に設
けられ、RAM15に対してスキャン・イン/アウト動作を
行うために用いられる。図中スキャン対象となるRAMは
1つしか示されていないが、複数のRAMに対しても同一
の制御ハードウェアによりスキャン動作が可能である。An embodiment of the present invention will be described below with reference to the drawings. First
The figure shows the configuration of the hardware necessary to implement the present invention. The control hardware 1 to 11 are provided in the scan control unit and are used for performing a scan in / out operation on the RAM 15. Although only one RAM to be scanned is shown in the figure, a scan operation can be performed on a plurality of RAMs by the same control hardware.
スキャン制御部のRAM選択アドレス1はスキャン対象
とするRAMを指定し、ビット・アドレス2を下位に付加
してスキャン・アドレス12が生成される。スキャン・ア
ドレスはスキャン対象RAM15のデータ1ワード中の各ビ
ットに対して付与されるとともにRAMのアドレス・レジ
スタ16の各ビットに対しても付与され、両者の関係は第
2図に示すようにRAM選択アドレスは各RAMごとに同一
で、ビット・アドレスの低位に全てのRAMについて一定
長のアドレス・レジスタが、高位にRAMごとに長さの異
なるRAMデータの各ビットが割当てられる。ビット・ア
ドレス2はRAMスキャン動作中、更新回路3によって順
次インクリメントされるとともに比較回路4によってRA
Mデータのワード長すなわちワード末尾ビットのビット
・アドレス5と比較され、一致した場合にはセレクタ6
の制御によって初期化すなわちゼロ・クリアされる。RA
Mのワード・アドレス7は比較回路4が一致を検出した
場合に更新回路8によって更新されるとともに、ビット
・アドレス2がRAMアドレス・レジスタ16の各ビットを
示しているときにはセレクタ9の制御によってアドレス
・レジスタ16にスキャン・インされる。The RAM selection address 1 of the scan control unit specifies the RAM to be scanned, and the scan address 12 is generated by adding the bit address 2 to the lower order. The scan address is given to each bit in one word of the data of the RAM 15 to be scanned and also to each bit of the address register 16 of the RAM. The relationship between the two is as shown in FIG. The selected address is the same for each RAM, and a fixed-length address register for all RAMs is assigned to the lower bits of the bit address, and each bit of RAM data having a different length for each RAM is assigned to the higher addresses. The bit address 2 is sequentially incremented by the update circuit 3 during the RAM scan operation, and the bit address 2
The M data is compared with the word length of the data, that is, the bit address 5 of the word end bit.
Is initialized, that is, cleared to zero. RA
The word address 7 of M is updated by the update circuit 8 when the comparison circuit 4 detects a match, and when the bit address 2 indicates each bit of the RAM address register 16, the address is controlled by the selector 9. • Scanned into register 16.
ファームウェアによる手順としてRAM選択アドレス
1、ワード末尾ビット・アドレス5、ワード・アドレス
7をそれぞれ設定後、ビット・アドレス2をゼロ・クリ
アしてRAMスキャン動作を起動する。起動後のハードウ
ェアの動作を以下に示す。ビット・アドレス2は最初RA
Mアドレス・レジスタ16を指示するため、これが更新回
路3によってインクリメントされるにつれてワード・ア
ドレス7の各ビットが順次アドレス・レジスタ16にスキ
ャン・インされる。次にビット・アドレス2がRAMデー
タ・ビットを示すようになると、レジスタ10からRAM15
へのデータ・スキャン・インまたはRAM15からレジスタ1
1へのデータ・スキャン・アウトが実行される。ビット
・アドレス2が順次更新されてワード末尾のデータ・ビ
ットを示すと、比較回路4が一致を検出し、ワード・ア
ドレス7を更新するとともにビット・アドレス2をゼロ
・クリアし、更新されたワード・アドレス7のアドレス
・レジスタ16に対するスキャン・インから上記動作が繰
り返され、RAM15の次のデータ・ワードに対するスキャ
ン動作が引き続き実行される。以上のRAMアドレス・レ
ジスタ16の設定および更新、RAMワード末尾の検出は、
ハードウェアによって自動的に行われるため、ファーム
ウェアとしてRAMスキャン動作起動後はスキャン・イン
の場合はレジスタ10へのデータの設定、スキャン・アウ
トの場合はレジスタ11に設定されたデータの読出しを必
要回数だけ繰り返せば良く、RAMの構造に依存しない一
般的でかつ簡単な手順でRAMスキャン動作が実現され
る。After setting the RAM selection address 1, the word end bit address 5 and the word address 7 as a procedure by the firmware, the bit address 2 is cleared to zero and the RAM scan operation is started. The operation of the hardware after startup is shown below. Bit address 2 is first RA
To indicate the M address register 16, each bit of the word address 7 is sequentially scanned into the address register 16 as it is incremented by the update circuit 3. Next, when bit address 2 indicates a RAM data bit, register 10
Scan data in to or register 1 from RAM15
Data scan out to 1 is performed. When bit address 2 is sequentially updated to indicate the data bit at the end of the word, comparison circuit 4 detects a match, updates word address 7 and clears bit address 2 to zero, and updates the updated word. The above operation is repeated from the scan-in of the address register 16 at the address 7 and the scan operation for the next data word of the RAM 15 is continuously performed. The above setting and updating of the RAM address register 16 and detection of the end of the RAM word
Since the RAM scan operation is automatically performed by the hardware, after the RAM scan operation is started, the data set to register 10 is set for scan-in and the data set to register 11 is read for scan-out when necessary. The RAM scan operation can be realized by a general and simple procedure that does not depend on the structure of the RAM.
本発明の方式によれば、個々のRAMまわりにRAMスキャ
ン専用のハードウェアを付加することなくかつRAMスキ
ャン動作を起動するファームウェアがRAM個別の構造を
意識することなく全てのRAMに対して一般的で簡単な手
順によってデータのスキャン・イン/アウトを行うこと
ができる。またファームウェア手順の簡単化によりRAM
スキャン動作の高速化をはかることができる。According to the method of the present invention, the firmware that activates the RAM scan operation does not need to add hardware dedicated to the RAM scan around each RAM and the firmware that activates the RAM scan operation is generally used for all the RAMs without being aware of the structure of each RAM. The data can be scanned in / out by a simple procedure. RAM has been simplified by simplifying the firmware procedure.
The speed of the scanning operation can be increased.
第1図は本発明の一実施例を実現するためのハードウェ
ア構成図、第2図は同実施例においてRAMデータおよび
アドレス・レジスタの各ビットに対して割当てられるス
キャン・アドレスのアドレス・マップを示す説明図であ
る。 1……アドレス・レジスタ、2……ビット・アドレス・
レジスタ、3……ビット・アドレス更新回路、4……比
較回路。FIG. 1 is a hardware configuration diagram for realizing one embodiment of the present invention, and FIG. 2 shows an address map of a scan address assigned to each bit of RAM data and an address register in the embodiment. FIG. 1 ... address register, 2 ... bit address
Register, 3... Bit address update circuit, 4... Comparison circuit.
フロントページの続き (58)調査した分野(Int.Cl.6,DB名) G06F 12/16 G06F 11/22 Continuation of the front page (58) Field surveyed (Int.Cl. 6 , DB name) G06F 12/16 G06F 11/22
Claims (1)
複数のRAMと、該RAMに対するデータのスキャン・イン/
アウト動作を制御するスキャン制御部を具備するデータ
処理装置において、スキャン制御部に、該RAMの先頭ワ
ード・アドレスを設定するワード・アドレス・レジスタ
及びその内容を更新する第1の更新回路と、該RAMの1
ワードのデータ長を設定するワード末尾ビット・アドレ
ス・レジスタと、該RAMデータのワード内アドレスを保
持するビット・アドレス・レジスタ及びその内容を更新
する第2の更新回路及びその内容を初期化する初期化回
路と、前記ワード末尾ビット・アドレス・レジスタの内
容と前記ビット・アドレス・レジスタの内容を比較する
比較回路と、スキャン・イン・データを設定するスキャ
ン・イン・データ・レジスタと、前記ワード・アドレス
・レジスタの出力と前記スキャン・イン・データ・レジ
スタの出力を選択するセレクタとを備え、前記ビット・
アドレス・レジスタはスキャン動作中に前記第2の更新
回路によって順次インクリメントされるとともに前記比
較回路が前記ワード末尾ビット・アドレスとの一致を検
出したときに初期化され、前記ワード・アドレス・レジ
スタは前記比較回路が一致を検出したときに前記第1の
更新回路によってインクリメントされ、前記ビット・ア
ドレス・レジスタの出力によって前記セレクタの出力を
切り替えることにより前記ワード・アドレス・レジスタ
の内容をRAM側のアドレス・レジスタにスキャン・イン
するか前記スキャン・イン・データ・レジスタの内容を
該RAMにスキャン・インするかを制御することを特徴と
するRAMスキャン方式。A plurality of RAMs for realizing various functions of a data processing device, and a data scan-in / read-out operation for the RAMs.
In a data processing apparatus having a scan control unit for controlling an out operation, a word address register for setting a head word address of the RAM and a first update circuit for updating the contents thereof are provided in the scan control unit; RAM 1
A word end bit address register for setting the data length of a word, a bit address register for holding an in-word address of the RAM data, a second updating circuit for updating the contents thereof, and an initializing circuit for initializing the contents A comparison circuit for comparing the contents of the word end bit address register with the contents of the bit address register; a scan-in data register for setting scan-in data; A selector for selecting an output of an address register and an output of the scan-in data register;
The address register is sequentially incremented by the second update circuit during a scan operation and initialized when the comparison circuit detects a match with the word end bit address, and the word address register is The content of the word address register is incremented by the first update circuit when the comparison circuit detects a match, and the output of the selector is switched by the output of the bit address register. A RAM scan method for controlling whether to scan in a register or scan in the contents of the scan-in data register into the RAM.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1117382A JP2928537B2 (en) | 1989-05-12 | 1989-05-12 | RAM scan method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1117382A JP2928537B2 (en) | 1989-05-12 | 1989-05-12 | RAM scan method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH02297648A JPH02297648A (en) | 1990-12-10 |
| JP2928537B2 true JP2928537B2 (en) | 1999-08-03 |
Family
ID=14710268
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP1117382A Expired - Lifetime JP2928537B2 (en) | 1989-05-12 | 1989-05-12 | RAM scan method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2928537B2 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH1083698A (en) * | 1996-09-05 | 1998-03-31 | Mitsubishi Electric Corp | Semiconductor integrated circuit device |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS5538630A (en) * | 1978-09-05 | 1980-03-18 | Nec Corp | Memory diagnostic system of information processing system |
-
1989
- 1989-05-12 JP JP1117382A patent/JP2928537B2/en not_active Expired - Lifetime
Also Published As
| Publication number | Publication date |
|---|---|
| JPH02297648A (en) | 1990-12-10 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US4495575A (en) | Information processing apparatus for virtual storage control system | |
| JPH0343646B2 (en) | ||
| US4839828A (en) | Memory read/write control system for color graphic display | |
| JPH0355832B2 (en) | ||
| US5195174A (en) | Image data processing apparatus capable of composing one image from a plurality of images | |
| US4748442A (en) | Visual displaying | |
| JP2928537B2 (en) | RAM scan method | |
| JPH0713788B2 (en) | Image display device | |
| US4988985A (en) | Method and apparatus for a self-clearing copy mode in a frame-buffer memory | |
| JPS58211186A (en) | Slit screen display control system | |
| JP3043077B2 (en) | Frame buffer controller | |
| JPS647393Y2 (en) | ||
| JP2861159B2 (en) | Window display control device | |
| JP2704053B2 (en) | Document editing device | |
| JPH05189581A (en) | Graphic data write device | |
| JPH0640260B2 (en) | Storage device | |
| JPH0550013B2 (en) | ||
| JPS63108468A (en) | Document image processing device | |
| JPS6139092A (en) | Display unit | |
| JPH0216665A (en) | Data transfer equipment | |
| JPH0352105B2 (en) | ||
| JPH023196B2 (en) | ||
| JPS61282970A (en) | Crt display device | |
| JPH0612329A (en) | RAM rewriting method | |
| JPH0316374A (en) | Image processing designated area information calculation device |