JPS6231380B2 - - Google Patents

Info

Publication number
JPS6231380B2
JPS6231380B2 JP55186902A JP18690280A JPS6231380B2 JP S6231380 B2 JPS6231380 B2 JP S6231380B2 JP 55186902 A JP55186902 A JP 55186902A JP 18690280 A JP18690280 A JP 18690280A JP S6231380 B2 JPS6231380 B2 JP S6231380B2
Authority
JP
Japan
Prior art keywords
control circuit
external control
microprocessor
clock pulse
circuit
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.)
Expired
Application number
JP55186902A
Other languages
Japanese (ja)
Other versions
JPS57109059A (en
Inventor
Tomohito Shibata
Shigeru Hashimoto
Masaaki Kobayashi
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.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP55186902A priority Critical patent/JPS57109059A/en
Publication of JPS57109059A publication Critical patent/JPS57109059A/en
Publication of JPS6231380B2 publication Critical patent/JPS6231380B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Description

【発明の詳細な説明】 本発明はダイナミツク動作のマイクロプロセツ
サを有するデータ処理システムにおける外部制御
回路のデバツグ制御機能にかんするものである。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a debug control function for an external control circuit in a data processing system having a dynamically operating microprocessor.

マイクロプロセツサを有するデータ処理システ
ムにおける外部制御回路は、バスコントローラ、
タイミング発生回路、アドレスデコーダ、レジス
タ群等の同期動作回路を含むが、この制御回路の
機能は重要であるので、時に応じ機能チエツク
(デバツグ)が必要である。スタテイツク動作が
可能なマイクロプロセサを用いたシステムにおい
ては、上記の外部制御回路のデバツグは容易であ
る。しかし基本入力クロツクの最低周波数が限定
された、ダイナミツク動作のマイクロプロセサを
用いたシステムでは、ダイナミツク的な動きでし
か、外部制御回路のデバツグができないため、ハ
ードウエアのデバツグは非常に難しく、多くの手
間と時間を要していた。
External control circuits in data processing systems with microprocessors include bus controllers,
The control circuit includes synchronous operation circuits such as a timing generation circuit, an address decoder, and a group of registers, but since the functions of this control circuit are important, it is necessary to check (debug) the functions from time to time. In a system using a microprocessor capable of static operation, debugging the external control circuit described above is easy. However, in a system using a dynamically operating microprocessor with a limited minimum frequency of the basic input clock, debugging the external control circuit is only possible through dynamic operation, making hardware debugging extremely difficult and requiring many It took time and effort.

このようなマイクロプロセツサと外部制御回路
との関係を第1図の制御時間関係図にもとずいて
説明する。マイクロプロセツサはクロツクパルス
PCLKに、又外部制御回路はクロツクパルスCLK
1に夫々同期して動作する。
The relationship between such a microprocessor and an external control circuit will be explained based on the control time relationship diagram shown in FIG. The microprocessor uses clock pulses
PCLK, and the external control circuit is clock pulse CLK.
1 and operate in synchronization with each other.

マイクロプロセツサが外部制御回路の動作を要
求する時はアクセス要求信号PRQを外部制御回
路に送出する。
When the microprocessor requests operation of the external control circuit, it sends an access request signal PRQ to the external control circuit.

外部制御回路は、このPRQによつて起動し、
マイクロプロセツサの要求する動作を実行する。
The external control circuit is activated by this PRQ,
Executes operations requested by the microprocessor.

外部制御回路がマイクロプロセツサの要求する
動作即ち以後制御されるための準備が完了する
と、レデイ信号RDYをマイクロプロセツサに送
出する。
When the external control circuit completes the operation requested by the microprocessor, that is, preparation for subsequent control, it sends a ready signal RDY to the microprocessor.

第1図における時間Taはアクセス要求信号
PRQがマイクロプロセツサから送出され、外部
制御回路からレデイ信号RDYがマイクロプロセ
ツサへ送出されるまでの時間である。このTaの
間はマイクロプロセツサは待機状態であり、現状
態を保持している。
Time Ta in Figure 1 is the access request signal
This is the time from when PRQ is sent from the microprocessor to when ready signal RDY is sent from the external control circuit to the microprocessor. During this Ta, the microprocessor is in a standby state and maintains its current state.

マイクロプロセツサがRDY信号を受領する
と、第1図でTbで示される時間、マイクロプロ
セツサからは制御信号や、アドレス、データ信号
が時分割的にクロツクパルスPCLKに同期して出
力される。その後マイクロプロセツサはTAの時
間中後処理を実行して、次に新たなアクセス要求
信号PRQを送出することになる。
When the microprocessor receives the RDY signal, the microprocessor outputs control signals, address signals, and data signals in time division fashion in synchronization with the clock pulse PCLK during the time indicated by Tb in FIG. The microprocessor will then perform post-processing during TA time and will then send out a new access request signal PRQ.

本発明はこのようにスタテイツク動作が不可能
なマイクロプロセツサ、即ち基本入力クロツクの
最低周波数が定められているようなマイクロプロ
セツサを使用したデータ処理システムにおいて、
マイクロプロセツサからのアクセス要求信号
PRQの送出から、外部制御回路よりのレデイ信
号RDYの送出までの時間Ta中に、外部制御回路
のデバツグのため、外部制御回路に含まれるレジ
スタ等の各種の同期動作回路の連続的シングルス
テツプ動作を行わせ、外部制御回路のハードウエ
アのデバツグを容易にしようとするものである。
The present invention thus provides a data processing system using a microprocessor that is not capable of static operation, that is, a microprocessor for which the minimum frequency of the basic input clock is determined.
Access request signal from microprocessor
During the time Ta from sending PRQ to sending ready signal RDY from the external control circuit, continuous single-step operation of various synchronous operation circuits such as registers included in the external control circuit is performed to debug the external control circuit. This is intended to facilitate debugging of the hardware of the external control circuit.

このようにTaを選んだ理由はTbの時間では既
述のごとく、マイクロプロセツサから制御信号や
アドレス、データ信号が時分割的にクロツクパル
スに同期して外部制御回路に与えられ、且つそれ
に対応する動作を外部制御回路は行いシングルス
テツプによる制御が不可能となるからである。こ
のような時間Taにおける外部制御回路のデバツ
グは本発明によればダイナミツク動作のマイクロ
プロセツサ、入出力装置、入出力装置等を制御す
るための外部制御回路を含むデータ処理システム
において、外部制御回路へのクロツクパルス供給
路中に、クロツクパルス制御手段が付加され該手
段は外部制御回路のデバツグのためのシングルス
テツプ機能の開始の際、マイクロプロセツサから
外部制御回路へ与えられるアクセス要求信号によ
つて、外部制御回路への継続的なクロツクパルス
の供給を断つと共に、シングルステツプを行わせ
る際にのみ、クロツクパルスからシングルパルス
を抽出して外部制御回路へ供給し、外部制御回路
からマイクロプロセツサに与えられるレデイ信号
によつてデバツグは終了する機能を有することを
特徴とするデバツグ制御機能を有するデータ処理
システムによつて達成される。
The reason for choosing Ta in this way is that in the time Tb, as mentioned above, control signals, addresses, and data signals from the microprocessor are given to the external control circuit in a time-division manner in synchronization with clock pulses, and the corresponding This is because the operation is performed by an external control circuit, making single-step control impossible. According to the present invention, such debugging of the external control circuit during the time Ta is possible in a data processing system including a dynamically operating microprocessor, an input/output device, an external control circuit for controlling the input/output device, etc. A clock pulse control means is added in the clock pulse supply path to the external control circuit, and the means controls the external control circuit by an access request signal applied from the microprocessor to the external control circuit upon initiation of a single step function for debugging the external control circuit. In addition to cutting off the continuous supply of clock pulses to the external control circuit, only when performing a single step, a single pulse is extracted from the clock pulse and supplied to the external control circuit, and the ready signal given from the external control circuit to the microprocessor is Debugging is accomplished by a data processing system having a debug control function characterized by a function of terminating debugging in response to a signal.

即ち時間Taにおいて、外部制御回路のデバツ
グのため、該回路をシングルステツプ動作を行な
わせる場合、上記本発明によるクロツクパルス制
御手段の付加によつて、マイクロプロセツサから
外部制御回路にアクセス要求信号が与えられた際
に、それまで外部制御回路に与えられていたクロ
ツクパルスは中断され、シングルステツプを行わ
せんとする時にのみシングルステツプのためのパ
ルスが外部制御回路に与えられ、これによつて外
部制御回路に含まれる各種同期動作をする回路の
機能がチエツクされることになる。
That is, when the external control circuit is caused to perform a single step operation for debugging the circuit at time Ta, the addition of the clock pulse control means according to the present invention allows the access request signal to be sent from the microprocessor to the external control circuit. When a single step is to be performed, the clock pulses previously applied to the external control circuit are interrupted, and the pulse for single stepping is applied to the external control circuit only when a single step is to be performed. The functions of the circuits that perform various synchronous operations included in the system will be checked.

本発明を図面によつて更に説明する。第2図は
実施例の回路であり、ダイナミツク動作のマイク
ロプロセツサ、外部制御回路、バス、入出力装
置、パルス発生回路、分周回路よりなり、更に外
部制御回路にはバスコントローラ、タイミング発
生回路、アドレスレコーダ、レジスタ群等の同期
動作回路が含まれる。図ではこのようなデータ処
理システムに、本発明によるクロツクパルス制御
手段CCTが付加されている。
The invention will be further explained with reference to the drawings. Figure 2 shows the circuit of the embodiment, which consists of a dynamically operating microprocessor, an external control circuit, a bus, an input/output device, a pulse generation circuit, and a frequency divider circuit.The external control circuit also includes a bus controller and a timing generation circuit. , an address recorder, a group of registers, and other synchronous operation circuits. In the figure, clock pulse control means CCT according to the present invention is added to such a data processing system.

このクロツクパルス制御手段は、スイツチS1
S2、インバータIov1,Iov2、フリツプフロツプ
FF1〜FF4、NAND回路GT1,GT2,AND回路
GT3よりなり、クロツクパルスはCLK0、
PCLK、CLK1で示されており、従来の外部制御
回路は図示のCLK1がCLK0と一致する。第3
図は第2図の実施例回路の動作を説明するタイム
チヤートである。このタイムチヤートに示された
記号は、第2図の回路におけるクロツクパルスと
各構成素子の出力信号を示す。
This clock pulse control means includes switches S 1 ,
S 2 , inverters I ov1 , I ov2 , flip-flop
FF 1 ~ FF 4 , NAND circuit GT 1 , GT 2 , AND circuit
Consisting of GT 3 , the clock pulse is CLK0,
PCLK and CLK1 are shown, and in the conventional external control circuit, the illustrated CLK1 matches CLK0. Third
The figure is a time chart explaining the operation of the embodiment circuit of FIG. 2. The symbols shown in this time chart indicate the clock pulses and the output signals of each component in the circuit of FIG.

マイクロプロセツサが外部制御回路を起動せん
とする時は、アクセス要求信号PRQを外部制御
回路に送出する。この時マイクロプロセツサは第
3図のクロツクパルスPCLKで動作しており、一
方外部制御回路にはクロツクパルスCLK0が
AND回路GT3を介してCLK1として供給されて
いる。これはアクセス要求信号PRQが同時にフ
リツプフロツプFF4に与えられ、NAND回路GT2
を介してGT3が開放されているからである。PRQ
によつて起動した外部制御回路はマイクロプロセ
ツサの要求する準備を行い、それが終了すると、
マイクロプロセツサに対しレデイ信号RDYを送
出する。
When the microprocessor wishes to activate the external control circuit, it sends an access request signal PRQ to the external control circuit. At this time, the microprocessor is operating with the clock pulse PCLK shown in Figure 3, while the external control circuit receives the clock pulse CLK0.
It is supplied as CLK1 via AND circuit GT3 . This means that the access request signal PRQ is simultaneously applied to flip-flop FF 4 , and the NAND circuit GT 2
This is because GT 3 is open through . PRQ
The external control circuit activated by
Sends ready signal RDY to the microprocessor.

これまでの時間が既に述べた如くTaである。
本発明は外部制御回路のデバツグを必要とする時
には、このTa時間内に、本発明によるクロツク
パルス制御手段CCTによつて、これまで外部制
御回路に対し、継続的に供給されていたクロツク
パルスCLK0は中断され、外部制御回路には、
クロツクパルスCLK0より第3図に示すCLK1
のパルスCL1,CL2等のみが抽出されて与えられ
るようになる。このパルスによつて外部制御回路
に含まれる各種回路の同期動作系はシングルステ
ツプ動作を行い、これら回路のプロテクシヨンエ
ラー、バリテイエラ、メモリ異常等の検出を行う
ようになつている。
As already mentioned, the time up to this point is Ta.
When the present invention requires debugging of the external control circuit, the clock pulse CLK0, which has been continuously supplied to the external control circuit, is interrupted by the clock pulse control means CCT according to the present invention within this Ta time. and the external control circuit is
From clock pulse CLK0 to CLK1 shown in Figure 3
Only the pulses CL 1 , CL 2 , etc. are extracted and provided. This pulse causes the synchronized operation systems of various circuits included in the external control circuit to perform single-step operations, thereby detecting protection errors, variation errors, memory abnormalities, etc. in these circuits.

このようなデバツグの場合の動作について説明
する。
The operation in such a debugging case will be explained.

スイツチS2は通常は開放、即ち0の状態である
がシングルステツプ機能を有効にせんとする場合
に動作させ、その継続を希望している間、動作状
態に保持される。スイツチS1は通常は開放、即ち
0であり、シングルステツプ機能の有効時間内で
シングルステツプの動作をさせたい場合にのみ動
作状態即ち1となる。シングルステツプの必要な
回数、このスイツチS1の動作・復旧を繰返すこと
になる。
Switch S2 is normally open or in the 0 state, but is activated when the single step function is to be activated and is held activated as long as it is desired to continue. Switch S1 is normally open, ie, 0, and becomes active, ie, 1, only when single-step operation is desired within the valid time of the single-step function. This operation and restoration of switch S1 is repeated as many times as necessary in a single step.

外部制御回路のデバツグを行わんとする場合ス
イツチS2が動作される。これによつてFF3は状態
1を出力する。続いてマイクロプロセツサからア
クセス要求信号PRQが外部制御回路に与えられ
ると、FF4も状態1となる。これによつて第3図
に示す如くNAND回路GT2は動作を転換し、AND
回路GT3は阻止状態となり、それ迄外部制御回路
に与えられていたクロツクパルスCLK0も阻止
される。
When the external control circuit is to be debugged, switch S2 is operated. This causes FF 3 to output state 1. Subsequently, when the access request signal PRQ is applied from the microprocessor to the external control circuit, FF 4 also goes into state 1. As a result, the NAND circuit GT 2 changes its operation as shown in Figure 3, and becomes an AND circuit.
The circuit GT3 becomes blocked, and the clock pulse CLK0, which had been applied to the external control circuit up to that point, is also blocked.

このような状態でスイツチS1の第1回の動作を
行うと、FF1及びFF2が動作し、第3図に示す如
くNAND回路GT1及びGT2は再び転換し、これに
よつて一定時間のみANDゲートGT3は再び開放
され、クロツクパルスCLK1としてパルスCL1
(第3図)が外部制御回路に与えられ、このパル
スによつて外部制御回路の各種同期動作系はシン
グルステツプ動作を行い、各回路のパルス動作機
能がチエツクされる。もし異常を生じた場合には
図示されていない検出部にエラー信号が生ずるよ
うになる。
When switch S 1 is operated for the first time in this state, FF 1 and FF 2 are operated, and NAND circuits GT 1 and GT 2 are switched again as shown in FIG. ONLY AND gate GT 3 is opened again and pulse CL1 is set as clock pulse CLK1.
(FIG. 3) is applied to the external control circuit, and with this pulse, various synchronous operation systems of the external control circuit perform single-step operations, and the pulse operation function of each circuit is checked. If an abnormality occurs, an error signal will be generated in a detection section (not shown).

このようなシングルステツプ動作は必要回数ス
イツチS1を動作させることによつて行われるが、
第3図ではスイツチS1を2回動作させた場合のみ
が示されている。シングルステツプ動作を必要回
数動作させ、外部制御回路がマイクロプロセツサ
の要求する動作を終了すると、レデイ信号RDY
をマイクロプロセツサに対し送出する。それによ
つてFF4は他の状態に移りNAND回路GT2は継続
的に状態1の信号を出し、これによつてANDゲ
ートGT3はクロツクパルスCLK0をCLK1とし
て外部制御回路に継続的に供給することになる。
Such a single step operation is performed by operating switch S1 the necessary number of times,
In FIG. 3, only the case where switch S1 is operated twice is shown. After the single step operation is performed the required number of times and the external control circuit completes the operation requested by the microprocessor, the ready signal RDY is activated.
is sent to the microprocessor. As a result, FF 4 shifts to another state, and NAND circuit GT 2 continuously outputs a signal in state 1, which causes AND gate GT 3 to continuously supply clock pulse CLK0 as CLK1 to the external control circuit. become.

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

第1図はマイクロプロセツサと外部制御回路と
の間の制御時間関係図であり、第2図は本発明の
一実施例を説明するブロツク図、第3図は本発明
の一実施例を説明するタイムチヤートであり、図
においてCCTは本発明によるクロツクパルス制
御手段でS1,S2はスイツチ、FF1〜FF4はフリツ
プフロツプ、GT1,GT2はNAND回路、GT3
AND回路、CLK0,CLK1はクロツクパルス、
Aはアドレス信号、Dはデータ、PRQはアクセ
ス要求信号、RDYはレデイ信号を示す。
FIG. 1 is a control time relationship diagram between a microprocessor and an external control circuit, FIG. 2 is a block diagram illustrating an embodiment of the present invention, and FIG. 3 is a diagram illustrating an embodiment of the present invention. In the figure, CCT is the clock pulse control means according to the present invention, S 1 and S 2 are switches, FF 1 to FF 4 are flip-flops, GT 1 and GT 2 are NAND circuits, and GT 3 is a
AND circuit, CLK0, CLK1 are clock pulses,
A indicates an address signal, D indicates data, PRQ indicates an access request signal, and RDY indicates a ready signal.

Claims (1)

【特許請求の範囲】[Claims] 1 ダイナミツク動作のマイクロプロセツサ、入
出力装置、入出力装置等を制御するための外部制
御回路を含むデータ処理システムにおいて、外部
制御回路へのクロツクパルス供給路中に、クロツ
クパルス制御手段が付加され、該手段は外部制御
回路のデバツグのためのシングルステツプ機能の
開始の際、マイクロプロセツサから外部制御回路
へ与えられるアクセス要求信号によつて、外部制
御回路への継続的なクロツクパルスの供給を断つ
と共に、シングルステツプを行わせる際にのみ、
クロツクパルスからシングルパルスを抽出して外
部制御回路へ供給し、外部制御回路からマイクロ
プロセツサに与えられるレデイ信号によつてデバ
ツグは終了する機能を有することを特徴とするデ
バツグ制御機能を有するデータ処理システム。
1. In a data processing system that includes an external control circuit for controlling a dynamically operating microprocessor, an input/output device, an input/output device, etc., a clock pulse control means is added to the clock pulse supply path to the external control circuit. The means cuts off the continuous supply of clock pulses to the external control circuit by an access request signal given from the microprocessor to the external control circuit when starting a single step function for debugging the external control circuit; Only when performing a single step,
A data processing system having a debug control function, characterized in that it has a function of extracting a single pulse from a clock pulse, supplying it to an external control circuit, and terminating debugging by a ready signal given from the external control circuit to a microprocessor. .
JP55186902A 1980-12-26 1980-12-26 Debugging control system Granted JPS57109059A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP55186902A JPS57109059A (en) 1980-12-26 1980-12-26 Debugging control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP55186902A JPS57109059A (en) 1980-12-26 1980-12-26 Debugging control system

Publications (2)

Publication Number Publication Date
JPS57109059A JPS57109059A (en) 1982-07-07
JPS6231380B2 true JPS6231380B2 (en) 1987-07-08

Family

ID=16196674

Family Applications (1)

Application Number Title Priority Date Filing Date
JP55186902A Granted JPS57109059A (en) 1980-12-26 1980-12-26 Debugging control system

Country Status (1)

Country Link
JP (1) JPS57109059A (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5378140A (en) * 1976-12-22 1978-07-11 Mitsubishi Electric Corp Diagnosis system for microprocessor

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5378140A (en) * 1976-12-22 1978-07-11 Mitsubishi Electric Corp Diagnosis system for microprocessor

Also Published As

Publication number Publication date
JPS57109059A (en) 1982-07-07

Similar Documents

Publication Publication Date Title
US4835728A (en) Deterministic clock control apparatus for a data processing system
JPH04257932A (en) Chip for emulation for digital signal processor
JPH07114348B2 (en) Logic circuit
US5305277A (en) Data processing apparatus having address decoder supporting wide range of operational frequencies
JPS6231380B2 (en)
JP3356635B2 (en) Computer system for vehicle control
JP2773546B2 (en) Pulse generation circuit
JPS61177564A (en) Shared storage device
JP2588290B2 (en) Data input / output system
JP2670105B2 (en) Data generator
JPH07248843A (en) Clock switching circuit
JPH10320080A (en) Reset circuit for information processor and resetting method
JPH056336A (en) Method for controlling bus
JPS6337421B2 (en)
SU1264182A2 (en) Multichannel device for automatic checking of microprocessors
JP2903548B2 (en) Logic circuit diagnostic system
SU1354195A1 (en) Device for checking digital units
SU1168949A1 (en) Device for detecting and eliminating faults in object control block
SU1140065A1 (en) Device for functional parametric checking of logic elements
SU1709316A1 (en) Three-channel redundant signal synchronizer
SU1564629A2 (en) Device for checking logic units
JPS615363A (en) Controller of shared memory
SU1644119A1 (en) Programmable cycles generator
SU1100610A1 (en) Device for checking parameters of thyristor converter
JP2513032B2 (en) Microcomputer input control circuit