JPH0248743A - Method and device for address-compare processing - Google Patents

Method and device for address-compare processing

Info

Publication number
JPH0248743A
JPH0248743A JP63198017A JP19801788A JPH0248743A JP H0248743 A JPH0248743 A JP H0248743A JP 63198017 A JP63198017 A JP 63198017A JP 19801788 A JP19801788 A JP 19801788A JP H0248743 A JPH0248743 A JP H0248743A
Authority
JP
Japan
Prior art keywords
address
compare
main
main program
processor
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
JP63198017A
Other languages
Japanese (ja)
Inventor
Masahiro Ito
雅洋 伊藤
Masaki Otsuka
大塚 正起
Shintaro Ishigaki
石垣 信太郎
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 JP63198017A priority Critical patent/JPH0248743A/en
Publication of JPH0248743A publication Critical patent/JPH0248743A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。
(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.

Description

【発明の詳細な説明】 〔概 要〕 主プログラム実行中にアドレスコンペアがとれたとき別
のサブプログラムにトラップする処理を行うアドレスコ
ンペア処理方法及び装置に関し、アドレスコンペアがと
れた後もサブプログラムの処理と並行して、主プログラ
ムの実行を中断させることなく続行させることを目的と
し、プロセッサが主プログラム実行中に、主プログラム
アクセス用の主シーケンサのアドレスが予め設定された
コンペアアドレスとアドレスコンペアがとれたときにサ
ブプログラムの指定されたアドレスにトラップするアド
レスコンペア処理方法は、サブプログラムをアクセスす
るアドレスを順番に発生するサブシーケンサを設けて前
記トラップされたアドレス以降のサブプログラムをアク
セスさせ、プロセッサは前記アドレスコンペアがとれた
後も、主シーケンサにより引き続き主プログラムをアク
セスして主プログラムの実行を中断することなく続行す
るように構成される。
[Detailed Description of the Invention] [Summary] Regarding an address compare processing method and device that performs a process of trapping to another subprogram when an address compare is obtained during execution of a main program, even after an address comparison is obtained, the subprogram is In parallel with processing, for the purpose of continuing the execution of the main program without interruption, while the processor is executing the main program, the address of the main sequencer for accessing the main program is compared with a preset compare address. An address compare processing method that traps a specified address of a subprogram when a subprogram is detected is to provide a subsequencer that sequentially generates addresses for accessing subprograms, access subprograms after the trapped address, and is configured such that even after the address comparison is completed, the main sequencer continues to access the main program and continues execution of the main program without interruption.

〔産業上の利用分野〕[Industrial application field]

本発明は、主シーケンサによりアクセスして主プログラ
ムを実行中に、予め設定されたコンペアアドレスとアド
レスコンペアがとれたときに、別のサブプログラムのア
ドレスにトラップする処理を行うアドレスコンペア処理
方法及びその実施に好適なアドレスコンペア処理装置に
関する。
The present invention relates to an address comparison processing method that performs a process of trapping to an address of another subprogram when an address is compared with a preset compare address while a main program is being accessed and executed by a main sequencer. The present invention relates to an address compare processing device suitable for implementation.

〔従来の技術〕[Conventional technology]

アドレスコンペア処理においては、アドレスを順番に設
定するシーケンサ(Sequeneer )を使用して
プログラムを実行中に、そのアドレスが予め設定された
コンペアアドレスに一致すると、その時点で指定したア
ドレスにトラップして所定の処理が行われる。
In address compare processing, when a program is executed using a sequencer that sequentially sets addresses, and when that address matches a preset compare address, the address is trapped at the address specified at that point and a predetermined processing is performed.

第4図は、従来のアドレスコンペア処理装置の構成をブ
ロック図で示したものである。アドレスコンペア時の処
理として、トラップ先のサブプログラムの内容をトレス
する処理が行われる。
FIG. 4 is a block diagram showing the configuration of a conventional address compare processing device. As processing during address comparison, processing is performed to trace the contents of the trap destination subprogram.

第4図において、30は、プロセッサで、主プログラム
及びサブプログラムをアクセスするアドレスを順番に発
生するシーケンサ(以下、SQRで示す)31を備えて
いる。
In FIG. 4, a processor 30 includes a sequencer (hereinafter referred to as SQR) 31 that sequentially generates addresses for accessing the main program and subprograms.

32は主メモリで、プロセッサ30の実行する主プログ
ラムが格納される。
A main memory 32 stores the main program executed by the processor 30.

33はサブメモリで、アドレスコンペアがとれた時点以
降に実行されるサブプログラムが格納される。
A submemory 33 stores a subprogram to be executed after the address comparison is completed.

40はアドレスコンペア回路(以下、ADCMP40で
示す)で、内部にコンベアするコンペアアドレスヲ格納
するコンペアアドレスレジスタ41 (以下、CAR4
1で示す)を備え、5QR31とCAR41のアドレス
コンペアを行う。
40 is an address compare circuit (hereinafter referred to as ADCMP40), and a compare address register 41 (hereinafter referred to as CAR4) stores a compare address to be conveyed inside.
1) and performs address comparison between 5QR31 and CAR41.

この構成において、プロセッサ30は、5QR31が発
生するアドレスにより主メモリ32の主プログラムを順
番にアクセスしてそれを逐次実行する。
In this configuration, the processor 30 sequentially accesses the main program in the main memory 32 using the address generated by 5QR31 and executes the main program sequentially.

一方、ADCMP40は、5QR31の発生するアドレ
スとCAR41のアドレスをコンベアし、アドレスコン
ペアがとれるとすなわち両者の一致が検出されると、こ
れをプロセッサ40に通知するとともに、サブメモリ3
3にあるサブプログラムの予め指定されたアドレスにト
ラップする。
On the other hand, the ADCMP 40 conveys the address generated by 5QR 31 and the address of CAR 41, and when the address is compared, that is, when a match is detected between the two, it notifies the processor 40 of this and also sends it to the sub-memory 3.
Trap to a prespecified address of the subprogram in 3.

プロセッサ30は、アドレスコンペアがとれた時点で主
プログラムの処理を中断する処理すなわちアドレスコン
ペア・ストップを行うとともに、5QR31の発生する
アドレスでサブメモリ33をアクセスし、トラップされ
たアドレス以降のサブプログラムを読み出してトレース
する処理を行う。
The processor 30 interrupts the processing of the main program when the address comparison is completed, that is, performs an address compare stop, and also accesses the submemory 33 at the address where 5QR31 occurs, and executes the subprogram after the trapped address. Performs reading and tracing processing.

これにより、アドレスコンペアがとれた時点以降は、ト
ラップされたアドレス以降のサブプログラムが5QR3
1によりアクセスされ、その内容がトレースされる。
As a result, after the address comparison is completed, the subprogram after the trapped address is 5QR3.
1 and its contents are traced.

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

従来のアドレスコンペア処理方式では、プロセッサは1
個のSQRを用いて主プログラムの処理を行い、アドレ
スコンペアがとれた以後は主プログラムの処理を中断(
アドレスコンペア・ストップ)し、同じSQRを用いて
トラップ先のサブプログラムの処理を行うようにしてい
た。
In the conventional address compare processing method, the processor
The main program is processed using these SQRs, and after the address comparison is completed, the main program processing is interrupted (
address compare and stop), and the same SQR was used to process the trap destination subprogram.

このため、アドレスコンペアがとれた時点以降のプロセ
ッサによる主プログラムの実行は中断されるので、主プ
ログラムの処理が遅れるという問題があった。
For this reason, the execution of the main program by the processor after the address comparison is completed is interrupted, resulting in a problem that the processing of the main program is delayed.

本発明は、アドレスコンペアがとれた後もプロセッサに
よる主プログラムの実行を中断させることなく、トラッ
プ先のサブプログラムの処理と並行して行うことができ
るように改良したアドレスコンペア処理方法及びその実
施に好適なアドレスコンペア処理装置を提供することを
目的とする。
The present invention provides an improved address compare processing method that can be performed in parallel with the processing of a trap destination subprogram without interrupting the execution of the main program by the processor even after the address comparison is completed, and its implementation. It is an object of the present invention to provide a suitable address comparison processing device.

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

前述の課題を解決するために、本発明のアドレスコンペ
ア処理方法及び装置の採用した手段を、第1図を参照し
て説明する。第1図は、本発明のアドレスコンペア処理
装置の基本構成をブロック図で示したものである。
In order to solve the above-mentioned problems, the means employed in the address compare processing method and apparatus of the present invention will be explained with reference to FIG. FIG. 1 is a block diagram showing the basic configuration of an address compare processing device of the present invention.

第1図において、10はプロセッサで、主シーケンサ(
以下、MSQRで示す)11及びサブシーケンサ(以下
、5SQRで示す)12を備え、MSQRIIにより主
プログラムをアクセスして主プログラムを実行し、MS
QRIIのアドレスが予め設定されたコンペアアドレス
とアドレスコンペアがとれたときは、トラップされたア
ドレス以降のサブプログラムを5SQR12によりアク
セスする処理を行う。
In FIG. 1, 10 is a processor, and a main sequencer (
MSQR II) 11 and subsequencer (hereinafter referred to as 5SQR) 12.
When the address of QRII is compared with a preset compare address, processing is performed to access the subprogram after the trapped address using 5SQR12.

主メモリ13には、プロセッサ10の実行する主プログ
ラムが格納される。
Main memory 13 stores a main program executed by processor 10 .

MSQRIIは、主メモリ13上にある主プログラムを
順番にアクセスするアドレスを、アドレスコンペアがと
れたか否かに関係なく発生する。
MSQRII generates addresses for accessing the main program in the main memory 13 in order, regardless of whether or not address comparison is achieved.

サブメモリ14には、アドレスコンペアがとれたときに
実行されるサブプログラムが格納される。
The submemory 14 stores a subprogram that is executed when address comparison is achieved.

5SQR12は、サブメモリ14にあるサブプログラム
をアクセスするアドレスを順番に発生する。
The 5SQR 12 sequentially generates addresses for accessing subprograms in the submemory 14.

20はアドレスコンペア制御部で、主プログラムをアク
セスするアドレスが予め設定されたコンペアアドレスと
アドレスコンペアがとれたときに、サブプログラムの指
定されたアドレスにトラップする制御を行う。
Reference numeral 20 denotes an address compare control unit which performs control to trap to a specified address of a subprogram when an address to access the main program is compared with a preset compare address.

なお、主メモリ13とサブメモリ14は、共通のメモリ
上の異なる領域に設けるようにしてもよい。また、サブ
プログラムは、主プログラムの一部であってもよい。
Note that the main memory 13 and the submemory 14 may be provided in different areas on a common memory. Further, the subprogram may be part of the main program.

本発明のアドレスコンペア処理方法は、以上説明したア
ドレスコンペア処理装置により実施されるものであって
、次のように構成される。
The address compare processing method of the present invention is implemented by the address compare processing device described above, and is configured as follows.

すなわち、プロセッサIOが主プログラムの実行中に、
主プログラムを順番にアクセスするアドレスを発生する
MSQRIIの発生するアドレスが予め設定されたコン
ペアアドレスとアドレスコンペアがとれたときは、サブ
プログラムの指定されたアドレスにトラップする処理を
行うアドレスコンペア処理方法において、 (A)サブプログラムをアクセスするアドレスを順番に
発生する5SQR12を設け、前記アドレスコンペアが
とれた時点以降は、トラップされたアドレス以降のサブ
プログラムを5SQRI2によりアクセスさせ、 (8) フロセッサ10は、前記アドレスコンペアがと
れた後も、MSQR11により引き続き主プログラムを
アクセスして主プログラムの処理を中断することなく続
行する、 ように構成される。
That is, while the processor IO is executing the main program,
In the address comparison processing method, when the address generated by MSQRII, which generates the address to access the main program in order, is compared with a preset compare address, the address is trapped at the specified address of the subprogram. (A) 5SQR12 is provided to sequentially generate addresses for accessing subprograms, and after the address comparison is completed, subprograms after the trapped address are accessed by 5SQRI2; (8) The processor 10: Even after the address comparison is completed, the MSQR 11 continues to access the main program and continues the processing of the main program without interruption.

〔作 用〕[For production]

本発明のアドレスコンペア処理方法の動作は本発明のア
ドレスコンペア処理装置の動作と共通するので、以下、
本発明のアドレスコンペア処理装置の動作を、第2図の
アドレスコンペア処理フローチャートを参照し、その処
理ステップに従って説明する。
Since the operation of the address compare processing method of the present invention is common to the operation of the address compare processing device of the present invention, the following will be explained below.
The operation of the address comparison processing device of the present invention will be explained according to the processing steps with reference to the address comparison processing flowchart of FIG.

■ 処理S1 プロセッサ10は、MSQRIIにより主メモリ13上
の主プロセツサを順番にアクセスして主プログラムを実
行する。
(2) Processing S1 The processor 10 sequentially accesses the main processors in the main memory 13 using the MSQRII and executes the main program.

■ 処理S2 アドレスコンペア制?1lt120ハ、MSQR11の
発生するアドレスと予め設定されたコンペアアドレスを
コンベアし、アドレスコンペアがトしたか判定する。
■ Processing S2 address comparison system? 1lt120c, conveys the address generated by the MSQR11 and a preset compare address, and determines whether the address compare is successful.

■ 処理S3 アドレスコンペアがとれたときは、アドレスコンペア制
御部2oは、サブメモリ14上にあるサブプログラムの
予め指定されたアドレスにトラップする制御を行う。
(2) Processing S3 When the address comparison is successful, the address comparison control unit 2o performs control to trap the subprogram in the submemory 14 at a prespecified address.

5SQR12は、このトラップされたアドレス以降のサ
ブプログラムを順番にアクセスする。これにより、アド
レスコンペアがとれた時点以降は、トラップされたアド
レス以降のサブプログラムが5SQR12によりアクセ
スされ、例えばアドレストレースが行われる。
The 5SQR12 sequentially accesses the subprograms after this trapped address. As a result, after the address comparison is completed, the subprogram after the trapped address is accessed by the 5SQR12, and, for example, address tracing is performed.

■ 処理S。■ Processing S.

一方、プロセッサ10は、前記アドレスコンペアがとれ
た後も、MSQRIIにより引き続き主プログラムをア
クセスし、その処理を中断することなく実行する。
On the other hand, even after the address comparison is completed, the processor 10 continues to access the main program using MSQRII and executes its processing without interruption.

以上のように、5SQR12を設けて、アドレスコンペ
アがとれた時点以降はトラップされたアドレス以降のサ
ブプログラムをアクセスさせるようにしたので、アドレ
スコンペアがとれた後も、プロセッサによる主プログラ
ムの処理をトラップ先のサブプログラムの処理と並行し
て行うことができる。
As described above, by providing 5SQR12, the subprogram after the trapped address is accessed after the address comparison is obtained, so even after the address comparison is obtained, the processing of the main program by the processor is trapped. This can be done in parallel with the processing of the previous subprogram.

これにより、アドレスコンペアがとれた後もプロセッサ
による主プログラムの処理は中断されることなく続行さ
れるので、主プログラムの処理の遅れを全面的に解消す
ることができる。
This allows the processor to continue processing the main program without interruption even after the address comparison is completed, so that delays in main program processing can be completely eliminated.

〔実施例〕〔Example〕

本発明のアドレスコンペア処理方法及び装置ノ実施例を
、第3図を参照して説明する。第3図は、本発明のアド
レスコンペア処理装置の一実施例の構成の説明図である
An embodiment of the address compare processing method and apparatus of the present invention will be described with reference to FIG. FIG. 3 is an explanatory diagram of the configuration of an embodiment of the address compare processing device of the present invention.

本発明のアドレスコンペア処理方法の実施例の内容は、
本発明のアドレスコンペア装置の動作説明の内容と共通
するので、アドレスコンペア装置の動作説明の所で一緒
に説明する。
The content of the embodiment of the address compare processing method of the present invention is as follows:
Since the content is common to the explanation of the operation of the address comparison device of the present invention, it will be explained together with the explanation of the operation of the address comparison device.

(A)  アドレスコンペア処理装置の構成第3図にお
いて、プロセッサ10.MSQRll、5SQR12,
主メモリ13.サブメモリ14及びアドレスコンペア制
御部20については、第1図で説明したとおりである。
(A) Configuration of Address Compare Processing Device In FIG. 3, processor 10. MSQRll, 5SQR12,
Main memory 13. The submemory 14 and address compare control section 20 are as described in FIG. 1.

アドレスコンペア制御部20において、21は主アドレ
スコンペア回路(以下、MADCMPで示す)で、コン
ベアするコンペアアドレスがセットされる主コンペアア
ドレスレジスタ211 (以下、MCAR211で示す
)を備え、MSQRllのアドレスとMCAR211に
予めセットされたコンペアアドレスのアドレスコンペア
がとれたとき、主トリガ信号を発生する。
In the address compare control unit 20, 21 is a main address compare circuit (hereinafter referred to as MADCMP), which includes a main compare address register 211 (hereinafter referred to as MCAR211) in which a compare address to be conveyed is set, and the address of MSQRll and MCAR211 are set. When the address comparison of the compare address set in advance is completed, a main trigger signal is generated.

22はサブアドレスコンペア回路(以下、SADCMP
で示す)で、コンベアするコンペアアドレスがセットさ
れるサブコンペアアドレスレジスフ221を(以下、5
CAR221で示す)を備え、5SQR12のアドレス
と5CAR221に予めセットされたコンペアアドレス
とのアドレスコンペアがとれたとき、副トリガ信号を発
生する。
22 is a subaddress compare circuit (hereinafter referred to as SADCMP)
), the sub-compare address register 221 where the compare address to be conveyed is set (hereinafter referred to as 5).
When the address of 5SQR12 and the compare address preset in 5CAR221 are compared, a sub-trigger signal is generated.

MADCMP21とSADCMP22は、共通の構成を
有する。
MADCMP21 and SADCMP22 have a common configuration.

23は主トリガ選択回路(以下、MT S E Lで示
す) 、MADCMP21及びSADCMP22から入
力された各トリガ信号を選択し、主プログラムの指令ア
ドレスをトラップする主トラップ信号を発生して、主メ
モリ13に供給する。
23 is a main trigger selection circuit (hereinafter referred to as MTSEL), which selects each trigger signal inputted from MADCMP 21 and SADCMP 22, generates a main trap signal for trapping the command address of the main program, and stores the main memory 13 supply to.

24はサブトリガ選択回路(以下、5TSELで示す〉
で、MADCMP21及びS A D CM P22か
ら人力された各トリガ信号を選択し、サブプログラムの
指定アドレスをトラップする副トラップ信号を発生して
、サブメモリ14に供給する。
24 is a sub-trigger selection circuit (hereinafter referred to as 5TSEL)
Then, each manually inputted trigger signal is selected from the MADCMP 21 and the SADCM P22, and a sub-trap signal for trapping the designated address of the sub-program is generated and supplied to the sub-memory 14.

MTSEL23と5TSEL24は、共通の構成を有す
る。
MTSEL23 and 5TSEL24 have a common configuration.

(B)実施例の動作 第3図のアドレスコンペア処理装置は、そノ構成から明
らかなように、主プログラム側とサブプログラム側は同
じ構成になっている。これより、次に説明する動作(1
)及び(2)が可能である。以下、第3図のアドレスコ
ンペア処理装置の動作すなわち本発明のアドレスコンペ
ア処理方法の一実施例の動作を、各動作に分けて説明す
る。
(B) Operation of the Embodiment As is clear from the structure of the address compare processing device shown in FIG. 3, the main program side and the subprogram side have the same structure. From this, the operation explained next (1
) and (2) are possible. The operation of the address compare processing device shown in FIG. 3, that is, the operation of an embodiment of the address compare processing method of the present invention, will be explained below by dividing into each operation.

(1)動作(1) 動作(1〕におては、主プログラムの実行中にMSQR
IIのアドレスコンペアがとれたときに、サブプログラ
ムの指定アドレスにトラップされる。
(1) Operation (1) In operation (1), MSQR is
When the address comparison of II is successful, it is trapped at the specified address of the subprogram.

この動作(1)においては、MCAR211にコンペア
アドレスがセットされるが、5CAR221にはコンペ
アアドレスはセットされない。したがって、SADCM
P22からは、副トリガ信号は発生されない。
In this operation (1), a compare address is set in MCAR211, but no compare address is set in 5CAR221. Therefore, SADCM
No sub-trigger signal is generated from P22.

また、MTSEL23は、SADCMP22からの副ト
リガ信号を選択するか又は無選択状態に設定され、5T
SEL24は、MADCMP21からの主トリガ信号を
選択するように設定される。
Moreover, MTSEL23 selects the sub-trigger signal from SADCMP22 or is set to a non-selected state, and 5T
SEL24 is set to select the main trigger signal from MADCMP21.

この状態でプロセッサ10は、MSQRIIにより主メ
モリ12上の主プログラムを順番にアクセスして主プロ
グラムを実行する。
In this state, the processor 10 sequentially accesses the main programs on the main memory 12 using the MSQRII and executes the main programs.

アドレスコンペア制御部20のMADCMP21は、M
SQRIIのアドレスとMCAR211のアドレスをコ
ンベアし、アドレスコンペアがとれたときに主トリガ信
号を発生する。
The MADCMP 21 of the address compare control unit 20
The address of SQRII and the address of MCAR211 are conveyed, and when the address is compared, a main trigger signal is generated.

一方、SADCMP22の5CAR221にはコンペア
アドレスがセットされていないのでアドレスコンペアは
とれず、副トリガ信号は発生されない。
On the other hand, since no compare address is set in 5CAR 221 of SADCMP 22, address comparison cannot be performed and no sub-trigger signal is generated.

5TSEL24は、MADCMP 21より主トリガ信
号が人力されると副トラップ信号を発生して、サブメモ
リ14に供給する。これにより、サブプログラムの予め
指定されたアドレスがトラップされる。
When the main trigger signal is manually input from the MADCMP 21, the 5TSEL 24 generates a sub trap signal and supplies it to the sub memory 14. This traps the prespecified address of the subprogram.

5SQR12は、このトラップされたアドレス以降のサ
ブプログラムを順番にアクセスする。これにより、アド
レスコンペアがとれた時点以降は、トラップされたアド
レス以降のサブプログラムが5SQR12によりアクセ
スされ、例えばアドレストレースが行われる。
The 5SQR12 sequentially accesses the subprograms after this trapped address. As a result, after the address comparison is completed, the subprogram after the trapped address is accessed by the 5SQR12, and, for example, address tracing is performed.

一方、フロセッサ10は、前記アドレスコンペアがとれ
た時も、MSQRIIにより引き続き主プログラムをア
クセスし、その処理を中断することなく実行する。
On the other hand, even when the address comparison is completed, the processor 10 continues to access the main program using MSQRII and executes its processing without interruption.

(2)動作(2) 動作(2)においては、サブプログラムの実行中に5S
QRIIのアドレスコンペアがとれたときに、主プログ
ラムの指定アドレスにトラップされる。
(2) Operation (2) In operation (2), 5S is executed during the execution of the subprogram.
When the QRII address is compared, it is trapped at the specified address of the main program.

この動作(2)においては、5CAR221にコンペア
アドレスがセットされるが、MCAR211にはコンペ
アアドレスはセットされない。したがって、MADCM
P21からは、主トリガ信号は発生されない。
In this operation (2), a compare address is set in 5CAR221, but no compare address is set in MCAR211. Therefore, MADCM
No main trigger signal is generated from P21.

また、5TSEL24は、MADCMP21からの主ト
リガ信号を選択するか又は無選択状態に設定サレ、MT
SEL23は、SADCMP22からの副トリガ信号を
選択するように設定される。
In addition, 5TSEL24 selects the main trigger signal from MADCMP21 or sets it to a non-selected state.
SEL23 is set to select the sub-trigger signal from SADCMP22.

この状態でプロセッサ10は、5SQRIIによりサブ
メモリ14上のサブプログラムを順番にアクセスしてサ
ブプログラムを実行する。
In this state, the processor 10 sequentially accesses the subprograms on the submemory 14 using 5SQRII and executes the subprograms.

アドレスコンペア制御120のSADCMP 22は、
5SQR12のアドレスと5CAR221のアドレスを
コンベアシ、アドレスコンペアがとれたとき副トリガ信
号を発生する。
The SADCMP 22 of the address compare control 120 is
It conveys the address of 5SQR12 and the address of 5CAR221, and generates a sub-trigger signal when the address is compared.

一方、MADCMP21のMCAR211にはコンペア
アドレスがセットされていないのでアドレスコンペアは
とれず、主トリガ信号は発生されない。
On the other hand, since no compare address is set in MCAR 211 of MADCMP 21, address comparison cannot be performed and the main trigger signal is not generated.

MTSEL23は、SADCMP22より副トリガ信号
が入力されると主トラップ信号を発生して、主メモリ1
3に供給する。これにより、主プログラムの予め指定さ
れたアドレスがトラップされる。
When the sub-trigger signal is input from the SADCMP 22, the MTSEL 23 generates a main trap signal and stores the main memory 1.
Supply to 3. This traps the prespecified address of the main program.

MSQRIIは、このトラップされたアドレス以降の主
プログラムを順番にアクセスする。これにより、アドレ
スコンペアがとれた時点以降は、トラップされたアドレ
ス以降の主プログラムがMSQRIIによりアクセスさ
れ、例えばアドレストレースが行われる。
MSQRII sequentially accesses the main program starting from this trapped address. As a result, after the address comparison is completed, the main program after the trapped address is accessed by the MSQRII, and, for example, address tracing is performed.

一方、フロセッサ10は、前記アドレスコンペアがとれ
た後も、5SQR12により引き続きサブプログラムを
アクセスし、その処理を中断することなく実行する。
On the other hand, even after the address comparison is completed, the processor 10 continues to access the subprogram using the 5SQR 12 and executes its processing without interruption.

以上のようにして、主プログラムとサブプログラムが同
等の立場で、互いに相手のプログラムのアドレスにトラ
ップすることができる。
As described above, the main program and subprogram can trap each other to the address of the other program on the same basis.

第3図のアドレスコンペア処理装置を用いルト、第4図
で説明した従来方式と同様なアドレスコンペア処理を行
うことが可能であるので、以下動作(3)として説明す
る。
Since it is possible to perform address comparison processing similar to the conventional method described in FIG. 4 using the address comparison processing device shown in FIG. 3, this will be described below as operation (3).

(3)動作(3) 動作(3)においては、主プログラムの実行中にMSQ
RIIのアドレスコンペアがとれたときに、主プログラ
ム内の指定アドレスにトラップされ、MSQRlrによ
ってトラップされたアドレス以降の主プログラムがアク
セスされる。
(3) Operation (3) In operation (3), MSQ is
When the RII address comparison is completed, the specified address in the main program is trapped, and the main program after the trapped address is accessed by MSQRlr.

この動作(3)においては、MCAR211にコンペア
アドレスがセットされる。また、MTSEL23は、M
ADCMP 21からの主トリガ信号を選択するように
設定される。
In this operation (3), a compare address is set in MCAR 211. Also, MTSEL23 is M
It is set to select the main trigger signal from ADCMP 21.

この状態でプロセッサ10は、MSQRIIにより主メ
モリ12上の主プログラムを順番にアクセスして主プロ
グラムを実行する。
In this state, the processor 10 sequentially accesses the main programs on the main memory 12 using the MSQRII and executes the main programs.

アドレスコンペア制御部20のMADCMP 21は、
MSQRIIのアドレスとMCAR211のアドレスを
コンベアし、アドレスコンペアがとれたとき主トリガ信
号を発生する。
The MADCMP 21 of the address compare control unit 20 is
The address of MSQRII and the address of MCAR211 are conveyed, and a main trigger signal is generated when the address is compared.

MTSEL23は、MADCMP 21より主トリガ信
号が入力されると主トラップ信号を発生して、主メモリ
13に供給する。これにより、主プログラムの予め指定
されたアドレスがトラップされる。
When the main trigger signal is input from the MADCMP 21, the MTSEL 23 generates a main trap signal and supplies it to the main memory 13. This traps the prespecified address of the main program.

MSQRIIは、このトラップされたアドレス以降の主
プログラムを順番にアクセスする。これにより、アドレ
スコンペアがとれた時点以降は主プログラムのそれまで
の処理は中断され、トラップされたアドレス以降の主プ
ログラムがMSQRllによりアクセスされ、例えばア
ドレストレースが行われる。
MSQRII sequentially accesses the main program starting from this trapped address. As a result, after the address comparison is completed, the processing of the main program up to that point is interrupted, and the main program after the trapped address is accessed by MSQRll, and, for example, address tracing is performed.

以上は主プログラム側について説明したが、サブプログ
ラム側についても同様にしてアドレスコンペア処理を行
うことができる。サブプログラム側で行う場合は、SA
DCMP22の5CAR221にコンペアアドレスがセ
ットされ、5TSEL24は、SADCMP22の発生
する副トリガ信号を選択するように選択される。
Although the main program side has been described above, address comparison processing can be performed in the same manner on the subprogram side. If done on the subprogram side, use SA
A compare address is set in 5CAR221 of DCMP22, and 5TSEL24 is selected to select the sub-trigger signal generated by SADCMP22.

サブプログラム側のアドレスコンペア処理動作の内容は
、前述の主プログラム側のアドレスコンペア処理動作と
同様であるので、その説明は省略する。
The contents of the address comparison processing operation on the subprogram side are the same as the address comparison processing operation on the main program side described above, so a description thereof will be omitted.

以上のようにして、第3図のアドレスコンペア処理装置
によれば、本発明のアドレスコンペア処理とともに従来
のアドレスコンペア処理も行うことができる。
As described above, according to the address compare processing device of FIG. 3, it is possible to perform conventional address compare processing as well as the address compare processing of the present invention.

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

以上説明したように、本出願の各発明によれば、次の諸
効果が得られる。
As explained above, according to each invention of the present application, the following effects can be obtained.

(1)  5SQR12を設けて、アドレスコンペアが
とれた時点以降は、トラップされたアドレス以降のサブ
プログラムをアクセスさせるようにしたので、アドレス
コンペアがとれた後も、プロセッサによる主プログラム
の処理をトラップ先のサブプログラムの処理と並行して
行うことができる。
(1) 5SQR12 is provided so that after the address comparison is obtained, the subprogram after the trapped address is accessed, so even after the address comparison is obtained, the main program processing by the processor is not performed at the trap destination. This can be done in parallel with the subprogram processing.

〔2)前記(2)により、アドレスコンペアがとれた後
もプロセッサによる主プログラムの処理は中断されるこ
となく続行されるので、主プログラムの処理の遅れを全
面的に解消することができる。
[2] According to (2) above, the main program processing by the processor continues without interruption even after the address comparison is completed, so that delays in main program processing can be completely eliminated.

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

第1図は、本発明のアドレスコンペア処理装置の基本構
成の説明図、 第2図は、本発明のアドレスコンペア処理方法の処理フ
ローチャート、 第3図は、本発明のアドレスコンペア処理装置の一実施
例の構成の説明図、 第4図は、従来のアドレスコンペア処理装置の構成の説
明図である。 第1図及び第3図において、 10・・・プロセッサ、11・・・主シーケンサ(MS
QR)、12・・・サブシーケンサ(SSQR)、13
主メモリ、14・・・サブメモリ、20・・・アドレス
コンペア制御L 21・・・主アドレスコンペア回路(
MADCMP) 、211・・・主コンペアアドレスレ
ジスタ (MCAR) 、22・・・サブアドレスコン
ペア回路(SADCMP) 、222・・・サブコンペ
アアドレスレジスタ (SCAR) 、23・・・主ト
リガ選択回路(MTSEL) 、24・・・サブトリガ
選択回路(STSEL)。 本発明のアドレスコンペア処理装置の基本構成第1図 アドレスコンペア処理方法の 処理フローチャート 第2図 従来のアドレスコンペア処理装置の構成第4図
FIG. 1 is an explanatory diagram of the basic configuration of the address compare processing device of the present invention, FIG. 2 is a processing flowchart of the address compare processing method of the present invention, and FIG. 3 is an implementation of the address compare processing device of the present invention. FIG. 4 is an explanatory diagram of the configuration of a conventional address compare processing device. 1 and 3, 10... processor, 11... main sequencer (MS
QR), 12... Subsequencer (SSQR), 13
Main memory, 14... Sub memory, 20... Address compare control L 21... Main address compare circuit (
MADCMP), 211... Main compare address register (MCAR), 22... Sub address compare circuit (SADCMP), 222... Sub compare address register (SCAR), 23... Main trigger selection circuit (MTSEL), 24...Sub trigger selection circuit (STSEL). Basic configuration of the address compare processing device of the present invention FIG. 1 Processing flowchart of the address compare processing method FIG. 2 Configuration of the conventional address compare processing device FIG. 4

Claims (1)

【特許請求の範囲】 1、プロセッサ(10)が主プログラムの実行中に、主
プログラムをアクセスするアドレスを順番に発生する主
シーケンサ(11)の発生するアドレスが予め設定され
たコンペアアドレスとアドレスコンペアがとれたときは
、サブプログラムの指定されたアドレスにトラップする
処理を行うアドレスコンペア処理方法において、(A)
サブプログラムをアクセスするアドレスを順番に発生す
るサブシーケンサ(12)を設け、前記アドレスコンペ
アがとれた時点以降は、トラップされたアドレス以降の
サブプログラムをサブシーケンサ(12)によりアクセ
スさせ、 (B)プロセッサ(10)は、前記アドレスコンペアが
とれた後も、主シーケンサ(11)により引き続き主プ
ログラムをアクセスして主プログラムの実行を中断する
ことなく続行する、 ことを特徴とするアドレスコンペア処理方法。 2、プロセッサ(10)の実行する主プログラムを格納
する主メモリ(13)と、アドレスコンペアがとれたと
きに実行されるサブプログラムを格納するサブメモリ(
14)と、プロセッサ(10)が主プログラムの実行中
に主プログラムをアクセスするアドレスが予め設定され
たコンペアアドレスとアドレスコンペアがとれたときに
、サブプログラムの指定されたアドレスにトラップする
制御を行うコンペアアドレス制御部(20)を備えてア
ドレスコンペア処理を行うアドレスコンペア処理装置に
おいて、 (A)主メモリ(13)にある主プログラムを順番にア
クセスするアドレスを、アドレスコンペアがとれたか否
かに関係なく発生する主シーケンサ(11)と、 (B)サブメモリ(14)にあるサブプログラムをアク
セスするアドレスを順番に発生するサブシーケンサ(1
2)、 を設けたことを特徴とするアドレスコンペア処理装置。
[Claims] 1. While the processor (10) is executing the main program, addresses generated by the main sequencer (11) that sequentially generates addresses for accessing the main program are compared with a preset compare address. In the address compare processing method, which performs the process of trapping to the specified address of the subprogram when the
A subsequencer (12) is provided that sequentially generates addresses for accessing subprograms, and after the address comparison is completed, the subsequencer (12) accesses subprograms after the trapped address, (B) An address comparison processing method, characterized in that the processor (10) continues to access the main program using the main sequencer (11) even after the address comparison is completed, and continues the execution of the main program without interrupting it. 2. A main memory (13) that stores the main program executed by the processor (10), and a submemory (13) that stores the subprogram that is executed when address comparison is achieved.
14) When the processor (10) accesses the main program during execution of the main program and the address is compared with a preset compare address, the processor (10) performs control to trap to the specified address of the subprogram. In an address compare processing device that is equipped with a compare address control unit (20) and performs address compare processing, (A) the address to which the main program in the main memory (13) is sequentially accessed is related to whether or not address comparison has been performed; (B) a main sequencer (11) that sequentially generates addresses for accessing subprograms in the submemory (14);
2) An address compare processing device comprising:
JP63198017A 1988-08-10 1988-08-10 Method and device for address-compare processing Pending JPH0248743A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63198017A JPH0248743A (en) 1988-08-10 1988-08-10 Method and device for address-compare processing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63198017A JPH0248743A (en) 1988-08-10 1988-08-10 Method and device for address-compare processing

Publications (1)

Publication Number Publication Date
JPH0248743A true JPH0248743A (en) 1990-02-19

Family

ID=16384130

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63198017A Pending JPH0248743A (en) 1988-08-10 1988-08-10 Method and device for address-compare processing

Country Status (1)

Country Link
JP (1) JPH0248743A (en)

Similar Documents

Publication Publication Date Title
JPH0248743A (en) Method and device for address-compare processing
JPH0581070A (en) Programmable controller and user program execution method in programmable controller
JP2638078B2 (en) Information processing device
JP2653411B2 (en) How to set breakpoints
JPS59197946A (en) Memory device
JPS61204703A (en) Developing device for engine control computer system
JPS6211920A (en) Command recovery system
JPH04167146A (en) Address tracing system for information processor
JPH041829A (en) Data processor
JPH0259829A (en) Microcomputer
JPS61194533A (en) Microprogram processor
JPH03156659A (en) Direct memory access controller
JPS6234204A (en) Controller
JPH01240941A (en) Information processor
JPH0359460B2 (en)
JPH03232051A (en) Semaphore access control method
JPS60114937A (en) Microprogram processing unit
JPS60175153A (en) Operation processor
JPH04157537A (en) Address trap system
JPH0399338A (en) Microprocessor
JPH0381854A (en) Memory access system
JPS6170651A (en) Movement system of data array
JPS61147337A (en) Microprogram control system
JPH0317705A (en) sequence controller
JPS6349942A (en) Arithmetic processing unit