JPH0423151A - Memory testing system - Google Patents
Memory testing systemInfo
- Publication number
- JPH0423151A JPH0423151A JP2126792A JP12679290A JPH0423151A JP H0423151 A JPH0423151 A JP H0423151A JP 2126792 A JP2126792 A JP 2126792A JP 12679290 A JP12679290 A JP 12679290A JP H0423151 A JPH0423151 A JP H0423151A
- Authority
- JP
- Japan
- Prior art keywords
- test
- address
- data
- ram array
- signal
- 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
Landscapes
- Techniques For Improving Reliability Of Storages (AREA)
Abstract
Description
【発明の詳細な説明】
[発明の目的コ
(産業上の利用分野)
この発明は、情報処理機器が有する記憶装置をテストす
るためのメモリテスト方式に関する。DETAILED DESCRIPTION OF THE INVENTION [Object of the Invention (Industrial Application Field) The present invention relates to a memory test method for testing a storage device included in an information processing device.
(従来の技術)
一般に計算機システムは、システムの制御中枢を成す演
算制御装置と、各種プログラム、データの格納等に供さ
れる主記憶装置を含んでいる。(Prior Art) Generally, a computer system includes an arithmetic and control unit that serves as the control center of the system, and a main memory that is used to store various programs and data.
この主記憶装置は半導体メモリ素子(RAM)で構成さ
れており、その容量(上記憶容りは半導体技術と高密度
実装技術の進歩により、年々大規模化している。This main memory device is composed of a semiconductor memory element (RAM), and its capacity (memory capacity) is increasing year by year due to advances in semiconductor technology and high-density packaging technology.
従来、主記憶装置のテスト(メモリテスト)は、命令の
組合せによるテストプログラムを使用し、計算機システ
ムの中枢を成す演算制御装置がこのテストプログラムを
実行することにより行う方式であった。Conventionally, testing of a main memory device (memory test) has been carried out by using a test program based on a combination of instructions, and having an arithmetic control unit, which forms the core of a computer system, execute this test program.
(発明が解決しようとする課題)
上記したように従来のメモリテスト方式では、テストプ
ログラムに従って演算制御装置が主記憶装置のデータを
リード/ライトすることにより行っていた。このため、
テストに要する時間(テスト時間)も主記憶装置の実装
容量に比例して増大する欠点があり、大容量の主記憶装
置のテストの場合には特に問題であった。(Problems to be Solved by the Invention) As described above, in the conventional memory test method, the arithmetic and control unit reads/writes data in the main memory according to a test program. For this reason,
The disadvantage is that the time required for testing (test time) also increases in proportion to the installed capacity of the main memory, which is a particular problem when testing a large capacity main memory.
この発明は上記事情に鑑みてなされたものでその目的は
、主記憶装置に代表される記憶装置のメモリテストが簡
単に行え、しかもメモリテストに要する時間(テスト時
間)の短縮が図れるメモリテスト方式を提供することに
ある。This invention was made in view of the above circumstances, and its purpose is to provide a memory test method that can easily perform memory tests on storage devices, such as main storage devices, and that can shorten the time required for memory tests (test time). Our goal is to provide the following.
[発明の構成]
(課題を解決するための手段)
この発明は、RAMアレイにより記憶部が構成される主
記憶装置などの記憶装置のメモリテストを要求するため
のテスト信号が同装置に外部から与えられることにより
、通常モードからテストモードに切換えてメモリテスト
の制御を行うテスト制御回路と、RAMアレイをテスト
するためのテスト用アドレスを生成するテストアドレス
発生器と、RAMアレイをテストする際のテスト用ライ
トデータを生成するテストデータ発生器と、RA Mア
レイに対するリード/ライトを制御するRAMアレイ制
御回路と、利用装置より与えられるアドレスとテストデ
ータ発生器で生成されるテスト用アドレスとをRAMア
レイのアドレスとして切換える第1のセレクタと、利用
装置より与えられるライトデータとテストデータ発生器
で生成されるテスト用ライトデータとをRAMアレイに
書込むためのデータとして切換える第2のセレクタと、
ライトアクセスの場合に、この第2のセレクタによって
選択されたデータをもとに、エラー検出・訂正用のチェ
ックビットを生成してRAMアレイに出力するチェック
ビット発生器と、リードアクセスの場合に、第1のセレ
クタによって選択されたアドレスの指定に応じてRAM
アレイから読出されるデータおよび同データのチェック
ビットをもとに、エラー検出・訂正を行うエラー検出・
訂正回路と、このエラー検出・訂正回路でエラーが検出
された場合に、その際のアドレスを含むエラーステータ
ス情報を保持するステータス保持手段とを備え、外部か
らのテスト信号に応じて記憶装置内部でRAMアレイの
メモリテストを行うようにしたことを特徴とするもので
ある。[Structure of the Invention] (Means for Solving the Problems) The present invention provides a method in which a test signal for requesting a memory test of a storage device such as a main storage device whose storage section is constituted by a RAM array is sent to the device from outside. A test control circuit that controls a memory test by switching from normal mode to test mode, a test address generator that generates a test address for testing a RAM array, and a test address generator that generates a test address for testing a RAM array. A test data generator that generates test write data, a RAM array control circuit that controls read/write to the RAM array, and a RAM that connects the address given by the device and the test address generated by the test data generator. a first selector for switching as an array address; a second selector for switching between write data provided from a utilization device and test write data generated by a test data generator as data to be written to the RAM array;
A check bit generator generates a check bit for error detection and correction based on the data selected by the second selector in the case of a write access and outputs it to the RAM array, and in the case of a read access. RAM according to the address selected by the first selector.
An error detection/correction function that detects and corrects errors based on the data read from the array and the check bits of the same data.
It is equipped with a correction circuit and a status holding means that holds error status information including the address at that time when an error is detected by the error detection/correction circuit, and the storage device internally stores the error status information including the address at that time when an error is detected by the error detection and correction circuit. This system is characterized in that it performs a memory test of the RAM array.
(作用)
この発明によれば、外部から主記憶装置などの記憶装置
にテスト信号が与えられると、外部の利用装置が記憶装
置をアクセスする通常モードから、記憶装置内部でRA
Mアレイのメモリテストを行うためのテストモードに切
換えられる。このテストモードでは、テスト制御回路の
制御のもとで、テスト用のライトアドレスが例えばRA
Mアレイの先頭番地から最終番地まで生成され、次にテ
スト用のリードアドレスがRAMアレイの先頭番地から
最終番地まで生成される。また、テストモードでのライ
トアクセス時には、テスト制御回路の制御のもとで、テ
スト用のライトデータが生成される。そして、テストモ
ードでは、通常モードにおいて外部の利用装置から与え
られるアドレス、更にはデータ(ライトデータ)に代え
て、上記したテスト用アドレス、更にはテスト用ライト
データが用いられる。テストモードでのライトアクセス
時には、テスト用ライトデータのチェックビット(エラ
ー検出・訂正用チェックビット)がチェックビット発生
器により生成され、テスト用アドレスの指定に応じてテ
スト用ライトデータがRAMアレイに書込まれる際に、
同ライトデータに対応してRAMアレイに書込まれる。(Operation) According to the present invention, when a test signal is applied to a storage device such as a main storage device from the outside, the RA is changed from a normal mode in which an external usage device accesses the storage device to an RA inside the storage device.
The test mode is switched to perform a memory test of the M array. In this test mode, under the control of the test control circuit, the test write address is set to, for example, RA.
A read address is generated from the first address of the M array to the last address, and then a test read address is generated from the first address to the last address of the RAM array. Furthermore, during write access in the test mode, test write data is generated under the control of the test control circuit. In the test mode, the above-described test address and test write data are used in place of the address and data (write data) given from an external device in the normal mode. During write access in test mode, a check bit for test write data (check bit for error detection/correction) is generated by a check bit generator, and the test write data is written to the RAM array according to the specification of the test address. When entering the
The write data is written to the RAM array corresponding to the write data.
テストモードにおける書込みが、RAMアレイの先頭番
地から最終番地までについて行われると、テスト制御回
路の制御によりライトアクセスからリードアクセスに切
換えられる。テストモードでのリードアクセス時には、
RAMアレイからはテスト用アドレスの指定するデー省
が対応するチェックビットと共に読出され、エラー検出
・訂正回路によるエラー検出・訂正処理に供される。When writing in the test mode is performed from the first address to the last address of the RAM array, write access is switched to read access under the control of the test control circuit. When accessing read in test mode,
The data specified by the test address is read out from the RAM array together with the corresponding check bit and subjected to error detection and correction processing by the error detection and correction circuit.
ここで、エラーが検出された場合には、その際のテスト
用アドレス(エラーアドレス)を含むステータス情報が
ステータス保持手段に保持される。Here, if an error is detected, status information including the test address (error address) at that time is held in the status holding means.
したがって利用装置は、このステータス保持手段の内容
を読むだけで、記憶装置のRAMアレイのエラー状況を
把握することができる。Therefore, the utilization device can grasp the error status of the RAM array of the storage device simply by reading the contents of this status holding means.
(実施例)
第1図はこの発明を適用する計算機システムにおける主
記憶装置の一実施例を示すブロック構成図である。同図
において、10は主記憶装置の記憶部を構成し、メモリ
テストの対象となるRAMアレイ、11は図示せぬ演算
制御装置または他の制御装置から与えられるテスト信号
Tに応じてテストモードを設定し、RAMアレイ10を
対象とするメモリテストの制御を行うためのテスト制御
回路である。テスト制御回路11は、テストモードでの
主記憶装置(を構成するRAMアレイ10)に対するメ
モリアクセスを要求するためのリクエスト信号(以下、
テストリクエスト信号と称する)TR。(Embodiment) FIG. 1 is a block diagram showing an embodiment of a main storage device in a computer system to which the present invention is applied. In the figure, reference numeral 10 constitutes a storage section of the main memory device and is a RAM array to be subjected to a memory test. Reference numeral 11 indicates a test mode in response to a test signal T given from an arithmetic control unit or other control unit (not shown). This is a test control circuit for setting and controlling a memory test targeting the RAM array 10. The test control circuit 11 sends a request signal (hereinafter referred to as
(referred to as test request signal) TR.
同じくメモリアクセスの種別(リード/ライト)を指定
するためのファンクション信号(以下、テスト用ファン
クション信号と称する)TF、および後述するセレクタ
20〜22を制御するセレクト信号SEL等を生成する
ようになっている。Similarly, a function signal (hereinafter referred to as a test function signal) TF for specifying the type of memory access (read/write) and a select signal SEL for controlling selectors 20 to 22, which will be described later, are generated. There is.
12は演算制御装置から与えられる通常モードでのメモ
リアクセスを要求するリクエスト信号Rまたはテスト制
御回路11からのテストリクエスト信号TRに応じてR
AMアレイ10のアクセスを制御するRAM制御回路、
13はRAMアレイ10に対するアドレスの切換え(例
えば行アドレスと列アドレスの切換え)を行うアドレス
切換回路である。Reference numeral 12 indicates R in response to a request signal R that requests memory access in the normal mode given from the arithmetic control unit or a test request signal TR from the test control circuit 11.
a RAM control circuit that controls access to the AM array 10;
Reference numeral 13 denotes an address switching circuit for switching addresses for the RAM array 10 (for example, switching between row addresses and column addresses).
14はRAMアレイlOに書込むべきデータ(ライトデ
ータ)をもとにエラー検出・訂正(E CC)用のチェ
ックビットを生成してRAMアレイ10に出力するチェ
ックビット発生器、15はリードデータエラー検出・訂
正回路である。このエラー検出・訂正回路15は、RA
MアレイlOからの読出しデータ(リードデータ)のチ
エツクを行い、シングルビットエラー検出時には、デー
タを訂正すると共にシングルビットエラー通知信号SB
Eを出力し、マルチビットエラー検出時には、マルチビ
ットエラー通知信号MBEを出力するようになっている
。14 is a check bit generator that generates a check bit for error detection/correction (ECC) based on the data (write data) to be written to the RAM array IO and outputs it to the RAM array 10; 15 is a read data error This is a detection/correction circuit. This error detection/correction circuit 15 is
Checks the read data (read data) from the M array IO, and when a single bit error is detected, corrects the data and sends a single bit error notification signal SB.
When a multi-bit error is detected, a multi-bit error notification signal MBE is output.
16はテスト制御回路11の制御によりテストモードで
のRAMアレイlOに対するアドレス(テスト用アドレ
ス信号)TAを生成するカウンタ内蔵のテストアドレス
発生器、17は同じくデータ(テスト用データ信号)T
Dを生成するテストデータ発生器である。20は演算制
御装置から与えられる通常モードでのメモリアクセス種
別を指定するためのファンクション信号Fおよびテスト
制御回路11からのテスト用ファンクション信号TFの
いずれか一方をセレクト信号SELに応じてRAM制御
回路12に選択出力するセレクタ、21は演算制御装置
から与えられる(RAMアレイ10に対する)通常モー
ド用のアドレス信号Aおよびテストアドレス発生器16
からのテスト用アドレス信号TAのいずれか一方をセレ
クト信号SELに応じてアドレス切換回路13に選択出
力するセレクタである。16 is a test address generator with a built-in counter that generates an address (test address signal) TA for the RAM array IO in the test mode under the control of the test control circuit 11; 17 is also a data (test data signal) T
This is a test data generator that generates D. Reference numeral 20 indicates a RAM control circuit 12 which selects either a function signal F for specifying the type of memory access in the normal mode given from the arithmetic control unit or a test function signal TF from the test control circuit 11 in response to a select signal SEL. A selector 21 selects and outputs an address signal A for normal mode (to the RAM array 10) given from the arithmetic control unit and a test address generator 16.
This selector selects and outputs one of the test address signals TA from the address switching circuit 13 according to the select signal SEL.
22は演算制御装置からの通常モード用のデータ信号D
(ライトデータ)およびテストデータ発生器17からの
テスト用データ信号TDのいずれか一方をセレクト信号
SELに応じてRAMアレイlOに選択出力するセレク
タ、23はエラー検出・訂正回路15でエラーが検出さ
れた場合にその際のアドレス(エラーアドレス)、シン
グルビットエラー通知信号SBEおよびマルチビットエ
ラー通知信号M B Eを保持し、ステータス信号ST
として外部に通知するためのステータスレジスタである
。22 is a data signal D for normal mode from the arithmetic and control unit.
(write data) and the test data signal TD from the test data generator 17 to the RAM array IO according to the select signal SEL; In this case, the address at that time (error address), single-bit error notification signal SBE, and multi-bit error notification signal MBE are retained, and the status signal ST
This is a status register for notifying the outside of the system.
次に、第1図の構成の動作を、(a)計算機システムに
おける演算制御装置からの主記憶装置アクセスが行われ
る通常モード時と(b)演算制御装置または他の制御装
置からの要求に応じて主記憶装置のテストが行われるテ
ストモード特出に分けて順に説明する。なお、第1図に
示す各信号は全て高レベルでアクティブ(真)であるも
のとする。Next, we will explain the operation of the configuration shown in Figure 1: (a) in normal mode when the main storage is accessed from the arithmetic control unit in the computer system, and (b) in response to requests from the arithmetic control unit or other control units. The following describes the test mode in which the main storage device is tested. It is assumed that all the signals shown in FIG. 1 are active (true) at a high level.
(a)通常モード時の動作
通常モードでは、演算制御装置からの要求により以下に
述べるように主記憶アクセスが行われる。まずライトア
クセスの場合には、演算制御装置から第1図の主記憶装
置に対して、主記憶アクセスを要求するリクエスト信号
Rとライトアクセスを指定するファンクション信号F1
更にはRAMアレイ10に対するアドレス信号Aおよび
ライト用のデータ信号D(ライトデータ)が与えられる
。これに対してリードアクセスの場合には、演算制御装
置から主記憶装置に対して、リクエスト信号Rとリード
アクセスを指定するファンクション信号F、更にアドレ
ス信号Aが与えられる。(a) Operation in normal mode In normal mode, main memory access is performed as described below in response to a request from the arithmetic and control unit. First, in the case of write access, the arithmetic and control unit sends a request signal R requesting main memory access to the main memory device shown in FIG. 1 and a function signal F1 specifying write access.
Further, an address signal A and a write data signal D (write data) to the RAM array 10 are applied. On the other hand, in the case of a read access, a request signal R, a function signal F specifying read access, and an address signal A are applied to the main memory device from the arithmetic and control unit.
演算制御装置から与えられるファンクション信号Fはセ
レクタ20の一方の入力(“0“個入力)に供給される
。セレクタ20の他方の入力(“1”個入力)にはテス
ト制御回路月からのテスト用ファンクション信号TFが
供給される。セレクタ20はテスト制御回路11から出
力されるセレクト信号SELにより制御される。このセ
レクト信号SELは通常モードでは“0” (低レベル
)となっており、この場合には演算制御装置からのファ
ンクション信号Fが選択される。また演算制御装置から
与えられるアドレス信号Aはセレクタ21の一方の入力
(“0”個入力)に供給される。セレクタ21の他方の
入力(“1″側人力)にはテストアドレス発生器1Gに
より生成されるテスト用アドレス信号TAが供給される
。更にライトアドレスの場合、演算制御装置から与えら
れるデータ信号りはセレクタ22の一方の入力(“0“
個入力)に供給される。セレクタ22の他方の入力(“
1″側入力)にはテストデータ発生器17により生成さ
れるテスト用データ信号TDが供給される。セレクタ2
1.22はテスト制御回路11からのセレクト信号SE
Lにより制御され、この例のように0°の場合には、演
算制御装置からのアドレス信号A。A function signal F given from the arithmetic control unit is supplied to one input (“0” inputs) of the selector 20. The other input (“1” input) of the selector 20 is supplied with the test function signal TF from the test control circuit. The selector 20 is controlled by a select signal SEL output from the test control circuit 11. This select signal SEL is "0" (low level) in the normal mode, and in this case, the function signal F from the arithmetic and control unit is selected. Further, the address signal A given from the arithmetic control unit is supplied to one input (“0” input) of the selector 21. A test address signal TA generated by a test address generator 1G is supplied to the other input of the selector 21 (the "1" side manual input). Furthermore, in the case of a write address, the data signal given from the arithmetic control unit is input to one input of the selector 22 (“0”
input). The other input of the selector 22 (“
1'' side input) is supplied with a test data signal TD generated by a test data generator 17.Selector 2
1.22 is the select signal SE from the test control circuit 11
In the case of 0° as in this example, the address signal A from the arithmetic control unit.
データ信号りが選択される。セレクタ21によって選択
されたアドレス信号(ここではアドレス信号A)はアド
レス切換回路13およびステータスレジスタ23に供給
される。またセレクタ22によって選択されたデータ信
号(ここではデータ信号D)はRAMアレイlOおよび
チェックビット発生器14に供給される。The data signal is selected. The address signal (here address signal A) selected by the selector 21 is supplied to the address switching circuit 13 and the status register 23. Further, the data signal selected by the selector 22 (data signal D here) is supplied to the RAM array IO and the check bit generator 14.
アドレス切換回路13はセレクタ21によって選択され
たアドレス信号(アドレス信号A)を受けてアドレスの
切換えを行い、RAMアレイlOに出力する。一方、’
/fA′R制御装置から与えられるリクエスト信号Rは
RAM制御回路12に供給される。Address switching circuit 13 receives the address signal (address signal A) selected by selector 21, switches the address, and outputs it to RAM array IO. on the other hand,'
A request signal R given from the /fA'R control device is supplied to the RAM control circuit 12.
このRAM制御回路12には、セレクタ20によって選
択された(演算制御装置からの)ファンクション信号F
も供給される。通常モードにおいてRAM制御回路12
は、(演算制御装置からの)リクエスト信号Rおよびフ
ァンクション信号Fをもとに、RAMアレイ10をリー
ドアクセスまたはライトアクセスするためのRAM制御
信号群を出力する。これにより、セレクタ21によって
選択された(演算制御装置からの)アドレス信号Aで指
定されるRAMアレイ10のアドレスがリードアクセス
またはライトアクセスされる。This RAM control circuit 12 receives a function signal F (from the arithmetic control unit) selected by the selector 20.
will also be supplied. RAM control circuit 12 in normal mode
outputs a group of RAM control signals for read access or write access to the RAM array 10 based on the request signal R and function signal F (from the arithmetic control unit). As a result, the address of the RAM array 10 specified by the address signal A (from the arithmetic control unit) selected by the selector 21 is read accessed or written accessed.
さて、通常モードのライトアクセス時には、チェックビ
ット発生器14はセレクタ22によって選択された演算
制御装置からのデータ信号りをもとに、対応するチェッ
クビットを生成する。このチェックビットはRAMアレ
イ10に供給され、データ信号D(ライトデータ)と共
にRAMアレイ10に書込まれる。Now, during write access in the normal mode, the check bit generator 14 generates a corresponding check bit based on the data signal from the arithmetic control unit selected by the selector 22. This check bit is supplied to the RAM array 10 and written into the RAM array 10 together with the data signal D (write data).
一方、通常モードのリードアクセス時には、アドレス信
号Aの指定するデータ信号(リードデータ)および対応
するチェックビットがRAMアレイ10から読出される
。このRAMアレイ10からのリードデータとチェック
ビットはリードデータエラー検出・訂正回路15に供給
される。エラー検出・訂正(E CC)回路15は、エ
ラー検出・訂正回路15からのリードデータおよびチェ
ックビ・ソトをもとに、リードデータのチエツクを行い
、シングルビットエラー(1とットエラー)検出時には
、リードデータの該当ピットを訂正して出力する共にア
クティブなシングルビットエラー通知信号SBEを出力
し、マルチビットエラー(2ビット以上のエラー)検出
時には、アクティブなマルチビットエラー通知信号MB
Eを出力する。またエラー検出・訂正回路15は、エラ
ーがない場合には、RAMアレイ10からのリードデー
タをそのまま出力する。このエラー検出・訂正回路15
によるり一ドデータのエラー検出・訂正の原理は良く知
られており、ここでは説明を省略する。エラー検出・訂
正回路15から出力されるリードデータはデータ信号り
として主記憶装置から出力される。On the other hand, during normal mode read access, a data signal (read data) specified by address signal A and the corresponding check bit are read from RAM array 10. Read data and check bits from the RAM array 10 are supplied to a read data error detection/correction circuit 15. The error detection/correction (ECC) circuit 15 checks the read data based on the read data and check bit from the error detection/correction circuit 15, and when a single bit error (1 and write error) is detected, Corrects and outputs the corresponding pit in the read data, and also outputs an active single-bit error notification signal SBE, and when a multi-bit error (an error of 2 or more bits) is detected, an active multi-bit error notification signal MB is output.
Outputs E. Furthermore, if there is no error, the error detection/correction circuit 15 outputs the read data from the RAM array 10 as is. This error detection/correction circuit 15
The principle of error detection and correction of standard data is well known and will not be explained here. The read data output from the error detection/correction circuit 15 is output from the main memory device as a data signal.
エラー検出・訂正回路15からアクティブなシングルビ
ットエラー通知信号SBEまたはマルチビットエラー通
知信号MBEが出力されると、そのときのアドレス信号
(エラーアドレス)がシングルビットエラー通知信号S
BEおよびマルチビットエラー通知信号MBE(の状態
)と共にステータスレジスタ23に保持される。演算制
御装置は主記憶装置のステータスレジスタ23の内容を
ステータス信号STとして読出すことにより、エラー状
況を確認することができる。When the active single-bit error notification signal SBE or multi-bit error notification signal MBE is output from the error detection/correction circuit 15, the address signal (error address) at that time becomes the single-bit error notification signal S.
It is held in the status register 23 together with BE and multi-bit error notification signal MBE (state). The arithmetic and control unit can check the error status by reading the contents of the status register 23 of the main storage device as a status signal ST.
(b)テストモード時の動作
次に、テストモード時の動作について説明するう
第1図の主記憶装置(内のRAMアレイ10)のテスト
を行いたい場合、演算制御装置または他の制御装置は、
主記憶装置に対してアクティブなテスト信号Tを与える
。このテスト信号Tはテスト制御回路11に供給される
。テスト制御回路11はアクティブなテスト信号Tを受
取ると、テストモードを設定し、セレクト信号SELを
通常モード時の状態である0”からテストモード時の状
態である“1″ (高レベル)に切換える。この状態に
おいて、テスト制御回路11はRAMアレイ10をアク
セスするために、演算制御装置からのリクエスト信号R
およびファンクション信号Fと同様のテストリクエスト
信号TRおよびテスト用ファンクション信号TFを生成
する。またテスト制御回路11は、テストアドレス発生
器16を制御してテスト用アドレス信号TAを生成させ
、ファンクション信号TFがライトアクセスを指定する
ライトアクセス時には、テストデータ発生器17を制御
してテスト用データ信号TD(テスト用のライトデータ
)を生成させる。(b) Operation in test mode Next, we will explain the operation in test mode.When you want to test the main memory device (RAM array 10 within) shown in FIG. ,
An active test signal T is applied to the main memory. This test signal T is supplied to the test control circuit 11. When the test control circuit 11 receives the active test signal T, it sets the test mode and switches the select signal SEL from "0", which is the state in the normal mode, to "1" (high level), which is the state in the test mode. In this state, the test control circuit 11 receives a request signal R from the arithmetic control unit in order to access the RAM array 10.
A test request signal TR and a test function signal TF similar to the function signal F are generated. The test control circuit 11 also controls the test address generator 16 to generate the test address signal TA, and when the function signal TF specifies write access, the test control circuit 11 controls the test data generator 17 to generate the test address signal TA. A signal TD (write data for test) is generated.
テスト制御回路11は、以上のテストリクエスト信号T
Rおよびテスト用ファンクション信号TFの出力と、テ
ストアドレス発生器16およびテストデータ発生器17
の制御とを、RAMアレイIOに対するライトアクセス
が例えば0番地から最終番地まで順に行われ、しかる後
にRAMアレイlOに対するリードアクセスが0番地か
ら最終番地まで順に行われるように、一定周期で繰返す
。なお、テストデータ発生器17は、常に同一のテスト
用データ信号TDを生成するものでも、ランダムな値の
テスト用データ信号TDを生成するものでも、あるいは
テストアドレス発生器16により生成されるテスト用ア
ドレス信号TAと同一の値をカウンタ等により生成する
ものであってもよい。The test control circuit 11 receives the above test request signal T.
R and the output of the test function signal TF, the test address generator 16 and the test data generator 17
This control is repeated at regular intervals such that write access to RAM array IO is performed in order from address 0 to the final address, and then read access to RAM array IO is performed in order from address 0 to final address. The test data generator 17 may always generate the same test data signal TD, a test data signal TD with a random value, or a test data signal TD generated by the test address generator 16. The same value as the address signal TA may be generated by a counter or the like.
さて、テストモードでは、セレクト信号SELが“1°
(高レベル)に切換えられているため、テスト制御回
路11から出力されるテスト用ファンクション信号TF
がセレクタ20によって選択される。このテスト用ファ
ンクション信号TFは、テスト制御回路11からのテス
トリクエスト信号TRと共にRAM制御回路12に供給
される。Now, in the test mode, the select signal SEL is "1°
(high level), the test function signal TF output from the test control circuit 11
is selected by the selector 20. This test function signal TF is supplied to the RAM control circuit 12 together with the test request signal TR from the test control circuit 11.
RAM制御回路12は、このテストリクエスト信号TR
およびファンクション信号TFをもとに、演算制御装置
からのリクエスト信号Rおよびファンクション信号Fが
供給された場合と同様にして、RAMアレイ10をアク
セスするためのRAM制御信号群を出力し、RAMアレ
イ10に対するライトアクセスまたはリードアクセスを
制御する。またテストモードでは、テストアドレス発生
器16で生成されたテスト用アドレス信号TAがセレク
タ21によって選択され、更にライトアクセスの場合に
は、テストデータ発生器17によって生成されたテスト
用データ信号TDがセレクタ22によって選択される。The RAM control circuit 12 receives this test request signal TR.
and the function signal TF, outputs a group of RAM control signals for accessing the RAM array 10 in the same manner as when the request signal R and the function signal F from the arithmetic control unit are supplied. Control write or read access to. In the test mode, the test address signal TA generated by the test address generator 16 is selected by the selector 21, and in the case of write access, the test data signal TD generated by the test data generator 17 is selected by the selector 21. 22.
このセレクタ21.22によって選択されたテスト用ア
ドレス信号TA、テスト用データ信号TDは、以下に述
べるように通常モードにおいて演算制御装置からのアド
レス信号A、データ信号りが選択された場合と同様に扱
われる。The test address signal TA and test data signal TD selected by the selectors 21 and 22 are the same as when the address signal A and data signal from the arithmetic control unit are selected in the normal mode, as described below. be treated.
まずテストモードにおけるライトアクセスの場合は、チ
ェックビット発生器14により、テスト用データ信号T
D(テスト用ライトデータ)のチェックビットが生成さ
れる。このチェックビットは、テスト用データ信号TD
(テスト用ライトデータ)がテスト用アドレス信号TA
の指定するRAMアレイlOのアドレスに書込まれる際
に、テスト用ライトデータに対応してRAMアレイ10
に書込まれる。このライトアクセスは、RAMアレイl
OのO番地から最終番地まで一定周期で順に行われる。First, in the case of write access in the test mode, the check bit generator 14 generates the test data signal T.
A check bit of D (test write data) is generated. This check bit is the test data signal TD.
(Test write data) is the test address signal TA
When data is written to the address of RAM array 10 specified by
written to. This write access is
This is performed in sequence from address O of O to the final address at a constant cycle.
上記した一連のライトアクセスが終了すると、テスト制
御回路11はテスト用ファンクション信号TFをライト
アクセス指定状態からリードアクセス指定状態に切換え
る。またテスト制御回路11は、テストモードにおける
ライトアクセスの場合と同様に、O番地から最終番地ま
でのテスト用アドレス信号TAをテストアドレス発生器
1Bにより順に生成させる。テストモードにおけるリー
ドアクセスでは、テスト用アドレス信号TAの指定する
データ信号(リードデータ)および対応するチェックビ
ットがRAMアレイlOから読出され、エラー検出・訂
正回路15によるECCチエツクに供される。そして、
エラー(シングルビットエラーまたはマルチビットエラ
ー)が検出された場合には、通常モードのリードアクセ
スでエラーが検出された場合と同様に、そのときのアド
レス信号(エラーアドレス)がシングルビットエラー通
知信号SBEおよびマルチビットエラー通知信号MBE
と共にステータスレジスタ23に保持される。演算制御
装置は主記憶装置のステータスレジスタ23の内容をス
テータス信号STとして読出すことにより、RAMアレ
イ10のエラー状況を確認することができる。When the series of write accesses described above is completed, the test control circuit 11 switches the test function signal TF from the write access designation state to the read access designation state. Further, the test control circuit 11 causes the test address generator 1B to sequentially generate test address signals TA from address O to the final address, as in the case of write access in the test mode. In read access in the test mode, the data signal (read data) specified by the test address signal TA and the corresponding check bit are read from the RAM array IO and subjected to an ECC check by the error detection/correction circuit 15. and,
When an error (single-bit error or multi-bit error) is detected, the address signal (error address) at that time is the single-bit error notification signal SBE, similar to when an error is detected during read access in normal mode. and multi-bit error notification signal MBE
It is also held in the status register 23. The arithmetic control unit can check the error status of the RAM array 10 by reading the contents of the status register 23 of the main storage device as a status signal ST.
以上は、主記憶装置の記憶部が1つのRAMアレイ10
(1枚のメモリボード)によって構成されている場合の
メモリテストについて説明したが、本発明は複数のRA
Mアレイ10(複数のメモリボード)によって記憶部が
構成されている主記憶装置のメモリテストにも応用可能
である。この場合、各RAMアレイ10(各メモリボー
ド)には、それぞれチェックビット発生器14、エラー
検出・訂正回路15およびステータスレジスタ23が設
けられるが、その他の回路、例えばテスト制御回路11
、RAM制御回路12、アドレス切換回路13、テスト
アドレス発生器16、テストデータ発生器17およびセ
レクタ21〜23は、共用可能であり、複数のRAMア
レイ10(メモリボード)のメモリテストを1つのRA
Mアレイ10(メモリボード)のメモリテストと同一時
間で行うことが可能である。なお、第1図に示す主記憶
装置の場合には、通常モードにおける演算制御装置から
のアドレス信号Aは主記憶アドレスに一致するが、記憶
部が複数のRAMアレイ10で構成される主記憶装置の
場合には、アドレス信号Aには主記憶アドレスの下位部
分が用いられ、残りの上位部分がRAMアレイ10の1
つを指定するための信号に用いられることになる。The above is a RAM array 10 with one storage section of the main storage device.
(1 memory board), but the present invention is applicable to multiple RA
The present invention can also be applied to a memory test of a main memory device whose storage section is constituted by the M array 10 (a plurality of memory boards). In this case, each RAM array 10 (each memory board) is provided with a check bit generator 14, an error detection/correction circuit 15, and a status register 23, but other circuits, such as a test control circuit 11
, RAM control circuit 12, address switching circuit 13, test address generator 16, test data generator 17, and selectors 21 to 23 can be shared, and memory tests of multiple RAM arrays 10 (memory boards) can be performed by one RAM.
This can be performed in the same time as the memory test of the M array 10 (memory board). Note that in the case of the main memory device shown in FIG. 1, the address signal A from the arithmetic and control unit in the normal mode matches the main memory address; In this case, the lower part of the main memory address is used for the address signal A, and the remaining upper part is used for one of the RAM arrays 10.
It will be used as a signal to specify one.
なお、前記実施例では、エラー検出・訂正回路15によ
ってエラーが検出された際のステータス情報を保持する
のに、ステータスレジスタ23を用いた場合について説
明したが、複数のステータス情報を格納可能な例えばリ
ングバッファ(循環バッファ)あるいはレジスタファイ
ル等を用いることも可能である。この場合には、既に採
取済みのステータス情報が、その後で採取されたステー
タス情報によって書換えられる虞がなくなるため、RA
Mアレイ10全体のエラー状況を把握するのに便利であ
る。また、ステータスレジスタ23を用いる場合には、
エラー検出毎に′t1算制御装置に割込みをかけ、その
都度演算制御装置がステータスレジスタ23の内容を読
取るようにすることにより、RAMアレイlO全体のエ
ラー状況を把握することも可能である。更に前記実施例
では、主記憶装置のメモリテストに実施した場合につい
て説明したが、本発明は情報処理機器が有する記憶装置
のメモリテスト全般に応用可能である。In the above embodiment, a case has been described in which the status register 23 is used to hold status information when an error is detected by the error detection/correction circuit 15. It is also possible to use a ring buffer (circular buffer) or a register file. In this case, there is no risk that the status information that has already been collected will be rewritten by the status information that is collected subsequently, so the RA
This is convenient for grasping the error status of the entire M array 10. Furthermore, when using the status register 23,
It is also possible to grasp the error status of the entire RAM array IO by interrupting the 't1 arithmetic control device every time an error is detected, and causing the arithmetic control device to read the contents of the status register 23 each time. Further, in the above embodiment, a case was described in which the memory test was performed on a main memory device, but the present invention is applicable to general memory tests on memory devices included in information processing equipment.
[発明の効果]
以上詳述したようにこの発明によれば、主記憶装置など
の記憶装置に、外部からのテスト要求に応じてテスト用
のアドレス、テスト用のライトデータを生成する回路を
設けると共に、このアドレスおよびデータと通常状態に
おいて記憶装置の記憶1部を構成するR A Mアレイ
をアクセスするために外部の利用装置から与えられるア
ドレスおよびデータとを切換えるセレクタを設け、RA
Mアレイが本来有するチェックビット発生器およびエラ
ー検出・訂正回路を利用してRAMアレイのメモリテス
トを行う構成としたので、テストプログラムの簡略化が
図れ、記憶装置のテストが容品に行える。また、記憶装
置内部でRAMアレイのテストが行えるため、外部から
のリード/ライトによってメモリテストを行う従来方式
に比べて、テスト時間が短縮できる。更に、記憶装置の
テストに要する時間は、複数のメモリボードがあっても
、1ボードに費やす時間と同じであり、特に記憶装置が
大容量の場合には従来に比してテスト時間を著しく短縮
できる。[Effects of the Invention] As detailed above, according to the present invention, a memory device such as a main memory device is provided with a circuit that generates a test address and test write data in response to an external test request. In addition, a selector is provided to switch between this address and data and the address and data given from an external usage device to access the RAM array that constitutes a part of the memory of the storage device in a normal state.
Since the memory test of the RAM array is performed using the check bit generator and error detection/correction circuit inherent in the M array, the test program can be simplified and the memory device can be tested easily. Furthermore, since the RAM array can be tested inside the storage device, the test time can be shortened compared to the conventional method in which the memory test is performed by reading/writing from the outside. Furthermore, even if there are multiple memory boards, the time required to test a storage device is the same as the time spent on one board, which significantly reduces test time compared to conventional methods, especially when the storage device has a large capacity. can.
第1図はこの発明のメモリテスト方式を適用する主記憶
装置の一実施例を示すブロック構成図である。
JO・・・RAMアレイ、11・・・テスト制御回路、
12・・・RAM制御回路、13・・・アドレス切換回
路、14・・・チェックビット発生器、15・・・リー
ドデータエラー検出・訂正回路、16・・・テストアド
レス発生器、17・・・テストデータ発生器、20〜2
2・・・セレクタ、2−3・・・ステータスレジスタ。FIG. 1 is a block diagram showing an embodiment of a main memory device to which the memory test method of the present invention is applied. JO...RAM array, 11...Test control circuit,
12... RAM control circuit, 13... Address switching circuit, 14... Check bit generator, 15... Read data error detection/correction circuit, 16... Test address generator, 17... Test data generator, 20-2
2...Selector, 2-3...Status register.
Claims (1)
記憶部が構成される記憶装置のメモリテスト方式におい
て、 外部からメモリテストを要求するためのテスト信号が与
えられることにより、通常モードからテストモードに切
換えてメモリテストの制御を行うテスト制御回路と、 このテスト制御回路の制御により上記RAMアレイをテ
ストするためのテスト用アドレスを生成するテストアド
レス発生器と、 上記テスト制御回路の制御により上記RAMアレイをテ
ストする際のテスト用ライトデータを生成するテストデ
ータ発生器と、 通常モードでは上記利用装置からのアクセス要求により
、テストモードでは上記テスト制御回路からのアクセス
要求により、上記RAMアレイに対するリード/ライト
を制御するRAMアレイ制御回路と、 通常モードでは上記利用装置から与えられるアドレスを
、テストモードでは上記テストアドレス発生器で生成さ
れたテスト用アドレスを、上記RAMアレイをアクセス
するためのアドレスとして選択する第1のセレクタと、 ライトアクセスの場合に、通常モードでは上記利用装置
から与えられるライトデータを、テストモードでは上記
テストデータ発生器で生成されたテスト用ライトデータ
を、上記RAMアレイに書込むためのデータとして選択
する第2のセレクタと、 この第2のセレクタによって選択されたデータをもとに
、エラー検出・訂正用のチェックビットを生成して上記
RAMアレイに出力するチェックビット発生器と、 リードアクセスの場合に、上記第1のセレクタによって
選択されたアドレスの指定に応じて上記RAMアレイか
ら読出されるデータおよび同データのチェックビットを
もとに、エラー検出・訂正を行うエラー検出・訂正回路
と、 このエラー検出・訂正回路でエラーが検出された場合に
、その際のアドレスを含むエラーステータス情報を保持
するステータス保持手段と、を具備し、外部からのテス
ト信号に応じて記憶装置内部で同装置の記憶部を構成す
るRAMアレイのメモリテストを行うようにしたことを
特徴とするメモリテスト方式。[Scope of Claims] In a memory test method for a storage device whose storage unit is constituted by a RAM array accessed from an external usage device, a test signal for requesting a memory test is applied from the outside to enable normal mode. a test control circuit that controls a memory test by switching to a test mode from the start; a test address generator that generates a test address for testing the RAM array under the control of the test control circuit; and a test address generator that controls the test control circuit. a test data generator that generates test write data when testing the RAM array; and a test data generator that generates test write data when testing the RAM array. A RAM array control circuit that controls reading/writing to the RAM array, and a RAM array control circuit that uses the address given from the above-mentioned device in normal mode and the test address generated by the above-mentioned test address generator in test mode to access the above-mentioned RAM array. A first selector that selects an address, and in the case of write access, write data provided from the usage device in the normal mode, and test write data generated by the test data generator in the test mode, to the RAM array. a second selector that selects data to be written to the RAM array; and a check bit that generates a check bit for error detection and correction based on the data selected by the second selector and outputs it to the RAM array. and a generator, and in the case of a read access, performs error detection and correction based on the data read from the RAM array according to the designation of the address selected by the first selector and the check bit of the data. It is equipped with an error detection/correction circuit, and a status holding means for holding error status information including the address at that time when an error is detected by the error detection/correction circuit, and is configured to respond to an external test signal. 1. A memory test method characterized in that a memory test of a RAM array constituting a storage section of a storage device is performed inside the storage device.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2126792A JPH0423151A (en) | 1990-05-18 | 1990-05-18 | Memory testing system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2126792A JPH0423151A (en) | 1990-05-18 | 1990-05-18 | Memory testing system |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0423151A true JPH0423151A (en) | 1992-01-27 |
Family
ID=14944063
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2126792A Pending JPH0423151A (en) | 1990-05-18 | 1990-05-18 | Memory testing system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0423151A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2015137867A (en) * | 2014-01-20 | 2015-07-30 | オムロン株式会社 | Object detecting sensor and game machine |
-
1990
- 1990-05-18 JP JP2126792A patent/JPH0423151A/en active Pending
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2015137867A (en) * | 2014-01-20 | 2015-07-30 | オムロン株式会社 | Object detecting sensor and game machine |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| KR101095222B1 (en) | Semiconductor Memory and Systems | |
| US20040199843A1 (en) | Tiered built-in self-test (BIST) architecture for testing distributed memory modules | |
| JPS6053896B2 (en) | Memory system of data processing equipment | |
| JPH02297647A (en) | Memory system | |
| JP2002216499A (en) | Test system for address multiplexer memory with serial access function | |
| KR940002904B1 (en) | Data Processing System and Multiple Memory Array Testing Methods in the System | |
| JPH0419899A (en) | Test device for semiconductor memory | |
| JPH0423151A (en) | Memory testing system | |
| JPH03138742A (en) | Memory system | |
| JPH04251355A (en) | Memory test system | |
| JP2546163B2 (en) | Semiconductor memory device | |
| JP2008146827A (en) | Integrated circuit semiconductor random access memory device | |
| JPH0196898A (en) | Semiconductor memory device equipped with self-diagnosis function | |
| KR102825124B1 (en) | Method of memory scrambling using interleaving and apparatus thereof | |
| JPH0449450A (en) | Memory test system | |
| JP3014424B2 (en) | Test method for multiport memory | |
| JPH0326480B2 (en) | ||
| JPH01140489A (en) | Semiconductor memory device | |
| JP2641917B2 (en) | Memory element | |
| JPS62272164A (en) | Testing equipment for semiconductor memory | |
| JP3655658B2 (en) | Numerical controller | |
| JPH05181690A (en) | Error retry system | |
| JPS58214946A (en) | Controlling system of microprogram | |
| JPH0561777A (en) | Memory control circuit | |
| JPH04134700A (en) | Dynamic type semiconductor storage device |