JPS63136236A - Switching device debugging - Google Patents

Switching device debugging

Info

Publication number
JPS63136236A
JPS63136236A JP61283418A JP28341886A JPS63136236A JP S63136236 A JPS63136236 A JP S63136236A JP 61283418 A JP61283418 A JP 61283418A JP 28341886 A JP28341886 A JP 28341886A JP S63136236 A JPS63136236 A JP S63136236A
Authority
JP
Japan
Prior art keywords
debugging
cpu
microprocessor
general
section
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
JP61283418A
Other languages
Japanese (ja)
Inventor
Hiroshi Watanabe
浩 渡辺
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.)
Toshiba Corp
Original Assignee
Toshiba 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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP61283418A priority Critical patent/JPS63136236A/en
Publication of JPS63136236A publication Critical patent/JPS63136236A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

PURPOSE:To obtain a debugging device that can debug various microprocessors by using switching circuit to perform changeover between the debug device for a CPU of the microprocessor and that the a general-purpose CPU. CONSTITUTION:When a debugging job is performed concerning a CPU part, the function of a CPU part 1 in a microprocessor 10 is stopped by a command given from a switching circuit 23 and buffers 21 and 23 are validated. Thus, a debugging device 30 is connected to a user system 40 via both buffers 21 and 22. Then the device 30 debugs the functions related to the CPU like a normal debugging job. Then the peripheral functions are debugged by actuating the system 40 via a peripheral function part 2 of the processor 10. Thus it is possible to obtain a debugging device that can debug various microprocessors including the CPU parts and peripheral function parts like general-purpose microprocessor.

Description

【発明の詳細な説明】 〔発明の目的〕 (産業上の利用分野) 本発明はマイクロプロセッサを用いるシステムのソフト
ウェアおよびハードウェアに関してデバッグを行うため
のデバッグ用切替装置に関するもので、特に多品種のマ
イクロプロセッサのデバッグに使用されるものである。
[Detailed Description of the Invention] [Object of the Invention] (Industrial Application Field) The present invention relates to a debugging switching device for debugging software and hardware of a system using a microprocessor, and particularly to a debugging switching device for debugging software and hardware of a system using a microprocessor. It is used for debugging microprocessors.

(従来の技術) システムのソフトウェアおよびハードウェア上のバグを
除去するために各種のデバッグ装置が開発されている。
(Prior Art) Various debugging devices have been developed to remove bugs in system software and hardware.

これは例えば使用されているマイクロプロセッサが有す
るあらゆる命令をステップを追って実行し、任意の番地
のメモリ内容を参照することができる装置であって、一
般に汎用プロセッサの品種別にデバッグ装置が作られて
いる。
This is, for example, a device that can step by step execute every instruction that the microprocessor in use has and reference the memory contents at any address, and debug devices are generally created for each type of general-purpose processor. .

このようなデバッグ装置としては例えば汎用CPUとし
て広く用いられているインテル社18085用、モトロ
ーラ社M6800用、ザイログ社Z80用等がある。
Examples of such debugging devices include those for Intel Corporation 18085, Motorola Corporation M6800, and Zilog Corporation Z80, which are widely used as general-purpose CPUs.

しかしながら、最近開発されているマイクロプロセッサ
の中には汎用プロセッサの機能の他に入出力装置の制御
、カウンタ、DMA等の周辺機能を内臓したものが増加
している。このようなマイクロプロセッサのデバッグを
行うには従来のデバッグ装置をそのまま使用することが
できず、周辺機能のデバッグ機能を付加したそれぞれ専
用のデバッグ装置を準備する必要がある。しかもこの様
なデバッグ装置を使用するにはユーザシステム中のマイ
クロプロセッサをソケットから取外し、そのCPUの機
能をデバッグ装置内の評価用CPUに置換えることによ
りデバッグを行うようにしている。
However, an increasing number of recently developed microprocessors have built-in peripheral functions such as input/output device control, counters, and DMA in addition to general-purpose processor functions. To debug such a microprocessor, conventional debugging equipment cannot be used as is, and it is necessary to prepare dedicated debugging equipment for each peripheral function. Furthermore, in order to use such a debugging device, debugging is performed by removing the microprocessor in the user system from the socket and replacing the functions of the CPU with an evaluation CPU in the debugging device.

また、マイクロプロセッサを基本としたコントローラで
あってマイクロプロセッサを取外し不可能なはんだ付は
等で固着してなるマイクロコントローラに周辺機能を拡
張したものをデバッグするためには元のコントローラに
ない機能拡張部分用のデバッグ機能部を別の基板上に作
製し、専用のケーブルで接続する必要がある。また、デ
バッグを行うために固着されたマイクロプロセッサを取
外すことは特にフラットパッケージタイプの場合には煩
雑な作業である上、リードの破損等を招きやすく、信頼
性上からも問題がある。
In addition, in order to debug a microcontroller based on a microprocessor, in which the microprocessor is fixed with non-removable soldering, etc., and peripheral functions have been expanded, it is necessary to add functions that are not present in the original controller. It is necessary to create a debug function section for each section on a separate board and connect it with a dedicated cable. Furthermore, removing a fixed microprocessor for debugging is a complicated task, especially in the case of a flat package type, and is also prone to lead breakage, which poses problems in terms of reliability.

(発明が解決しようとする問題点) このように従来のマイクロプロセッサ用のデバッグ装置
においては、周辺機能の存在のために内臓CPUが汎用
のCPUと同等の機能を有している場合でも専用のデバ
ッグ装置が必要になったり、専用の拡張部分を設けなけ
ればならないという問題がある他、マイクロプロセッサ
の実装形態によっては作業性にも問題を有している。
(Problems to be Solved by the Invention) As described above, in conventional debugging devices for microprocessors, even if the built-in CPU has the same functions as a general-purpose CPU, due to the existence of peripheral functions, a dedicated In addition to problems such as the need for a debugging device and the need to provide a dedicated extension section, there are also problems in workability depending on the implementation form of the microprocessor.

本発明はこの様な問題点を解決するためになされたもの
で、汎用マイクロプロセッサと同様のCPU部と周辺機
能部とを含む各種のマイクロプロセッサのデバッグを行
うことが可能なデバッグ装置を提供することを目的とす
る。
The present invention has been made to solve these problems, and provides a debugging device capable of debugging various microprocessors including a CPU section and a peripheral function section similar to general-purpose microprocessors. The purpose is to

〔発明の構成〕[Structure of the invention]

(問題点を解決するための手段) 本発明にかかるデバッグ用切替装置においては、汎用C
PUと同じ機能を有するCPt1部と周辺機能部とを含
むマイクロプロセッサにより制御されるデバッグ対象と
汎用CPU用デバッグ装置との間に接続され、汎用CP
U用のデバッグ装置とユーザシステムとの間の命令およ
びデータを中継するバッファと、CPU部に関連するデ
バッグを行うときは汎用CPU用デバッグ装置からデバ
ッグ対象に対して命令およびデータを与え、周辺機能部
に関連するデバッグを行うときは本発明のデパック用切
替装置に搭載されたマイクロプロセッサの周辺機能部か
らデバッグ対象に対して命令およびデータを与えるよう
にしている。
(Means for solving the problem) In the debugging switching device according to the present invention, a general-purpose C
The general-purpose CPU is connected between a debugging target controlled by a microprocessor that includes a CPt1 unit and a peripheral function unit that have the same functions as the PU, and a general-purpose CPU debugging device.
A buffer that relays instructions and data between the U debug device and the user system, and a buffer that relays instructions and data between the U debug device and the user system, and a buffer that provides instructions and data to the debug target from the general-purpose CPU debug device when debugging related to the CPU section, and peripheral functions. When performing debugging related to the depacking section, instructions and data are given to the debugging target from the peripheral function section of the microprocessor installed in the depacking switching device of the present invention.

(作 用) 本発明のデバッグ装置ではデバッグを行うシステム等に
用いられるマイクロプロセッサのCPU部が汎用CPU
と同じ構成を有する場合、汎用CPU用のデバッグ装置
を用いてCPUに関するデバッグを行うようにし、また
周辺機能部についてのデバッグを行うときは本発明のデ
パック用切替装置に搭載されたマイクロプロセッサの周
辺機能部を用いてデバッグを行う。しだがってCPU部
分が汎用CPUと同じであれば、汎用CPU用のデバッ
グ装置をそのまま使用することができ、従来のデバッグ
装置を変更することなく使用することが可能になる。
(Function) In the debugging device of the present invention, the CPU section of the microprocessor used in the system etc. to be debugged is a general-purpose CPU.
When debugging the CPU is performed using a debugging device for a general-purpose CPU, and when debugging the peripheral function section, the peripheral of the microprocessor installed in the depacking switching device of the present invention is used. Debugging is performed using the functional section. Therefore, if the CPU part is the same as a general-purpose CPU, a debugging device for a general-purpose CPU can be used as is, and a conventional debugging device can be used without modification.

(実施例) 以下、本発明にかかるデバッグ装置の実施例のいくつか
を図面を参照して詳細に説明する。
(Embodiments) Hereinafter, some embodiments of the debugging device according to the present invention will be described in detail with reference to the drawings.

第1図は本発明にかかるデバッグ用切替え装置の一実施
例を含むデバッグシステムのブロック図であって、汎用
CPU用のデバッグ装置30とデバッグ対象であるユー
ザシステム40との間に切替装置20が接続されている
状態を示している。
FIG. 1 is a block diagram of a debug system including an embodiment of a debug switching device according to the present invention, in which a switching device 20 is provided between a general-purpose CPU debug device 30 and a user system 40 to be debugged. Indicates a connected state.

この切替装置20はそれぞれデバッグ装置およびユーザ
システムとのインタフェースを行うバッファ21および
22とこれらのバッファおよびCPUに対して接続され
た切替回路23を備えている。またこの切替装置はマイ
クロプロセッサを取付けるためのソケットを備えており
、このソケットに実装されるマイクロプロセッサを交換
することにより、マイクロプロセッサの周辺機能部を交
換できるようになっている。このソケットを介してマイ
クロプロセッサ10のCPU部1および周辺機能部2が
バッファ部21および22とデータバス24で、また切
替回路23と制御線25で接続される。
This switching device 20 includes buffers 21 and 22 that interface with a debug device and a user system, respectively, and a switching circuit 23 connected to these buffers and the CPU. This switching device also includes a socket for mounting a microprocessor, and by replacing the microprocessor mounted in this socket, the peripheral function section of the microprocessor can be replaced. Through this socket, the CPU section 1 and peripheral function section 2 of the microprocessor 10 are connected to the buffer sections 21 and 22 via a data bus 24 and to the switching circuit 23 via a control line 25.

切替回路23はCPU部1に対してその機能を停止させ
る信号、例えばDISABLEを出力するとともにバッ
ファ21および22をデバッグの内容に応じて作動させ
るものである。
The switching circuit 23 outputs a signal, for example DISABLE, to the CPU section 1 to stop its function, and operates the buffers 21 and 22 according to the content of debugging.

まずCPU部に関連するデバッグを行う場合には、切替
回路23からの指令によりマイクロプロセッサ10中の
CPU部1の機能を停止させ、バッファ21および22
を有効(ENABLE)にする。したがってデバッグ装
置30とユーザシステム40とがバッファ21および2
2を介して接続された状態となるので、通常のデバッグ
と同様にデバッグ装置30によりCPUに関連した機能
についてのデバッグを行う。
First, when debugging related to the CPU section, the function of the CPU section 1 in the microprocessor 10 is stopped by a command from the switching circuit 23, and the functions of the CPU section 1 in the microprocessor 10 are stopped.
ENABLE. Therefore, the debug device 30 and the user system 40 are connected to the buffers 21 and 2.
2, the debugging device 30 debugs functions related to the CPU in the same way as normal debugging.

次に周辺機能に関するデバッグを行うにはマイクロプロ
セッサの周辺機能部2を用いてユーザシステム40を作
動させ、周辺機能のデバッグを行うようにする。ここで
周辺機能としてはポートのシリアル転送/パラレル転送
変換機能、DMA。
Next, in order to debug peripheral functions, the user system 40 is operated using the peripheral function section 2 of the microprocessor, and the peripheral functions are debugged. Here, the peripheral functions include port serial transfer/parallel transfer conversion function and DMA.

カウンタ、時計、液晶表示器ドライバ、クロック、A/
D変換等がある。
Counters, clocks, LCD display drivers, clocks, A/
There are D conversions, etc.

ここで、切替回路23からの信号により各動作部の機能
を有効あるいは無効にするための回路構成の一例は第2
図に示されている。
Here, an example of a circuit configuration for enabling or disabling the function of each operating section by a signal from the switching circuit 23 is as follows.
As shown in the figure.

同図によれば端子A、 8間で双方向に信号を伝達でき
るトライステート論理回路に切替信号Ssを人力するこ
とにより、CPU部での入出力を無効化するようにして
いる。
According to the figure, by manually applying a switching signal Ss to a tri-state logic circuit that can transmit signals bidirectionally between terminals A and 8, input/output in the CPU section is disabled.

第3図は本発明にかかるデバッグ用切替装置の他の実施
例を示すブロック図である。
FIG. 3 is a block diagram showing another embodiment of the debug switching device according to the present invention.

この実施例ではユーザシステム60中でマイクロプロセ
ッサ10がユーザ回路部50とはんだ付は等の分離不可
能な状態で取付けられており、マイクロプロセッサ中の
CPU部1および周辺機能部2とユーザ回路部50は相
互にアドレスバス81、データバス82、コントロール
バス83で相互に接続され、また、周辺機能部2のI1
0ボートとユーザ回路部50とが接続されている。この
様なユーザシステム60は汎用CPU用のデバッグ装置
30と本発明にかかるデバッグ用切替装置70を介して
接続される。切替装置70は切替回路71およびバッフ
ァ72を備えており、バッファ72は各バスにより送ら
れる信号をデバッグ装置30とユーザシステム60との
間でインタフェースするものである。また、切替回路7
1はCPU部1に対し例えばD I 5ABLE信号を
出力してCPUとしての機能を停止させるようにしてい
る。したがってそのためのビンにDISABLE信号を
供給すると、マイクロプロセッサ]0中のCPU部1は
不動作となるのでユーザ回路部50をデバッグ装置30
により駆動しデバッグを行うことができる。また、ユー
ザ回路部50の周辺機能をデバッグするときは、マイク
ロプロセッサ10の周辺機能部2でユーザ回路部50の
周辺機能を駆動させ、デバッグを行うことができる。
In this embodiment, a microprocessor 10 is attached to a user circuit section 50 in a user system 60 in an inseparable manner, such as by soldering, and the CPU section 1 and peripheral function section 2 in the microprocessor are connected to the user circuit section. 50 are connected to each other by an address bus 81, a data bus 82, and a control bus 83, and I1 of the peripheral function section 2
The 0 port and the user circuit unit 50 are connected. Such a user system 60 is connected to a debug device 30 for a general-purpose CPU via a debug switching device 70 according to the present invention. The switching device 70 includes a switching circuit 71 and a buffer 72, and the buffer 72 interfaces the signals sent by each bus between the debug device 30 and the user system 60. In addition, the switching circuit 7
1 outputs, for example, a D I 5ABLE signal to the CPU section 1 to stop its function as a CPU. Therefore, when the DISABLE signal is supplied to the bin for that purpose, the CPU section 1 in the microprocessor]0 becomes inoperable, so the user circuit section 50 is transferred to the debug device 30.
can be driven and debugged. Furthermore, when debugging the peripheral functions of the user circuit section 50, the peripheral functions of the user circuit section 50 can be driven by the peripheral function section 2 of the microprocessor 10 to perform debugging.

以上の実施例ではCPUの機能を停止させる命令として
DISABLE信号を例示しているが、これに限ること
なくハードウェア上可能な各種の機能停止手段を用いる
ことができる。
In the above embodiments, the DISABLE signal is used as an example of a command to stop the CPU function, but the present invention is not limited to this, and various hardware-based function stop means can be used.

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

以上のように本発明によれば、マイクロプロセッサのC
PUと汎用CPU用のデバッグ装置とを切替える切替回
路を備えているので、ユーザシステムのCPU部分をデ
バッグするときは汎用CPU用デバッグ装置を用い、ま
た、周辺機能部をデバッグするときはマイクロプロセッ
サの周辺機能部を用いてデバッグを行うようにしている
ので汎用CPUを基本として周辺機能を拡張したマイク
ロプロセッサの場合でもマイクロプロセッサごとに専用
のデバッグ装置を準備する必要がなく、設備費用の低減
化を図ることができる。
As described above, according to the present invention, the microprocessor C
It is equipped with a switching circuit that switches between the PU and a general-purpose CPU debugging device, so when debugging the CPU part of the user system, the general-purpose CPU debugging device is used, and when debugging the peripheral function section, the microprocessor's debugging device is used. Since debugging is performed using the peripheral function section, there is no need to prepare a dedicated debugging device for each microprocessor, even if the microprocessor is based on a general-purpose CPU and has expanded peripheral functions, reducing equipment costs. can be achieved.

また、ユーザシステム上にはんだ付は等で固着されたマ
イクロプロセッサであってもそのCPUの機能を停止で
きる場合にはマイクロプロセッサを取外すことなく作業
効率良くシステムのデバッグを行うことが可能となる。
Further, even if the microprocessor is fixed to the user system by soldering or the like, if the CPU function can be stopped, the system can be debugged efficiently without removing the microprocessor.

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

第1図は本発明にかかる切替装置を用いたデバッグの様
子を示すブロック図、第2図はCPUの切替えを行う切
替回路の一例を示す回路図、第3図は本発明の他の実施
例を示すブロック図である。 1・・・CPU部、2・・・周辺機能部、10・・・マ
イクロプロセッサ、20.70・・・切替装置、21゜
22.72・・・バッファ、23.71・・・切替回路
、30・・・デバッグ装置、40.60・・・ユーザシ
ステム、50・・・ユーザ回路部、81・・・アドレス
バス、82・・・データバス、83・・・コントロール
バス。
FIG. 1 is a block diagram showing debugging using a switching device according to the present invention, FIG. 2 is a circuit diagram showing an example of a switching circuit for switching CPUs, and FIG. 3 is another embodiment of the present invention. FIG. DESCRIPTION OF SYMBOLS 1...CPU part, 2...Peripheral function part, 10...Microprocessor, 20.70...Switching device, 21°22.72...Buffer, 23.71...Switching circuit, 30...Debug device, 40.60...User system, 50...User circuit section, 81...Address bus, 82...Data bus, 83...Control bus.

Claims (1)

【特許請求の範囲】 1、汎用CPUと同じ機能を有するCPUと周辺機能部
とを含むマイクロプロセッサにより制御されるデバッグ
対象と汎用CPU用デバッグ装置との間に接続され、前
記汎用CPU用のデバッグ装置とユーザシステムとの間
の命令およびデータを中継するバッファを備え、前記C
PU部に関連するデバッグを行うときは前記汎用CPU
用デバッグ装置から前記デバッグ対象に対して命令およ
びデータを与え、前記周辺機能部に関連するデバッグを
行うときは前記周辺機能部から前記デバッグ対象に対し
て命令およびデータを与えるようにしてなるデバッグ用
切替装置。 2、マイクロプロセッサがソケットによりデバッグ対象
に着脱自在に取付けられて切替部およびバッファと接続
されたものである特許請求の範囲第1項記載のデバッグ
用切替装置。 3、マイクロプロセッサがデバッグ対象に固着されてお
り、切替部が前記マイクロプロセッサに対してその機能
を必要に応じ停止させるものである特許請求の範囲第1
項記載のデバッグ用切替装置。
[Scope of Claims] 1. Connected between a debugging device for a general-purpose CPU and a debugging target controlled by a microprocessor that includes a CPU having the same functions as a general-purpose CPU and a peripheral function unit, and a debugging device for the general-purpose CPU; a buffer for relaying instructions and data between the device and the user system;
When performing debugging related to the PU section, the general-purpose CPU
For debugging, the debugging device provides instructions and data to the debug target, and when debugging related to the peripheral function unit, the peripheral function unit provides instructions and data to the debug target. Switching device. 2. The switching device for debugging according to claim 1, wherein the microprocessor is detachably attached to the object to be debugged by a socket and connected to the switching section and the buffer. 3. Claim 1, wherein a microprocessor is fixed to a debug target, and the switching unit causes the microprocessor to stop its function as necessary.
Debug switching device described in section.
JP61283418A 1986-11-28 1986-11-28 Switching device debugging Pending JPS63136236A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61283418A JPS63136236A (en) 1986-11-28 1986-11-28 Switching device debugging

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61283418A JPS63136236A (en) 1986-11-28 1986-11-28 Switching device debugging

Publications (1)

Publication Number Publication Date
JPS63136236A true JPS63136236A (en) 1988-06-08

Family

ID=17665272

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61283418A Pending JPS63136236A (en) 1986-11-28 1986-11-28 Switching device debugging

Country Status (1)

Country Link
JP (1) JPS63136236A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1297736C (en) * 2001-04-27 2007-01-31 株式会社京浜 Engine intake device

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61233846A (en) * 1985-04-09 1986-10-18 Oki Electric Ind Co Ltd Microcomputer

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61233846A (en) * 1985-04-09 1986-10-18 Oki Electric Ind Co Ltd Microcomputer

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1297736C (en) * 2001-04-27 2007-01-31 株式会社京浜 Engine intake device

Similar Documents

Publication Publication Date Title
KR19990073754A (en) Intelligent input / output controller for switching interface functions
KR20110097447A (en) System on chip having interrupt proxy and processing method thereof
JPS63136236A (en) Switching device debugging
JP3394834B2 (en) Debugging method for devices that make up a multiprocessor system
KR970002412B1 (en) Communication coprocessor board capable of using dma
JP2664777B2 (en) Function expansion method
JP2601359B2 (en) Concurrent processing microprocessor
JPH09288593A (en) In-circuit emulator
JPH03268159A (en) Console connection system for maintenance
JPH04114241A (en) Debugging device
JPH0594328A (en) Debugger and emulator
JPH08212110A (en) Remote maintenance method for system
JPH03290750A (en) Dma transfer method
JPS61223965A (en) Data transfer circuit
JPH04167043A (en) Portable electronic equipment
JPH04138533A (en) Maintenance control system for processor
JPH09198273A (en) Asic with built-in arithmetic processing circuit
JPH05204834A (en) Method for controlling tri-state bus buffer
JPH0635846A (en) Semiconductor integrated circuit device containing dma function
JPH05108553A (en) Bus coupling device
JPS62168258A (en) Cpu switching circuit
JPS6230658B2 (en)
JPH11259378A (en) Information processing system
JPH05204878A (en) Interface control system
JPH06223046A (en) Bus tracing execution method