[go: up one dir, main page]

JPS5979353A - Address stop controlling circuit - Google Patents

Address stop controlling circuit

Info

Publication number
JPS5979353A
JPS5979353A JP18980182A JP18980182A JPS5979353A JP S5979353 A JPS5979353 A JP S5979353A JP 18980182 A JP18980182 A JP 18980182A JP 18980182 A JP18980182 A JP 18980182A JP S5979353 A JPS5979353 A JP S5979353A
Authority
JP
Japan
Prior art keywords
gate
address
register
flop
clock
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
JP18980182A
Other languages
Japanese (ja)
Inventor
Kana Kamiyama
神山 奏
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 JP18980182A priority Critical patent/JPS5979353A/en
Publication of JPS5979353A publication Critical patent/JPS5979353A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Prevention of errors by analysis, debugging or testing of software

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)

Abstract

PURPOSE:To lighten the burden of a programmer and effectively perform program debug, by making an arrangement that address stop can be set even when a memory is in operation and a program can be continued properly when the operation is started again. CONSTITUTION:It is assumed that each of FFs 26 and 27 is set. A gate 24 is actuated and turned on and an operation clock from a clock generating circuit 25 is supplied to an address counter/register 21. Then the value of the address counter/register 21 is updated and the coincidence with a value set in a comparison register 22 is detected by a comparator 23 and the FF26 is set. Therefore, another gate is actuated and, as a result, the gate 24 is inactivated and closed and the clock supply is stopped, resulting in the stoppage of the operation. The operation can be restarted and continued properly when the FF26 is reset and the operation clock is supplied to the address counter/register 21 because the coincidence conditions is not realized.

Description

【発明の詳細な説明】 〔発明の技術分野〕 本発明は特にプログラムデバッグ時において使用される
アドレスストップのための制御回路に関する。
DETAILED DESCRIPTION OF THE INVENTION [Technical Field of the Invention] The present invention relates to a control circuit for address stop used particularly during program debugging.

〔発明の技術的背景とその問題点〕[Technical background of the invention and its problems]

ハードウェア/ソフトウェアの開発において、プログラ
ムを所定の番地あるいは所定の状態になるまで実行し、
その時点で一時動作を中断させ、レジスタ・フラグ等の
状態をチェックすることは、デバッグ等の有効な手段と
して従来より広く使用される手法である0 例えば、所定の番地址でプログラムを実行し、停止させ
る(アドレス・ストップ)には第1図に示すハードウェ
アが用いられる。即ち、アドレスカウンタ/レジスタ1
ノと比較値レジスタ12に設定された値が比較器13に
より比較され、ここで一致が検出されるとゲートG14
が閉じ、従つ”Cクロック発生回路15により生成され
るクロックがアドレスカウンタ、ルジスタ11へ供給さ
れなくなる。これにより動作を中断させるものであって
、簡単で効果的手段として従来より頻繁に用いられてき
たものである。
In hardware/software development, a program is executed until it reaches a predetermined address or a predetermined state.
Temporarily suspending operation at that point and checking the status of registers, flags, etc. is a method that has been widely used as an effective means for debugging, etc. For example, by executing a program at a predetermined address, For stopping (address stop), the hardware shown in FIG. 1 is used. That is, address counter/register 1
The comparator 13 compares the value set in the comparison value register 12 with the value set in the comparison value register 12, and if a match is detected, the gate G14
is closed, and therefore the clock generated by the C clock generation circuit 15 is no longer supplied to the address counter, register 11. This interrupts the operation, and is used more frequently than before as a simple and effective means. This is something that has come.

ところで、近年、処理装置内においても処理の分散化が
進み、例えばメモリ部は演算制御部(CPU)から動作
開始信号を受信すると動作を開始し、7’−夕の読出し
等を行ない、必要なデータの転送帛備が完了するとCP
Uへその旨通知すると共にデータを転送してくる。その
ため、CP TJはメモリ部が動作中、他の処理を行な
うことが出来、タイミングをみはから・つでメモリ部か
らのデータを取込み使用することによって効率の良い動
作を行なえる様になる。
Incidentally, in recent years, processing has become increasingly distributed within processing devices, and for example, when a memory section receives an operation start signal from a calculation control section (CPU), it starts operating, performs reading of data, etc., and performs necessary operations. When the data transfer preparation is completed, the CP
It notifies U of this fact and also transfers the data. Therefore, the CP TJ can perform other processing while the memory section is operating, and can perform efficient operations by taking in and using data from the memory section at a controlled timing.

しかしながらこの様な方式において、上記アドレススト
ップの機能を実現し、【うとすれば、アドレスの一致が
生じた場合、即アドレスカウンタ7ルジスタJ1−\の
クロック供給を停止してしまう。従って上記メモリ部か
らのデータを取りそこない、クロック供給が開始され、
動作が再開された場合、11びデータの取込みを行なっ
ても正しく動作を継続させることができなくなることが
多々あった。
However, in such a system, if the above-mentioned address stop function is to be realized, the clock supply to the register J1-\ of the address counter 7 will be immediately stopped when an address match occurs. Therefore, clock supply is started without missing data from the memory section,
When the operation was restarted, it was often impossible to continue the operation properly even after 11 and data acquisition.

〔発明の目的〕[Purpose of the invention]

本発明は上記欠点に鑑みてなされたもσ)であり、上記
の様な処理装置において、少量σ)ノ・−Fウェアの追
加により、メモリ動作中アドレス・ストップによりCP
(JfilIlfFF”it:停止させた場合であって
も、動作再開時メモリデータC)取込みも含めて正しく
プログラム実行を行ない得るアドレス・ストップ制御回
路を提供することを目的とする。
The present invention has been made in view of the above-mentioned drawbacks. In the above-mentioned processing device, by adding a small amount of σ)-Fware, the CP can be reduced by address stop during memory operation.
(JfilIlfFF"it: memory data C when operation is resumed even if stopped) An object of the present invention is to provide an address/stop control circuit that can correctly execute a program, including taking in the program.

〔発明の概要〕[Summary of the invention]

本発明は、上述した如く処理の分散化カニなされ、CP
Uのトリガにより各装置モジュール753個別に動作を
行なう処理装置に内蔵されるアドレス制御回路であって
、該制御回路は、プログラムの実行アドレスと外部より
設定されるアドレスとが一致したことを記憶する第1 
&−)フリップ70ツブと、現在メモリ動作中であるこ
と全表示する第2のフリップフロップを設け、更しζ第
2の7リツプフロツブ出力にぶり第1のフリップフロッ
プの出力を禁止する第1のゲートと、この第1のゲート
出力により、プログラムカウンタ/レジスタに対する動
作クロックの供給/禁止をコントロールする第2のゲー
トとを備えることにより、メモリ動作中であってもアド
レス・ストップを設定出来、動作再開時における従来の
不具合全解消したものである0 このことにより、プログラマの負荷が軽減され、プログ
ラムデバッグを効率的に行ない得る。
The present invention is designed to decentralize the processing as described above, and the CP
An address control circuit built into a processing device that operates individually in each device module 753 by a trigger of U, and this control circuit memorizes that the execution address of the program matches the address set from the outside. 1st
&-) A flip-flop with 70 flip-flops and a second flip-flop that indicates that the memory is currently in operation are provided, and a first flip-flop that prohibits the output of the first flip-flop when the output of the second flip-flop is displayed. By providing a gate and a second gate that controls the supply/inhibition of the operation clock to the program counter/register using the first gate output, it is possible to set an address stop even during memory operation, and the operation can be stopped. This eliminates all of the conventional problems that occur when restarting. This reduces the load on the programmer and allows efficient program debugging.

〔発明の実施例〕[Embodiments of the invention]

以下、第2図以降を使用して本発明に関し詳細に説明す
る。
Hereinafter, the present invention will be explained in detail using FIG. 2 and subsequent figures.

第2図は本発明の一実施例を示すブロック図である。図
において、21はプログラムを実行すべきアドレスが置
数されるアドレスカウンタ/レジスタであるo22は外
部(コンソール)くネル、メンテナンスパネル等)より
供給される比較値が設定される比較値レジスタである。
FIG. 2 is a block diagram showing one embodiment of the present invention. In the figure, 21 is an address counter/register in which the address at which the program should be executed is set, and o22 is a comparison value register in which a comparison value supplied from an external (console channel, maintenance panel, etc.) is set. .

上記アドレスカウンタ/レジスタ21出力とレジスタ2
2出力は比較器23へ供給されるO該比較器23出力は
フリップフロップ26へ供給され、ここで一致したこと
が表示される027tまメモリが動作中(BUsY)で
あることを表示するフリップフロップである。上記フリ
ップフロップ26出力とフリップフロップ27σ〕反転
出力はナントゲートG2.8に供給される。251ま動
作クロック発生回路である。ここで生成さjLる動作ク
ロックは上記ナントゲート28出ノコと共にアンドゲー
トG24へ便船され、上記アドレスカウンタ/レジスタ
2ノならびに他のロジックへ供給される0 第3図は本発明の他の実施例を示すブロック図である。
Above address counter/register 21 output and register 2
2 output is fed to a comparator 23. The output of the comparator 23 is fed to a flip-flop 26 where a match is indicated. 027t A flip-flop indicating that the memory is in operation (BUsY) It is. The output of the flip-flop 26 and the inverted output of the flip-flop 27σ are supplied to the Nant gate G2.8. 251 is an operation clock generation circuit. The operating clock generated here is sent to the AND gate G24 together with the output of the Nant gate 28, and is supplied to the address counter/register 2 and other logic. FIG. 3 shows another embodiment of the present invention. FIG. 2 is a block diagram illustrating an example.

図において、31〜38は第2図に示した実施例のそれ
ぞれ21〜28に・1目幽し、同一名称なちびに同一機
能を持一つため、ここでの説明は省略する゛0第2図に
示した実施例と0−)差異はオアゲートG39が伺加さ
JしてI/する点にある。オアゲート39には比較器3
3出力とノリツブフロップ36出力が供給され、ここで
ル^理和条件のとられた出力はナントゲート38の一方
の入力端子へ供給されるO 以下、本発明の実施例の動作につき詳述する。
In the figure, 31 to 38 are the same numbers as 21 to 28 of the embodiment shown in FIG. The difference from the embodiment shown in FIG. 2 is that the OR gate G39 performs the addition and I/. Comparator 3 for or gate 39
3 outputs and the output of a Noritsubu flop 36 are supplied, and the output subjected to the sum condition is supplied to one input terminal of the Nant gate 38.The operation of the embodiment of the present invention will be described in detail below. do.

まず、第2図に示した実施例の動作から説明する。予め
何等かの手段により、アドレスカウンタ/レジスタ21
及び比較値レジスタ22へ値がセットされているものと
し、又、フリップフロップ26.27はそれぞれリセッ
トされているものとする。
First, the operation of the embodiment shown in FIG. 2 will be explained. By some means in advance, the address counter/register 21
It is assumed that values have been set in the and comparison value register 22, and that the flip-flops 26 and 27 have been reset.

今、動作クロックがクロック発生回路25にて生成され
、この動作クロックはゲート24を介してアドレスカウ
ンタ/レジスタ21に与えられる。
Now, an operating clock is generated by the clock generation circuit 25, and this operating clock is applied to the address counter/register 21 via the gate 24.

ところで、ゲート24はフリップフロップ26.27が
それぞれリセットされているため条件が成立し、(ゲー
ト28の条件が成立しないため、その結果、ゲート24
が成立)ONとなってアドレスカウンタ/レジスタ2ノ
に対し動作クロックが供給される。
By the way, the condition for gate 24 is satisfied because the flip-flops 26 and 27 are reset, and (because the condition for gate 28 is not satisfied, as a result, gate 24
is established), and an operating clock is supplied to the address counter/register 2.

これによってアドレスカウンタ/レジスタ2ノの値が更
新され、比較値レジスタ22に設定された値との一致が
比較器23にて検出されると、フリップフロップ26は
セットされる。
As a result, the value of the address counter/register 2 is updated, and when the comparator 23 detects a match with the value set in the comparison value register 22, the flip-flop 26 is set.

フリップフロップ26がセットされることにより、ゲー
ト28の条件が成立し、その結果ゲート24の条件が不
成立となって、ゲート24が閉じられ、クロックの供給
が停止される0従って動作が停止する。動作を再開する
ときは、フリップフロップ26をリセットすることによ
り動作クロックがアドレスカウンタ/レジスタ2Iへ供
給され、一致条件が成立しなくなるため、継続して動作
を行なうことができるO更に動作が進み、メモリ部へ動
作要求を発した場合、ノリツブフロップ27はセットさ
れる0この時点において、比較器23が一致を検出すれ
ば、フリップフロップ26はセットされるが、フリップ
フロップ27がセットされているため、ゲート28の条
件は成立しないOその結果、ゲート24の条件は成立し
たままで、従ってクロックが継続してアドレスカウンタ
/レジスタ21へ供給され、動作が停止することはない
By setting the flip-flop 26, the condition of the gate 28 is satisfied, and as a result, the condition of the gate 24 is not satisfied, the gate 24 is closed, and the clock supply is stopped. Therefore, the operation is stopped. When restarting the operation, the operation clock is supplied to the address counter/register 2I by resetting the flip-flop 26, and since the matching condition no longer holds true, the operation can continue. When an operation request is issued to the memory section, the Noritsubu flop 27 is set to 0. At this point, if the comparator 23 detects a match, the flip-flop 26 is set, but the flip-flop 27 is not set. Therefore, the condition of gate 28 does not hold.As a result, the condition of gate 24 remains satisfied, so the clock continues to be supplied to address counter/register 21, and the operation does not stop.

ところで、比較器23による一致出力がなくなつでもフ
リップフロップ26はリセットさ′れず、−・致したこ
とは記憶される。メモリ動作が終了し、フリップフロッ
プ27がリセットされることでゲート28での条件が成
立し、その結果ゲート24が不成立となり、この時点で
動作が停止する。再び動作を開始する際には、フリップ
フロップ26をリセットすればメモリデータは正しく処
理されているため動作を正常に続行できることになる0
               7以上はアリツブフロ
ップ26をセット・リセット型のフリップフロップとし
て述べてきたが、例えばDタイプノリツブフロップの如
くクロック型の、フリップフロップkf川した場合には
第3図に示す如くオアゲート395伺加することにエリ
同機能を実現し得る。即ち、このオアゲート39の在存
に〜より、フリップフロップ36がクロックにエリ変化
するまでの遅れを無くすことができる。
By the way, even if there is no match output from the comparator 23, the flip-flop 26 is not reset, and the fact that there is a match is stored. When the memory operation is completed and the flip-flop 27 is reset, the condition at the gate 28 is satisfied, and as a result, the gate 24 is not established, and the operation is stopped at this point. When starting the operation again, by resetting the flip-flop 26, the memory data will be processed correctly and the operation can be continued normally.
7. Above, we have described the Aritz flop 26 as a set/reset type flip-flop, but for example, if it is a clock type flip-flop such as a D type Noritsub flop, it can be used as an OR gate 395 as shown in Figure 3. In addition, the same function can be realized. That is, due to the existence of this OR gate 39, the delay until the flip-flop 36 changes to the clock can be eliminated.

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

以上説明の如く本発明によれば、メモリ動作中でもアド
レスストップを設定畠来、正しくプログラムを続行でき
るため、プログラムの開発、特にマイクロプログラム開
発時のデノくツブ時において効果がある。即ち、デノ(
ツブにおり)て、メモリアクセスがあるか否かを気にせ
ずアドレスストップを設定できるため、プログラマの負
荷が軽減され、゛効率的なデノ(ツブを行なうことがで
きる。
As described above, according to the present invention, since the address stop can be set and the program can be continued correctly even during memory operation, it is effective in program development, particularly in the troublesome stages of microprogram development. That is, Deno (
Since the address stop can be set without worrying about whether or not there is a memory access at the time of writing, the load on the programmer is reduced and efficient denomination can be performed.

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

第1図は従来のアドレスストップ制御回路σ)構成例を
示すブロック図、第2図は本発明び)一実施例を示すブ
ロック図、第3図は本発明のイ也の実施例全示すブロッ
ク図である0 21.31・・・アドレスカウンタ/レジスタ、22.
32・・・比較値レジスタ、23.33・・・比較器、
24.34・・・アンドゲート、25,35゛′°クロ
ック発生回路、26.36,27.37・・・フリップ
フロップ、28.38・・・ナントゲート、39・・・
オアゲート。 第2図 ?133 図 260
Fig. 1 is a block diagram showing an example of the configuration of a conventional address stop control circuit σ), Fig. 2 is a block diagram showing an embodiment of the present invention and Fig. 3 is a block diagram showing all embodiments of the present invention. 0 21.31...address counter/register, 22.
32... Comparison value register, 23.33... Comparator,
24.34...AND gate, 25,35゛'°clock generation circuit, 26.36, 27.37...flip-flop, 28.38...Nand gate, 39...
Orgate. Figure 2? 133 Figure 260

Claims (1)

【特許請求の範囲】[Claims] クロック発生回路により生成されるクロックに基づきプ
ログラムの実行アドレスが遂次更新され設定されるアド
レスカウンタと、このカウンタと比較値が設定されるレ
ジスタの値を比較し、アドレスの一致条件を検出する比
較器と、該比較器出力である一致信号を記憶する第1の
フリップ70ツブと、メモリが動作中であることを記憶
する第2の7リツプ70ツブと、この第2のフリップフ
ロップがセットされることにより上記第1のフリップフ
ロップ出力を禁止する第1のゲートと、この第1のゲー
ト出力を用い上記アドレスカウンタに対するクロックの
供給をコントロールする第2のゲートとから成ることを
特徴とするアドレス・ストップ制御回路0
Comparison that compares the address counter, where the program execution address is successively updated and set based on the clock generated by the clock generation circuit, and the value of the register where the comparison value is set, and detects an address match condition. a first flip-flop 70 for storing a coincidence signal which is the output of the comparator, and a second 7-lip 70 for storing that the memory is in operation; an address comprising: a first gate that inhibits the output of the first flip-flop; and a second gate that uses the first gate output to control clock supply to the address counter.・Stop control circuit 0
JP18980182A 1982-10-28 1982-10-28 Address stop controlling circuit Pending JPS5979353A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP18980182A JPS5979353A (en) 1982-10-28 1982-10-28 Address stop controlling circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP18980182A JPS5979353A (en) 1982-10-28 1982-10-28 Address stop controlling circuit

Publications (1)

Publication Number Publication Date
JPS5979353A true JPS5979353A (en) 1984-05-08

Family

ID=16247432

Family Applications (1)

Application Number Title Priority Date Filing Date
JP18980182A Pending JPS5979353A (en) 1982-10-28 1982-10-28 Address stop controlling circuit

Country Status (1)

Country Link
JP (1) JPS5979353A (en)

Similar Documents

Publication Publication Date Title
US4796211A (en) Watchdog timer having a reset detection circuit
US4598356A (en) Data processing system including a main processor and a co-processor and co-processor error handling logic
JPH10177563A (en) Microcomputer with built-in flash memory
US5361348A (en) Debug circuit of a signal processor
US4348722A (en) Bus error recognition for microprogrammed data processor
JP2661222B2 (en) Pulse output device
JPH0810437B2 (en) Guest execution control method for virtual machine system
JPS5979353A (en) Address stop controlling circuit
JPS59133655A (en) Address stop control circuit
JPS60124748A (en) Set system of watchdog timer
JPS6118045A (en) Program runaway detection method
JPH0573296A (en) Microcomputer
JP2755205B2 (en) Low power consumption method for data processing equipment
JP2870083B2 (en) Microcomputer with built-in watchdog timer
JPS60124734A (en) Interruption processing circuit to cpu
JPS63155330A (en) Microprogram controller
JPS62177640A (en) Program debugging device
JPS6295644A (en) Program debugging device for microprocessor
JPS6012656B2 (en) Retry control method
JPS63271545A (en) Watch dog timer
JPH0194451A (en) Program developer
JP3405513B2 (en) Redundant controller for programmable controller
JPH0784835A (en) Microcomputer system
JPS6310234A (en) Interruption processor
JP2539064B2 (en) Microprocessor