JPH02278347A - Output circuit for debugging data - Google Patents

Output circuit for debugging data

Info

Publication number
JPH02278347A
JPH02278347A JP1100445A JP10044589A JPH02278347A JP H02278347 A JPH02278347 A JP H02278347A JP 1100445 A JP1100445 A JP 1100445A JP 10044589 A JP10044589 A JP 10044589A JP H02278347 A JPH02278347 A JP H02278347A
Authority
JP
Japan
Prior art keywords
address
comparison
storage device
counter
count
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
JP1100445A
Other languages
Japanese (ja)
Inventor
Seiki Sakai
清貴 酒井
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 JP1100445A priority Critical patent/JPH02278347A/en
Publication of JPH02278347A publication Critical patent/JPH02278347A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To automatically output data written in a certain area on a storage device by transferring data from an address shown in a first comparison address register in the storage device to an address shown in a second comparison address register to an output buffer when a counter has counted out. CONSTITUTION:When an execution control part 1 accesses the storage device 2, it outputs the address to an address bus 9. Comparison circuits 5 and 6 respectively compare a value outputted on the address bus 9 with values stored in the comparison address registers 3 and 4. An AND gate 8 outputs a count signal to the counter 10 when coincidence signals from the comparison circuits 5 and 6 come to '1'. A DMA transfer control part 7 DMA-transfers data from the address stored in the comparison address register 3 in the storage device 2 to the address stored in the comparison address register 4 to the output buffer by a count out signal from the counter 10. Thus, data in the storage device can be outputted as for debugging.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、中央処理装置に設けられる記憶装置中のデー
タをデバグ用として出方するためのデバグ用データ出力
回路に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a debugging data output circuit for outputting data in a storage device provided in a central processing unit for debugging purposes.

〔従来の技術〕[Conventional technology]

従来中央処理装置が有する記憶装置中の、あるアドレス
範囲に書がれなデータの内容を見ようとしたとき、指定
されたアドレス範囲に書き込みが行われたら、中央処理
装置を停止してマニュアルで指定したアドレスの内容を
読み出す方式をとっている。
Conventionally, when attempting to view the contents of data that has not been written to a certain address range in the storage device of a central processing unit, if a write is made to the specified address range, the central processing unit must be stopped and the data specified manually. A method is used to read the contents of the address.

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

上述した中央処理装置を停止してしまう方法では、例え
ば通信用のバッファとして使用しているときのように、
あるアドレス範囲に連続して何回もデータが書き込まれ
、ある回数目のデータを採取しないがその間停止するこ
とができない、あるいは、複数回書き込まれたデータを
全て出力すると出力バッファが足りなくなってしまうと
いった間圧がある。
In the above-mentioned method of stopping the central processing unit, for example when using it as a communication buffer,
Data is written to a certain address range many times in a row, and the data is not collected for a certain number of times, but cannot be stopped during that time, or the output buffer runs out when all the data written multiple times is output. There is such a pressure.

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

本発明のデバグ用データ出力回路の構成は、情報処理装
置の記憶装置の第1及び第2のアドレス情報を格納する
ための第1及び第2の比較アドレスレジスタと、前記記
憶装置へ与えるアドレスと前記第1及び第2の比較アド
レスレジスタの内容とをそれぞれ比較する第1及び第2
の比較回路と、前記第1の比較回路が一致を示し、その
前後に前記第2の比較回路が一致を示した時にカウント
を行い、そのカウント値が指定値になったときにカウン
トアウトを出力するカウンタと、このカウンタがカウン
トアウトした時に、前記記憶装置の前記第1の比較アド
レスレジスタに示されたアドレスから前記第2の比較ア
ドレスレジスタに示されたアドレスまでのデータを、出
力バッファへ転送する手段を含んで構成されることを特
徴とする。
The configuration of the debug data output circuit of the present invention includes first and second comparison address registers for storing first and second address information of a storage device of an information processing device, and an address to be given to the storage device. first and second registers that compare the contents of the first and second comparison address registers, respectively;
When the comparison circuit and the first comparison circuit indicate a match, and the second comparison circuit indicates a match before and after that, a count is performed, and a countout is output when the count value reaches a specified value. and a counter to transfer data from the address indicated in the first comparison address register of the storage device to the address indicated in the second comparison address register to an output buffer when this counter counts out. It is characterized in that it is configured to include means for.

〔実施例〕〔Example〕

次に、本発明の実施例について図面を参照して説明する
Next, embodiments of the present invention will be described with reference to the drawings.

第1図は本発明の一実施例のブロック図である。本図で
、1は実行制御部、2は記憶装置、3及び4は第1及び
第2のアドレス情報を格納するための比較アドレスレジ
スタ、5及び6は記憶装置2へ与えるアドレスと比較レ
ジスタ5及び6の内容とをそれぞれ比較する比較a路、
7は比較アドレスレジスタ3及び4のアドレスで示され
る記憶装置2のデータを出力バッファへDMA転送を行
なわせるDMA転送制御部、8は比較回路5及び6の比
較結果が共に一致を示した時に、カウンタ10ヘ力ウン
ト信号を出力すると共に、比較回路5及び6の一致信号
をリセットするためのアンドゲート、10は前記比較ア
ドレスレジスタ3及び4のアドレスで示される記憶装置
2のエリアに連続して何回か格納されるデータのその何
回目であるかを示す値を格納するカウンタである。
FIG. 1 is a block diagram of one embodiment of the present invention. In this figure, 1 is an execution control unit, 2 is a storage device, 3 and 4 are comparison address registers for storing first and second address information, and 5 and 6 are address and comparison registers 5 to be given to the storage device 2. and a comparison path for comparing the contents of 6 and 6, respectively;
7 is a DMA transfer control unit that performs DMA transfer of the data in the storage device 2 indicated by the addresses of the comparison address registers 3 and 4 to the output buffer; and 8 is a DMA transfer control unit that performs DMA transfer of the data in the storage device 2 indicated by the addresses of the comparison address registers 3 and 4; An AND gate for outputting a count signal to the counter 10 and resetting the match signals of the comparison circuits 5 and 6; This is a counter that stores a value indicating the number of times data is stored several times.

実行制御部1は記憶装置2をアクセスする時、そのアド
レスをアドレスバス9へ出力する。比較アドレスレジス
タ3及び4は、外部からセットされたアドレスを保持す
る。比較回路5及び6は、アドレスバス9上に出力され
た値と比較アドレスレジスタ3及び4に格納された値と
をそれぞれ比較し、一致した時にアンドゲート8へ一致
信号論理“1′“をそれぞれ出力する。アンドゲート8
は、比較回路5及び6からの一致信号がどちらも“1″
となったときカウンタ10ヘ力ウント信号を出力すると
共に、比較回路5及び6をリセットして一致信号を′0
″にする。カウンタ10は外部からセットされ、アンド
ゲート8からのカウント信号によってカウントダウンを
行い、カウントが尽きたときにカウントアウトを出力す
る。DMA転送制御部7は、カウンタ10からのカウン
トアウト信号によって、記憶装置2の比較アドレスレジ
スタ3に格納されたアドレスから比較アドレスレジスタ
4に格納されたアドレスまでのデータを出力バッファへ
DMA転送する。
When the execution control unit 1 accesses the storage device 2, it outputs the address to the address bus 9. Comparison address registers 3 and 4 hold addresses set from the outside. Comparison circuits 5 and 6 compare the value output on address bus 9 and the values stored in comparison address registers 3 and 4, respectively, and when they match, send a match signal logic "1'" to AND gate 8, respectively. Output. and gate 8
In this case, both match signals from comparator circuits 5 and 6 are “1”
When this happens, a count signal is output to the counter 10, and the comparison circuits 5 and 6 are reset to set the coincidence signal to '0'.
''. The counter 10 is set externally, counts down based on the count signal from the AND gate 8, and outputs a count-out when the count is exhausted.The DMA transfer control unit 7 receives the count-out signal from the counter 10. As a result, data from the address stored in the comparison address register 3 of the storage device 2 to the address stored in the comparison address register 4 is DMA-transferred to the output buffer.

例えば、実行制御部1が記憶装置2のアドレスXXから
YYまでを、例えば、通信用データが連続して何回も格
納されるバッファとして使用していて、そこに書かれる
Z回目の内容がみたい時、比較アドレスレジスタ3にX
Xをセットし、比較アドレスレジスタ4にYYをセット
し、カウンタ10にZをセットする。実行制御部1が記
憶装置2のアドレスXXからYYまでデータを書き込む
ためにアドレスバス9にアドレスXXおよびYYが順次
出力される。比較回路5は、アドレスバス9上に出力さ
れたその値と比較アドレスレジスタ3に格納された値を
比較し、アドレスバス9上にXXが出力されたときに一
致を認識しアンドゲート8に一致信号“1′°を出力す
る。比較回路6は、アドレスバス9上に出力された値と
比較アドレスレジスタ4に格納された値とを比較し、ア
ドレスバス9上にYYが出力されたときに一致を認識し
てアンドゲート8に一致信号“°1パを出力する。アン
ドゲート8は、比較回路5及び6がらの一致信号が“1
パになると、カウンタ1oにカウント信号を送出すると
共に、比較回路5及び6をリセットして一致信号を”0
′′にする。そのようにして、アンドゲート8からカウ
ント信号が7回くると、カウンタ10はカウントアウト
信号を出力する。DMA転送制御部7は、カウンタ10
からのカウントアウト信号によって、比較アドレスレジ
スタ3及び比較アドレスレジスタ4の内容であるアドレ
ス゛’xx”、’“Y Y ”を読みだし、記憶装置2
のアドレスXXからアドレスYYまでのデータを、出力
バッファへDMA転送する。
For example, if the execution control unit 1 uses addresses XX to YY of the storage device 2 as a buffer in which communication data is continuously stored many times, and you want to see the contents written there the Zth time. When the comparison address register 3 is
Set X, set YY in comparison address register 4, and set Z in counter 10. Addresses XX and YY are sequentially output to the address bus 9 in order for the execution control unit 1 to write data from addresses XX to YY in the storage device 2. Comparison circuit 5 compares the value output on address bus 9 with the value stored in comparison address register 3, recognizes a match when XX is output on address bus 9, and outputs a match to AND gate 8. The comparison circuit 6 compares the value output on the address bus 9 with the value stored in the comparison address register 4, and when YY is output on the address bus 9, the signal “1'° is output. The match is recognized and a match signal "°1pa" is output to the AND gate 8. AND gate 8 determines that the match signals from comparison circuits 5 and 6 are “1”.
When the match signal becomes "0", it sends a count signal to the counter 1o, resets the comparison circuits 5 and 6, and sets the match signal to "0".
Make it ``. In this way, when the count signal is received from the AND gate 8 seven times, the counter 10 outputs a count-out signal. The DMA transfer control unit 7 has a counter 10
In response to the count-out signal from the storage device 2, the contents of the comparison address register 3 and the comparison address register 4, ``'xx'' and ``Y Y'', are read out.
DMA transfers data from address XX to address YY to the output buffer.

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

本発明のデバグ用データ出力回路は、第1及び第2のア
ドレス情報を格納するための第1及び第2の比較アドレ
スレジスタと、記憶装置へ与えるアドレスと第1及び第
2の比較アドレスレジスタの内容とをそれぞれ比較・す
る第1及び第2の比較回路と、第1の比較回路が一致を
示し、その前後に第2の比較回路が一致を示した時にカ
ウントを行い、指定値になったときにカウントアウトを
出力するカウンタと、カウンタがカウントアウトした時
に記憶装置の第1の比較アドレスレジスタに示されたア
ドレスから第2の比較アドレスレジスタに示されたアド
レスまでのデータを、出力バッファへ転送する手段を有
することによって、中央処理装置を停止することなく記
憶装置上のあるエリアに書かれたデータを自動的に出力
することができるという効果がある。
The debugging data output circuit of the present invention includes first and second comparison address registers for storing first and second address information, and an address to be given to a storage device and the first and second comparison address registers. The first and second comparison circuits respectively compare the content and the first comparison circuit indicates a match, and when the second comparison circuit indicates a match before and after that, a count is performed and the specified value is reached. A counter that outputs a countout when the counter has counted out, and data from the address indicated in the first comparison address register of the storage device to the address indicated in the second comparison address register of the storage device to the output buffer when the counter has counted out. Having the transfer means has the effect that data written in a certain area on the storage device can be automatically output without stopping the central processing unit.

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

第1図は、本発明のデバグ用データ出力回路が適用され
た中央処理装置の内部構成図である。 1・・・実行制御部、2・・・記憶装置、3,4・・・
比較アドレスレジスタ、5,6・・・比較回路、7・・
・DMA転送制御部、8・・・アンドゲート、9・・・
アドレスバス、10・・・カウンタ。
FIG. 1 is an internal configuration diagram of a central processing unit to which a debugging data output circuit of the present invention is applied. 1... Execution control unit, 2... Storage device, 3, 4...
Comparison address register, 5, 6... Comparison circuit, 7...
・DMA transfer control unit, 8...and gate, 9...
Address bus, 10... counter.

Claims (1)

【特許請求の範囲】[Claims] 情報処理装置の記憶装置の第1及び第2のアドレス情報
を格納するための第1及び第2の比較アドレスレジスタ
と、前記記憶装置へ与えるアドレスと前記第1及び第2
の比較アドレスレジスタの内容とをそれぞれ比較する第
1及び第2の比較回路と、前記第1の比較回路が一致を
示し、その前後に前記第2の比較回路が一致を示した時
にカウントを行い、そのカウント値が指定値になったと
きにカウントアウトを出力するカウンタと、このカウン
タがカウントアウトした時に、前記記憶装置の前記第1
の比較アドレスレジスタに示されたアドレスから前記第
2の比較アドレスレジスタに示されたアドレスまでのデ
ータを、出力バッフアへ転送する手段を含むことを特徴
とするデバグ用データ出力回路。
first and second comparison address registers for storing first and second address information of a storage device of an information processing device;
First and second comparison circuits each compare the contents of a comparison address register of , and the first comparison circuit performs a count when the first comparison circuit indicates a match, and the second comparison circuit indicates a match before and after that. , a counter that outputs a count-out signal when its count value reaches a specified value, and a counter that outputs a count-out signal when the count value reaches a specified value;
1. A debugging data output circuit comprising means for transferring data from an address indicated in a comparison address register of a second comparison address register to an address indicated in said second comparison address register to an output buffer.
JP1100445A 1989-04-19 1989-04-19 Output circuit for debugging data Pending JPH02278347A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1100445A JPH02278347A (en) 1989-04-19 1989-04-19 Output circuit for debugging data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1100445A JPH02278347A (en) 1989-04-19 1989-04-19 Output circuit for debugging data

Publications (1)

Publication Number Publication Date
JPH02278347A true JPH02278347A (en) 1990-11-14

Family

ID=14274124

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1100445A Pending JPH02278347A (en) 1989-04-19 1989-04-19 Output circuit for debugging data

Country Status (1)

Country Link
JP (1) JPH02278347A (en)

Similar Documents

Publication Publication Date Title
US4271466A (en) Direct memory access control system with byte/word control of data bus
JPS60168244A (en) Brake point circuit
KR880001167B1 (en) Microcomputer system with buffer in peripheral storage control
JPS61114353A (en) Access collation structural body for digital data processingsystem having demand time paging memory
US11252108B2 (en) Controller for ordering out-of-order transactions in SoC
JPH02278347A (en) Output circuit for debugging data
JPH0358246A (en) Data output circuit for debug
JPS6249537A (en) Data buffer controller
JPS62263560A (en) Data transfer system
JPH03100851A (en) Fifo storage device
JPH02136921A (en) Register access system
JPS63111548A (en) Address comparator
JPS61117651A (en) Interface device
JPH01173245A (en) No-response detecting circuit
JPS6238743B2 (en)
JPH0465712A (en) Information processor
JPH0250496B2 (en)
JPS589274A (en) Write data buffer control device
JPS60563A (en) Multiprocessor
JPH01158554A (en) Data processing system providing dma device
JPS6155137B2 (en)
JPH1021155A (en) System for comparing memory data
JPS62293582A (en) Memory device
JPH01100652A (en) Direct memory access controller
JPH02176843A (en) Dma controller