JPH0315948A - Address bus test system - Google Patents

Address bus test system

Info

Publication number
JPH0315948A
JPH0315948A JP1151665A JP15166589A JPH0315948A JP H0315948 A JPH0315948 A JP H0315948A JP 1151665 A JP1151665 A JP 1151665A JP 15166589 A JP15166589 A JP 15166589A JP H0315948 A JPH0315948 A JP H0315948A
Authority
JP
Japan
Prior art keywords
address bus
circuit
line
signal
address
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
Application number
JP1151665A
Other languages
Japanese (ja)
Inventor
Masaaki Suzuki
鈴木 政章
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP1151665A priority Critical patent/JPH0315948A/en
Publication of JPH0315948A publication Critical patent/JPH0315948A/en
Pending legal-status Critical Current

Links

Landscapes

  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

PURPOSE:To test the fault of an address bus by providing a comparison circuit comparing an address bus signal, a flip flop circuit for holding a result and a control signal generation circuit controlling a timing. CONSTITUTION:The title system consists of a central processing unit 1 executing a program, a storage circuit 2 storing the program, the comparison circuit 4 comparing the address bus 12 signal from an input/output controller of every kinds with a signal from an input/output controller 3, the flip flop 6 holding the result of the comparison circuit 4 and the control signal generation circuit 5 outputting various timing signals for holding the result. An address '0' and all addresses that the address bus 12 comes to '1' are set in the address bus 12 and the signal from the input/output controller 3 is compared with the signal of the address bus 12. Thus, the abnormal operation of the program and the fault of the address bus can be speedily tested.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、コンピュータのアドレスバス試験方式に関す
る。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a computer address bus test method.

〔従来の技術〕[Conventional technology]

従来、この種のアドレスバス試験は、プログラムを実行
する中央処理装置とプログラムを格納する記憶回路と各
種入出力制御装置から構成され、アドレスバスのあるb
itが” o ”あるいは″1”に固定される障害を、
中央処理装置から記憶回路のある番地にDataを書き
込み、次にDataを読み出して、書き込んだData
と比較することでアドレスバスの試験を行っていた。
Conventionally, this type of address bus test consists of a central processing unit that executes a program, a memory circuit that stores the program, and various input/output control devices.
A failure in which it is fixed to “o” or “1” is
Writes data from the central processing unit to an address in the memory circuit, then reads the data and writes the written data.
The address bus was tested by comparing it with

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

上述した従来のアドレスバスの試験は障害が発生した場
合、障害箇所が記憶回路.データパス,アドレスバスの
いずれかを判断することができなかった。特にWORK
エリアがプログラムエリアより老番地のとき、プログラ
ムエリアで使用していないアドレスのBitをWORK
エリアのアドレスで使用していると、このBitが異常
でもプログラムは見かけ上正常動作するという欠点がる
る。例えば、プログラムエリアがO番地から1000(
H)番地(アドレスバス212Bitのみ“1”)WO
RKエリアが1001 (H)番地(アドレスバス2 
’ 2+ 2 ’ B itが“1”〉から3000 
(H)番地(アドレスバス213212Bitが“1”
)のプログラムにおいては、アドレスバス213Bit
が“O”に固定される障害のとき、プログラムエリアで
は212Bitは゜゛O″のままで正常動作するがプロ
グラムエリアからWORKエリアの3000 (H)番
地の内容を読み出したとき213Bitが“0“に固定
されているので、1000 (H)番地の内容を読み出
し、異常Dataで動作してしまうことになる。
In the conventional address bus test described above, when a failure occurs, the failure location is the memory circuit. It was not possible to determine whether it was the data path or the address bus. Especially WORK
When the area is at an older address than the program area, WORK the bits of addresses that are not used in the program area.
When used as an area address, there is a drawback that the program appears to operate normally even if this bit is abnormal. For example, if the program area is from address O to 1000 (
H) Address (address bus 212 bits only “1”) WO
The RK area is address 1001 (H) (address bus 2
'2+2' Bit is "1"> to 3000
(H) Address (address bus 213212Bit is “1”
) program, the address bus is 213 Bits.
is fixed to "O", 212Bit remains ゜゛O'' in the program area and operates normally, but when the contents of address 3000 (H) of the WORK area are read from the program area, 213Bit is fixed to ``0''. Therefore, the contents of address 1000 (H) will be read and the operation will be performed using abnormal data.

〔問題点を解決するための手段〕[Means for solving problems]

本発明のアドレスバス試験方式は、プログラムを実行す
る中央処理装置と、プログラムを格納する記憶回路と、
各種入出力制御装置からのアドレスバス信号と入出力制
御装置からの信号との比較を行う比較回路と、比較回路
の結果を保持するフリップフロップと、結果を保持する
ための各種タイミング信号を出力する制御信号発生回路
により構成され、アドレスバスにO番地とアドレスバス
がすべて“′1”になる番地を設定し、入出力装置から
の信号線とアドレスバス信号との比較を行うことを有し
ている。
The address bus test method of the present invention includes a central processing unit that executes a program, a storage circuit that stores the program,
A comparison circuit that compares address bus signals from various input/output control devices with signals from the input/output control device, a flip-flop that holds the results of the comparison circuit, and outputs various timing signals to hold the results. It consists of a control signal generation circuit, sets an address where the O address and the address bus are all "'1" on the address bus, and compares the signal line from the input/output device with the address bus signal. There is.

〔実施例〕〔Example〕

次に本発明について図面を参照して説明する。 Next, the present invention will be explained with reference to the drawings.

第1図は本発明の一実施例である。図において、中央処
理装置1,記憶回路2,入出力制御装置3,比較回路4
,制御信号発生回路5,フリップフロップ6,7,AN
D回路8,信号反転回路9,10.11,アドレスバス
線12.データパス線13.メモリリクエスト線14,
IOリクエスト線15,リード線16,ライト線17メ
モリリード線18,メモリライト線19,IOリード線
20,工○ライト線21,マシンサイクルit!!22
,結果出力線23,28.比較データ線24,ゲート線
25,27,結果保持線26により構成されている。
FIG. 1 shows an embodiment of the present invention. In the figure, a central processing unit 1, a memory circuit 2, an input/output control device 3, a comparison circuit 4
, control signal generation circuit 5, flip-flops 6, 7, AN
D circuit 8, signal inversion circuit 9, 10.11, address bus line 12. Data path line 13. memory request line 14,
IO request line 15, lead line 16, write line 17 memory lead line 18, memory write line 19, IO lead line 20, work write line 21, machine cycle it! ! 22
, result output lines 23, 28 . It is composed of a comparison data line 24, gate lines 25 and 27, and a result holding line 26.

第2図は記憶回路2に格納されているプログラムの処理
フローを示す図である。中央処理装置1は記憶回路2か
らプログラムを順次ロードし実行していく。第2図ステ
ップ30は中央処理装置1内部のレジスターにアドレス
O番地を設定する。
FIG. 2 is a diagram showing the processing flow of the program stored in the storage circuit 2. As shown in FIG. The central processing unit 1 sequentially loads programs from the storage circuit 2 and executes them. Step 30 in FIG. 2 sets address O in a register inside the central processing unit 1.

第2図ステップ31のプログラムは命令コードを記憶回
路2からリードするため、中央処理装置1内のプログラ
ムカウンターの内容が出力される様にアドレスバス線1
2にプログラムカウンターの内容を送出する。次に中央
処理装置1はプログラムカウンターで示す記憶回路2の
内容をリードするため、メモリリクエスト線14,リー
ド線16,マシンサイクル1線22に信号を送出する。
Since the program at step 31 in FIG. 2 reads the instruction code from the memory circuit 2, the address bus line 1 is
2, sends the contents of the program counter. Next, the central processing unit 1 sends signals to the memory request line 14, lead line 16, and machine cycle 1 line 22 in order to read the contents of the memory circuit 2 indicated by the program counter.

メモリリクエスト線14,リード線16の信号は、制御
信号発生回路5に入力され、メモリリード信号に変換さ
れメモリリード線18を通り記憶回路2に入力される。
Signals on the memory request line 14 and lead line 16 are input to the control signal generation circuit 5, converted into a memory read signal, and input to the memory circuit 2 through the memory lead line 18.

記憶回路2はこの信号を受信するとデータパス線13に
記憶回路の内容(命令コード)を送出し、中央処理装置
1はこの命令コードを受信し、出力命令であることを知
る。出力命令であると、出力装置のアドレスを記憶回路
2からリードするため、中央処理装置1はアドレスバス
線12にプログラムカウンター+1のアドレスを送出す
るとすぐに、メモリリクエスト線14,リード線16に
信号を送出する。(このときはマシンサイクル1線22
に信号は送出されない。このマシンサイクル1線22の
信号は命令コードをリードするときだけ送出する信号で
ある。〉これらの信号は制御信号発生回路5によりメモ
リリード信号に変換され、メモリリード線18を通り、
記憶回路2からは、データパス線13に記憶回路の内容
が送出され、中央処理装置1がリードする。
When the memory circuit 2 receives this signal, it sends the contents of the memory circuit (instruction code) to the data path line 13, and the central processing unit 1 receives this instruction code and knows that it is an output instruction. If it is an output command, in order to read the address of the output device from the memory circuit 2, the central processing unit 1 sends a signal to the memory request line 14 and lead line 16 as soon as it sends the address of the program counter +1 to the address bus line 12. Send out. (At this time, machine cycle 1 line 22
No signal is sent. This signal on the machine cycle 1 line 22 is a signal sent only when reading an instruction code. > These signals are converted into memory read signals by the control signal generation circuit 5, passed through the memory lead wire 18,
The contents of the memory circuit are sent from the memory circuit 2 to the data path line 13, and are read by the central processing unit 1.

中央処理装置1で出力装置のアドレスが分かると、中央
処理装置1はアドレス線12にすでにリードされている
出力装置のアドレスを送出し、次いでデータパス線13
に第2図ステップ31に示す比較データ○とゲートON
データを送出し、次にエ/○リクエスト線16,ライト
線18に信号を送出する。この信号は制御信号発生回路
5によりメモリリード信号に変換されメモリリード線1
8を通り、記憶回路2に入力されると同時にAND回路
8にも入力される。記憶回路2は0番地の内容を、デー
タバス13に送出し、中央処理装置lでリードするがこ
の内容はプログラム上無効としている。また、メモリリ
ードのみでプログラムには何ら影響を与えない。一方A
ND回路8に入力されたメモリリード信号はすでに入出
力制御装置3に設定されたゲートON信号によりフリッ
プフロップ7のリセットが解除され、フリツプフロツブ
7の出力信号はゲート線27,信号反転回路11を通り
、AND回路8のゲートをONとしているのでAND回
路8に出力され結果保持線26に出力される。このとき
すでにアドレスバス線12にはO番地が出力されていて
、このアドレスO番地は比較回路4にも入力されており
比較データ線24を通った信号Oと比較回路4で比較さ
れ正常ならO,異常なら1が結果出力線28に出力さ扛
、フリップフロップ6に入力されていて、この信号は結
果ラッチ線26に出力された信号によりフリップフロッ
プ6に設定され、結果出力線23を通り入出力制御装置
3に入力される. 一方、結果ラッチ線26を通った信号は信号反転回路1
0を通りフリップフロップ7を動作させる。フリップフ
ロップ7の出力信号はゲート線27を通り信号反転回路
11を通りAND回路8のゲートをOFFする。次に第
2図ステップ33のプログラムで結果をリードするため
、中央処理装置1は前記通り命令コードを記憶回路2か
らリードし入力命令と判断し、さらに記憶回路2の内容
をリードし入力装置アドレスを知り、アドレスバス線l
2に入力装置アドレスを送出し、次にIOリクエスト線
15.リード線16に信号を送出、この信号は信号発生
回路5において、■○リード信号に変換され、IOリー
ド線20に出力され入出力制御装置3に入力される。ア
ドレスバス線に出力された入力装置アドレスでアドレス
マッチがとれた入出力制御装置3は、前記の■○リード
信号により結果出力線23からのデータをデータパス線
13に出力し、この結果を中央処理装置lがリードする
。第3図ステップ34により、結果の判断を行なって異
常なら第2図ステ・ンプ42の異常処理を実行する。ま
た正常なら第2図ステ・ンブ35でゲー1− O F 
Fするため、前記した第2図ゲートONの要領でゲート
をOFFすると入出力制御装置3のゲート線25がOF
FされAND回路8がゲートOFF,フリツプフロツプ
6.7がリセット状態となり回路は動作可能となる。
When the address of the output device is known in the central processing unit 1, the central processing unit 1 sends the address of the output device already read on the address line 12, and then sends the address of the output device already read on the address line 12, and then on the data path line 13.
Comparison data shown in step 31 of Fig. 2 and gate ON
The data is sent, and then signals are sent to the E/○ request line 16 and write line 18. This signal is converted into a memory read signal by the control signal generation circuit 5 and the memory lead line 1
8 and is input to the memory circuit 2 and simultaneously input to the AND circuit 8. The memory circuit 2 sends the contents of address 0 to the data bus 13 and is read by the central processing unit 1, but this content is invalidated in the program. Furthermore, only memory reading does not affect the program. On the other hand, A
The memory read signal input to the ND circuit 8 is reset to the flip-flop 7 by the gate ON signal set in the input/output control device 3, and the output signal of the flip-flop 7 passes through the gate line 27 and the signal inversion circuit 11. , since the gate of the AND circuit 8 is ON, the result is output to the AND circuit 8 and then to the result holding line 26. At this time, the address O has already been output to the address bus line 12, and this address O is also input to the comparison circuit 4, and the comparison circuit 4 compares it with the signal O passed through the comparison data line 24, and if it is normal, the O address is output. , if it is abnormal, 1 is output to the result output line 28 and input to the flip-flop 6. This signal is set to the flip-flop 6 by the signal output to the result latch line 26, and is input through the result output line 23. It is input to the output control device 3. On the other hand, the signal passing through the result latch line 26 is transferred to the signal inverting circuit 1.
0 and operates the flip-flop 7. The output signal of the flip-flop 7 passes through the gate line 27 and the signal inversion circuit 11 to turn off the gate of the AND circuit 8. Next, in order to read the result using the program in step 33 of FIG. 2, the central processing unit 1 reads the instruction code from the memory circuit 2 as described above, determines it as an input command, and then reads the contents of the memory circuit 2 and addresses the input device address. Know the address bus line l
2, and then sends the input device address to the IO request line 15. A signal is sent to the lead wire 16, and this signal is converted into a ■○ lead signal in the signal generating circuit 5, output to the IO lead wire 20, and inputted to the input/output control device 3. The input/output control device 3, which has achieved an address match with the input device address output to the address bus line, outputs the data from the result output line 23 to the data path line 13 by the above-mentioned ■○ read signal, and sends this result to the central Processor l takes the lead. At step 34 in FIG. 3, the result is judged and, if abnormal, the abnormality processing at step 42 in FIG. 2 is executed. Also, if it is normal, the game is 1-OF at Step 35 in Figure 2.
In order to turn the gate OFF, when the gate is turned OFF in the manner described above for turning ON the gate in FIG. 2, the gate line 25 of the input/output control device 3 turns OFF
The gate of the AND circuit 8 is turned OFF, the flip-flop 6.7 is reset, and the circuit becomes operable.

上記により、アドレスバス線12にO番地を設定し、比
較データをOに設定して比較することによってアドレス
バス線12の1に固定される障害が分かる。一方第2図
ステップ36〜41の動作は第2図ステップ30〜35
と同様に行なわれ、アドレスバス線12にFFFF番地
を設定し比較データ1を設定し比較することでアドレス
バス線12の0に固定される障害が分かる。
As described above, by setting the address O on the address bus line 12, setting the comparison data to O, and comparing, a fault fixed to 1 on the address bus line 12 can be found. On the other hand, the operations in steps 36 to 41 in Fig. 2 are performed in steps 30 to 35 in Fig. 2.
By setting the address FFFF on the address bus line 12, setting the comparison data 1, and comparing, it is possible to identify a fault that is fixed to 0 on the address bus line 12.

〔発明の効果〕〔Effect of the invention〕

以上説明したように、本発明は、アドレスバス信号を比
較する比較回路と、結果を保持するためのフリップフロ
ツブ回路およびタイミングの制御を行なう制御信号発生
回路を追加するのみで、従来回路を何ら変更することな
く従来機能の延長として、アドレスバス試験の結果を判
断するプログラムを追加するだけで、プログラムの異常
動作,アドレスバスの障害を速やかに試験できる効果が
ある。
As explained above, the present invention does not require any modification of the conventional circuit by simply adding a comparison circuit for comparing address bus signals, a flip-flop circuit for holding the results, and a control signal generation circuit for controlling timing. By simply adding a program that judges address bus test results as an extension of the conventional functionality without making any changes, it is effective to quickly test for abnormal program operations and address bus failures.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明の実施例を示すブロック図、第2図は本
発明の実施例を動作させるプログラムの処理フローを示
す図である。 図において、1・・・中央処理装置、2・・・記憶回路
、3・・・入出力制御装置、4・・・比較回路、5・・
・制御信号発生回路、6,7・・・フリップフロップ、
8・・・AND回路、9,10.11・・・信号反転回
路、12・・・アドレスバス線、13・・・データパス
線、14・・・メモリリクエスト線、15・・・工○リ
クエスト線、16・・・リード線、17・・・ライト線
、18・・・メモリリード線、1つ・・・メモリライト
線、20・・・IOリード線、21・・・■0ライト線
、22・・・マシンサイクル1線、23・・・結果出力
線、25・・・ゲート線、26・・・結果保持線、27
・・・ゲート線、28・・・結果出力線。
FIG. 1 is a block diagram showing an embodiment of the present invention, and FIG. 2 is a diagram showing a processing flow of a program for operating the embodiment of the present invention. In the figure, 1... Central processing unit, 2... Memory circuit, 3... Input/output control device, 4... Comparison circuit, 5...
・Control signal generation circuit, 6, 7... flip-flop,
8...AND circuit, 9,10.11...Signal inversion circuit, 12...Address bus line, 13...Data path line, 14...Memory request line, 15...Work○ request Line, 16...Lead line, 17...Write line, 18...Memory lead line, 1...Memory write line, 20...IO lead wire, 21...■0 write line, 22...Machine cycle 1 line, 23...Result output line, 25...Gate line, 26...Result holding line, 27
...Gate line, 28...Result output line.

Claims (1)

【特許請求の範囲】[Claims] プログラムを実行する中央処理装置と、前記プログラム
を格納する記憶回路と、入出力制御装置と、前記中央処
理装置からのアドレスバス信号と前記入出力制御装置か
らの信号との比較を行う比較回路と、前記比較回路の結
果を保持するフリップフロップと、結果を前記中央処理
装置からの制御情報に従って前記記憶回路、入出力制御
装置、比較回路、フリップフロップの制御を行なう制御
信号発生回路とより構成され、前記アドレスバスに0番
地とアドレスバスがすべて1になる番地を順次設定し、
前記入出力制御装置からの信号線とアドレスバス信号と
の比較を行いアドレスバスの試験を行うことを特徴とす
るアドレスバス試験方式。
a central processing unit that executes a program; a storage circuit that stores the program; an input/output control unit; and a comparison circuit that compares an address bus signal from the central processing unit with a signal from the input/output control unit. , a flip-flop that holds the results of the comparison circuit, and a control signal generation circuit that uses the results to control the storage circuit, input/output control device, comparison circuit, and flip-flop according to control information from the central processing unit. , sequentially set an address 0 and an address where the address bus is all 1 on the address bus,
An address bus test method characterized in that the address bus is tested by comparing the signal line from the input/output control device with the address bus signal.
JP1151665A 1989-06-13 1989-06-13 Address bus test system Pending JPH0315948A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1151665A JPH0315948A (en) 1989-06-13 1989-06-13 Address bus test system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1151665A JPH0315948A (en) 1989-06-13 1989-06-13 Address bus test system

Publications (1)

Publication Number Publication Date
JPH0315948A true JPH0315948A (en) 1991-01-24

Family

ID=15523555

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1151665A Pending JPH0315948A (en) 1989-06-13 1989-06-13 Address bus test system

Country Status (1)

Country Link
JP (1) JPH0315948A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100357905C (en) * 2004-07-20 2007-12-26 华为技术有限公司 Detection method for failure of address bus

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100357905C (en) * 2004-07-20 2007-12-26 华为技术有限公司 Detection method for failure of address bus

Similar Documents

Publication Publication Date Title
JPH0315948A (en) Address bus test system
JPH1040130A (en) Microcomputer
JPS6339050A (en) Address bus test circuit
JP2503634B2 (en) Micro program controller
JPH01232454A (en) Test system for address bus
JPH0782447B2 (en) DMA data transfer control device
JPS63307543A (en) Debug device
JPH01142948A (en) Symbolic debugger for microcomputer
JPH0594379A (en) Shared memory control system
JPS63111547A (en) Memory control system
JPS59161750A (en) Break control system of debugging device
JPS6236578B2 (en)
JPH01169639A (en) Memory
JPH09325935A (en) Bus switching circuit
JPS63163542A (en) Test circuit
JPH0296257A (en) Diagnostic system for main storage
JPS62248043A (en) Memory switching circuit for fetching microcomputer instruction
JPH0219932A (en) Back-up device for development of microprocessor
JPH0215353A (en) Abnormality setting system at specific address
JPH05241900A (en) Program operation confirmation system of computer
JPH02105230A (en) Semiconductor integrated circuit
JPS62279452A (en) Memory controller
JPS61210441A (en) Bug detecting method for program
JPH096685A (en) Memory device and its error test method
JPH0782407B2 (en) Reset processing method for microprocessor