JPH04149643A - Processor - Google Patents
ProcessorInfo
- Publication number
- JPH04149643A JPH04149643A JP2271161A JP27116190A JPH04149643A JP H04149643 A JPH04149643 A JP H04149643A JP 2271161 A JP2271161 A JP 2271161A JP 27116190 A JP27116190 A JP 27116190A JP H04149643 A JPH04149643 A JP H04149643A
- Authority
- JP
- Japan
- Prior art keywords
- ecc
- data
- register
- output
- external
- 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.)
- Granted
Links
Landscapes
- Detection And Correction Of Errors (AREA)
- Error Detection And Correction (AREA)
Abstract
(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.
Description
【発明の詳細な説明】
〔産業上の利用分野〕
この発明は、外部メモリと誤り訂正フード(以下「EC
C」という)付きデータの授受を行うプロセッサに関す
るものである。[Detailed Description of the Invention] [Field of Industrial Application] This invention relates to an external memory and an error correction hood (hereinafter referred to as "EC
This relates to a processor that sends and receives data marked with "C").
ECC付きデータの授受を行う従来のプロセッサとデー
タおよびECCを記憶する外部メモリとのブロック図を
第2図に示す。第2図において、21はプロセッサ、2
2は外部データ入出力端子、23は外部ECC出力端子
、24は外部ECC入力端子、25はECC回路、26
はデータレジスタ、27は演算器、211は外部メモリ
、2+2は外部メモリデータ記憶部、213は外部メモ
リECC記憶部である。FIG. 2 shows a block diagram of a conventional processor that exchanges data with ECC and an external memory that stores data and ECC. In FIG. 2, 21 is a processor;
2 is an external data input/output terminal, 23 is an external ECC output terminal, 24 is an external ECC input terminal, 25 is an ECC circuit, 26
27 is a data register, 211 is an external memory, 2+2 is an external memory data storage section, and 213 is an external memory ECC storage section.
以上のように構成された従来のプロセッサ21では、外
部メモリデータ記憶部212のテストを行うことができ
る。In the conventional processor 21 configured as described above, the external memory data storage section 212 can be tested.
しかしながら上記従来の構成では、プロセッサ21によ
り外部メモリECC記憶部213をテストすることがで
きなかった。また、プロセッサ21自体で内部のECC
回路25をテストすることもできなかった。このため、
プロセッサを多数使用する並列計算機などではシステム
全体のテストを並列して行うことかできず、長時間を要
していた。さらに、実装状態でテストを行うためにはテ
スト用に部品を実装しなければならないため実装面積を
広げていた。However, in the conventional configuration described above, the external memory ECC storage section 213 could not be tested by the processor 21. In addition, the internal ECC in the processor 21 itself
It was also not possible to test circuit 25. For this reason,
With parallel computers that use many processors, it is not possible to test the entire system in parallel, which takes a long time. Furthermore, in order to perform tests in the mounted state, it is necessary to mount components for testing, which increases the mounting area.
この発明の目的は、短時間でしかも実装面積を広げずに
、外部メモリECC記憶部およびプロセッサ内部のEC
C回路をテストすることかできるプロセッサを提供する
ことである。It is an object of the present invention to provide an external memory ECC storage unit and an internal processor EC in a short time and without increasing the mounting area.
The object of the present invention is to provide a processor capable of testing C circuits.
この発明のプロセッサは、データの送出時に誤り訂正コ
ードを付加し受け時に誤り訂正コードによるデータの検
査訂正を行うECC回路と、複数のデータレジスタと、
複数のデータレジスタに接続するレジスタと、複数のデ
ータレジスタおよびレジスタに接続し複数のデータレジ
スタのうち1つのデータレジスタの値と他のデータレジ
スタの値とを比較するとともに複数のデータレジスタの
うち1つのデータレジスタの値とレジスタの値とを比較
する比較器と、第1.第2および第3のセレクタと、E
CC回路、複数のデータレジスタレジスタ、比較器、第
1.第2および第3のセレクタを制御する制御部と、外
部メモリのデータ記憶部と接続する外部データ入出力端
子と、外部メモリの誤り訂正コード記憶部と接続する外
部ECC出力端子および外部ECC入力端子とを備えて
いる。The processor of the present invention includes an ECC circuit that adds an error correction code when sending data and performs inspection and correction of the data using the error correction code when receiving data, and a plurality of data registers.
A register connected to multiple data registers; a comparator that compares the value of the two data registers with the value of the register; second and third selectors;
A CC circuit, a plurality of data registers, a comparator, a first . A control section that controls the second and third selectors, an external data input/output terminal that connects to the data storage section of the external memory, and an external ECC output terminal and external ECC input terminal that connects to the error correction code storage section of the external memory. It is equipped with
そして、第1のセレクタの入力にECC回路のECC出
力とレジスタの出力とを接続し、第1のセレクタの出力
を外部ECC出力端子に接続し、第2のセレクタの入力
にECC回路のECC出力と外部ECC入力端子とを接
続し、第2のセレクタの出力をレジスタの入力に接続し
、第3のセレクタの人力にレジスタの出力と外部ECC
入力端子とを接続し、第3のセレクタの出力をECC回
路のECC入力に接続している。Then, the ECC output of the ECC circuit and the output of the register are connected to the input of the first selector, the output of the first selector is connected to the external ECC output terminal, and the ECC output of the ECC circuit is connected to the input of the second selector. and the external ECC input terminal, connect the output of the second selector to the input of the register, and connect the output of the register to the external ECC input terminal of the third selector.
The output of the third selector is connected to the ECC input of the ECC circuit.
この発明の構成によれば、データレジスタからレジスタ
にある値を設定し、第1のセレクタの出力にレジスタを
選択し、レジスタの値を外部メモリECC記憶部に書き
込む。その後、第2のセレクタの出力に外部ECC入力
端子を選択し、外部メモリ読みだし時に外部メモリEC
C記憶部に記憶されていた値をレジスタに読み込む。そ
して、レジスタに書き込んだ値すなわちデータレジスタ
の値と、「ジスタに読み込んだ値とを比較器で比較する
ことにより、外部メモリECC記憶部のテストを行うこ
とかできる。According to the configuration of the present invention, a certain value is set in the register from the data register, the register is selected as the output of the first selector, and the value of the register is written into the external memory ECC storage section. After that, select the external ECC input terminal as the output of the second selector, and select the external ECC input terminal when reading the external memory.
The value stored in the C storage section is read into the register. By comparing the value written into the register, that is, the value of the data register, with the value read into the register using a comparator, the external memory ECC storage section can be tested.
また、第2のセレクタの出力にECC回路のECC出力
を選択し、外部メモリにデータを書き込むときに、EC
C回路か出力するECCをレジスタに読み込む。レジス
タに読み込まれた値と、データレジスタ内の期待値とを
比較器で比較することにより、ECC回路てのECCの
付加か正常に行われているかとうかのテストを行うこと
かできる。In addition, the ECC output of the ECC circuit is selected as the output of the second selector, and when writing data to the external memory, the ECC output is selected as the output of the second selector.
Read the ECC output from the C circuit into the register. By comparing the value read into the register with the expected value in the data register using a comparator, it is possible to test whether the ECC circuit is adding ECC normally.
さらに、データレジスタの値をレジスタに設定し、第3
のセレクタの出力にレジスタを選択し、外部メモリから
データを読み込むときに、レジスタの値をECCとして
ECC回路に入力する。データレジスタに読み込んだデ
ータの値と他のデータレジスタ内の期待値とを比較器で
比較することにより、ECC回路でのECCによるデー
タの検査訂正が正常に行われているかとうかのテストを
行うことができる。Furthermore, the value of the data register is set in the register, and the third
A register is selected as the output of the selector, and when reading data from an external memory, the value of the register is input to the ECC circuit as an ECC. By comparing the value of the data read into the data register with the expected value in other data registers using a comparator, it is tested whether the data inspection and correction by ECC in the ECC circuit is being performed normally. be able to.
この発明の一実施例のプロセッサとこれに接続された外
部メモリとの構成を第1図に示す。第1図において、1
1はこの発明の一実施例のプロセッサ、12は外部デー
タ入出力端子、13は外部ECC出力端子、工4は外部
ECC入力端子、15はECC回路、151.152は
ECC回路のデータポート、161〜163はデータレ
ジスタ、17は比較器、18は第1のセレクタ、19は
第2のセレクタ、Iaは第3のセレクタ、1bはレジス
タ、1cは制御部、111は外部メモリ112は外部メ
モリデータ記憶部、113は外部メモリECC記憶部で
ある。FIG. 1 shows the configuration of a processor according to an embodiment of the present invention and an external memory connected thereto. In Figure 1, 1
1 is a processor according to an embodiment of the present invention, 12 is an external data input/output terminal, 13 is an external ECC output terminal, 4 is an external ECC input terminal, 15 is an ECC circuit, 151.152 is a data port of the ECC circuit, 161 163 is a data register, 17 is a comparator, 18 is a first selector, 19 is a second selector, Ia is a third selector, 1b is a register, 1c is a control unit, 111 is an external memory 112 is external memory data A storage section 113 is an external memory ECC storage section.
以下に接続関係を説明する。The connection relationship will be explained below.
外部ECC出力端子13は、外部ECC入力端子】4と
ともに外部メモリECC記憶部113に接続する。The external ECC output terminal 13 is connected to the external memory ECC storage section 113 together with the external ECC input terminal ]4.
第1のセレクタ18は、入力にECC回路15のECC
出力およびレジスタibの出力を接続し、出力を外部E
CC出力端子13に接続する。The first selector 18 inputs the ECC signal of the ECC circuit 15.
Connect the output and the output of register ib, and connect the output to external E.
Connect to CC output terminal 13.
第2のセしフタ19は、入力に外部ECC入力端子14
およびECC回路15のECC出力を接続し、出力をレ
ジスタibの入力に接続する。The second shifter 19 has an external ECC input terminal 14 as an input.
and the ECC output of the ECC circuit 15 are connected, and the output is connected to the input of the register ib.
第3のセレクタ1aは、入力に外部ECC入力端子14
およびレジスタ1bの出力を接続し、出力をECC回路
15のECC入力に接続する。The third selector 1a has an external ECC input terminal 14 as an input.
and the output of register 1b are connected, and the output is connected to the ECC input of ECC circuit 15.
ECC回路15のデータポート151は、外部データ入
出力端子12を介し、外部メモリデータ記憶部112に
接続し、データボー[52は、データレジスタ16N−
163に接続する。The data port 151 of the ECC circuit 15 is connected to the external memory data storage section 112 via the external data input/output terminal 12, and the data port [52 is connected to the data register 16N-
Connect to 163.
データレジスタ161−163は比較器17の入力と出
力に接続する。Data registers 161-163 connect to the input and output of comparator 17.
レジスタlbは比較器17およびデータレジスタ161
〜163に接続する。Register lb is the comparator 17 and data register 161
Connect to ~163.
以上のように構成されたプロセッサ11および外部メモ
リl 1.1について、以下その動作を説明する。The operation of the processor 11 and external memory l1.1 configured as described above will be described below.
まず、外部メモリ+11のテストを行う場合を説明する
。First, a case will be described in which the external memory +11 is tested.
データレジスタ161からレジスタibにテストしたい
値を設定し、第1のセレクタ18の出力にレジスタib
を選択し、データレジスタ162の値を外部メモリデー
タ記憶部112にストアするとともに、レジスタlbの
値を外部メモリECC記憶部113に書き込む。Set the value to be tested from the data register 161 to register ib, and set the register ib to the output of the first selector 18.
is selected, the value of the data register 162 is stored in the external memory data storage section 112, and the value of the register lb is written into the external memory ECC storage section 113.
その後、第2のセレクタ19の出力に外部ECC入力端
子]4を選択し、外部メモリデータ記憶部112の値を
ディスエーブルにされたECC回路15を介しデータレ
ジスタ163に読み込むとともに、外部メモリECC記
憶部113に記憶されていた値をレジスタ1bに読み込
む。After that, the external ECC input terminal]4 is selected as the output of the second selector 19, and the value of the external memory data storage section 112 is read into the data register 163 via the disabled ECC circuit 15, and the external memory ECC memory The value stored in section 113 is read into register 1b.
そして、データレジスタ162の値とデータレジスタ1
63の値とを比較器17で比較することにより、外部メ
モリデータ記憶部112のテストを行うことかできる。Then, the value of data register 162 and data register 1
The external memory data storage unit 112 can be tested by comparing the value of 63 with the comparator 17.
さらに、レジスタlbに書き込んだ値すなわちデータレ
ジスタ161の値と、レジスタlbi:i!み込んだ値
とを比較器17で比較することにより、従来プロセッサ
自体ではできなかった外部メモリECC記憶部+13の
テストをプロセッサ11により行うことができる。Furthermore, the value written to register lb, that is, the value of data register 161, and register lbi:i! By comparing the stored value with the comparator 17, the processor 11 can test the external memory ECC storage section +13, which was conventionally not possible with the processor itself.
つぎに、プロセッサ1】内部のECC回路15のテスト
を行う場合を説明する。Next, a case will be described in which the ECC circuit 15 inside the processor 1 is tested.
第2のセレクタ19の出力にECC回路】5のECC出
力を選択し、外部メモリl11に例えばデータレジスタ
161の値を書き込むときに、ECC回路15か出力す
るECCをレジスタ1bに読み込む。レジスタlbに読
み込まれた値と、期待値例えばデータレジスタ162に
入っていた値を比較器17て比較することにより、従来
プロセッサ自体ではできなかったECCの付加が正常に
行われているかどうかのテストをプロセッサIIにより
行うことができる。When the ECC output of ECC circuit [5] is selected as the output of the second selector 19 and the value of, for example, the data register 161 is written to the external memory l11, the ECC output from the ECC circuit 15 is read into the register 1b. By comparing the value read into the register lb with the expected value, for example, the value stored in the data register 162, using the comparator 17, it is possible to test whether or not ECC has been added normally, which could not be done by the processor itself in the past. can be performed by Processor II.
また、データレジスタ161の値をレジスタlbに設定
し、第3のセレクタ1aの出力にレジスタlbを選択し
、外部メモリ111からデータをイネーブルにされたE
CC回路15を介しデータレジスタ162に読み込むと
きに、レジスタ1bの値をECCとしてECC回路15
に入力する。データ読み込み後のデータレジスタ162
の値と期待値例えばデータレジスタ163の値を比較器
17で比較することにより、従来プロセッサ自体ではで
きなかったECCによるデータの検査訂正か正常に行わ
れているかとうかのテストをプロセッサ11により行う
ことかできる。Also, the value of the data register 161 is set to register lb, register lb is selected as the output of the third selector 1a, and data is enabled from the external memory 111.
When reading data into the data register 162 via the CC circuit 15, the ECC circuit 15 uses the value of the register 1b as ECC.
Enter. Data register 162 after reading data
By comparing the value of , for example, the value of the data register 163 with the comparator 17, the processor 11 performs a test to see if the data inspection and correction by ECC is being performed normally, which could not be done by the processor itself in the past. I can do it.
この発明のプロセッサは、外部メモリデータ記憶部のテ
ストだけでなく、外部メモリECC記憶部のテストと、
プロセッサ内部のECC回路のテストすなわちECCの
付加およびECCによるデータの検査訂正か正常に行わ
れているかとうかのテストを行うことかできる。この結
果、並列計算機なとのプロセッサを多数使用するシステ
ムでは、システム全体のテスト時間を短縮することかで
きる。また、実装上も従来のようにプロセッサ以外のテ
スト用部品を実装する必要なくテストか行えるので、面
積・信頼性の面でもその効果は大きい。The processor of the present invention not only tests the external memory data storage section, but also tests the external memory ECC storage section.
It is possible to test the ECC circuit inside the processor, that is, test whether the addition of ECC and the inspection and correction of data by ECC are being performed normally. As a result, in a system that uses a large number of processors such as parallel computers, the test time for the entire system can be shortened. In addition, in terms of packaging, tests can be performed without the need to mount test components other than the processor as in the past, which has great effects in terms of area and reliability.
第1図はこの発明の一実施例のプロセッサとこれに接続
された外部メモリとの構成を示す図、第2図は従来のプ
ロセッサとこれに接続された外部メモリとの構成を示す
図である。
11・・・プロセッサ、12・・外部データ入出力端子
、13・・・外部ECC出力端子、14・・・外部EC
C入力端子、15・・・ECC回路、17・・比較器、
18・第1のセレクタ、19・・第2のセレクタ、la
・・・第3のセレクタ、1b・しジスタ、1c副制御、
III・・外部メモリ、112・・・外部メモリデータ
記憶部、+13・・外部メモリECC記憶部、161〜
163・・・データし・ノスタE7=七戸士
第
図
111・・・外部メモリ
第
図FIG. 1 is a diagram showing the configuration of a processor according to an embodiment of the present invention and an external memory connected thereto, and FIG. 2 is a diagram showing the configuration of a conventional processor and an external memory connected thereto. . 11... Processor, 12... External data input/output terminal, 13... External ECC output terminal, 14... External EC
C input terminal, 15... ECC circuit, 17... Comparator,
18・First selector, 19・Second selector, la
...Third selector, 1b register, 1c sub-control,
III...External memory, 112...External memory data storage unit, +13...External memory ECC storage unit, 161~
163... Data Nosta E7 = Shichinohe figure 111... External memory figure
Claims (1)
訂正コードによる前記データの検査訂正を行うECC回
路と、複数のデータレジスタと、前記複数のデータレジ
スタに接続するレジスタと、前記複数のデータレジスタ
およびレジスタに接続し前記複数のデータレジスタのう
ち1つのデータレジスタの値と他のデータレジスタの値
とを比較するとともに前記複数のデータレジスタのうち
1つのデータレジスタの値と前記レジスタの値とを比較
する比較器と、第1、第2および第3のセレクタと、前
記ECC回路、複数のデータレジスタ、レジスタ、比較
器、第1、第2および第3のセレクタを制御する制御部
と、外部メモリのデータ記憶部と接続する外部データ入
出力端子と、前記外部メモリの誤り訂正コード記憶部と
接続する外部ECC出力端子および外部ECC入力端子
とを備え、 前記第1のセレクタの入力に前記ECC回路のECC出
力と前記レジスタの出力とを接続し、前記第1のセレク
タの出力を前記外部ECC出力端子に接続し、前記第2
のセレクタの入力に前記ECC回路のECC出力と前記
外部ECC入力端子とを接続し、前記第2のセレクタの
出力を前記レジスタの入力に接続し、前記第3のセレク
タの入力に前記レジスタの出力と前記外部ECC入力端
子とを接続し、前記第3のセレクタの出力を前記ECC
回路のECC入力に接続したプロセッサ。[Scope of Claims] An ECC circuit that adds an error correction code when transmitting data and inspects and corrects the data using the error correction code when receiving data, a plurality of data registers, and a register connected to the plurality of data registers; is connected to the plurality of data registers and registers, and compares the value of one data register among the plurality of data registers with the value of another data register, and compares the value of one data register among the plurality of data registers with the value of the other data register. A comparator that compares the value of the register, the first, second and third selectors, the ECC circuit, the plurality of data registers, the register, the comparator, and the first, second and third selectors. The first selector comprises a control unit, an external data input/output terminal connected to a data storage unit of an external memory, and an external ECC output terminal and an external ECC input terminal connected to an error correction code storage unit of the external memory. The ECC output of the ECC circuit and the output of the register are connected to the input of the ECC circuit, the output of the first selector is connected to the external ECC output terminal, and the second
The ECC output of the ECC circuit and the external ECC input terminal are connected to the input of the selector, the output of the second selector is connected to the input of the register, and the output of the register is connected to the input of the third selector. and the external ECC input terminal, and the output of the third selector is connected to the ECC input terminal.
A processor connected to the ECC input of the circuit.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2271161A JP2502185B2 (en) | 1990-10-08 | 1990-10-08 | Processor |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2271161A JP2502185B2 (en) | 1990-10-08 | 1990-10-08 | Processor |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH04149643A true JPH04149643A (en) | 1992-05-22 |
| JP2502185B2 JP2502185B2 (en) | 1996-05-29 |
Family
ID=17496191
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2271161A Expired - Lifetime JP2502185B2 (en) | 1990-10-08 | 1990-10-08 | Processor |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2502185B2 (en) |
Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH0240727A (en) * | 1988-07-29 | 1990-02-09 | Toshiba Corp | Error detecting and correcting device |
-
1990
- 1990-10-08 JP JP2271161A patent/JP2502185B2/en not_active Expired - Lifetime
Patent Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH0240727A (en) * | 1988-07-29 | 1990-02-09 | Toshiba Corp | Error detecting and correcting device |
Also Published As
| Publication number | Publication date |
|---|---|
| JP2502185B2 (en) | 1996-05-29 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPH0734185B2 (en) | Information processing equipment | |
| JPH11282709A (en) | In-circuit emulator | |
| JPH04149643A (en) | Processor | |
| JPS5875239A (en) | Electronic equipment | |
| JP2000346905A (en) | Semiconductor device and method for testing the same | |
| JPH10214206A (en) | Information processor | |
| JPS6160143A (en) | Fault diagnosis system for microprogram controller | |
| JP2877505B2 (en) | LSI mounting board and data processing device | |
| JPH05165734A (en) | Fixed failure diagnostic device for main memory | |
| JPH06110721A (en) | Memory controller | |
| JPS63263949A (en) | Synchronous terminal station test instrument | |
| KR940001558B1 (en) | Status tracker for boards with processes | |
| SU1312591A1 (en) | Interface for linking electronic computer with peripheral unit | |
| JPH01233642A (en) | Memory printing board | |
| JPS63174141A (en) | Diagnosing system for test of information processor | |
| JPS6153579A (en) | Tester for function of logical circuit | |
| JPH02173852A (en) | Bus diagnostic device | |
| JPH0652013A (en) | Tracing circuit | |
| JPS6012186Y2 (en) | channel device | |
| KR890002468B1 (en) | Main storage fallure address control system in a data processing system | |
| JPH02157952A (en) | Storage device | |
| JPH0337734A (en) | Dually constituted device | |
| JPH05241868A (en) | Testing system of memory error correction/detection circuit | |
| JPS62205456A (en) | Memory device | |
| JPH11219323A (en) | Data path fault detection method and information processor |