JPH02183348A - Function instruction debug processor - Google Patents

Function instruction debug processor

Info

Publication number
JPH02183348A
JPH02183348A JP1001912A JP191289A JPH02183348A JP H02183348 A JPH02183348 A JP H02183348A JP 1001912 A JP1001912 A JP 1001912A JP 191289 A JP191289 A JP 191289A JP H02183348 A JPH02183348 A JP H02183348A
Authority
JP
Japan
Prior art keywords
instruction
function instruction
function
address
data
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
JP1001912A
Other languages
Japanese (ja)
Inventor
Tsuneo Suzuki
鈴木 経男
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 JP1001912A priority Critical patent/JPH02183348A/en
Publication of JPH02183348A publication Critical patent/JPH02183348A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To easily confirm whether continuity to one function instruction is obtained or not in mutually different arithmetic processing by repeatedly executing the function instruction until the address of a microinstruction, which is desired to be checked, is coincident with an execution micro-address. CONSTITUTION:Data are set from an input control part 1 to an arithmetic data part 2 and the address of the microinstruction, which is desired to be checked, is set to a check address register part 7. The address of the microinstruction executed by an arithmetic processing part 4 is successively set to a register part 6 and it is checked whether the register part 6 is coincident with the register part 7 or not by a checking circuit 8. Then, a returning address register part 5 is referred until the register parts 6 and 7 are coincident. Then, the instruction is repeated. Thus, the input data can be easily discovered to confirm whether the two types of the arithmetic processing obtains the continuity or not to one function instruction by reading the input data when the instruction is finished in an output control part 10.

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は、複数の関数命令が組み込まれている情報処理
装置において、特に関数命令で実行させたい処理にいく
ための入力データを検出することに関する。
[Detailed Description of the Invention] [Industrial Application Field] The present invention is directed to detecting input data for a process that is particularly desired to be executed by a function instruction in an information processing device incorporating a plurality of function instructions. Regarding.

[従来の技術] ある関数命令で、途中の演算結果が十分小さくなってし
まった時、或いは逆に十分大きくなってしまった時など
、通常の演算処理を行うより、途中の演算結果に応じて
別の演算処理を行う方が誤差も少なく、また演算速度も
速くなる場合が多い。
[Prior art] When the result of a certain function instruction becomes sufficiently small or, conversely, becomes sufficiently large, a function command is executed according to the result of the intermediate operation, rather than performing normal arithmetic processing. Performing separate arithmetic processing often results in fewer errors and faster calculation speed.

この様に、別の演算処理を作成した場合、通常の演算処
理と、特別な演算処理の最終演算結果が連続的に連なっ
ているかどうかを確認しなければならない。
In this way, when creating another arithmetic process, it is necessary to check whether the final arithmetic results of the normal arithmetic process and the special arithmetic process are continuous.

従来の技術では、この確認は確認者がある適当な連続し
た複数個の入力データを入れて、それらの入力データが
異なる演算処理を行ったかどうかを確認し、もし一方の
演算処理しか行なっていない場合は、また適当な連続し
た複数個の人力データを入れて、再度確認しなければな
らなかった。
In the conventional technology, this confirmation involves a verifier inputting a plurality of appropriate consecutive input data, checking whether those input data have undergone different arithmetic processing, and if only one arithmetic processing has been performed. In that case, it was necessary to input several consecutive pieces of manual data and check again.

[発明が解決しようとする課題] しかしながら、上述した従来の技術では、確認者がその
たびごとに、連続した複数個の入力データを考え、それ
らが異なる演算処理を行なったかどうかを確認している
ので、時間がかかり、その入力データを考えるのも確認
者のある程度の勘に頼らざるを得ないという欠点があっ
た。
[Problems to be Solved by the Invention] However, in the above-mentioned conventional technology, the checker considers a plurality of consecutive input data each time and checks whether or not different arithmetic processing has been performed on them. Therefore, it is time consuming and has the disadvantage that the checker has to rely on a certain level of intuition when considering the input data.

そこで、本発明の技術的課題は上記欠点に鑑み、互いに
異なる演算処理が1つの関数命令に対して連続性を有す
るか否かを容品に確認することができる関数命令デバッ
グ処理装置を提供することである。
SUMMARY OF THE INVENTION In view of the above drawbacks, the technical problem of the present invention is to provide a function instruction debug processing device that can easily check whether or not mutually different arithmetic operations have continuity with respect to one function instruction. That's true.

[課題を解決するための手段] 本発明によれば、複数の関数命令が組み込まれている情
報処理装置において、ある関数命令の中のチェックした
いマイクロ命令のアドレスを第1のテーブルとして格納
しておく第一の手段と、前記テーブル1の内容を実行マ
イクロアドレスが一致するか否かを判定するチェック回
路と、該チェック回路で一致と検出した時セットされる
フラグを設ける第二の手段とし、該関数命令が終了し、
前記第二の手段で設けたフラグがセットされていないと
き、関数命令の演算データをインクリメント、或いはデ
クリメントの操作をする第三の手段と、さらにフラグが
セットされていないとき、分岐するマイクロ命令の戻り
アドレス情報を第2のテーブルとして格納しておく第四
の手段とを有し、ある関数命令で初期データを入力し、
該データが前記第二の手段で設けたフラグがセットされ
ない場合には、人力データをインクリメント、或いはデ
クリメントして、前記第1のテーブル情報と一致するま
で、前記第2のテーブルのアドレス情報を参照して、該
関数命令を繰り返し実行させることを特徴とする関数命
令デバッグ処理装置が得られる。
[Means for Solving the Problems] According to the present invention, in an information processing device incorporating a plurality of function instructions, addresses of microinstructions to be checked among certain function instructions are stored as a first table. a check circuit for determining whether or not the execution microaddress matches the contents of the table 1, and a second means for providing a flag that is set when the check circuit detects a match; The function instruction ends,
A third means for incrementing or decrementing the operation data of the function instruction when the flag set by the second means is not set, and a third means for incrementing or decrementing the operation data of the function instruction when the flag provided by the second means is not set, and a third means for incrementing or decrementing the operation data of the function instruction, and a third means for incrementing or decrementing the operation data of the function instruction when the flag is not set. and a fourth means for storing return address information as a second table, inputting initial data with a certain function instruction,
If the data does not set the flag provided by the second means, increment or decrement the manual data and refer to the address information in the second table until it matches the first table information. As a result, a function instruction debug processing device is obtained, which is characterized in that the function instruction is repeatedly executed.

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

まず、ある関数命令が第2図で示されたフローになって
いたとする。図中のXはある定数とし、経路Sとは、演
算処理Aを行なった演算結果がX以上で、その演算結果
をもとに演算処理Bを行うことにより命令が終了した経
路を示し、経路Tとは、演算処理Aを行なった演算結果
がX未満で、その演算結果をもとに、演算処理Cを行う
ことにより命令が終了した経路を示す。
First, assume that a certain function instruction has the flow shown in FIG. In the figure, X is a certain constant, and path S is a path where the calculation result of calculation process A is greater than or equal to X, and the instruction is completed by performing calculation process B based on the calculation result. T indicates a path where the calculation result of the calculation process A is less than X, and the instruction is completed by performing the calculation process C based on the calculation result.

第1図は本発明の実施例である。FIG. 1 shows an embodiment of the invention.

人力制御部1.から演算データ部2にデータを、チェッ
クしたいマイクロ命令のアドレスを、チェックアドレス
レジスタ部7に、さらに分岐するマイクロ命令の戻りア
ドレスを戻りアドレスレジスタ部5に、それぞれセット
する。また、初期人力データは、経路Sを通る様なデー
タを用意しておき、さらに経路Tを通るためには、その
人力データを大きくしなければいけないか、或いは小さ
くしなければいけないかを考慮しておく。
Human control unit 1. The data is set in the arithmetic data section 2, the address of the microinstruction to be checked is set in the check address register section 7, and the return address of the microinstruction to be branched is set in the return address register section 5, respectively. In addition, for the initial human power data, prepare data such that the route S is taken, and then consider whether the human power data needs to be increased or decreased in order to take the route T. I'll keep it.

大きくしなければいけない時は、入力制御部1からイン
クリメント・デクリメント制御部3に、インクリメント
する様にセットしておき、逆の場合は、デクリメントす
るようにセットしておく。
When it is necessary to increase the value, the input control section 1 sets the increment/decrement control section 3 to increment it, and in the opposite case, it sets it to decrement it.

関数命令を起動させ、演算処理部4で演算を実行し、そ
の実行したマイクロ命令のアドレスがマイクロ、命令ア
ドレスレジスタ部6に逐次セットされ、チェックアドレ
スレジスタ部7と一致したかどうかをチェック回路8で
チェックし、もし一致したらフラグ9がセットされる。
The function instruction is activated, the arithmetic processing section 4 executes the arithmetic operation, and the address of the executed microinstruction is sequentially set in the micro-instruction address register section 6, and a check circuit 8 checks whether or not it matches the check address register section 7. If they match, flag 9 is set.

フラグ9がセットされるまで、戻りアドレスレジスタ部
5を参照して、命令が繰り返され、フラグ9がセットさ
れたらその命令が終わる。
The instruction is repeated with reference to the return address register section 5 until flag 9 is set, and when flag 9 is set, the instruction ends.

ここで、経路Sと経路Tが連続性を保っているかどうか
は、出力制御部10により、命令が終了したときの入力
データを読み、その入力データの近傍を入力データとし
たときの命令結果を比較すれば容易に確認できる。
Here, whether or not the path S and the path T maintain continuity is determined by the output control unit 10, which reads the input data at the time the instruction is completed, and calculates the instruction result when the vicinity of the input data is set as the input data. You can easily confirm this by comparing.

[発明の効果] 以上説明したように、本発明はある関数命令で通常の演
算処理のほか、特別な演算処理がある様なフローのとき
、その2つの処理が、1つの関数命令として考えたとき
に、連続性を満たしているかどうかの確認をするための
、入力データを容易に見つけることかで・きるという効
果がある。
[Effects of the Invention] As explained above, the present invention provides a system in which when a certain function instruction has a flow in which there is a special arithmetic process in addition to the normal arithmetic process, the two processes are considered as one function instruction. Sometimes, it has the effect of making it easy to find input data to check whether continuity is satisfied.

部、5・・・戻りアドレスレジスタ部、6・・・マイク
ロ命令アドレスレジスタ部、7・・・チェックアドレス
レジスタ部、8・・・チェック回路、9・・・フラグ、
]n・・・出力制御部。
5... Return address register part, 6... Micro instruction address register part, 7... Check address register part, 8... Check circuit, 9... Flag,
]n...Output control section.

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

第1図は本発明の1実施例のブロック図、第2図は本発
明の実施例に使用した関数命令のフロである。 1・・・入力制御部、2・・・演算データ部、3・・・
インクリメント・デクリメント制御部、4・・・演算処
理第1図
FIG. 1 is a block diagram of one embodiment of the present invention, and FIG. 2 is a flowchart of function instructions used in the embodiment of the present invention. 1... Input control section, 2... Calculation data section, 3...
Increment/decrement control unit, 4...Arithmetic processing Figure 1

Claims (1)

【特許請求の範囲】 1、複数の関数命令が組み込まれている情報処理装置に
用いられ、前記関数命令の中のチェックすべきマイクロ
命令のアドレスを第1のテーブルとして格納しておく第
一の手段と、 前記第1のテーブルの内容を実行マイクロアドレスが一
致するか否かを判定するチェック回路と、該チェック回
路で一致と検出した時セットされるフラグを設ける第二
の手段と、 該関数命令が終了し、前記第二の手段で設けたフラグが
セットされていないとき、関数命令の演算データをイン
クリメント、或いはデクリメントの操作をする第三の手
段と、 さらに、前記フラグがセットされていないとき、分岐す
るマイクロ命令の戻りアドレス情報を第2ある関数命令
で初期データを入力し、該データが前記第二の手段で設
けたフラグがセットされない場合には、入力データをイ
ンクリメント、或いはデクリメントして、前記第1のテ
ーブル情報と一致するまで、前記第2のテーブルのアド
レス情報を参照して、該関数命令を繰り返し実行させる
ことを特徴とする関数命令デバッグ処理装置。
[Claims] 1. A first information processing device used in an information processing device incorporating a plurality of function instructions, which stores addresses of microinstructions to be checked among the function instructions as a first table. means; a check circuit for determining whether or not the execution microaddress matches the contents of the first table; a second means for providing a flag that is set when the check circuit detects a match; and the function. a third means for incrementing or decrementing the operation data of the function instruction when the flag set by the second means is not set after the instruction is completed; When the return address information of a branching microinstruction is input as initial data using a second certain function instruction, if the flag set by the second means is not set, the input data is incremented or decremented. The function instruction debug processing device is characterized in that the function instruction is repeatedly executed by referring to the address information in the second table until the address information matches the first table information.
JP1001912A 1989-01-10 1989-01-10 Function instruction debug processor Pending JPH02183348A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1001912A JPH02183348A (en) 1989-01-10 1989-01-10 Function instruction debug processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1001912A JPH02183348A (en) 1989-01-10 1989-01-10 Function instruction debug processor

Publications (1)

Publication Number Publication Date
JPH02183348A true JPH02183348A (en) 1990-07-17

Family

ID=11514795

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1001912A Pending JPH02183348A (en) 1989-01-10 1989-01-10 Function instruction debug processor

Country Status (1)

Country Link
JP (1) JPH02183348A (en)

Similar Documents

Publication Publication Date Title
EP0164418B1 (en) Microprogram control system
JPH02183348A (en) Function instruction debug processor
JPH01204145A (en) Microprogram controller
JPS5870361A (en) Input controlling system
JPS6116334A (en) Data processor
JPH04106652A (en) Exceptional treatment system
JPS61253503A (en) Sequence controller
JPS6234238A (en) Microprocessor
JPS6143347A (en) Simulation method of vector instruction
JPH0236423A (en) Saving/restoring register address generation circuit
JPH0353321A (en) Information processor
JPS63303440A (en) Measuring instrument
JPH01133150A (en) Hardware test system
JPH03175538A (en) Duplex processor
JPH04344530A (en) Micro program control circuit
JPH01222328A (en) Data processing system
JPS6244836A (en) Microaddress stack control system
JPS61202239A (en) Information processor
JPS608943A (en) Multi-branch controlling system
JPS6250854B2 (en)
JPS61289431A (en) Multi-direction branching system for data flow computer
JPS6028014B2 (en) microprocessor
JPH0236422A (en) System for processing program exception
JPS5953902A (en) Control device
JPH01108635A (en) Data processor with tag