JPH0488540A - Data bus circuit and its test method - Google Patents
Data bus circuit and its test methodInfo
- Publication number
- JPH0488540A JPH0488540A JP2203675A JP20367590A JPH0488540A JP H0488540 A JPH0488540 A JP H0488540A JP 2203675 A JP2203675 A JP 2203675A JP 20367590 A JP20367590 A JP 20367590A JP H0488540 A JPH0488540 A JP H0488540A
- Authority
- JP
- Japan
- Prior art keywords
- data bus
- bus
- data
- cpu
- read
- 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
- 238000010998 test method Methods 0.000 title description 2
- 230000002093 peripheral effect Effects 0.000 claims abstract description 36
- 238000012360 testing method Methods 0.000 claims abstract description 17
- 230000002457 bidirectional effect Effects 0.000 description 8
- 230000007547 defect Effects 0.000 description 6
- 230000015654 memory Effects 0.000 description 6
- 240000002853 Nelumbo nucifera Species 0.000 description 4
- 235000006508 Nelumbo nucifera Nutrition 0.000 description 4
- 235000006510 Nelumbo pentapetala Nutrition 0.000 description 4
- 239000013256 coordination polymer Substances 0.000 description 3
- 238000000034 method Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 238000003780 insertion Methods 0.000 description 1
- 230000037431 insertion Effects 0.000 description 1
Landscapes
- Test And Diagnosis Of Digital Computers (AREA)
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野]
本発明はCPU周辺回路におけるデータバス回路および
その試験方法に関する。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a data bus circuit in a CPU peripheral circuit and a testing method thereof.
(従来の技術〕
従来、パスやメモリで構成されるデータバス回路を試験
する方法として、パリティを用いる方法が一般的に用い
られている。すなわち、メモリにデータを書き込む際に
、パリティも同時に書き込んでおき、メモリを読み出す
とき、読み出したデータをもとに計算したパリティデー
タと読み出したパリティデータを比較し、一致すれば良
、不一致ならばデータ誤りとする方法である。(Prior art) Conventionally, a method using parity has been commonly used to test data bus circuits consisting of paths and memories.In other words, when writing data to memory, parity is also written at the same time. Then, when reading out the memory, the parity data calculated based on the read data is compared with the read parity data, and if they match, it is considered good, and if they do not match, it is judged as a data error.
〔発明が解決しようとする課題]
上述したパリティによる方法では、1ビツトまでのデー
タ誤りは検出できるが、2ビツト以上の誤りは検出でき
ない。また、誤りが検出されても、その位置、すなわち
いずれのビットかは判らないという問題がある。また、
誤りの原因がハスに接続されているメモリ等の周辺機器
の不良なのか、バスそのものの不良なのかも判明しない
という問題もある。[Problems to be Solved by the Invention] The parity-based method described above can detect data errors of up to 1 bit, but cannot detect errors of 2 or more bits. Furthermore, even if an error is detected, there is a problem in that the location of the error, that is, which bit it is, cannot be determined. Also,
Another problem is that it is not clear whether the cause of the error is a defect in a peripheral device such as a memory connected to the bus, or a defect in the bus itself.
本発明の目的は、特別な回路を用いることなく任意のビ
ット数の誤りを検出することができるデータバス回路お
よびその試験方法を提供することにある。An object of the present invention is to provide a data bus circuit and a test method thereof that can detect errors of any number of bits without using a special circuit.
本発明のデータバス回路は、CPUと周辺機器とを結ぶ
データバスの一部にバッファを介挿し、このバッファに
より周辺機器側のデータバスをCPUから切り離してオ
ープン状態にし得るように構成している。The data bus circuit of the present invention is configured such that a buffer is inserted into a part of the data bus that connects the CPU and peripheral devices, and the data bus on the peripheral device side can be separated from the CPU and placed in an open state using this buffer. .
また、本発明のデータバス回路の試験方法は、データバ
ス上にデータを出力した後、該データバスをオープン状
態とし、このデータバス上に存在しているデータを読み
取ってその値を前記出力したデータと比較する。Further, in the data bus circuit testing method of the present invention, after outputting data onto the data bus, the data bus is set to an open state, data existing on the data bus is read, and the value thereof is output as described above. Compare with data.
[作用]
本発明によれば、次のようにデータバスの試験が実行で
きる。[Operation] According to the present invention, a data bus test can be executed as follows.
すなわち、CPtJのデータバスがメモリや110機器
等の周辺機器に接続されているときには、この周辺機器
につながるデータバスは、CPtJがアクセスするとき
以外はオープン、すなわちy<イインピーダンス状態と
なっている。That is, when the data bus of CPtJ is connected to a peripheral device such as a memory or 110 device, the data bus connected to this peripheral device is open except when accessed by CPtJ, that is, y<Impedance state. .
試験を行うときは、先ずデータバスを介して接続されて
いる周辺機器をアクセスせず、単にCPU0書込動作の
みを行うことにより、データバス上にデータを出力する
。その後、CPUをデータバスから切り離すと、このバ
スはハイインピータンス状態になるが、この状態の時ハ
ス上の電荷が逃げ場がないので、そのままハス上にしば
らく残留することになる。When performing a test, data is first output onto the data bus by simply performing a CPU0 write operation without accessing the peripheral devices connected via the data bus. After that, when the CPU is disconnected from the data bus, this bus enters a high impedance state, but in this state, the charges on the lotus have nowhere to escape, so they remain on the lotus for a while.
そこで°、CPUが周辺機器をアクセスすることなく、
単に読出動作を行うと、バス上に残っていた情報がその
ままCPUに読み取られる。パスが正常ならば、読み取
られた値は、先に書き込んだ値と同じになる。この場合
、CPUはハスがオープンになった後、バス上の電荷が
消滅する前に直ちに読み出しを行う必要がある。Therefore, without the CPU accessing peripheral devices,
If a read operation is simply performed, the information remaining on the bus is read as is by the CPU. If the path is successful, the value read will be the same as the value written earlier. In this case, the CPU needs to read immediately after the bus becomes open and before the charge on the bus disappears.
もし、ハスが他の信号線等にショートしていた場合には
、そのバス上のデータのビットは外部の影響を受けて“
0゛′または1゛になる。ハスの試験のために書き込む
値を“0”または″1″にして試験を行うと、いずれか
の場合読み取った値は書き込んだ値と一致しな(なり、
ハスの不良を検出することができる。If the bus is short-circuited to another signal line, the data bits on that bus will be affected by external influences.
It becomes 0゛' or 1゛. If you write a value to "0" or "1" for a lotus test, in some cases the read value will not match the written value.
It is possible to detect defects in the lotus.
すなわち、ハスは全ての機器からオーブン状態とされる
ため、この時のエラーは周辺機器の不良ではなく、デー
タバスそのものの不良であることが判る。That is, since the Hass is placed in an oven state by all devices, it can be seen that the error at this time is not a defect in the peripheral devices but a defect in the data bus itself.
(実施例〕 次に、本発明を図面を参照して説明する。(Example〕 Next, the present invention will be explained with reference to the drawings.
第1図は本発明の一実施例の回路図である。CPUIは
例えばZ80型のCPUで構成される。FIG. 1 is a circuit diagram of an embodiment of the present invention. The CPUI is composed of, for example, a Z80 type CPU.
また、4〜6はメモリや110機器等の周辺機器である
。これらはゲート付双方向バッファ2を介在させたデー
タバス7.8により前記CPUIに接続される。ここで
、前記双方向バッファ2のCPUI側をCPU側データ
バス7、周辺機器側を周辺機器側データバス8と称する
。また、前記周辺機器4〜6にはアドレスバス9が接続
されており、CPU 1よりアクセスされる。Further, 4 to 6 are peripheral devices such as memory and 110 devices. These are connected to the CPUI by a data bus 7.8 with a gated bidirectional buffer 2 interposed therebetween. Here, the CPU side of the bidirectional buffer 2 is referred to as a CPU side data bus 7, and the peripheral device side is referred to as a peripheral device side data bus 8. Further, an address bus 9 is connected to the peripheral devices 4 to 6, and accessed by the CPU 1.
前記双方向バッファ2はCPUIの読出し/書込み信号
、すなわちリード/ライト信号(R/W)により方向が
制御される。また、双方向バッファ2に設けた端子Gに
は制御回路3が接続され、この端子Gを°“H“°にし
た時にゲート機能が作用して周辺機器側データバス8を
CPUIがら切り離してオープン状態とする。The direction of the bidirectional buffer 2 is controlled by a CPUI read/write signal, that is, a read/write signal (R/W). In addition, a control circuit 3 is connected to a terminal G provided in the bidirectional buffer 2, and when this terminal G is set to "H"°, a gate function is activated to disconnect the peripheral device side data bus 8 from the CPU and open it. state.
第2図はCPUIから周辺機器4〜6に対する通常のり
一ド/ライトサイクルを示す。ライトサイクルではCP
U 1からデータバス78およびアドレスバス9を通し
てデータとアドレスが出力され、WRパルスにより周辺
機器4〜6の該当する機器にデータが書き込まれる。リ
ードサイクルではアドレスに該当する周辺機器よりデー
タがデータバス8.7上に出力され、RDパルスのネガ
ティブエツジでCPUIに読み込まれる。FIG. 2 shows a normal read/write cycle from the CPU to peripheral devices 4-6. CP in light cycle
Data and addresses are output from U1 through data bus 78 and address bus 9, and the data is written to the corresponding peripheral devices 4-6 by the WR pulse. In a read cycle, data is output from the peripheral device corresponding to the address onto the data bus 8.7, and read into the CPUI at the negative edge of the RD pulse.
なお、この通常のり一ド/ライトサイクルでは、双方向
バッファ2の端子Gは“I L l“のままであり、C
PU側データバス7と周辺機器側データバス8は接続さ
れた状態にある。すなわち、書込み時にはCPU側デー
タバス7の値が周辺機器側データバス8に伝達され、読
出し時には周辺機器側のデータバス8の値がCPU側デ
ータバス7に伝達される。Note that in this normal read/write cycle, the terminal G of the bidirectional buffer 2 remains "I L l", and the C
The PU side data bus 7 and the peripheral device side data bus 8 are in a connected state. That is, during writing, the value of the data bus 7 on the CPU side is transmitted to the data bus 8 on the peripheral device side, and during reading, the value on the data bus 8 on the peripheral device side is transmitted to the data bus 7 on the CPU side.
第3図はバス試験時のタイムチャートである。FIG. 3 is a time chart during the bus test.
バス試験においては、先ずライトサイクルにおいて通常
のライトサイクルと同様、データをデータバスに出力す
る。ここで、アドレスも同時に出力されるが、このアド
レスはいかなる周辺機器をも選択しないダミー値である
。In the bus test, first, in a write cycle, data is output to the data bus as in a normal write cycle. Here, an address is also output at the same time, but this address is a dummy value that does not select any peripheral device.
ライトサイクルの途中、すなわちCPIJIから出力さ
れるデータが確定している間に、制御回路3の動作によ
り双方向バッファ2の端子Gを“°H゛′にすると、周
辺機器側データバス8はCPU側データバス7から切り
離されてオーブン状態になる。When the control circuit 3 operates to set the terminal G of the bidirectional buffer 2 to "°H" during the write cycle, that is, while the data output from the CPIJI is finalized, the peripheral device side data bus 8 is connected to the CPU. It is disconnected from the side data bus 7 and placed in an oven state.
このとき周辺機器側のデータバス8が正常ならば、いか
なる周辺機器4〜6からも浮いた状態になるので、周辺
機器側データバス8上の電荷は逃げ場がなくなり、CP
UIから出力された値がそのまま残る。そこで、CPU
1が次のサイクルで読出しを行うと、周辺機器側デー
タバス8が正常ならば、残っていた該データバス8上の
値がそのまま読み取られる。この時のアドレスは書込み
時のアドレスと同様にダミー値であり、いかなる周辺機
器をも選択してはならない。At this time, if the data bus 8 on the peripheral device side is normal, it will be floating from any peripheral devices 4 to 6, so the charge on the data bus 8 on the peripheral device side will have nowhere to escape, and the CP
The value output from the UI remains as is. Therefore, the CPU
When 1 is read in the next cycle, if the peripheral device side data bus 8 is normal, the remaining value on the data bus 8 is read as is. The address at this time is a dummy value, similar to the address at the time of writing, and must not select any peripheral device.
もし、周辺機器側データバス8が他の信号線等にショー
トしていたような場合、その部分のビットが外部の影響
を受けて“0゛または“°1゛になる。バスの試験のた
めに書き込む値を0°゛または“1”として試験を行う
と、いずれかの場合、読み取った値は書き込んだ値と一
致しないので、データバスの不良を検出できる。例えば
、試験データとして5A(16進数)を書込んで読出し
を行った時、データバスが正常ならば同じ値が読み取ら
れるが、もしD2ビットがGNDにショートしていた場
合、5E(16進数)という値が読まれることになる。If the data bus 8 on the peripheral device side is short-circuited to another signal line or the like, the bits in that part become "0" or "°1" due to external influences. If the bus is tested by setting the written value to 0° or "1", in either case the read value does not match the written value, so a defect in the data bus can be detected. For example, when writing and reading 5A (hexadecimal number) as test data, if the data bus is normal, the same value will be read, but if the D2 bit is shorted to GND, 5E (hexadecimal number) The value will be read.
このことは、逆にみればデータバスにおける誤りのピン
トを検出することも可能となる。Conversely, this also makes it possible to detect erroneous focusing on the data bus.
なお、双方向バッファ2の介挿位置を可及的にCPU
l側に寄せることで、データバスの大部分を周辺機器側
データバス8として構成し、このデータバスの大部分の
試験を実行することができる。Note that the insertion position of the bidirectional buffer 2 can be adjusted as much as possible by the CPU.
By moving it to the l side, most of the data bus can be configured as the peripheral device side data bus 8, and most of the tests on this data bus can be executed.
以上説明したように本発明は、データバスに周辺機器側
のデータバスをCPUがら切り離す手段を設けているこ
とで、書込みを行ったデータを読込むことで該データバ
スを試験することができ、特別の回路を用いて回路を複
雑化することなく好適なデータバスの試験が可能となる
。As explained above, the present invention provides a data bus with means for disconnecting the data bus on the peripheral device side from the CPU, so that the data bus can be tested by reading written data. A suitable data bus test can be performed without complicating the circuit by using a special circuit.
また、本発明方法では、パリティを用いずにデータバス
を試験することができるため、任意のビット数の誤りが
検出可能であり、また誤りの位置も判るという効果があ
る。Furthermore, since the method of the present invention can test the data bus without using parity, it is possible to detect errors of any number of bits, and the position of the error can also be determined.
第1図は本発明の一実施例の回路図、第2図は通常の書
込/読出サイクルのタイムチャート、第3図は試験時に
おける書込/読出サイクルのタイムチャートである。
1・・・CPU、2・・・ゲート付双方向バッファ、3
・・・制御回路、4〜6・・・周辺機器、7・・・CP
U側データバス、8・・・周辺機器側データバス、9・
・・アドレスバス。
第1図FIG. 1 is a circuit diagram of an embodiment of the present invention, FIG. 2 is a time chart of a normal write/read cycle, and FIG. 3 is a time chart of a write/read cycle during a test. 1...CPU, 2...Bidirectional buffer with gate, 3
...Control circuit, 4-6...Peripheral equipment, 7...CP
U side data bus, 8... Peripheral device side data bus, 9.
...address bus. Figure 1
Claims (1)
ト手段を介挿し、このゲート手段により周辺機器側のデ
ータバスをCPUから切り離してオープン状態にし得る
ように構成したことを特徴とするデータバス回路。 2、データバス上にデータを出力した後、該データバス
をオープン状態とし、このデータバス上に存在している
データを読み取ってその値を前記出力したデータと比較
することでデータバスを試験することを特徴とするデー
タバス回路の試験方法。[Claims] 1. A gate means is inserted in a part of the data bus connecting the CPU and peripheral devices, and the data bus on the peripheral device side can be separated from the CPU and placed in an open state by the gate means. A data bus circuit characterized by: 2. After outputting data onto the data bus, test the data bus by opening the data bus, reading the data present on the data bus, and comparing its value with the output data. A data bus circuit testing method characterized by:
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2203675A JPH0488540A (en) | 1990-07-31 | 1990-07-31 | Data bus circuit and its test method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2203675A JPH0488540A (en) | 1990-07-31 | 1990-07-31 | Data bus circuit and its test method |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0488540A true JPH0488540A (en) | 1992-03-23 |
Family
ID=16477987
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2203675A Pending JPH0488540A (en) | 1990-07-31 | 1990-07-31 | Data bus circuit and its test method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0488540A (en) |
-
1990
- 1990-07-31 JP JP2203675A patent/JPH0488540A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| HK23292A (en) | Process for operating a semiconductor memory with integrated parallel test capability and evaluation circuit for carrying out the process | |
| JP4086584B2 (en) | Memory card capable of simplifying test process and memory card test method | |
| JP2669303B2 (en) | Semiconductor memory with bit error correction function | |
| JPS59119597A (en) | Semiconductor storage device | |
| TWI502350B (en) | Flash memory accessing apparatus and method thereof | |
| JPH10106297A (en) | Parallel bit test circuit for semiconductor memory device | |
| JPS6152758A (en) | Memory error detecting device | |
| KR100429095B1 (en) | Random Access Memory in Integrated Circuits and How to Test Them | |
| JPH0442500A (en) | Semiconductor memory device | |
| JPS62299000A (en) | Semiconductor memory | |
| JP2869243B2 (en) | Memory test equipment | |
| JPH04143690A (en) | Electronic circuit using radiation recognition circuit | |
| JPS646489B2 (en) | ||
| JP3217548B2 (en) | Semiconductor storage device | |
| US20250217043A1 (en) | Memory device, memory system and operation method thereof, and electronic apparatus | |
| JPS5963099A (en) | Diagnostic system of memory | |
| JP3303673B2 (en) | Logic circuit test apparatus and logic circuit test method | |
| JPS6013120Y2 (en) | ROM writing device | |
| JPH031399A (en) | Storage device | |
| JPS63753A (en) | Test system for memory error checking and correcting circuit | |
| JPH01158700A (en) | Semiconductor memory device | |
| JPH04157535A (en) | Register inspecting method | |
| JPH05101699A (en) | Memory device | |
| JPH02247891A (en) | Semiconductor memory device | |
| JPS6040120B2 (en) | semiconductor storage device |