JPH0895827A - Microprogram verification method - Google Patents
Microprogram verification methodInfo
- Publication number
- JPH0895827A JPH0895827A JP6234787A JP23478794A JPH0895827A JP H0895827 A JPH0895827 A JP H0895827A JP 6234787 A JP6234787 A JP 6234787A JP 23478794 A JP23478794 A JP 23478794A JP H0895827 A JPH0895827 A JP H0895827A
- Authority
- JP
- Japan
- Prior art keywords
- microinstruction
- verification
- microprogram
- information
- rule
- 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
Links
Landscapes
- Debugging And Monitoring (AREA)
- Stored Programmes (AREA)
Abstract
(57)【要約】
【目的】計算機の機種やマイクロプログラムの仕様変更
等に左右されず、また、人手の介入を必要としないマイ
クロプログラム検証方法を提供することを目的とする。
【構成】検証に必要なマイクロ命令の定義情報を、マイ
クロ命令仕様記述言語仕様により記述された被検証マイ
クロプログラムのマイクロ命令仕様より自動的に抽出
し、該抽出された定義情報により検証を実施する。
(57) [Summary] [Purpose] It is an object of the present invention to provide a microprogram verification method that is not affected by changes in computer models or microprogram specifications, and does not require human intervention. [Configuration] Microinstruction definition information necessary for verification is automatically extracted from the microinstruction specification of a microprogram to be verified described by the microinstruction specification description language specification, and verification is performed by the extracted definition information. .
Description
【0001】[0001]
【産業上の利用分野】本発明はマイクロプログラムの検
証方法に係わり、特にマイクロプログラムの仕様制限違
反についてソースレベルの検証を実施するのに適したマ
イクロプログラムの検証方法に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method for verifying a microprogram, and more particularly to a method for verifying a microprogram suitable for performing source level verification for violation of specification restrictions of the microprogram.
【0002】[0002]
【従来の技術】従来のマイクロプログラムの検証方式と
しては、特開平02-083742に記載のようにマイクロプロ
グラムをソースレベルで検証する方式がある。2. Description of the Related Art As a conventional verification method of a microprogram, there is a method of verifying a microprogram at a source level as described in Japanese Patent Laid-Open No. 02-083742.
【0003】検証上必要な被検証マイクロプログラムの
定義やマイクロ命令の使用制限ルールは、マイクロ命令
仕様に記述された情報を人手で解析し特定の形式と記号
で記述した情報を用いている。また、マイクロプログラ
ムソースの記述形式や特殊なファンクションおよびその
動作等、多くの情報が処理内に固定で組み込まれてい
る。The definition of the microprogram to be verified and the rules for restricting the use of microinstructions necessary for verification use the information described in the microinstruction specifications by hand and analyzing the information in a specific format and symbol. Also, a lot of information such as a description format of a micro program source, a special function and its operation are fixedly incorporated in the processing.
【0004】[0004]
【発明が解決しようとする課題】従来方式では、次の問
題が指摘される。In the conventional method, the following problems are pointed out.
【0005】(1)該計算機の機種が特定される。(1) The model of the computer is specified.
【0006】(2)被検証マイクロプログラムの記述形
式等、処理に内蔵される部分に変更等が生じた場合、検
証方式や装置への対策が必要となり迅速な検証の妨げと
なる。 (3)マイクロ命令仕様の定義や制限ルール等を人手で
抽出することにより、検出漏れや記述誤り等のミスが生
じる余地があり、検証精度が低下する可能性がある。(2) If the description format of the microprogram to be verified, etc. is changed in the part incorporated in the processing, a verification method or a countermeasure for the device is required, which hinders quick verification. (3) By manually extracting the definition of microinstruction specifications, restriction rules, and the like, there is room for errors such as omission of detection and description errors, and there is a possibility that the verification accuracy will decrease.
【0007】(4)マイクロ命令仕様の定義や制限ルー
ル等を人手で抽出することにより前準備に掛る工数が大
きい。(4) The number of man-hours required for preparation is large by manually extracting the definition of microinstruction specifications and restriction rules.
【0008】(5)マイクロ命令仕様の定義や制限ルー
ル等に変更や追加の度に人手の介入が必要である。(5) Manual intervention is required every time a change or an addition is made to the definition of microinstruction specifications or restriction rules.
【0009】以上の問題点は、特に開発過程に置けるマ
イクロプログラムの検証に対しては致命的ともいえる。The above problems can be said to be fatal especially for verification of microprograms in the development process.
【0010】本発明では、上記問題点を解決すべく、計
算機の機種やマイクロプログラムの仕様変更等に左右さ
れることなく、また、人手の介入を必要としない、マイ
クロプログラム検証方法を提供することを目的とする。In order to solve the above problems, the present invention provides a microprogram verification method that is not affected by changes in the computer model or microprogram specifications, and does not require human intervention. With the goal.
【0011】[0011]
【課題を解決するための手段】上記目的を解決するため
の、本発明によるマイクロプログラム検証方法は、被検
証マイクロプログラムソースの定義情報及び、仕様上の
制限ルール等、検証に必要な情報を、検証処理装置に内
蔵することなく、マイクロ命令仕様より自動的に抽出・
生成した情報を採取し検証することにより、該計算機の
機種や仕様の変更等に左右されぬ汎用的な検証を実現可
能とする。In order to solve the above-mentioned object, a microprogram verification method according to the present invention provides definition information of a microprogram source to be verified and information necessary for verification such as restriction rules in specifications. Automatically extracted from microinstruction specifications without built-in verification processing device
By collecting and verifying the generated information, it is possible to realize general-purpose verification that is not affected by changes in the model or specifications of the computer.
【0012】そのために、マイクロ命令のフィールド、
ファンクションの定義、マイクロプログラムソースの記
述形式の定義、同系ファンクションのグループの定義、
特殊な動作や役割をもつファンクションの定義等の各種
定義情報、及び、マイクロ命令の使用制限ルールを、被
検証マイクロプログラムのマイクロ命令仕様上の記述よ
り自動的に抽出する。To that end, the microinstruction field,
Function definition, definition of microprogram source description format, definition of group of similar functions,
Various definition information such as the definition of a function having a special operation or role, and micro-instruction use restriction rules are automatically extracted from the description of the micro instruction specification of the micro program to be verified.
【0013】また、上記定義情報の自動抽出を実現する
ために、マイクロ命令仕様の記述形式を定義したマイク
ロ命令仕様記述言語の仕様を詳細に定義することと、こ
の定義に基づき記述されたマイクロ命令仕様を用いる。Further, in order to realize the automatic extraction of the definition information, the specification of the microinstruction description language defining the description format of the microinstruction specification is defined in detail, and the microinstruction described based on this definition. Use the specifications.
【0014】なお、マイクロ命令の仕様上の制限ルール
を抽出するために、以下の手段を有する。The following means are provided for extracting the restriction rule in the specification of the micro instruction.
【0015】・検証実施時の処理効率を考慮し、マイク
ロ命令のフィールド、ファンクションの構成に基づき編
集を行う手段 ・マイクロ命令仕様の記述上は複数であるが、内容的に
同意であれば統合するなど、有機的な編集を行う手段 ・ルール編集の際に矛盾の生じるルールおよび、前述の
フィールドやファンクションの定義に搭載されぬ未定義
の命令に関するルール等を指摘し、検証の条件から排除
する手段A means for editing based on the structure of microinstruction fields and functions in consideration of processing efficiency at the time of performing verification. There are a plurality of descriptions in the microinstruction specifications, but they are integrated if they agree on the content. Means for organically editing, etc.-Means for pointing out rules that cause inconsistencies during rule editing and rules for undefined instructions not included in the definition of the above-mentioned fields and functions, and excluding them from the verification conditions
【0016】[0016]
【作用】本発明では、マイクロ命令仕様より被検証マイ
クロプログラムソースの各種定義や制限ルール等の検証
に必要な情報を自動的に抽出し生成した情報を用いるこ
とを特徴とし、これにより、機種固有の論理を検証処理
装置に内蔵することなく、該計算機の機種や仕様の変更
等に左右されぬ汎用的な検証を実現することができる。The present invention is characterized in that information necessary for verification such as various definitions of micro program source to be verified and restriction rules is automatically extracted from the microinstruction specifications and used to generate information. It is possible to realize general-purpose verification that is not affected by changes in the model or specifications of the computer without incorporating the above logic in the verification processing device.
【0017】また、マイクロ命令仕様の記述方法を定義
したマイクロ命令仕様記述言語の仕様を定義し、この定
義に基づきマイクロ命令仕様を記述することで、本発明
の特徴となる上記の検証条件等の自動抽出を実現するこ
とができる。Further, by defining the specification of the microinstruction specification description language that defines the description method of the microinstruction specification and describing the microinstruction specification on the basis of this definition, the above-mentioned verification conditions etc. Automatic extraction can be realized.
【0018】このような自動抽出方式の実現により、人
手の介入する余地が無くなることで、検証条件となる情
報の信頼性が向上する上、常に最新の検証条件を維持す
ることができ、検証精度の向上を実現することができ
る。By implementing such an automatic extraction method, there is no room for human intervention, so that the reliability of the information as the verification condition is improved and the latest verification condition can be maintained at all times, and the verification accuracy can be improved. Can be improved.
【0019】また、マイクロ命令の使用制限ルールを抽
出するに当たり、マイクロ命令のフィールドやファンク
ションの構成に基づきソートしたり、マイクロ命令仕様
の記述上は複数であるが同意技の制限ルールを統合する
などの有機的な編集を行う手段を有することで、制限ル
ール判定処理の高速化を実現し、検証効率を向上させる
ことができる。In extracting the micro-instruction use restriction rule, sorting is performed based on the structure of the field or function of the micro-instruction, or although there are a plurality of micro-instruction specifications in the description of the micro-instruction specification, the agreement rule of the consent technique is integrated. By having a means for organically editing, it is possible to speed up the restriction rule determination processing and improve the verification efficiency.
【0020】さらに、これらルールの編集の際に矛盾の
生じるルールおよび、前述のフィールドやファンクショ
ンの定義に搭載されぬ未定義の命令に関するルール等を
指摘し、検証条件からは排除する手段を有することで、
検証結果の信頼性を向上させることができる上、無効な
ルールの判定処理時間の削減も実現できる。Further, there must be a means for pointing out a rule that causes a contradiction when editing these rules and a rule for an undefined instruction that is not included in the definition of the above-mentioned field or function, and exclude it from the verification conditions. so,
It is possible to improve the reliability of the verification result and also reduce the determination processing time for invalid rules.
【0021】[0021]
【実施例】以下、本発明の一実施例を図面を用いて具体
的に説明する。DESCRIPTION OF THE PREFERRED EMBODIMENTS One embodiment of the present invention will be specifically described below with reference to the drawings.
【0022】なお、本発明は検証に必要な情報の提供手
段を特徴とするものであり、それらの情報を用いた制限
ルールの判定を行う検証処理部分は、従来方式もしくは
同等の検証方式を用いて構わないため、システムとして
の全体概要図以外に具体的な説明は行わない。The present invention is characterized by means for providing information necessary for verification, and the verification processing part for determining the restriction rule using such information uses a conventional method or an equivalent verification method. Since it does not matter, no specific explanation will be given other than the overall schematic diagram of the system.
【0023】図1は、本発明に関する部分を包括した、
マイクロプログラム検証システム全体の概要図である。FIG. 1 is a diagram showing the parts related to the present invention.
It is a schematic diagram of the entire microprogram verification system.
【0024】図1において、1はマイクロ命令仕様の記
述言語を定義するマイクロ命令仕様記述言語仕様であ
る。2はマイクロ命令仕様記述言語仕様1に従い記述さ
れたマイクロ命令仕様を格納しているファイルである。In FIG. 1, reference numeral 1 is a microinstruction specification description language specification that defines a description language of the microinstruction specification. Reference numeral 2 is a file that stores microinstruction specifications described in accordance with the microinstruction specification description language specification 1.
【0025】3はマイクロ命令仕様より、マイクロプロ
グラムの各種定義情報(詳細は図2にて説明)を自動抽
出するマイクロ命令仕様コンパイル部である。A microinstruction specification compiling unit 3 automatically extracts various definition information of the microprogram (details will be described with reference to FIG. 2) from the microinstruction specifications.
【0026】5はマイクロ命令仕様コンパイル部3で指
摘した、不正な記述や内容を指摘するマイクロ命令仕様
記述違反情報で、6はマイクロ命令仕様記述違反情報5
のマイクロ命令仕様へのフィードバックを示す。Reference numeral 5 is microinstruction specification description violation information, which is pointed out by the microinstruction specification compiling unit 3 and points out illegal description or contents, and 6 is microinstruction specification description violation information 5
Feedback to the microinstruction specification in.
【0027】7は被検証マイクロプログラムソースであ
る。Reference numeral 7 is a microprogram source to be verified.
【0028】8は、検証実施部である。Reference numeral 8 is a verification execution unit.
【0029】9のマイクロ命令仕様制限ルール違反情
報、10のマイクロプログラムソース記述形式違反情報
は、実行結果であり、11はマイクロ命令仕様制限ルー
ル違反情報9、マイクロプログラムソース記述形式違反
情報10のマイクロプログラムソース7へのフィードバ
ックを示す。The micro instruction specification restriction rule violation information 9 is the execution result, the micro program source description format violation information 10 is the execution result, and the micro instruction specification restriction rule violation information 9 and the micro program source description format violation information 10 are micro. Feedback to program source 7 is shown.
【0030】図2は、図1のマイクロ命令仕様コンパイ
ル部3の構成を示す機能ブロック図である。FIG. 2 is a functional block diagram showing the configuration of the microinstruction specification compiling unit 3 of FIG.
【0031】マイクロ命令仕様コンパイル部3は大きく
分けると、30のデータ読み出しおよびチェック部、3
1の編集部、33のエラー報告部、32の出力部により
構成されており、概要を説明すると、まずデータ読み出
しおよびチェック部30において、マイクロ命令仕様2
を読み出し解析し、内容をチェックする。The microinstruction specification compiling unit 3 is roughly divided into 30 data reading and checking units, and 3
It is composed of an editing unit 1 and an error reporting unit 33 and an output unit 32. The outline will be described.
Read and analyze and check the contents.
【0032】次に編集部31において、読み出した情報
を検証部の入力となる形式に編集し、出力部32で出力
する。Next, the editing unit 31 edits the read information into a format which is input to the verification unit, and outputs it at the output unit 32.
【0033】この過程で、マイクロ命令仕様記述言語仕
様1の定義に反する記述があれば、エラー報告部33に
て違反内容や場所を指摘するメッセージをマイクロ命令
仕様記述違反情報5として出力する。以下、データ読み
出しおよびチェック部30、編集部31の処理の流れを
順に説明する。In this process, if there is a description that violates the definition of the microinstruction specification description language specification 1, the error reporting unit 33 outputs a message indicating the violation content and location as the microinstruction specification description violation information 5. Hereinafter, the flow of processing of the data reading / checking unit 30 and the editing unit 31 will be sequentially described.
【0034】図4は、読み出しおよびチェック部30に
おいて、データがマイクロ命令の定義情報の場合の概略
を示す流れ図である。FIG. 4 is a flow chart showing an outline in the read and check unit 30 when the data is the definition information of the microinstruction.
【0035】マイクロ命令は機能別に割り当てられるフ
ィールドに属する、ファンクションと呼ばれる個々の命
令で構成される。読み出しの対象となるマイクロ命令仕
様の内容を例示する図3では、フィールドAのファンク
ションA1について、動作や制限ルール等を記述してい
る。これらは、全てマイクロ命令仕様記述言語仕様1に
定義された形式で記述されており、マイクロ命令仕様記
述言語仕様1に従い読み出したデータを解析し、マイク
ロ命令仕様上の各種情報の抽出を実現する。The microinstruction is composed of individual instructions called functions, which belong to the field assigned for each function. In FIG. 3 exemplifying the contents of the microinstruction specification to be read, the operation, the restriction rule, etc. are described for the function A1 of the field A. All of these are described in the format defined in the microinstruction specification description language specification 1, and the data read according to the microinstruction specification description language specification 1 is analyzed, and various information on the microinstruction specification is extracted.
【0036】以下に一実施例として図3のデータを用い
て説明する。An example will be described below with reference to the data shown in FIG.
【0037】マイクロ命令仕様2よりデータを読み出し
(301)、まず、’Function’201によ
り、ファンクション単位のデータブロックの先頭を認識
する(302)。Data is read from the microinstruction specification 2 (301), and first, the head of the data block for each function is recognized by the "Function" 201 (302).
【0038】’FunctionA1 ’202をファ
ンクション名、’FieldA ’203のをフィール
ド名として認識する(303)。Recognize'FunctionA1'202 as a function name and'FieldA'203 as a field name (303).
【0039】’−grp ’204は、マイクロ命令仕
様記述言語仕様上に定義された、ファンクションに関す
るオプション情報のキーで、これにより ’Group
AA’205が ’FunctionA1 ’の属する
グループの名称であること認識する(304)。このオ
プションキーは種類が異なればいくつ並べて記述してあ
っても構わない。The "-grp" 204 is a key of option information related to the function defined in the microinstruction specification description language specification.
It is recognized that AA'205 is the name of the group to which "FunctionA1" belongs (304). This option key may be described in any number as long as it is of a different type.
【0040】次に、ファンクション内のデータ項目を判
定する。Next, the data item in the function is determined.
【0041】図3の点線枠内の部分で説明すると、’R
ule{ ’というデータの出現以降は、’}’まで
は、その内容をルール情報と認識し(306)、ルール
に対する読み出しおよび記述形式のチェックを実施す
る。さらに、ルールと認識されたデータは、ルールの記
述に対する定義に従い文節ごとに解析し、図6に示すよ
うなルールのタイプ別に内容を認識し、それらを例え
ば、NOTは禁止コードの’1 ’へ置換するなど、該
当するコードや固定の形式に置換する(307)。Explaining the part within the dotted line frame in FIG.
After the appearance of the data of ule {', the contents are recognized as rule information until ‘}’ (306), and the rule is read and the description format is checked. Furthermore, the data recognized as a rule is analyzed for each clause according to the definition for the rule description, and the contents are recognized according to the rule type as shown in FIG. 6. For example, NOT is changed to a prohibit code '1'. For example, the code is replaced with a corresponding code or a fixed format (307).
【0042】その他、’Operation ’207
により、オペレーション情報の認識および情報抽出(3
08)(309)を行うなど、ファンクション内のデー
タの抽出処理を実施する。以上をマイクロ命令の定義情
報のデータが終了するまで繰り返す。ただし、項目の判
定にて記述形式や内容に不正があれば、エラー報告部
(33)へエラーの情報を渡し、本処理部は終了する。Others, "Operation" 207
Operation information recognition and information extraction (3
08) and (309) are executed, and data extraction processing in the function is executed. The above is repeated until the data of the definition information of the micro instruction is completed. However, if the description format or content is incorrect in the item determination, the error information is passed to the error reporting unit (33), and this processing unit ends.
【0043】図3中のマイクロプログラムソース記述形
式の情報に対しても同様に、データの先頭を示す ’M
PSRC ’により項目を認識する。Similarly, for the information in the microprogram source description format in FIG. 3, "M" indicating the beginning of the data is displayed.
Recognize items by PSRC '.
【0044】ここで、ルール情報について説明するとと
もに、上記のデータ読み出し・チェック部30で認識し
読み出した情報を処理する編集部31の一実施例を、ル
ール情報を用いて説明する。Here, the rule information will be described, and an example of the editing unit 31 that processes the information recognized and read by the data read / check unit 30 will be described using the rule information.
【0045】208は、マイクロ命令の仕様上の制限ル
ール情報である。制限ルールとは、キーとなるファンク
ションと対象となるのファンクションとの相互関係やフ
ァンクションの出現条件等の使用上の制限事項である。
図5を用い幾つかのルールの例を具体的に説明をする。Reference numeral 208 is restriction rule information on the specification of microinstructions. The restriction rule is a restriction on use such as a mutual relationship between a key function and a target function, an appearance condition of the function, and the like.
Examples of some rules will be specifically described with reference to FIG.
【0046】図5において、501はマイクロ命令仕様
上の制限ルールの例で、502は、マイクロプログラム
ソースの1ステップを1ボックスに表し、パスの繋がり
を線で示したフローチャート図である。In FIG. 5, reference numeral 501 is an example of a restriction rule on the microinstruction specification, and 502 is a flow chart showing one step of the microprogram source in one box and a path connection shown by a line.
【0047】なお、マイクロ命令仕様上の制限ルール5
01の各ルールはマイクロ命令仕様2上にマイクロ命令
仕様記述言語仕様に定めた形式で書かれるものである。The restriction rule 5 in the microinstruction specifications
Each rule of 01 is written in the format defined in the microinstruction specification description language specification on the microinstruction specification 2.
【0048】マイクロ命令仕様上の制限ルール501の
のルールは、フローチャート図502においてC05
のボックスにキーファンクション’XX ’があり、A
01に指定の必要な対象ファンクション’ZZ ’があ
ることで、守られているといえる。The rule of the restriction rule 501 on the microinstruction specification is C05 in the flow chart diagram 502.
There is a key function'XX 'in the box of
It can be said that it is protected because the target function “ZZ” that needs to be specified is 01.
【0049】のルールの3サイクル以内とは、フロー
チャート図502においてキーファンクション’YY
’があるA03のボックスより、A04のボックスま
でを指す。この場合も、指定を禁止されている対象ファ
ンクション’ZZ ’が範囲内にないため、このルール
は守られているといえる。Within 3 cycles of the rule (1) means that the key function'YY
From A03 box with ', to A04 box. In this case as well, it can be said that this rule is observed because the target function'ZZ 'whose specification is prohibited is not within the range.
【0050】のルールでは、同一ボックス内の指定を
制限するもので、フローチャート図502においてキー
ファンクション’AA ’があるB05のボックスに
は、指定を禁止されている対象ファンクション’BB
’がないため、このルールは守られているといえる。In the rule of (5), designation in the same box is restricted. In the box of B05 in which the key function'AA 'is present in the flow chart diagram 502, the target function'BB whose designation is prohibited is'BB.
It can be said that this rule is observed because there is no '.
【0051】図6にマイクロ命令仕様より抽出した制限
ルールの一例を示す。FIG. 6 shows an example of the restriction rule extracted from the micro instruction specification.
【0052】図6では、検証時にキーとなるマイクロ命
令の出現に対し、容易にルールを参照できるよう、キー
となるファンクションが属するフィールド601を最上
位に、キーに対する制限ルールの対象となる命令の各フ
ァンクション602に対し制限ルール603を設定して
いる。In FIG. 6, the field 601 to which the function to be a key belongs is placed at the top of the field 601 to which the function to be a key belongs in order to easily refer to the rule when a microinstruction to be a key appears at the time of verification. A restriction rule 603 is set for each function 602.
【0053】制限ルールの抽出時には、マイクロ命令仕
様の記述上は複数であるが同意の制限ルールは統合す
る。図7に統合の例を示す。At the time of extraction of the restriction rule, although there are plural in the description of the micro instruction specification, the consent restriction rules are integrated. FIG. 7 shows an example of integration.
【0054】図7において、701で相互関係が明らか
なように、ルール702とルール703が示す2件のル
ールは、キーとなるファンクション別に書かれたため記
述が異なるが内容は同一の制限を示すものである。In FIG. 7, as is clear from the mutual relation 701, the two rules shown by the rules 702 and 703 are written for each key function, so the description is different, but the content shows the same restriction. Is.
【0055】本実施例では、検証処理上都合の良い、マ
イクロプログラムの流れを順方向へ捉えた記述であるル
ール702へルール703の記述を統合する。In this embodiment, the description of the rule 703 is integrated with the rule 702, which is convenient in terms of verification processing and is a description that captures the flow of the microprogram in the forward direction.
【0056】また、ルール704からルール706は、
何れもキーとなるファンクションが同一のグループに属
するものである。これらは、データ読み出し・チェック
部30で抽出したファンクションのグループ定義によっ
て、グループ名をキーにするルール707に置き換え、
検証部に渡す情報量の低減を図っている。Rules 704 to 706 are
In each case, the key functions belong to the same group. These are replaced with the rule 707 that uses the group name as a key according to the group definition of the function extracted by the data read / check unit 30.
The amount of information passed to the verification unit is reduced.
【0057】以上の制限ルール編集時に、矛盾の生じる
ルールや、ファンクション等がマイクロ命令定義402
に反したり、未定義のものであったりするルール等の記
述があれば、それらを排除し、指摘メッセージをマイク
ロ命令仕様記述違反情報5として作成し出力する。When the above-mentioned restriction rule is edited, the rule, function, etc., in which the contradiction occurs, are defined in the micro instruction definition 402
If there is a description such as a rule that violates or is not defined, those are excluded, and a pointing message is created and output as the micro instruction specification description violation information 5.
【0058】ルール以外の情報も、データ読み出し・チ
ェック部によって抽出されたデータをそれぞれの出力形
式に編集する。各々の役割やデータ構成の概略等を以下
に簡単に述べる。As for information other than the rules, the data extracted by the data read / check unit is edited in each output format. The outline of each role and data structure is briefly described below.
【0059】マイクロプログラムソース記述形式情報4
01は、マイクロプログラムソースの1ステップの内容
を出現順に定義する情報や、データの各要素の区切り記
号、最大データ幅の定義、無効部分など、検証部でこれ
に基づきマイクロプログラムソースの読み出しや解析を
実施できる情報を提供するものである。Microprogram source description format information 4
01 is a verification unit based on the information that defines the contents of one step of the micro program source in the order of appearance, the delimiter of each element of data, the definition of the maximum data width, the invalid part, etc. It provides information that can be implemented.
【0060】402は、マイクロ命令のフィールドとフ
ァンクションの構成等を定義するマイクロ命令定義情報
である。検証実施時に本情報が参照しやすいよう、ファ
ンクションの情報はフィールド単位に分類/ソートして
いる。また、データ量を圧縮し、コンペアの高速化を実
現する目的でファンクションに対し固有のコードを与
え、また全フィールド数やフィールド下のファンクショ
ン数の情報も持つ。Reference numeral 402 is microinstruction definition information that defines the fields of microinstructions and the structure of functions and the like. The function information is classified / sorted in field units so that this information can be easily referred to during verification. In addition, a unique code is given to the function for the purpose of compressing the amount of data and realizing a high-speed compare, and also has information on the total number of fields and the number of functions under the field.
【0061】404は特殊な役割や動作をするファンク
ションの定義をする、特殊ファンクション情報である。Reference numeral 404 is special function information that defines a function that performs a special role or operation.
【0062】サイクルのウェイトを制御するファンクシ
ョンの名称とそのウェイト数の定義や、無条件分岐を最
後にするファンクション等、検証部において静的検証を
実施する上で、マイクロプログラムソース上より表面的
には採取できない動作に関する情報を得るための定義で
ある。When performing static verification in the verification unit, such as the definition of the name of the function that controls the cycle wait and the number of its waits, and the function that makes the unconditional branch last, it is more superficial than on the microprogram source. Is a definition for obtaining information about operations that cannot be collected.
【0063】以上、具体的に説明を行ったが、本発明の
特徴はあくまでも検証に必要なマイクロプログラムの定
義等の情報をすべてマイクロ命令仕様上より入手する点
にあり、その具体的内容は上記実施例の範囲に限らず、
例えば、405のレジスタ/ラッチ情報や、406のオ
ペレーション情報など、マイクロプログラムの動作に関
する情報を用い、動的な検証を実施することもできる。Although the specific description has been given above, the feature of the present invention is that all the information such as the definition of the microprogram necessary for the verification is obtained from the microinstruction specifications. Not limited to the scope of the embodiment,
For example, the dynamic verification can be performed using information regarding the operation of the microprogram, such as the register / latch information of 405 and the operation information of 406.
【0064】[0064]
【発明の効果】以上説明したように、本発明のマイクロ
プログラム検証方法に依れば、次のような効果が得られ
る。As described above, according to the microprogram verification method of the present invention, the following effects can be obtained.
【0065】(1)検証対象の機種やバージョンに関係
なく、汎用的な検証を実現できる。(1) It is possible to realize general-purpose verification regardless of the model or version to be verified.
【0066】(2)検証のための準備工数を大幅に低減
できる。(2) The number of preparation steps for verification can be greatly reduced.
【0067】(3)検証条件の設定段階に人手の介入を
排除したことで、検証条件となる各種定義や制限ルール
の抽出漏れや記述ミスを無くし、検証精度の向上を実現
することができる。(3) By eliminating manual intervention in the verification condition setting step, it is possible to eliminate the omission of description and error in the definition of various definitions and restriction rules as verification conditions, and to improve the verification accuracy.
【0068】(4)常に最新の検証条件での検証を維持
することができ、高品質の検証を実現できる。(4) The verification under the latest verification conditions can always be maintained, and high-quality verification can be realized.
【0069】(5)検証時の判定基準となる制限ルール
を編集し最適化することで、検証処理の高速化を実現す
ることができる。(5) By speeding up the verification process by editing and optimizing the restriction rule serving as the judgment criterion during verification.
【0070】(6)検証時の判定基準となる制限ルール
の不正を指摘することで、検証時の誤指摘を未然に防
ぎ、検証結果の信頼性を向上させることができる。(6) By pointing out the fraudulence of the restriction rule which is the judgment criterion at the time of verification, it is possible to prevent erroneous pointing at the time of verification and improve the reliability of the verification result.
【図1】マイクロプログラム検証システム全体概要図で
ある。FIG. 1 is an overall schematic diagram of a microprogram verification system.
【図2】マイクロ命令仕様コンパイル部の機能ブロック
図である。FIG. 2 is a functional block diagram of a microinstruction specification compiling unit.
【図3】マイクロ命令仕様記述例である。FIG. 3 is an example of micro instruction specification description.
【図4】マイクロ命令仕様のデータ読み出し・チェック
部処理である。FIG. 4 is a data read / check unit process of microinstruction specifications.
【図5】マイクロ命令仕様上の制限ルールである。FIG. 5 is a restriction rule based on microinstruction specifications.
【図6】マイクロ命令仕様上の制限ルール解説図であ
る。FIG. 6 is an explanatory diagram of a restriction rule based on microinstruction specifications.
【図7】制限ルールの統合処理解説図である。FIG. 7 is an explanatory diagram of integration processing of restriction rules.
1 マイクロ命令仕様記述言語仕様 2 マイクロ命令仕様 3 マイクロ命令仕様コンパイル部 4 マイクロ命令定義情報群 5 マイクロ命令仕様記述違反情報 7 マイクロプログラムソース 8 検証実施部 9 マイクロ命令仕様制限ルール違反情報 10 マイクロプログラムソース記述形式違反情報 401 マイクロプログラムソース記述形式情報 402 マイクロ命令定義情報 403 制限ルール情報 404 特殊ファンクション情報 1 Microinstruction specification description language specification 2 Microinstruction specification 3 Microinstruction specification compilation unit 4 Microinstruction definition information group 5 Microinstruction specification description violation information 7 Microprogram source 8 Verification execution unit 9 Microinstruction specification restriction rule violation information 10 Microprogram source Description format violation information 401 Micro program source description format information 402 Micro instruction definition information 403 Restriction rule information 404 Special function information
───────────────────────────────────────────────────── フロントページの続き (72)発明者 田中 順子 神奈川県秦野市堀山下1番地 株式会社日 立コンピュータエレクトロニクス内 (72)発明者 中村 歩 神奈川県秦野市堀山下1番地 株式会社日 立コンピュータエレクトロニクス内 (72)発明者 加藤 則子 神奈川県秦野市堀山下1番地 株式会社日 立コンピュータエレクトロニクス内 (72)発明者 森 茂 神奈川県秦野市堀山下1番地 日立コンピ ュータエンジニアリング 株式会社内 (72)発明者 磨田 義範 神奈川県秦野市堀山下1番地 日立コンピ ュータエンジニアリング 株式会社内 ─────────────────────────────────────────────────── ─── Continuation of the front page (72) Inventor Junko Tanaka, 1 Horiyamashita, Hinoyamashita, Hadano, Kanagawa Prefecture (72) Ayumu Nakamura 1st, Horiyamashita, Hadano, Kanagawa (72) Inventor Noriko Kato 1 Horiyamashita, Hinoyamashita, Hadano, Kanagawa Pref., Japan Computer Electronics Co., Ltd. (72) Inventor Shigeru Mori, 1 Horiyamashita, Hadano, Kanagawa Hitachi Computer Engineering Co., Ltd. (72) Inventor Yoshinori Morata 1 Horiyamashita, Hadano City, Kanagawa Prefecture, Hitachi Computer Engineering Co., Ltd.
Claims (3)
グラムの仕様上の制限ルールを静的に検証するマイクロ
プログラム検証方法において、検証に必要なマイクロ命
令の定義情報を、マイクロ命令仕様記述言語仕様により
記述された前記被検証マイクロプログラムのマイクロ命
令仕様より自動的に抽出し、該抽出された定義情報によ
り検証を実施することを特徴とするマイクロプログラム
検証方法。1. A microprogram verification method for statically verifying a restriction rule on a specification of a microprogram built into a computer system, wherein definition information of a microinstruction necessary for verification is described by a microinstruction specification description language specification. A microprogram verification method, which comprises automatically extracting from the microinstruction specifications of the verified microprogram to be verified, and performing verification based on the extracted definition information.
のフィールド/ファンクションの構成、マイクロプログ
ラムソースの記述形式、マイクロ命令の使用上の制限ル
ールであることを特徴とする請求項1記載のマイクロプ
ログラム検証方法。2. The microprogram verification according to claim 1, wherein the definition information is at least a field / function structure of a microinstruction, a description format of a microprogram source, and a restriction rule in use of the microinstruction. Method.
抽出するにあたり、少なくとも複数のファンクションに
対し記述されているが同意である制限ルールを統合し、
制限の内容に矛盾の生じる制限ルールや未定義の命令に
関する制限ルールを指摘することを特徴とする請求項2
記載のマイクロプログラム検証方法。3. When extracting the usage restriction rule in the specification of microinstruction, the restriction rules which are described but agree with at least a plurality of functions are integrated,
3. Pointing out a restriction rule that causes a contradiction in the content of the restriction or a restriction rule regarding an undefined instruction.
The described microprogram verification method.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP6234787A JPH0895827A (en) | 1994-09-29 | 1994-09-29 | Microprogram verification method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP6234787A JPH0895827A (en) | 1994-09-29 | 1994-09-29 | Microprogram verification method |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0895827A true JPH0895827A (en) | 1996-04-12 |
Family
ID=16976379
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP6234787A Pending JPH0895827A (en) | 1994-09-29 | 1994-09-29 | Microprogram verification method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0895827A (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2006139616A (en) * | 2004-11-12 | 2006-06-01 | Toshiba Corp | Design information verification apparatus and design information verification method |
| JP2015203895A (en) * | 2014-04-11 | 2015-11-16 | 三菱電機株式会社 | Instruction table generation device, instruction decode program generation device, instruction table generation method, instruction decode program generation method, and program |
-
1994
- 1994-09-29 JP JP6234787A patent/JPH0895827A/en active Pending
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2006139616A (en) * | 2004-11-12 | 2006-06-01 | Toshiba Corp | Design information verification apparatus and design information verification method |
| JP2015203895A (en) * | 2014-04-11 | 2015-11-16 | 三菱電機株式会社 | Instruction table generation device, instruction decode program generation device, instruction table generation method, instruction decode program generation method, and program |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US7571427B2 (en) | Methods for comparing versions of a program | |
| EP1879106A2 (en) | Source code generation method, apparatus and program | |
| US7340475B2 (en) | Evaluating dynamic expressions in a modeling application | |
| US20070074177A1 (en) | Logic extraction support apparatus | |
| US20110307488A1 (en) | Information processing apparatus, information processing method, and program | |
| CN117851101A (en) | A method for automatic repair of warehouse-level code defects based on large language model | |
| JPH0683598A (en) | Job flow specification automatic creation method | |
| US5949993A (en) | Method for the generation of ISA simulators and assemblers from a machine description | |
| CN117931150A (en) | Method and device for automatically correcting code style | |
| JPH0540616A (en) | Program specification generation method | |
| JP2830354B2 (en) | Equivalent data item detection method | |
| US20050289518A1 (en) | Compiler and logic circuit design method | |
| CN117350396A (en) | Methods for tracking and cloning artifacts associated with distributed machine learning pipelines | |
| JPH1097417A (en) | Program assembling apparatus and storage medium | |
| CN119829021A (en) | Method for generating front-end prototype based on generation countermeasure network | |
| JP2702986B2 (en) | How to replace data in a program | |
| JP2839845B2 (en) | Microprogram verification method | |
| JP2555760B2 (en) | Transition asset difficulty evaluation device | |
| JP3311962B2 (en) | Program correction point detection device | |
| JPH0830448A (en) | Program specification consistency inspecting device | |
| JPH0744397A (en) | Program processing accelerating system | |
| CN117873468A (en) | Code generation system and method based on rule engine | |
| JP2927137B2 (en) | Automatic circuit design method and device and system | |
| Lam | A Framework-Driven Comparison of Automata-Based Tools for Identifying Business Rule Conflicts | |
| JPH06119156A (en) | Program automatic generation method |