JPH08202741A - Device and method for supporting function design - Google Patents

Device and method for supporting function design

Info

Publication number
JPH08202741A
JPH08202741A JP7012440A JP1244095A JPH08202741A JP H08202741 A JPH08202741 A JP H08202741A JP 7012440 A JP7012440 A JP 7012440A JP 1244095 A JP1244095 A JP 1244095A JP H08202741 A JPH08202741 A JP H08202741A
Authority
JP
Japan
Prior art keywords
state
data
transition
simulation
current state
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
JP7012440A
Other languages
Japanese (ja)
Inventor
Kazunobu Sugaya
和伸 菅谷
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.)
Ricoh Co Ltd
Original Assignee
Ricoh Co 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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP7012440A priority Critical patent/JPH08202741A/en
Priority to TW085201921U priority patent/TW324156U/en
Publication of JPH08202741A publication Critical patent/JPH08202741A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE: To improve a debugging environment by emphatically displaying a current state under simulation and the route of transition on a display screen from control contents inputted in the form of a state transition figure or the like. CONSTITUTION: Graphic information inputted in the form of the state transition figure is analyzed and generated as graphic data and the graphic data are stored in a graphic data file 6. Next, the generating processing of relation data 7 is executed by referring to the provided graphic data. Afterwards, the generating processing of condition branch data 8 is executed by referring to the provided graphic data. Then, simulation processing is executed to the graphic data expressing an input display picture to be prepared and displayed. Next, simulation data are extracted and based on these data and the relation data 7, the current state is analyzed. Further, the route of transition between states is analyzed by referring to the condition branch data 8. Then, the current state and its transition route are emphatically displayed.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、LSI設計の機能設計
の容易化を図る機能設計支援装置及び機能設計支援方法
に関し、特にハードウェアの制御動作を複数の状態で表
わす状態遷移ベースの設計を支援する機能設計支援装置
及び機能設計支援方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a functional design support device and a functional design support method for facilitating functional design of an LSI design, and more particularly to a state transition based design that represents a hardware control operation in a plurality of states. The present invention relates to a functional design support device and a functional design support method to support.

【0002】[0002]

【従来の技術】従来、ASIC(特定用途向けIC)等
のLSIを設計する場合、LSIのハードウェアの制御
内容を含む処理内容を入力するエントリツール装置が用
いられている。このエントリツール装置は、上記制御内
容を示す状態遷移図等の図形(グラフィックな画像情
報)を入力する入力装置を備えている。入力された上記
処理内容はシミュレーションされシミュレーション実行
中の現在の「状態」は、「状態」を示す図形の強調表示
等の方法によりディスプレイ上で表示することができ
る。シミュレーション中の現在の「状態」を強調表示す
ることに関しては、従来技術として一般的であり、例え
ばKBS社のFlowHDL、Speed社のSpee
dChart、SEE Technology社のVi
sualHDLにはいずれもこの機能が設けられてい
る。このように、シミュレーション中の「状態」や遷移
条件等の情報を得て、デバッグ環境を向上するとした発
明が提案されている。
2. Description of the Related Art Conventionally, when designing an LSI such as an ASIC (application-specific IC), an entry tool device for inputting processing contents including control contents of the hardware of the LSI has been used. This entry tool device is provided with an input device for inputting a figure (graphical image information) such as a state transition diagram showing the control contents. The input processing contents are simulated, and the current “state” during the simulation can be displayed on the display by a method such as highlighting of a figure indicating the “state”. The highlighting of the current “state” during simulation is common in the prior art, for example, FlowHDL from KBS, Speed from Speed.
dChart, SEE Technology's Vi
This function is provided in each of the dual HDLs. In this way, an invention has been proposed in which the debug environment is improved by obtaining information such as the “state” and transition conditions during simulation.

【0003】[0003]

【発明が解決しようとする課題】しかしながら上述した
従来の装置では、シミュレーション実行中の「状態」の
変化は理解出来るが、変化前の「状態」と変化後の「状
態」間の遷移条件の経路は理解出来ない。また、シミュ
レーション実行後全ての「状態」及び状態遷移条件の経
路をカバーしたのかを理解することはできない。昨今、
要求されるハードウェアの制御動作が複雑化しており、
上記エントリツール装置でエントリする状態遷移内容も
複雑となってきている。又、「状態」間の遷移条件も多
岐にわたり、予測し得ない条件遷移が起こっていたり、
無駄な条件遷移の経路を含んでいたりするすることもあ
る。よってシミュレーションにおいて単なる「状態」の
変化を認識するだけでなく、状態遷移条件の経路を知る
ことも重要となってきている。又、シミュレーション中
の「状態」間の遷移経路の強調表示に関しては、商用の
ツールで使用されたものはなく、さらにシミュレーショ
ン後のカバレッジ表示に関しても同様に商用のツールで
使用されたものはない。本発明は上述したような問題点
を解決したもので、シミュレーションのデバッグ環境を
向上させることができる機能設計支援装置及び機能設計
支援方法を提供することを目的とする。
However, in the above-mentioned conventional apparatus, although the change of the "state" during the execution of the simulation can be understood, the transition condition path between the "state" before the change and the "state" after the change can be understood. Can't understand. Moreover, it is not possible to understand whether all the "states" and the paths of the state transition conditions have been covered after the simulation is executed. These days
The required control operation of hardware is complicated,
The contents of the state transition to be entered by the entry tool device are becoming complicated. Also, there are various transition conditions between "states", and unpredictable condition transitions occur,
It may include a path of useless condition transition. Therefore, it is becoming important not only to recognize changes in “states” but also to know the paths of state transition conditions in simulations. Further, regarding the highlighting of the transition path between the “states” during the simulation, none has been used by the commercial tool, and regarding the display of the coverage after the simulation, neither has been used by the commercial tool. The present invention solves the above-mentioned problems, and an object of the present invention is to provide a functional design support device and a functional design support method that can improve the debug environment for simulation.

【0004】[0004]

【課題を解決するための手段とその作用】本発明の機能
設計支援装置は、複数の状態を有する制御フローを含む
ハードウエアの制御動作をシミュレータを用いてシミュ
レーションし、該シミュレーションの実行過程を表示画
面上で表示する機能設計支援装置であって、状態遷移図
の形式にてなる上記制御フローの制御内容を解析し上記
制御内容を示す図形データを生成する図形データ生成手
段と、上記図形データにおいて上記各状態と上記各状態
に割り当てられている状態コードとの関係を示す関係デ
ータを生成する関係データ生成手段と、遷移元の状態で
ある遷移元状態と遷移先の状態である遷移先状態と上記
遷移元状態から上記遷移先状態への分岐位置とを上記図
形データから解析し上記遷移元状態、上記遷移先状態、
及び上記分岐位置を条件分岐データとして生成する条件
分岐データ生成手段と、上記シミュレータから得られる
シミュレーションデータを抽出する抽出手段と、上記関
係データと上記抽出手段で得られる上記シミュレーショ
ンデータとに基づきシミュレーション実行中の現在の状
態を解析する現在状態解析手段と、上記条件分岐データ
と上記シミュレーションデータとに基づき上記状態間の
遷移条件の経路を解析する経路解析手段と、上記現在状
態解析手段から得られる上記現在の状態と上記経路解析
手段から得られる状態間の遷移経路とを上記画面上で強
調表示する第1表示手段と、を備えたことを特徴とす
る。
The functional design support apparatus of the present invention simulates a control operation of hardware including a control flow having a plurality of states by using a simulator and displays the execution process of the simulation. A functional design support device for displaying on a screen, wherein graphic data generating means for analyzing the control content of the control flow in the form of a state transition diagram and generating graphic data indicating the control content, Relational data generating means for generating relational data indicating the relation between each state and the state code assigned to each state, a transition source state which is a transition source state, and a transition destination state which is a transition destination state. The transition position from the transition source state to the transition destination state is analyzed from the graphic data, and the transition source state, the transition destination state,
And conditional branch data generation means for generating the branch position as conditional branch data, extraction means for extracting simulation data obtained from the simulator, and simulation execution based on the relational data and the simulation data obtained by the extraction means. A current state analyzing means for analyzing a current state in the inside, a route analyzing means for analyzing a route of a transition condition between the states based on the conditional branch data and the simulation data, and the above obtained from the current state analyzing means. A first display unit for highlighting the current state and the transition route between the states obtained from the route analysis unit on the screen is provided.

【0005】現在状態解析手段は、関係データ生成手段
から得られる関係データと抽出手段から得られるシミュ
レーションデータとに基づき、シミュレーション実行中
の現在の状態を解析する。又、経路解析手段は、条件分
岐データ生成手段から得られる条件分岐データと上記シ
ミュレーションデータとに基づき状態間の遷移条件の経
路を解析する。第1表示手段は、上記現在状態解析手段
及び上記経路解析手段から得られる現在の状態と、遷移
経路とを表示画面上に強調表示する。このように、現在
の状態及び遷移経路が表示画面上に強調表示されること
から、シミュレーションのデバッグ環境を向上させるよ
うに作用する。
The present state analysis means analyzes the present state during execution of the simulation based on the relational data obtained from the relational data generation means and the simulation data obtained from the extraction means. The path analysis means analyzes the path of the transition condition between the states based on the conditional branch data obtained from the conditional branch data generation means and the simulation data. The first display unit highlights the current state obtained from the current state analysis unit and the route analysis unit and the transition route on the display screen. In this way, the current state and the transition route are highlighted on the display screen, which serves to improve the debug environment of the simulation.

【0006】又、本発明の機能設計支援方法は、複数の
状態を有する制御フローを含むハードウエアの制御動作
をシミュレータを用いてシミュレーションし、該シミュ
レーションの実行過程を表示画面上で表示する機能設計
支援方法であって、状態遷移図の形式にてなる上記制御
フローの制御内容を解析し上記制御内容を示す図形デー
タを生成する図形データ生成工程と、上記図形データに
おいて上記各状態と上記各状態に割り当てられている状
態コードとの関係を示す関係データを生成する関係デー
タ生成工程と、遷移元の状態である遷移元状態と遷移先
の状態である遷移先状態と上記遷移元状態から上記遷移
先状態への分岐位置とを上記図形データから解析し上記
遷移元状態、上記遷移先状態、及び上記分岐位置を条件
分岐データとして生成する条件分岐データ生成工程と、
上記シミュレータから得られるシミュレーションデータ
を抽出する抽出工程と、上記関係データと上記抽出工程
で得られる上記シミュレーションデータとに基づきシミ
ュレーション実行中の現在の状態を解析する現在状態解
析工程と、上記条件分岐データと上記シミュレーション
データとに基づき上記状態間の遷移条件の経路を解析す
る経路解析工程と、上記現在状態解析工程から得られる
上記現在の状態と上記経路解析工程から得られる状態間
の遷移経路とを上記画面上で強調表示する第1表示工程
と、を備えたことを特徴とする。
Further, the functional design support method of the present invention is a functional design for simulating a control operation of hardware including a control flow having a plurality of states by using a simulator and displaying an execution process of the simulation on a display screen. A supporting method, a graphic data generating step of analyzing control contents of the control flow in the form of a state transition diagram and generating graphic data indicating the control contents, and the above states and the above states in the graphic data. Relation data generation step of generating relation data indicating the relation with the status code assigned to the transition source state, the transition source state that is the transition source state, the transition destination state that is the transition destination state, and the transition from the transition source state to the transition The branch position to the destination state is analyzed from the graphic data, and the transition source state, the transition destination state, and the branch position are used as conditional branch data. And conditional branch data generating step of forming,
An extraction step of extracting simulation data obtained from the simulator, a current state analysis step of analyzing a current state during execution of simulation based on the relational data and the simulation data obtained in the extraction step, and the conditional branch data. And a path analysis step of analyzing a path of a transition condition between the states based on the simulation data, and a transition path between the current state obtained from the current state analysis step and the state obtained from the path analysis step. A first display step of highlighting on the screen.

【0007】[0007]

【実施例】本発明の機能設計支援装置の一実施例である
機能設計支援装置について図を参照しながら以下に説明
する。本実施例の機能設計支援装置は、ハードウェアの
状態遷移を、後述の条件分岐データと、後述の前の状態
コードデータと、後述の関係データとの3つの状態遷移
ルールとして分割解析し、状態遷移時の遷移条件が成立
した状態遷移ルールを表示し、状態遷移ルールの動作履
歴を表示することで、状態遷移ルールのデバッグの効率
を向上させようとするものである。尚、上記状態遷移ル
ールとは、遷移条件に従った状態間の遷移経路を意味す
る。又、本発明の機能設計支援方法は、上記機能設計支
援装置を使用して実行される。又、請求項に記載する、
図形データ生成手段、関係データ生成手段、条件分岐デ
ータ生成手段、抽出手段、現在状態解析手段、経路解析
手段、コードデータ変更手段、及びカバレッジデータ生
成手段の各機能を果たす一手段として、実施例ではマイ
クロプロセッサが相当する。又、第1表示手段及び第2
表示手段の機能を果たす一手段として実施例ではディス
プレイが相当する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS A functional design support apparatus which is an embodiment of the functional design support apparatus of the present invention will be described below with reference to the drawings. The functional design support device of the present embodiment divides and analyzes the state transition of hardware as three state transition rules of conditional branch data described later, previous state code data described later, and relational data described later, and states It is intended to improve the efficiency of debugging the state transition rule by displaying the state transition rule satisfying the transition condition at the time of transition and displaying the operation history of the state transition rule. The above-mentioned state transition rule means a transition route between states according to transition conditions. The functional design support method of the present invention is executed using the functional design support device. Also, as described in the claims,
In the embodiment, the graphic data generating means, the relational data generating means, the conditional branch data generating means, the extracting means, the current state analyzing means, the route analyzing means, the code data changing means, and the coverage data generating means are used as one means. It corresponds to a microprocessor. Also, the first display means and the second
In the embodiments, the display corresponds to one means for performing the function of the display means.

【0008】本実施例の機能設計支援装置は図1に示す
ような構成を有する。即ち、表示装置であるCRTディ
スプレイ1上にて状態遷移図等を作成するための入力装
置としてデータ入力用のマウス2及びキーボード3が設
けられ、また、複数の「状態」を有する制御フローを含
むハードウエアの制御動作のシミュレーション動作にお
ける種々の演算を行うマイクロプロセッサ(MPU)
4、及びシミュレーションプログラム本体(シミュレー
タ)5が設けられる。さらに、上記状態遷移図が表す制
御内容を示す図形データ、関係データ、条件分岐デー
タ、前の状態コードデータをそれぞれ格納する、図形デ
ータ格納手段6、関係データ格納手段7、条件分岐デー
タ格納手段8、前の状態コードデータ格納手段9を有し
ている。又、上述した、ディスプレイ1から前の状態コ
ードデータ格納手段9は、それぞれ接続線11にて電気
的に接続されている。又、図2に示すように、図1に示
す構成にさらにカバレッジデータを格納するカバレッジ
データ格納手段10を接続線11に接続することもでき
る。
The functional design support apparatus of this embodiment has a configuration as shown in FIG. That is, a mouse 2 and a keyboard 3 for data input are provided as an input device for creating a state transition diagram or the like on a CRT display 1 which is a display device, and a control flow having a plurality of "states" is included. Microprocessor (MPU) that performs various operations in simulation operation of hardware control operation
4 and a simulation program body (simulator) 5 are provided. Further, the graphic data storage means 6, the relational data storage means 7, and the conditional branch data storage means 8 for respectively storing graphic data, relational data, conditional branch data, and previous state code data indicating the control contents represented by the state transition diagram. , And the previous state code data storage means 9. Further, the above-mentioned state code data storage means 9 from the display 1 are electrically connected by the connection line 11. Further, as shown in FIG. 2, a coverage data storage means 10 for storing coverage data may be further connected to the connection line 11 in the configuration shown in FIG.

【0009】このように構成される機能設計支援装置の
動作について以下に説明する。図3には、図1及び図2
に示す構成を有する機能設計支援装置のメインの動作フ
ローを示し、図4は図3のフローチャートのサブルーチ
ンであって、シミュレーション処理動作を示すサブフロ
ーチャートを示している。当該機能設計支援装置を起動
すると図3に示すように、まずステップ(図では「S」
にて示す)1において図形データの入力処理が実行され
る。当該処理では、操作者は、マウス2およびキーボー
ド3を使用してCRTディスプレイ1上でLSI(大規
模集積回路)の制御内容を示す図形情報を状態遷移図の
形式で編集、入力する。入力された上記図形情報は、公
知の処理形態で解析され、表1に示す図形データとして
生成され、該図形データは図形データファイル6に格納
される。
The operation of the functional design support device thus configured will be described below. In FIG. 3, FIG. 1 and FIG.
FIG. 4 shows a main operation flow of the functional design support device having the configuration shown in FIG. 4, and FIG. 4 shows a sub-flowchart showing a simulation processing operation which is a subroutine of the flowchart of FIG. When the functional design support device is started, as shown in FIG. 3, first, step (“S” in the figure)
1), the input process of the graphic data is executed. In this process, the operator uses the mouse 2 and the keyboard 3 to edit and input the graphic information indicating the control content of the LSI (Large Scale Integrated Circuit) on the CRT display 1 in the form of a state transition diagram. The inputted graphic information is analyzed in a known processing form and is generated as the graphic data shown in Table 1, and the graphic data is stored in the graphic data file 6.

【0010】[0010]

【表1】 [Table 1]

【0011】尚、表1において“State S0”
は、「S0」とラベル付けされた「状態」を示し、“p
osition”は、その「状態」の画面上の座標を
(X,Y)の形式で示すものであり、“code 0
0”は、「S0」とラベル付けされた「状態」に割り当
てられた状態コードを示し、“arrow A0 to
S0”は、「A0」とラベル付けされた状態遷移の経
路を示し、「S0」とラベル付けされた「状態」までの
経路を上記“position”による頂点座標で示す
ものである。また、“Branch B0”は,「B
0」とラベル付けされた条件分岐のシンボルを示すもの
で、上記“position”と同様に画面上の座標を
示し、“condition X=1”は、その分岐の
条件がX=1であることを示し、“Yes arrow
A10 to B1”は、条件が真の場合の状態遷移
の経路「A10」を示し、“No arrow A11
to S2” は、偽の場合の状態遷移の経路「A1
1」を示すものである。又、上記ステップ1で実行され
た入力処理でのCRTディスプレイ上の入力表示画面を
図6に示す。
In Table 1, "State S0"
Indicates a "state" labeled "S0", and "p"
"position" indicates the coordinates of the "state" on the screen in the form of (X, Y), and "code 0"
"0" indicates the status code assigned to the "status" labeled "S0" and is "arrow A0 to
“S0” indicates the state transition path labeled “A0”, and the path to the “state” labeled “S0” is indicated by the vertex coordinates according to the “position”. Also, "Branch B0" is "B
It indicates the symbol of the conditional branch labeled "0" and indicates the coordinate on the screen like "position" above. "Condition X = 1" means that the condition of the branch is X = 1. Show, "Yes arrow
"A10 to B1" indicates a state transition path "A10" when the condition is true, and "No allow A11"
to S2 ”is the state transition path“ A1
1 ”. FIG. 6 shows an input display screen on the CRT display in the input processing executed in step 1 above.

【0012】次いでステップ2においては、ステップ1
で得られた上記図形データを参照することで、関係デー
タの生成処理が実行される。上記状態コードは、シミュ
レーション実行中にある「状態」を判定するためのもの
で、本実施例では図6に示すように、「状態」はS0〜
S3の4つの「状態」が存在するので、2ビットからな
る00,01,10,11の各状態コードが上記S0〜
S3の各「状態」に割り当てられる。尚、割り当てられ
た状態コードと、対応する「状態」とは、表2に示す形
式で、関係データとして関係データ格納手段7に格納さ
れる。なお、この状態コードデータは、上述のようにシ
ミュレーション実行中の「状態」を判別するために設け
るもので、シミュレータに依存するものであるので詳し
い説明は省略する。
Then, in step 2, step 1
By referring to the above-mentioned graphic data obtained in step 1, the related data generation process is executed. The above status code is for judging the "status" during the execution of the simulation, and in the present embodiment, as shown in FIG.
Since there are four "states" of S3, each state code of 00, 01, 10, and 11 consisting of 2 bits has the above S0 to S0.
It is assigned to each "state" of S3. The assigned status code and the corresponding "state" are stored in the relational data storage means 7 as relational data in the format shown in Table 2. The state code data is provided to determine the "state" during the simulation as described above, and depends on the simulator, and therefore detailed description thereof will be omitted.

【0013】[0013]

【表2】 [Table 2]

【0014】次いでステップ3においては、ステップ1
で得られた図形データを参照することで、条件分岐デー
タの生成処理が実行される。条件分岐データとは、各
「状態」の遷移における遷移元の「状態」である遷移元
状態と、遷移先の「状態」である遷移先状態と、上記遷
移元状態から上記遷移先状態への分岐位置である条件分
岐とを示すデータをいう。これらの上記遷移元状態と上
記遷移先状態と上記条件分岐とは表3に示す形式で条件
分岐データ格納手段8に格納される。尚、表3に示す
“courseC0 S0 to S1{X=1,Z=
1}”は、「C0」とラベル付けされた分岐を示し、遷
移元状態である「S0」から遷移先状態である「S1」
への分岐条件が{X=1,Z=1}であることを示して
いる。
Then, in step 3, step 1
The generation processing of conditional branch data is executed by referring to the graphic data obtained in (1). Conditional branch data means a transition source state that is a transition source “state” in each “state” transition, a transition destination state that is a transition destination “state”, and the transition source state to the transition destination state. It refers to data indicating a conditional branch that is a branch position. The transition source state, the transition destination state, and the conditional branch are stored in the conditional branch data storage means 8 in the format shown in Table 3. It should be noted that "courseC0 S0 to S1 {X = 1, Z =
1} ”indicates a branch labeled“ C0 ”, and the transition source state“ S0 ”to the transition destination state“ S1 ”.
It indicates that the branching condition to {X = 1, Z = 1}.

【0015】[0015]

【表3】 [Table 3]

【0016】次いでステップ4においては、ステップ1
〜3までにて作成され、図6に示すように表示される入
力表示画面を表す上記図形データについて、図4に示す
動作にてシミュレーション処理を実行する。尚、図4は
図3のサブルーチンを示しておりステップ4におけるシ
ミュレーション処理を示すフローチャートである。図4
に示すようにまず、ステップ5にてシミュレータ5を起
動する。次にステップ6にて、シミュレータ5に投入さ
れるシミュレーションデータの抽出処理を実行する。
尚、このシミュレーションデータの抽出処理は、シミュ
レータ5が行う動作であるので抽出処理についての詳し
い説明は省略する。
Then, in step 4, step 1
Simulation processing is executed by the operation shown in FIG. 4 with respect to the graphic data representing the input display screen created as shown in FIG. 4 is a flowchart showing the subroutine of FIG. 3 and showing the simulation processing in step 4. FIG.
First, in step 5, the simulator 5 is started as shown in FIG. Next, in step 6, the extraction process of the simulation data input to the simulator 5 is executed.
Note that this simulation data extraction processing is an operation performed by the simulator 5, so a detailed description of the extraction processing will be omitted.

【0017】次いでステップ7においては、上記ステッ
プ6で得た上記シミュレーションデータと上記ステップ
2で生成された上記関係データとに基づき、シミュレー
ションが現在実行されているところの「現在の状態」を
解析する。
Next, in step 7, based on the simulation data obtained in step 6 and the relational data generated in step 2, the "current state" where the simulation is currently executed is analyzed. .

【0018】又、ステップ8においては、上記ステップ
3で生成された上記条件分岐データを参照することで、
「状態」間の遷移経路の解析を行う。次にステップ9に
おいては、上記ステップ7におよびステップ8で解析し
た「現在の状態」及び「状態」間の遷移経路をディスプ
レイ1上で強調表示する。なお、この際、上記「現在の
状態」よりも以前の段階である「前の状態」と該「前の
状態」を含む「状態」間における遷移経路とがディスプ
レイ1上で強調表示されている場合には、上記「前の状
態」と上記遷移経路とにおける強調表示をディスプレイ
1上からクリアした後、上記「現在の状態」及びその遷
移経路を強調表示する。尚、上記ステップ9における表
示処理が実行された後のCRTディスプレイ1上の入力
表示画面を図7に示す。図7では、「現在の状態」が
「S2」で、「前の状態」が「S0」から分岐条件X=
1,Z=0の「状態」間の遷移経路を示している。尚、
図7において、上記強調表示は、状態「S0」について
はハッチングにて、遷移経路については太線にて示して
いる。又、上記「Z=0」は、「Z=1」の判断がNO
の場合である。
Further, in step 8, by referring to the conditional branch data generated in step 3,
Analyze the transition path between "states". Next, in step 9, the transition path between the “current state” and the “state” analyzed in steps 7 and 8 is highlighted on the display 1. At this time, the “previous state”, which is a stage earlier than the “current state”, and the transition route between “states” including the “previous state” are highlighted on the display 1. In this case, after the highlighting in the "previous state" and the transition route is cleared from the display 1, the "current state" and the transition route are highlighted. FIG. 7 shows the input display screen on the CRT display 1 after the display processing in step 9 is executed. In FIG. 7, the “current state” is “S2”, and the “previous state” is “S0”.
1 shows a transition path between “states” of Z = 0. still,
In FIG. 7, the highlighted display is indicated by hatching for the state “S0” and by a bold line for the transition route. Further, in the case of "Z = 0", the judgment of "Z = 1" is NO.
Is the case.

【0019】次いでステップ10においては、次のシミ
ュレーションサイクル時の遷移元状態を知るために、上
記ステップ7にて得た「現在の状態」に付されている状
態コードを表4で示すように、前の状態コードデータ9
へ格納する。尚、表4において“S0 00”は「S
0」が「前の状態」を示しその状態コードは「00」で
あることを示す。ステップ6からステップ10までを上
記シミュレーションが終了するまで繰り返される(ステ
ップ11)。
Next, at step 10, in order to know the transition source state at the next simulation cycle, as shown in Table 4, the state code attached to the "current state" obtained at step 7 is Previous status code data 9
Store to. In Table 4, "S00" means "S
“0” indicates “previous state” and the state code is “00”. Steps 6 to 10 are repeated until the simulation is completed (step 11).

【0020】[0020]

【表4】 [Table 4]

【0021】以上説明したように、例えば状態「S0」
から次の状態遷移までシミュレーションを実行する。こ
のときの「前の状態」のコードデータは例えば表4で示
されるようなデータにて表され、シミュレーションデー
タを抽出したとき「現在の状態」のコードデータが1
0、X=1かつZ=0であった場合、表2に示す状態コ
ードデータを参照し解析することで「現在の状態」がS
2であることがわかり、表3の条件分岐データを参照し
解析することで条件分析経路のC2を通ったことがわか
る。このようにして得た、「現在の状態」と状態遷移の
経路とを表示画面上に強調表示した場合が図7に示す画
面である。このように、状態遷移図等にて表現されるL
SIの制御内容を示す図形を入力するとともに、上記L
SIの動作をシミュレーションし、しかも「現在の状
態」と状態遷移の経路とを表示画面上で認識することが
できる。よって状態遷移図等で入力された上記制御内容
のシミュレーションのデバッグ環境を向上させることが
できる。
As described above, for example, the state "S0"
Run the simulation from to the next state transition. The code data of the "previous state" at this time is represented by, for example, the data shown in Table 4, and when the simulation data is extracted, the code data of the "current state" is 1
When 0, X = 1 and Z = 0, the "current state" is S by referring to the state code data shown in Table 2 and analyzing.
It can be seen that it is 2, and by referring to the conditional branching data in Table 3 and analyzing it, it can be seen that it has passed through C2 of the conditional analysis path. The screen shown in FIG. 7 shows the case where the “current state” and the route of the state transition obtained in this way are highlighted on the display screen. In this way, L represented by the state transition diagram etc.
Input the figure showing the control contents of SI and
It is possible to simulate the operation of SI and to recognize the “current state” and the state transition path on the display screen. Therefore, it is possible to improve the debug environment of the simulation of the control contents input in the state transition diagram or the like.

【0022】次に、図2に示す構成を有する場合の機能
設計支援装置の動作について図5を参照し説明する。
尚、図2に示す構成を有する場合の機能設計支援装置に
おいても、図4に示すステップ5からステップ10まで
の動作は同じ動作を行うことから、図5においてステッ
プ5からステップ9までの記載は省略している。又、ス
テップ1からステップ4、及びステップ5からステップ
10における各動作は上述した場合と同じであるのでそ
の説明は省略する。ステップ10に続いてステップ20
では、上記ステップ7にて得た、「現在の状態」の解析
データと、上記ステップ8にて得た「状態」間の遷移経
路データとから、カバレッジデータを表5の形式で生成
し、カバレッジデータ19へ格納する。尚、状態遷移の
シミュレーションにおいては、すべての状態とすべての
遷移経路をカバーしたシミュレーションを行うことが必
要である。よってカバレッジデータとは、シミュレーシ
ョンによってカバーされた状態と遷移経路とを示すデー
タ群を意味する。又、上記カバレッジデータは、シミュ
レーション実行中、順次追加されていくものである。表
5には、シミュレーション終了時点におけるカバレッジ
データを示している。表5に示すカバレッジデータは、
シミュレーションにより状態「S0」から条件分岐経路
C0を通過し状態「S1」へ、条件分岐経路C4を通過
し状態「S0」へ、条件分岐経路C1を通過し状態「S
2」へ、条件分岐経路C5を通過し状態「S0」へ、条
件分岐経路C2を通過し状態「S2」へ、条件分岐経路
C5を通過し状態「S0」まで遷移したことを示してい
る。
Next, the operation of the functional design support device having the configuration shown in FIG. 2 will be described with reference to FIG.
Even in the functional design support device having the configuration shown in FIG. 2, since the operations from step 5 to step 10 shown in FIG. 4 are the same, the description from step 5 to step 9 in FIG. Omitted. Further, since the operations in steps 1 to 4 and steps 5 to 10 are the same as those described above, the description thereof will be omitted. Step 10 followed by Step 20
Then, the coverage data is generated in the format of Table 5 from the analysis data of the “current state” obtained in step 7 above and the transition route data between the “states” obtained in step 8 above, and the coverage data is generated. Store in data 19. In the state transition simulation, it is necessary to perform a simulation covering all states and all transition paths. Therefore, the coverage data means a data group indicating the states and transition paths covered by the simulation. Moreover, the coverage data is sequentially added during the simulation. Table 5 shows the coverage data at the end of the simulation. The coverage data shown in Table 5 is
According to the simulation, the state “S0” passes through the conditional branch route C0 to the state “S1”, the conditional branch route C4 passes to the state “S0”, the conditional branch route C1 passes to the state “S”.
2 ”, passing through the conditional branch route C5 to the state“ S0 ”, passing through the conditional branch route C2 to the state“ S2 ”, passing through the conditional branch route C5 to the state“ S0 ”.

【0023】[0023]

【表5】 [Table 5]

【0024】ステップ21では、上記シミュレーション
が終了するまでステップ6からステップ10、ステップ
20、ステップ21が繰り返される。シミュレーション
終了後、ステップ22にて上記ステップ20で生成され
たカバレッジデータを参照することで、今までに実行さ
れた「状態」と、実行されてきた状態遷移の経路とを解
析し、実行された全ての「状態」と状態遷移の経路とを
表示図面上にて強調表示するカバレッジ表示処理が行わ
れる。尚、上記ステップ22にてカバレッジ表示処理が
実行された場合のCRTディスプレイ上の入力表示画面
を図8に示す。
In step 21, steps 6 to 10, step 20, and step 21 are repeated until the simulation is completed. After the simulation is completed, by referring to the coverage data generated in step 20 in step 22, the “state” that has been executed up to now and the path of the state transition that has been executed are analyzed and executed. Coverage display processing is performed in which all “states” and paths of state transitions are highlighted on the display drawing. FIG. 8 shows an input display screen on the CRT display when the coverage display processing is executed in step 22.

【0025】このようにカバレッジ処理を行うことで、
表示画面上でシミュレーションにより実行された全ての
「状態」と状態遷移の経路とを可視的に認識することが
できる。これによって入力した図形のうち不必要な箇所
の判定が容易となる。最近エントリツール装置では、入
力した図形と等価なハードウェア記述言語を生成し、生
成したハードウェア記述言語を論理合成ツールへ投入さ
せるという手法をとるものが多く、このような手法をと
る装置を使用する場合において、不必要な図形箇所を取
り除くことは、より精度の高い論理合成を行うことがで
きるので有効なことである。
By performing the coverage processing in this way,
It is possible to visually recognize all the “states” and the state transition paths executed by the simulation on the display screen. This facilitates the determination of unnecessary portions in the input graphic. Recently, many entry tool devices have adopted a method of generating a hardware description language equivalent to an input figure and inputting the generated hardware description language into a logic synthesis tool. In this case, it is effective to remove unnecessary graphic points because more accurate logic synthesis can be performed.

【0026】[0026]

【発明の効果】以上詳述したように本発明の機能設計支
援装置及び機能設計支援方法によれば、例えばASIC
等のLSIを設計する際の機能設計に用いられ、状態遷
移図等の形態にて入力された制御内容からシミュレーシ
ョン実行中の現在の状態及び遷移の経路を表示画面上に
強調表示するようにしたことから、状態遷移図等で入力
された制御内容のシミュレーションのデバッグ環境を向
上させることができる。又、カバレッジデータをも上記
表示画面上に強調表示することから、入力した図形のう
ち不必要箇所の判定が容易となり、より上記デバッグ環
境を向上させることができる。
As described above in detail, according to the functional design support apparatus and the functional design support method of the present invention, for example, an ASIC
It is used for functional designing when designing LSIs, etc., and the current state and transition path during simulation execution are highlighted on the display screen from the control contents input in the form of state transition diagram etc. Therefore, it is possible to improve the debug environment of the simulation of the control content input in the state transition diagram or the like. Further, since the coverage data is also highlighted on the display screen, it becomes easy to determine an unnecessary portion in the input graphic, and the debug environment can be further improved.

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

【図1】 本発明の機能設計支援装置の一実施例である
機能設計支援装置の構成を示すブロック図である。
FIG. 1 is a block diagram showing a configuration of a functional design support device which is an embodiment of a functional design support device of the present invention.

【図2】 本発明の他の実施例における機能設計支援装
置の構成を示すブロック図である。
FIG. 2 is a block diagram showing the configuration of a functional design support device according to another embodiment of the present invention.

【図3】 図1及び図2に示す機能設計支援装置の基本
的動作を示すフローチャートである。
FIG. 3 is a flowchart showing a basic operation of the functional design support device shown in FIGS. 1 and 2.

【図4】 図1に示す機能設計支援装置の動作であって
図3に示すステップ4のサブルーチンを示すフローチャ
ートである。
4 is a flowchart showing an operation of the functional design support device shown in FIG. 1 and showing a subroutine of step 4 shown in FIG.

【図5】 図2に示す機能設計支援装置の動作であって
図3に示すステップ4のサブルーチンを示すフローチャ
ートである。
5 is a flowchart showing an operation of the functional design support device shown in FIG. 2, which is a subroutine of step 4 shown in FIG.

【図6】 図1に示す機能設計支援装置にて表示される
図形を表す図である。
FIG. 6 is a diagram showing a graphic displayed by the functional design support device shown in FIG. 1.

【図7】 図1に示す機能設計支援装置によって現在の
状態と遷移経路とが強調表示された場合を表す図であ
る。
FIG. 7 is a diagram showing a case where a current state and a transition route are highlighted by the functional design support device shown in FIG.

【図8】 図2に示す機能設計支援装置によってカバレ
ッジデータが強調表示された場合を表す図である。
FIG. 8 is a diagram showing a case where coverage data is highlighted by the functional design support device shown in FIG.

【符号の説明】 1…ディスプレイ、4…マイクロプロセッサ、5…シミ
ュレータ、6…図形データ格納手段、7…関係データ格
納手段、8…分岐条件データ格納手段、9…前の状態コ
ードデータ格納手段、10…カバレッジデータ格納手
段。
[Explanation of Codes] 1 ... Display, 4 ... Microprocessor, 5 ... Simulator, 6 ... Graphic data storage means, 7 ... Relational data storage means, 8 ... Branch condition data storage means, 9 ... Previous status code data storage means, 10 ... Coverage data storage means.

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 複数の状態を有する制御フローを含むハ
ードウエアの制御動作をシミュレータを用いてシミュレ
ーションし、該シミュレーションの実行過程を表示画面
上で表示する機能設計支援装置であって、 状態遷移図の形式にてなる上記制御フローの制御内容を
解析し上記制御内容を示す図形データを生成する図形デ
ータ生成手段と、 上記図形データにおいて上記各状態と上記各状態に割り
当てられている状態コードとの関係を示す関係データを
生成する関係データ生成手段と、 遷移元の状態である遷移元状態と遷移先の状態である遷
移先状態と上記遷移元状態から上記遷移先状態への分岐
位置とを上記図形データから解析し上記遷移元状態、上
記遷移先状態、及び上記分岐位置を条件分岐データとし
て生成する条件分岐データ生成手段と、 上記シミュレータから得られるシミュレーションデータ
を抽出する抽出手段と、 上記関係データと上記抽出手段で得られる上記シミュレ
ーションデータとに基づきシミュレーション実行中の現
在の状態を解析する現在状態解析手段と、 上記条件分岐データと上記シミュレーションデータとに
基づき上記状態間の遷移条件の経路を解析する経路解析
手段と、 上記現在状態解析手段から得られる上記現在の状態と上
記経路解析手段から得られる状態間の遷移経路とを上記
画面上で強調表示する第1表示手段と、を備えたことを
特徴とする機能設計支援装置。
1. A functional design support device for simulating a control operation of hardware including a control flow having a plurality of states using a simulator, and displaying an execution process of the simulation on a display screen. Of graphic data generating means for analyzing the control content of the control flow in the form of the following to generate graphic data indicating the control content, and the respective states in the graphic data and status codes assigned to the respective states. The relational data generating means for generating relational data indicating a relation, the transition source state that is the transition source state, the transition destination state that is the transition destination state, and the branch position from the transition source state to the transition destination state are described above. Conditional branch data generation means for analyzing the graphic data and generating the transition source state, the transition destination state, and the branch position as conditional branch data. An extracting means for extracting simulation data obtained from the simulator; a current state analyzing means for analyzing a current state during simulation execution based on the relational data and the simulation data obtained by the extracting means; Path analysis means for analyzing the path of the transition condition between the states based on the branch data and the simulation data, and a transition path between the current state obtained from the current state analysis means and the state obtained from the path analysis means. And a first display means for highlighting and on the screen.
【請求項2】 上記現在状態解析手段で得られる上記現
在の状態を次の状態遷移時に前の状態として認識するた
めに上記現在の状態を前の状態コードデータとして生成
するコードデータ変更手段と、 シミュレーションが進行し上記現在状態解析手段にて得
られる現在の状態及び上記コードデータ変更手段にて生
成される前の状態と、上記経路解析手段により得られる
状態間の遷移経路とを有するカバレッジデータを生成す
るカバレッジデータ生成手段と、 上記第1表示手段に代わる手段であって、上記カバレッ
ジデータ生成手段から得られるカバレッジデータを上記
画面上で強調表示する第2表示手段と、を備えた、請求
項1記載の機能設計支援装置。
2. Code data changing means for generating the current state as previous state code data in order to recognize the current state obtained by the current state analyzing means as the previous state at the next state transition, Coverage data having a current state obtained by the simulation progressing the current state analysis means and a state before being generated by the code data changing means, and a transition route between the states obtained by the route analysis means are provided. A coverage data generating means for generating, and a means for substituting for the first displaying means, the second displaying means for highlighting the coverage data obtained from the coverage data generating means on the screen. 1. The functional design support device described in 1.
【請求項3】 複数の状態を有する制御フローを含むハ
ードウエアの制御動作をシミュレータを用いてシミュレ
ーションし、該シミュレーションの実行過程を表示画面
上で表示する機能設計支援方法であって、 状態遷移図の形式にてなる上記制御フローの制御内容を
解析し上記制御内容を示す図形データを生成する図形デ
ータ生成工程と、 上記図形データにおいて上記各状態と上記各状態に割り
当てられている状態コードとの関係を示す関係データを
生成する関係データ生成工程と、 遷移元の状態である遷移元状態と遷移先の状態である遷
移先状態と上記遷移元状態から上記遷移先状態への分岐
位置とを上記図形データから解析し上記遷移元状態、上
記遷移先状態、及び上記分岐位置を条件分岐データとし
て生成する条件分岐データ生成工程と、 上記シミュレータから得られるシミュレーションデータ
を抽出する抽出工程と、 上記関係データと上記抽出工程で得られる上記シミュレ
ーションデータとに基づきシミュレーション実行中の現
在の状態を解析する現在状態解析工程と、 上記条件分岐データと上記シミュレーションデータとに
基づき上記状態間の遷移条件の経路を解析する経路解析
工程と、 上記現在状態解析工程から得られる上記現在の状態と上
記経路解析工程から得られる状態間の遷移経路とを上記
画面上で強調表示する第1表示工程と、を備えたことを
特徴とする機能設計支援方法。
3. A functional design support method for simulating a control operation of hardware including a control flow having a plurality of states using a simulator, and displaying an execution process of the simulation on a display screen, which is a state transition diagram. A graphic data generating step of analyzing the control content of the control flow in the form of the following and generating graphic data indicating the control content; and a state code assigned to each state and each state in the graphic data. The relational data generation step of generating relational data indicating a relation, the transition source state that is the transition source state, the transition destination state that is the transition destination state, and the branch position from the transition source state to the transition destination state are described above. Conditional branch data generation step of analyzing from the graphic data and generating the transition source state, the transition destination state, and the branch position as conditional branch data And an extraction step of extracting simulation data obtained from the simulator, a current state analysis step of analyzing a current state during simulation execution based on the relational data and the simulation data obtained in the extraction step, and the condition A path analysis step of analyzing a path of a transition condition between the states based on branch data and the simulation data, and a transition path between the current state obtained from the current state analysis step and the state obtained from the path analysis step. And a first display step of highlighting and on the screen.
【請求項4】 上記現在状態解析工程で得られる上記現
在の状態を次の状態遷移時に前の状態として認識するた
めに上記現在の状態を前の状態コードデータとして生成
するコードデータ変更工程と、 シミュレーションが進行し上記現在状態解析工程にて得
られる現在の状態及び上記コードデータ変更工程にて生
成される前の状態と、上記経路解析工程により得られる
状態間の遷移経路とを有するカバレッジデータを生成す
るカバレッジデータ生成工程と、 上記第1表示工程に代わる工程であって、上記カバレッ
ジデータ生成工程から得られるカバレッジデータを上記
画面上で強調表示する第2表示工程と、を備えた、請求
項3記載の機能設計支援方法。
4. A code data changing step of generating the current state as previous state code data in order to recognize the current state obtained in the current state analysis step as a previous state at the next state transition, Coverage data having a transition state between states obtained by the current state obtained by the simulation and the current state analysis step and the state before the code data changing step, and the path analysis step, A coverage data generating step of generating, and a step of substituting the first displaying step, the second displaying step of highlighting the coverage data obtained from the coverage data generating step on the screen, The functional design support method described in 3.
JP7012440A 1995-01-30 1995-01-30 Device and method for supporting function design Pending JPH08202741A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP7012440A JPH08202741A (en) 1995-01-30 1995-01-30 Device and method for supporting function design
TW085201921U TW324156U (en) 1995-01-30 1996-02-05 Button member for a covered button

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7012440A JPH08202741A (en) 1995-01-30 1995-01-30 Device and method for supporting function design

Publications (1)

Publication Number Publication Date
JPH08202741A true JPH08202741A (en) 1996-08-09

Family

ID=11805376

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7012440A Pending JPH08202741A (en) 1995-01-30 1995-01-30 Device and method for supporting function design

Country Status (2)

Country Link
JP (1) JPH08202741A (en)
TW (1) TW324156U (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100942987B1 (en) * 2008-09-12 2010-02-17 성균관대학교산학협력단 Method for test procedure optimize of robot software component
JP2010066787A (en) * 2008-09-08 2010-03-25 Fujitsu Ltd Verification support program, verification support device and verification support method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010066787A (en) * 2008-09-08 2010-03-25 Fujitsu Ltd Verification support program, verification support device and verification support method
KR100942987B1 (en) * 2008-09-12 2010-02-17 성균관대학교산학협력단 Method for test procedure optimize of robot software component

Also Published As

Publication number Publication date
TW324156U (en) 1998-01-01

Similar Documents

Publication Publication Date Title
US5557774A (en) Method for making test environmental programs
JP2862886B2 (en) Computer-aided design system for ASIC
US6003143A (en) Tool and method for diagnosing and correcting errors in a computer program
JPH02272645A (en) Method for supporting program debugging
US6212666B1 (en) Graphic representation of circuit analysis for circuit design and timing performance evaluation
US5371683A (en) LSI design support system
JPH02232152A (en) Production system simulator forming device
JPH08147344A (en) Path analytic display device for designing logic circuit
JPH08202741A (en) Device and method for supporting function design
JP2008071075A (en) Program inspection device, program inspection method, and program inspection program
JPH04290168A (en) Simulation device and display method for its simulation result
JP3195088B2 (en) Simulation equipment
JPH07168864A (en) Simulating device and method thereof
JPH0850576A (en) Visually interactive simulator
JPH06259496A (en) Simulator
CN115407995A (en) Graphical interface code generation method and device
JP2937381B2 (en) Integrated circuit design method and design apparatus
JP2990882B2 (en) Functional simulation device
JP2982418B2 (en) Functional simulation device
JP2845519B2 (en) Data path simulation device
JPH05165677A (en) Test program generating device
JPH04315255A (en) Work bench/tool box interface for data processing system
JPH0744525A (en) Data generating system for finite element analysis
JP2001282565A (en) Program conversion device, program conversion method and storage medium
JPH08329042A (en) Graphic display method for numerical analytic result