JPH03147457A - Debugger for peripheral equipment in exchange - Google Patents

Debugger for peripheral equipment in exchange

Info

Publication number
JPH03147457A
JPH03147457A JP28732489A JP28732489A JPH03147457A JP H03147457 A JPH03147457 A JP H03147457A JP 28732489 A JP28732489 A JP 28732489A JP 28732489 A JP28732489 A JP 28732489A JP H03147457 A JPH03147457 A JP H03147457A
Authority
JP
Japan
Prior art keywords
circuit
bus
control circuit
data
control means
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
JP28732489A
Other languages
Japanese (ja)
Inventor
Hideji Hagiwara
萩原 秀治
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 JP28732489A priority Critical patent/JPH03147457A/en
Publication of JPH03147457A publication Critical patent/JPH03147457A/en
Pending legal-status Critical Current

Links

Landscapes

  • Monitoring And Testing Of Exchanges (AREA)
  • Exchange Systems With Centralized Control (AREA)

Abstract

PURPOSE:To attain debugging without need for rewrite of a program and a data from a central control circuit by providing a debug means in addition to a central control means to apply write/read of a data from a terminal equipment to a memory circuit. CONSTITUTION:A debug control circuit y recognizes a request from a terminal equipment 9 via a terminal control circuit 8, controls the circuit 8 to obtain a data inputted to the equipment 9, decodes it and in the case of a memory read request, a reference instruction of the memory circuit 4 and the reference address data for the circuit 4 are obtained. Then the circuit 7 controls a memory access circuit 6 to access the circuit 4 when the bus 5 is idle and to read a required data and controls the circuit 8 to send the readout data to the equipment 9. The equipment 9 displays the content of the sent data from the circuit 4. when the request from the equipment 9 is a memory write request, the circuit 7 recognizes the memory rewrite request from the equipment 9 via the circuit 8 to control the circuit 8 thereby acquiring the rewrite data of the circuit 4 inputted to the equipment 9.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は中央制御回路を有する交換機の周辺装置に係シ
、特に周辺装置の運用動作時に使用可能な交換機におけ
る周辺装置のデバッグ装置に関するものである。
[Detailed Description of the Invention] [Field of Industrial Application] The present invention relates to a peripheral device of a switch having a central control circuit, and more particularly to a debugging device for a peripheral device in a switch that can be used during the operation of the peripheral device. be.

〔従来の技術〕[Conventional technology]

従来、この種の交換機における周辺装置のデバッグ装置
としては、第2図に示すような構成のものが存在してい
た。
Conventionally, as a debugging device for a peripheral device in this type of exchange, there has been one having a configuration as shown in FIG.

この第2図において、21は交換機の周辺装置で、この
交換機の周辺装置21は中央制御回路22とメ毛り回路
23およびバス24ならびに端末制御回路25から構成
されている。26は端末装置で、この端末装置26は端
末制御回路25と接続し、周辺装置21のデバッグ用端
末として使用する。
In FIG. 2, reference numeral 21 denotes a peripheral device of the exchange, and the peripheral device 21 of the exchange is composed of a central control circuit 22, a relay circuit 23, a bus 24, and a terminal control circuit 25. Reference numeral 26 denotes a terminal device, which is connected to the terminal control circuit 25 and used as a debugging terminal for the peripheral device 21.

このように構成された交換機における周辺装置のデバッ
グ装置において、端末装置26から入力されたデバッグ
コマンドはメモリ回路23に記憶されているプログラム
にしたがって中央制御回路22が端末制御回路25を直
接制御し、コマンドの受信、解析と処理を行った後、そ
の結果を再び端末制御回路25を介して端末装置26に
返していた。
In the debugging device for a peripheral device in an exchange configured as described above, the central control circuit 22 directly controls the terminal control circuit 25 according to a program stored in the memory circuit 23 in response to a debug command input from the terminal device 26. After receiving, analyzing and processing the command, the results are returned to the terminal device 26 via the terminal control circuit 25.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

上述した従来の交換機における周辺装置のデバッグ装置
では、端末制御回路を中央制御回路が制御するので中央
制御回路のプログラムのなかに端末制御回路用のプログ
ラムを用意しなければならないという課題があった。
In the above-mentioned conventional debugging device for peripheral devices in exchanges, since the terminal control circuit is controlled by the central control circuit, there is a problem in that a program for the terminal control circuit must be prepared in the program for the central control circuit.

また、中央制御回路は、デバッグ用に端末制御回路を制
御するために、本来の動作とは異なった動作をして、正
確なデバッグができないという課題があった。
Furthermore, in order to control the terminal control circuit for debugging, the central control circuit operates in a manner different from its original operation, making accurate debugging impossible.

〔課題を解決するための手段〕[Means to solve the problem]

本発明の交換機における周辺装置のデバッグ装置は、中
央制御回路を有する交換機の周辺装置において、上記中
央制御回路が運用動作中にデバッグを行うためのデバッ
グ制御手段と、上記中央制御回路がバスを使用している
間を検出しかつ上記デバッグ制御手段がバスを使用して
いるときにその中央制御回路がバスアクセスを禁止する
機能を有するバス制御手段と、このバス制御手段が検出
したバスの使用状態を上記デバッグ制御手段に送出し、
そのデバッグ制御手段からの指示でそのデバッグ制御手
段とバスを接続してそのデバッグ制御手段がバスを使用
し、そのデバッグ制御手段とバスが接続している状態を
上記バス制御手段に通知するメモリアクセス手段と、端
末装置を収容し。
A debugging device for a peripheral device in an exchange according to the present invention is a peripheral device for an exchange having a central control circuit, and includes a debug control means for debugging the central control circuit during operation, and a debug control means for the central control circuit to use a bus. a bus control means having a function of detecting when the debug control means is using the bus and having its central control circuit prohibit bus access when the debug control means is using the bus; and a bus use state detected by the bus control means. is sent to the above debug control means,
Memory access that connects the debug control means and the bus according to instructions from the debug control means, causes the debug control means to use the bus, and notifies the bus control means of the state in which the debug control means and the bus are connected. It houses means and a terminal device.

制御する端末制御手段を備えてなるものである。It is equipped with a terminal control means for controlling.

〔作用〕[Effect]

本発明においては、中央制御手段とは別のデバッグ制御
手段を備え、端末装置からメモリ回路へのデータの書き
込み、読み出しを行う。
In the present invention, a debug control means separate from the central control means is provided to write and read data from the terminal device to the memory circuit.

〔実施例〕〔Example〕

以下、図面に基づき本発明の実施例を詳細に説明する。 Hereinafter, embodiments of the present invention will be described in detail based on the drawings.

第1図は本発明による交換機における周辺装置のデバッ
グ装置の一実施例を示すブロック図である。
FIG. 1 is a block diagram showing an embodiment of a debugging device for a peripheral device in an exchange according to the present invention.

図において、1は周辺装置で、この周辺装置1は中央制
御回路2.バス制御回路3.メモリ回路4、バス5.メ
モリアクセス回路6.デバッグ制御回路7.端末制御回
路8から構成されている。
In the figure, 1 is a peripheral device, and this peripheral device 1 is a central control circuit 2. Bus control circuit 3. Memory circuit 4, bus 5. Memory access circuit 6. Debug control circuit 7. It is composed of a terminal control circuit 8.

9は端末装置で、この端末装置9は端末制御回路8と接
続し、周辺装置1のデバッグ用端末として使用する。
Reference numeral 9 denotes a terminal device, which is connected to the terminal control circuit 8 and used as a debugging terminal for the peripheral device 1.

ここで、中央制御回路2はバス制御回路3を介してバス
5に接続されている。また、メモリ回路4はバス5に接
続され、中央制御回路2の動作に必要なプログラムおよ
びデータを記憶している。
Here, the central control circuit 2 is connected to the bus 5 via the bus control circuit 3. Further, the memory circuit 4 is connected to the bus 5 and stores programs and data necessary for the operation of the central control circuit 2.

また、メモリアクセス回路6はバス5とバス制御回路3
およびデバッグ制御回路7に接続され、このデバッグ制
御回路7の指示にしたがって、バス5へのアクセスを調
停する。
Furthermore, the memory access circuit 6 is connected to the bus 5 and the bus control circuit 3.
and a debug control circuit 7, and arbitrates access to the bus 5 according to instructions from the debug control circuit 7.

そして、デバッグ制御回路7は中央制御回路2が運用動
作中にデバッグを行うためのデバッグ制御手段を構成し
、ぶス制御回路3は中央制御回路2がバスを使用してい
る間を検出しかつ上記デバッグ制御手段がバスを使用し
ているときに中央制御回路2がバスアクセスを禁止する
機能を有するバス制御手段を構成している。
The debug control circuit 7 constitutes debug control means for debugging the central control circuit 2 during operation, and the bus control circuit 3 detects when the central control circuit 2 is using the bus. The central control circuit 2 constitutes a bus control means having a function of prohibiting bus access when the debug control means is using the bus.

また、メモリアクセス回路6はこのバス制御手段が検出
したバスの使用状態を上記デバッグ制御手段に送出し、
そのデバッグ制御手段からの指示でそのデバッグ制御手
段とバス5を接続してそのデバッグ制御手段がバス5を
使用し、そのデバッグ制御手段とバス5が接続している
状態を上記バス制御手段に通知するメモリアクセス手段
を構成し、端末制御回路8は端末装置9を収容し、制御
する端末制御手段を構成している。
Further, the memory access circuit 6 sends the bus usage status detected by the bus control means to the debug control means,
The debug control means connects the debug control means and the bus 5 according to instructions from the debug control means, the debug control means uses the bus 5, and notifies the bus control means of the state in which the debug control means and the bus 5 are connected. The terminal control circuit 8 constitutes a terminal control means for accommodating and controlling the terminal device 9.

つぎにこの第1図に示す実施例の動作を説明する0 まず、中央制御回路2はメモリ回路4に記憶されたプロ
グラムとデータにしたがって周辺装置1の動作に必要な
制御を行う。そして、バス制御回路3では中央制御回路
2とバス5との間のデータの授受を行いながら、メモリ
アクセス回路6に対して中央制御回路2がバス5にアク
セスしているかしていないかの状態を通知する。
Next, the operation of the embodiment shown in FIG. 1 will be explained. First, the central control circuit 2 performs necessary control for the operation of the peripheral device 1 according to the program and data stored in the memory circuit 4. The bus control circuit 3 transmits and receives data between the central control circuit 2 and the bus 5, and the memory access circuit 6 determines whether the central control circuit 2 is accessing the bus 5 or not. Notify.

一方、周辺装置1を通常の動作状態のtまで、メモリ回
路4に記憶されているデータを参照するために、端末装
置9に参照データの格納されているアドレスとそのデー
タのバイト数を入力する。
On the other hand, in order to refer to the data stored in the memory circuit 4 while the peripheral device 1 is in the normal operating state t, the address where the reference data is stored and the number of bytes of the data are input to the terminal device 9. .

そして、端末装R9は入力されたデータを端末制御回路
8に送出する。この端末制御回路8は、端末装置9から
データが送出されると、デバッグ制御回路Tへ通知を行
う。
The terminal R9 then sends the input data to the terminal control circuit 8. This terminal control circuit 8 notifies the debug control circuit T when data is sent from the terminal device 9.

このデバッグ制御回路Tでは、端末制御回路8を介して
端末装置9からの要求があることを知シ、端末制御回路
8を制御して、端末装置9に入力されたデータを得てそ
れを解釈し、例えば、メモリ読み出し要求の場合はメモ
リ回路4の参照命令およびメモリ回路4の参照アドレス
データを得る。
This debug control circuit T learns that there is a request from the terminal device 9 via the terminal control circuit 8, controls the terminal control circuit 8, obtains the data input to the terminal device 9, and interprets it. For example, in the case of a memory read request, a reference command for the memory circuit 4 and reference address data for the memory circuit 4 are obtained.

つぎに、デバッグ制御回路7は、メモリアクセス回路6
を制御してバス5が空であるときにメそり回路4をアク
セスし、必要なデータを読み出し、端末制御回路8を制
御して端末装置9に読み出したデータを送出する。端末
装置9は送られたメモリ回路4の内容を表示する。
Next, the debug control circuit 7 includes a memory access circuit 6
When the bus 5 is empty, the memory circuit 4 is accessed to read out necessary data, and the terminal control circuit 8 is controlled to send the read data to the terminal device 9. The terminal device 9 displays the sent contents of the memory circuit 4.

また、端末装置9からの要求がメモリ書き込み要求の場
合には、デバッグ制御回路7が端末制御回路8を介して
端末装置9からのメモリ書き換え要求があることを知シ
、端末制御回路8を制御して端末装置9に人力されたメ
モリ回路4の書き換えデータを得る。
Further, when the request from the terminal device 9 is a memory write request, the debug control circuit 7 learns via the terminal control circuit 8 that there is a memory rewrite request from the terminal device 9, and controls the terminal control circuit 8. Then, the rewritten data of the memory circuit 4 manually entered into the terminal device 9 is obtained.

そして、デバッグ制御回路Tは、メモリアクセス回路6
よシバス5の空もしくは使用中の情報を読み出して空状
態となったときにメモリアクセス回路6にバス5への接
続を指示し、メモリ回路4へ端末装置9からのデータを
書込む。
The debug control circuit T includes a memory access circuit 6
Information on whether the bus 5 is empty or in use is read out, and when the bus 5 becomes empty, a memory access circuit 6 is instructed to connect to the bus 5, and data from the terminal device 9 is written into the memory circuit 4.

メモリアクセス回路6は、デバッグ制御回路7からバス
5へのアクセスが行われている間バス制御回路3に対し
てバス使用中を伝える。
The memory access circuit 6 notifies the bus control circuit 3 that the bus is in use while the debug control circuit 7 is accessing the bus 5.

ここで、もし、メモリアクセス回路6がバス5にアクセ
スを行っている間に中央制御回路2がバスアクセスしよ
うとしても、バス制御回路3が中央制御回路2に対して
バス5へのアクセスを停止させる。
Here, if the central control circuit 2 attempts to access the bus while the memory access circuit 6 is accessing the bus 5, the bus control circuit 3 will stop the central control circuit 2 from accessing the bus 5. let

なお、この第1図に示す実施例では、端末装置送装置1
のバス5に接続されるメモリ回データの読み出し、書き
込みについて説明を1−なったが、バス5に接続される
メモリ回路4でない別のインタフェース回路であっても
同様にしてデータの読み出し、書き込みを行うことがで
きる。したがって、メモリ回路4への読み出し。
In the embodiment shown in FIG. 1, the terminal device sending device 1
1- explains how to read and write data from the memory circuit connected to the bus 5, but it is also possible to read and write data in the same way even when using another interface circuit other than the memory circuit 4 connected to the bus 5. It can be carried out. Therefore, reading to the memory circuit 4.

書き込みのみに本発明の範囲は限定されない。The scope of the present invention is not limited to writing only.

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

以上説明したように本発明は、中央制御手段とは別のデ
バッグ制御手段を備え、端末装置からメモリ回路へのデ
ータの書き込み、読み出しを行うことによシ、中央制御
回路のプログラムおよびデータを書きかえる必要がなく
、また、中央制御回路の動作を通常運用時とかえること
なくデバッグができ、容易に正確なデバッグができる効
果がある。
As explained above, the present invention includes a debug control means separate from the central control means, and writes and reads programs and data for the central control circuit by writing and reading data from the terminal device to the memory circuit. There is no need to change the central control circuit, and debugging can be performed without changing the operation of the central control circuit from normal operation, making it possible to easily and accurately debug.

また、バス制御回路とメモリアクセス回路およびデバッ
グ制御回路なちびに端末制御回路のノー−ドウエアと7
アームウエアは一度開発を行なえば異なる周辺装置に汎
用的に使用できるという効果がある。
In addition, the bus control circuit, memory access circuit, debug control circuit, and terminal control circuit nodeware and 7
Armware has the advantage that once developed, it can be used universally for different peripheral devices.

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

第1図は本発明による交換機における周辺装置のデバッ
グ装置の一実施例を示すブロック図、第2図は従来の交
換機における周辺装置のデバッグ装置の一例を示すブロ
ック図である。 1・・・・周辺装置、2・・・・中央制御回路、311
参〇・バス制御回路、4・・・もメモリ回路、5・・・
・バス、6・・・・メモリアクセス回路、T・・・・デ
バッグ制御回路、8・Φ・一端末制御回路、9・・・・
端末装置。
FIG. 1 is a block diagram showing an embodiment of a debugging device for a peripheral device in an exchange according to the present invention, and FIG. 2 is a block diagram showing an example of a debugging device for a peripheral device in a conventional exchange. 1...Peripheral device, 2...Central control circuit, 311
〇・Bus control circuit, 4...also memory circuit, 5...
・Bus, 6...Memory access circuit, T...Debug control circuit, 8・Φ・One terminal control circuit, 9...
Terminal device.

Claims (1)

【特許請求の範囲】[Claims] 中央制御回路を有する交換機の周辺装置において、前記
中央制御回路が運用動作中にデバッグを行うためのデバ
ッグ制御手段と、前記中央制御回路がバスを使用してい
る間を検出しかつ前記デバッグ制御手段がバスを使用し
ているときに該中央制御回路がバスアクセスを禁止する
機能を有するバス制御手段と、このバス制御手段が検出
したバスの使用状態を前記デバッグ制御手段に送出し、
該デバッグ制御手段からの指示で該デバッグ制御手段と
バスを接続して該デバッグ制御手段がバスを使用し、該
デバッグ制御手段とバスが接続している状態を前記バス
制御手段に通知するメモリアクセス手段と、端末装置を
収容し、制御する端末制御手段を備えてなることを特徴
とする交換機における周辺装置のデバッグ装置。
In a peripheral device of an exchange having a central control circuit, the central control circuit includes debug control means for debugging during operation, and the debug control means detects when the central control circuit is using a bus. bus control means having a function of prohibiting the central control circuit from accessing the bus when the central control circuit is using the bus; and sending the bus usage state detected by the bus control means to the debug control means;
Memory access for connecting the debug control means and a bus according to instructions from the debug control means, allowing the debug control means to use the bus, and notifying the bus control means of a state in which the debug control means and the bus are connected. 1. A debugging device for a peripheral device in an exchange, comprising: a device for debugging a peripheral device in an exchange; and a terminal control device for accommodating and controlling a terminal device.
JP28732489A 1989-11-01 1989-11-01 Debugger for peripheral equipment in exchange Pending JPH03147457A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP28732489A JPH03147457A (en) 1989-11-01 1989-11-01 Debugger for peripheral equipment in exchange

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP28732489A JPH03147457A (en) 1989-11-01 1989-11-01 Debugger for peripheral equipment in exchange

Publications (1)

Publication Number Publication Date
JPH03147457A true JPH03147457A (en) 1991-06-24

Family

ID=17715887

Family Applications (1)

Application Number Title Priority Date Filing Date
JP28732489A Pending JPH03147457A (en) 1989-11-01 1989-11-01 Debugger for peripheral equipment in exchange

Country Status (1)

Country Link
JP (1) JPH03147457A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011175537A (en) * 2010-02-25 2011-09-08 Toshiba Corp Apparatus and method for processing information

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011175537A (en) * 2010-02-25 2011-09-08 Toshiba Corp Apparatus and method for processing information

Similar Documents

Publication Publication Date Title
JPS582761A (en) Method of testing unit
JPH03147457A (en) Debugger for peripheral equipment in exchange
JP2597409B2 (en) Microcomputer
JPH0713884A (en) Method for diagnosing input/output device
JP2758257B2 (en) Computer system
JPH0250495B2 (en)
JPH05225361A (en) Register rewriting system
JPH03144705A (en) Operation state monitor for programmable controller
JPH03208158A (en) Electronic controller
JPH0635747A (en) Debug supporting device
JPH04124738A (en) Microprogram controller
JP2793258B2 (en) Data setting method for positioning control device
JPS60142754A (en) Programming device
JPH06103471B2 (en) Program evaluation device
JPS6238746B2 (en)
JPS63282852A (en) Stand-by system diagnosing system in duplex processing system
JPH1027153A (en) Bus transfer device
JPH04148344A (en) Rom emulator
KR890008681A (en) Processor control unit
JPS61138344A (en) Debugging system
JPH01161556A (en) Memory controlling circuit
JPS6061841A (en) Control system of program evaluating device
JPS6227846A (en) Input and output channel
JPH02297682A (en) Microcomputer
JPS63170752A (en) Trace circuit