JP3045123B2 - Machine-readable recording medium recording HDL editor and program - Google Patents
Machine-readable recording medium recording HDL editor and programInfo
- Publication number
- JP3045123B2 JP3045123B2 JP9309616A JP30961697A JP3045123B2 JP 3045123 B2 JP3045123 B2 JP 3045123B2 JP 9309616 A JP9309616 A JP 9309616A JP 30961697 A JP30961697 A JP 30961697A JP 3045123 B2 JP3045123 B2 JP 3045123B2
- Authority
- JP
- Japan
- Prior art keywords
- source code
- clock signal
- information
- reset signal
- hdl
- 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.)
- Expired - Lifetime
Links
Description
【0001】[0001]
【発明の属する技術分野】本発明は、ハードウェア記述
言語(HDL)で記述されたソースコードを入力し、編
集するHDLエディタに関する。[0001] 1. Field of the Invention [0002] The present invention relates to an HDL editor for inputting and editing a source code described in a hardware description language (HDL).
【0002】[0002]
【従来の技術】従来から汎用的な編集機能に加えて、構
文テンプレートを用いたコーディング機能,構文のチェ
ック機能,エラー表示機能,予約語の自動完成機能,予
約語のハイライト機能等の様々な機能を備えたHDLエ
ディタが実用化されている。このような様々な機能が追
加されたHDLエディタを使用することにより、HDL
で記述されたソースコードを効率的に入力,編集するこ
とが可能になる。2. Description of the Related Art Conventionally, in addition to a general-purpose editing function, various functions such as a coding function using a syntax template, a syntax checking function, an error display function, a reserved word automatic completion function, a reserved word highlighting function, and the like. HDL editors with functions have been put to practical use. By using the HDL editor to which such various functions are added, HDL
It is possible to efficiently input and edit the source code described in.
【0003】[0003]
【発明が解決しようとする課題】ところで、HDLによ
るハードウェア設計に於いては、クロック信号,リセッ
ト信号の記述が非常に重要となるが、従来のHDLエデ
ィタは、この点を全く考慮していなかった。つまり、従
来のHDLエディタは、クロック信号,リセット信号の
記述も、他の記述と同様に扱っていた。In the hardware design using HDL, description of a clock signal and a reset signal is very important. However, the conventional HDL editor does not consider this point at all. Was. That is, the conventional HDL editor handles the description of the clock signal and the reset signal in the same manner as other descriptions.
【0004】このため、複数のクロック信号,リセット
信号を用いてハードウェア設計を行った場合等に於いて
は、HDLエディタによって表示或いはプリントアウト
されるソースコードを見ただけでは、記述上の問題点を
見逃しやすい。従って、従来のHDLエディタを用いて
ソースコードの入力,編集を行ったのでは、その後工程
である機能検証,タイミング検証に於いて論理やタイミ
ング上の不都合が発見されやすく、その度に作業を後戻
りしなければならない。更に、HDL記述のデザインレ
ビューの場に於いて、設計者以外の者が、クロック信号
やリセット信号に関する情報を得るためには、HDL記
述を追っていかなければならないので、非常に時間がか
かってしまう。このように、従来のHDLエディタを用
いてソースコードの入力,編集を行ったのでは、作業の
後戻りが発生しやすく、設計者以外の者がクロック信
号,リセット信号に関する情報を得るのに非常に時間が
かかるため、ハードウェア設計に於ける生産性を向上さ
せることが難しいという問題があった。尚、特開平7−
73232号公報には、入力されたHDL記述から、そ
れによって示される回路の規模,消費電力,テストベク
タの故障検出情報等を抽出して出力する技術も提案され
ているが、この技術によっても、上述した問題点を解決
することはできない。[0004] For this reason, when hardware design is performed using a plurality of clock signals and reset signals, a description problem occurs only by looking at the source code displayed or printed out by the HDL editor. It is easy to miss a point. Therefore, if the input and editing of the source code were performed using the conventional HDL editor, inconvenience in the logic and timing could be easily found in the function verification and the timing verification, which are the subsequent processes, and the work was repeated every time. Must. Further, in the case of the design review of the HDL description, it takes a very long time since a person other than the designer must follow the HDL description in order to obtain information on the clock signal and the reset signal. . As described above, when the input and the editing of the source code are performed using the conventional HDL editor, the work is likely to return, and it is very difficult for a person other than the designer to obtain information on the clock signal and the reset signal. Since it takes time, there is a problem that it is difficult to improve productivity in hardware design. Incidentally, Japanese Patent Laid-Open No. 7-
Japanese Unexamined Patent Publication No. 73232 proposes a technique of extracting and outputting circuit scale, power consumption, test vector failure detection information, and the like indicated by the input HDL description. The above-mentioned problems cannot be solved.
【0005】そこで、本発明の目的は、HDLで記述さ
れたソースコード中に存在するクロック信号,リセット
信号に関する情報を容易に認識できるようにすることに
より、ハードウェア設計に於ける生産性を向上させるこ
とにある。An object of the present invention is to improve productivity in hardware design by making it possible to easily recognize information on a clock signal and a reset signal existing in a source code described in HDL. To make it happen.
【0006】[0006]
【課題を解決するための手段】本発明のHDLエディタ
は、上記目的を達成するため、ハードウェア記述言語で
記述されたソースコードを入力し編集するHDLエディ
タに於いて、ハードウェア記述言語で記述されたソース
コードからクロック信号,リセット信号に関する情報を
抽出する抽出手段と、該抽出手段で抽出されたクロック
信号,リセット信号に関する情報をコメント文の形式で
追加したソースコードを生成するコメント文追加手段と
を備えている。According to an aspect of the present invention, there is provided an HDL editor for inputting and editing a source code described in a hardware description language. Extracting means for extracting information on a clock signal and a reset signal from the extracted source code, and comment statement adding means for generating a source code in which information on the clock signal and the reset signal extracted by the extracting means is added in the form of a comment statement And
【0007】この構成に於いては、抽出手段が、ハード
ウェア記述言語で記述されたソースコードからクロック
信号,リセット信号に関する情報(信号名,使用プロセ
ス,使用エッジ等)を抽出し、コメント文追加手段が、
抽出手段で抽出されたクロック信号,リセット信号に関
する情報をコメント文の形式で追加したソースコードを
生成する。In this configuration, the extracting means extracts information (signal name, used process, used edge, etc.) relating to the clock signal and the reset signal from the source code described in the hardware description language, and adds a comment sentence. The means
A source code is generated in which information on the clock signal and the reset signal extracted by the extracting means is added in the form of a comment statement.
【0008】また、本発明のHDLエディタは、クロッ
ク信号,リセット信号が用いられている部分を容易に設
計者が認識できるようにするため、前記コメント文追加
手段によってコメント文が追加されたソースコードを表
示し、設計者が前記コメント文中の特定のクロック信
号,リセット信号に関する情報を選択することにより、
選択された情報と対応するクロック信号,リセット信号
を強調表示する情報表示手段を備えている。The HDL editor according to the present invention has a source code in which a comment statement is added by the comment statement adding means so that a designer can easily recognize a portion where a clock signal and a reset signal are used. Is displayed, and the designer selects information on a specific clock signal and reset signal in the comment statement,
There is provided information display means for highlighting a clock signal and a reset signal corresponding to the selected information.
【0009】この構成に於いては、設計者がコメント文
中の特定のクロック信号,リセット信号に関する情報を
選択すると、情報表示手段が、選択された情報と対応す
るクロック信号,リセット信号を強調表示する。In this configuration, when the designer selects information on a specific clock signal and reset signal in the comment text, the information display means highlights the clock signal and reset signal corresponding to the selected information. .
【0010】更に、本発明のHDLエディタは、上位,
下位階層のクロック信号,リセット信号の関係を容易に
理解できるようにするため、ハードウェア記述言語で記
述されたソースコードを入力し編集するHDLエディタ
に於いて、ハードウェア記述言語で記述されたソースコ
ードからクロック信号,リセット信号に関する情報を抽
出する抽出手段と、該抽出手段で抽出されたクロック信
号,リセット信号に関する情報をコメント文の形式で追
加したソースコードを生成するコメント文追加手段と、
下位ブロックの接続を示す上位のソースコードの内容
と、前記下位のブロックの動作を示す下位のソースコー
ドに追加されている、前記下位ブロックのクロック信
号,リセット信号に関する情報を示すコメント文とに基
づいて、上位のソースコード中のクロック信号,リセッ
ト信号と、前記下位ブロックのクロック信号,リセット
信号に関する情報との対応関係を抽出し、抽出した対応
関係をコメント文の形式で追加したソースコードを生成
する階層関係抽出手段とを備えている。Further, the HDL editor of the present invention is
In order to make it easy to understand the relationship between the clock signal and the reset signal in the lower hierarchy, in a HDL editor that inputs and edits a source code described in a hardware description language, a source described in a hardware description language is used. Extracting means for extracting information on the clock signal and the reset signal from the code; comment comment adding means for generating a source code in which information on the clock signal and the reset signal extracted by the extracting means is added in the form of a comment statement;
Based on the contents of an upper source code indicating the connection of the lower block and a comment sentence added to the lower source code indicating the operation of the lower block and indicating information on a clock signal and a reset signal of the lower block. Extracting the correspondence between the clock signal and reset signal in the upper source code and the information on the clock signal and reset signal of the lower block, and generating a source code in which the extracted correspondence is added in the form of a comment statement. Hierarchical relationship extracting means.
【0011】この構成に於いては、下位ブロックの接続
を示す上位のソースコードが入力されると、階層関係抽
出手段が、上位のソースコードの内容と、下位ブロック
の動作を示す下位のソースコードに追加されているコメ
ント文とに基づいて、上位のソースコード中のクロック
信号,リセット信号と、下位ブロックのクロック信号,
リセット信号に関する情報との対応関係をコメント文の
形式で追加したソースコードを生成する。In this configuration, when a high-order source code indicating the connection of the low-order block is input, the hierarchical relation extracting means performs the contents of the high-order source code and the low-order source code indicating the operation of the low-order block. Based on the comment sentence, the clock signal and reset signal in the upper source code and the clock signal and
Generates a source code in which the correspondence with the information regarding the reset signal is added in the form of a comment statement.
【0012】[0012]
【発明の実施の形態】次に本発明の実施の形態について
図面を参照して詳細に説明する。Embodiments of the present invention will now be described in detail with reference to the drawings.
【0013】図1は本発明のHDLエディタの一例を示
したブロック図であり、コンピュータから成るデータ処
理装置1と、記憶装置2と、キーボード3と、ディスプ
レイ装置4と、プリンタ5と、記録媒体6とから構成さ
れている。FIG. 1 is a block diagram showing an example of an HDL editor according to the present invention. The data processor 1 comprises a computer, a storage device 2, a keyboard 3, a display device 4, a printer 5, a recording medium, and the like. 6 is comprised.
【0014】キーボード3は、HDLソースコードを入
力したり、HDLエディタの各種コマンドを入力するた
めに使用される。記憶装置2には、HDLソースコード
21,22等が格納される。ディスプレイ装置4は、H
DLソースコード等を表示するために使用される。プリ
ンタ5は、HDLソースコードをプリントアウトするた
めに使用される。The keyboard 3 is used for inputting HDL source code and various commands of the HDL editor. The storage device 2 stores HDL source codes 21, 22 and the like. The display device 4 is H
Used to display DL source code and the like. The printer 5 is used to print out the HDL source code.
【0015】データ処理装置1は、抽出手段11と、コ
メント文追加手段12と、情報表示手段13と、テキス
ト編集手段14とから構成される。The data processing apparatus 1 comprises an extracting unit 11, a comment adding unit 12, an information displaying unit 13, and a text editing unit 14.
【0016】テキスト編集手段14は、キーボード3か
ら入力されたHDLソースコード21を記憶装置2に格
納する機能や、編集する機能等を有する。The text editing means 14 has a function of storing the HDL source code 21 input from the keyboard 3 in the storage device 2 and a function of editing.
【0017】抽出手段11は、記憶装置2からHDLソ
ースコード21を読み込み、その構文を解析することに
より、HDLソースコード21中に存在するクロック信
号,リセット信号に関する情報を抽出する機能を有す
る。The extracting means 11 has a function of reading the HDL source code 21 from the storage device 2 and analyzing the syntax thereof to extract information on the clock signal and the reset signal existing in the HDL source code 21.
【0018】コメント文追加手段12は、HDLソース
コード21に、抽出手段11が抽出したクロック信号,
リセット信号に関する情報をコメント文の形式で追加し
た新たなHDLソースコード22を生成し、記憶装置2
に格納する機能を有する。The comment statement adding means 12 adds the clock signal extracted by the extracting means 11 to the HDL source code 21.
A new HDL source code 22 in which information on the reset signal is added in the form of a comment statement is generated, and the storage device 2
Has the function of storing in
【0019】情報表示手段13は、コメント文が追加さ
れたHDLソースコード22をディスプレイ装置4上に
表示する機能や、設計者が指示したクロック信号,リセ
ット信号をハイライト表示する機能を有している。The information display means 13 has a function of displaying the HDL source code 22 to which the comment statement has been added on the display device 4 and a function of highlighting a clock signal and a reset signal designated by the designer. I have.
【0020】データ処理装置1が備えている記録媒体6
は、ディスク,半導体メモリ,その他の記録媒体であ
り、HDLエディタ用のプログラムが記録されている。
そして、このHDLエディタ用のプログラムは、データ
処理装置1によって読み取られ、データ処理装置1の動
作を制御することにより、データ処理装置1上に抽出手
段11,コメント文追加手段12,情報表示手段13,
テキスト編集手段14を実現する。Recording medium 6 provided in data processing device 1
Is a disk, a semiconductor memory, or another recording medium in which a program for an HDL editor is recorded.
The program for the HDL editor is read by the data processing device 1, and by controlling the operation of the data processing device 1, the extracting means 11, the comment sentence adding means 12, the information display means 13 are provided on the data processing device 1. ,
The text editing means 14 is realized.
【0021】図2はデータ処理装置1の処理例を示す流
れ図であり、以下、各図を参照して動作を説明する。FIG. 2 is a flowchart showing a processing example of the data processing apparatus 1. The operation will be described below with reference to the drawings.
【0022】設計者は、HDLソースコードの作成時、
キーボード3からHDLソースコード21を入力すると
共に、必要に応じて編集用コマンドを入力する。When the designer creates the HDL source code,
The HDL source code 21 is input from the keyboard 3 and an editing command is input as needed.
【0023】テキスト編集手段14は、キーボード3か
ら入力されたHDLソースコード21を記憶装置2に格
納すると共に、キーボード3から入力される編集用コマ
ンドに従ってHDLソースコード21を編集する。The text editing means 14 stores the HDL source code 21 input from the keyboard 3 in the storage device 2 and edits the HDL source code 21 in accordance with an editing command input from the keyboard 3.
【0024】設計者は、HDLソースコード21が完成
すると、クロック信号,リセット信号に関する情報を抽
出するための情報抽出用コマンドをキーボード3から入
力する。When the HDL source code 21 is completed, the designer inputs from the keyboard 3 an information extraction command for extracting information on the clock signal and the reset signal.
【0025】これにより、抽出手段11が動作し、記憶
装置2に格納されているHDLソースコード21を解析
し、クロック信号,リセット信号に関する情報を抽出す
る(S21)。ここでは、HDLソースコード21中の
クロック信号特有の記述を検出し、それに基づいてクロ
ック信号名,クロック信号の使用エッジ(立ち上がりエ
ッジが使用されるのか、立ち下がりエッジが使用される
のか、それとも両エッジが使用されるのかを示す),そ
のクロック信号に関連するリセット信号の名前,リセッ
トの極性,クロック信号が用いられているプロセスのラ
ベル名,クロック信号やリセット信号が記述されている
部分の行番号等を抽出する。抽出手段11は、クロック
信号,リセット信号に関する情報を抽出すると、それを
コメント文追加手段12に渡す。Thus, the extracting means 11 operates, analyzes the HDL source code 21 stored in the storage device 2, and extracts information on the clock signal and the reset signal (S21). Here, the description specific to the clock signal in the HDL source code 21 is detected, and based on the detected description, the clock signal name, the used edge of the clock signal (whether a rising edge or a falling edge is used, or both). Indicates whether an edge is used), the name of the reset signal associated with the clock signal, the polarity of the reset, the label name of the process in which the clock signal is used, and the row where the clock signal and reset signal are described. Extract numbers and so on. After extracting the information on the clock signal and the reset signal, the extracting unit 11 passes the information to the comment adding unit 12.
【0026】コメント文追加手段12は、抽出手段11
からクロック信号,リセット信号に関する情報が渡され
ると、信号名に対応付けてその信号に関する情報を一列
に並べる等して、抽出手段11から渡された情報を見や
すく整理する(S22)。The comment sentence adding means 12 includes the extracting means 11
When the information about the clock signal and the reset signal is passed from, the information about the signal is arranged in a line in association with the signal name, and the information passed from the extracting means 11 is organized in a legible manner (S22).
【0027】その後、コメント文追加手段12は、ソー
スコード上に上記整理した情報をコメント文の形式で追
加したHDLソースコード22を生成し、記憶装置2に
格納する(S23)。Thereafter, the comment sentence adding means 12 generates an HDL source code 22 in which the information arranged above is added to the source code in the form of a comment sentence, and stores it in the storage device 2 (S23).
【0028】設計者は、必要に応じてHDLソースコー
ド22上に存在するクロック信号,リセット信号をハイ
ライト表示させることができる(S24)。この場合、
設計者は、先ず、コメント文が追加されたHDLソース
コード22に対する表示コマンドを入力する。これによ
り、情報表示手段13がHDLソースコード22をディ
スプレイ装置4に表示する。次いで、設計者は、ハイラ
イト表示するクロック信号,リセット信号を指示する。
この指示は、例えば、ディスプレイ装置4に表示されて
いるコメント文中のハイライト表示したいクロック信
号,リセット信号に関する情報を、カーソルを用いて選
択することにより行う。その後、設計者は、キーボード
3からハイライト表示コマンドを入力する。これによ
り、情報表示手段13は、ディスプレイ装置4に表示さ
れているHDLソースコード22上で、指示されたクロ
ック信号,リセット信号を全てハイライト表示する。そ
の際、ハイライト表示したクロック信号,リセット信号
を含むプロセス文のラベルをハイライト表示するように
しても良い。The designer can highlight the clock signal and the reset signal existing on the HDL source code 22 as necessary (S24). in this case,
The designer first inputs a display command for the HDL source code 22 to which the comment statement has been added. Thus, the information display unit 13 displays the HDL source code 22 on the display device 4. Next, the designer specifies a clock signal and a reset signal to be highlighted.
This instruction is performed by, for example, selecting information on a clock signal and a reset signal to be highlighted in the comment text displayed on the display device 4 using a cursor. Thereafter, the designer inputs a highlight display command from the keyboard 3. As a result, the information display unit 13 highlights the specified clock signal and reset signal on the HDL source code 22 displayed on the display device 4. At this time, the label of the process statement including the highlighted clock signal and reset signal may be highlighted.
【0029】更に、設計者は、必要に応じてコメント文
が追加されているHDLソースコード22をプリントア
ウトすることができる(S25)。この場合、設計者
は、キーボード3からHDLソースコード22のプリン
トアウトを指示するコマンドを入力する。これにより、
データ処理装置1が記憶装置2からHDLソースコード
22を読み出し、プリンタ5を用いてプリントアウトす
る。プリンタ5からプリントアウトされたHDLソース
コード22には、クロック信号,リセット信号に関する
情報がコメント文の形式で追加されているので、設計者
は、コメント文に基づいてクロック信号,リセット信号
に関する情報を容易に知ることができる。Further, the designer can print out the HDL source code 22 to which a comment statement has been added as necessary (S25). In this case, the designer inputs a command to print out the HDL source code 22 from the keyboard 3. This allows
The data processing device 1 reads the HDL source code 22 from the storage device 2 and prints out using the printer 5. Since information on the clock signal and the reset signal is added to the HDL source code 22 printed out from the printer 5 in the form of a comment statement, the designer can add information on the clock signal and the reset signal based on the comment statement. You can easily find out.
【0030】図3は本発明のHDLエディタの他の構成
例を示すブロック図であり、コンピュータから成るデー
タ処理装置31と、記憶装置32と、キーボード33
と、ディスプレイ装置34と、プリンタ35と、記録媒
体36とから構成されている。FIG. 3 is a block diagram showing another example of the configuration of the HDL editor according to the present invention. The data processing unit 31 comprises a computer, a storage unit 32, and a keyboard 33.
, A display device 34, a printer 35, and a recording medium 36.
【0031】キーボード33は、HDLソースコードを
入力したり、HDLエディタの各種コマンドを入力する
ために使用される。記憶装置32には、HDLソースコ
ード321,322,323−1〜323−n等が格納
される。ディスプレイ装置34は、HDLソースコード
等を表示するために使用される。プリンタ35は、HD
Lソースコード等をプリントアウトするために使用され
る。The keyboard 33 is used for inputting HDL source code and various commands of the HDL editor. The storage device 32 stores HDL source codes 321, 322, 323-1 to 323-n and the like. The display device 34 is used for displaying HDL source code and the like. The printer 35 is an HD
It is used to print out L source code and the like.
【0032】データ処理装置31は、抽出手段311
と、コメント文追加手段312と、情報表示手段313
と、テキスト編集手段314と、階層関係抽出手段31
5とを備えている。The data processing device 31 includes an extraction unit 311
, Comment adding means 312, and information displaying means 313
, Text editing means 314 and hierarchical relation extracting means 31
5 is provided.
【0033】テキスト編集手段314は、キーボード3
3から入力されたHDLソースコードを記憶装置32に
格納する機能や、編集する機能を有する。The text editing means 314 includes a keyboard 3
3 has a function of storing the HDL source code input from the storage device 32 in the storage device 32 and a function of editing the HDL source code.
【0034】抽出手段311は、指示されたHDLソー
スコードを記憶装置32から入力し、その構文を解析す
ることにより、上記HDLソースコード中のクロック信
号,リセット信号に関する情報を抽出する機能を有す
る。The extracting means 311 has a function of inputting the designated HDL source code from the storage device 32 and analyzing the syntax thereof to extract information on the clock signal and the reset signal in the HDL source code.
【0035】階層関係抽出手段315は、設計者によっ
て指示された、下位ブロックの接続を表した上位のHD
Lソースコード中のクロック信号,リセット信号と、下
位ブロックの動作を表す下位のHDLソースコード中の
クロック信号,リセット信号に関する情報とを対応付け
る機能を有する。The hierarchical relation extracting means 315 outputs a higher-level HD indicating the connection of the lower-level block specified by the designer.
It has a function of associating a clock signal and a reset signal in the L source code with information on the clock signal and the reset signal in the lower HDL source code representing the operation of the lower block.
【0036】コメント文追加手段312は、現在処理対
象にしているHDLソースコードに、抽出手段311が
抽出したクロック信号,リセット信号に関する情報と、
階層関係抽出手段315が行った対応付けの結果とをコ
メント文の形式で追加した新たなHDLソースコードを
作成する機能を有する。The comment sentence adding means 312 adds information on the clock signal and reset signal extracted by the extracting means 311 to the HDL source code which is currently being processed,
It has a function of creating a new HDL source code in which the result of the association performed by the hierarchical relationship extraction unit 315 is added in the form of a comment statement.
【0037】情報表示手段313は、設計者によって指
示されたHDLソースコードをディスプレイ装置34に
表示する機能や、設計者が指示したクロック信号,リセ
ット信号をハイライト表示する機能を有している。The information display means 313 has a function of displaying the HDL source code specified by the designer on the display device 34 and a function of highlighting the clock signal and the reset signal specified by the designer.
【0038】データ処理装置31が備えている記録媒体
36は、ディスク,半導体メモリ,その他の記録媒体で
あり、HDLエディタ用のプログラムが記録されてい
る。このHDLエディタ用のプログラムは、データ処理
装置31によって読み取られ、データ処理装置31の動
作を制御することで、データ処理装置31上に抽出手段
311,コメント文追加手段312,情報表示手段31
3,テキスト編集手段314,階層関係抽出手段315
を実現する。The recording medium 36 provided in the data processing device 31 is a disk, a semiconductor memory, or another recording medium, in which a program for an HDL editor is recorded. The program for the HDL editor is read by the data processing device 31, and by controlling the operation of the data processing device 31, the extracting means 311, the comment sentence adding means 312, the information display means 31
3, text editing means 314, hierarchical relation extracting means 315
To achieve.
【0039】図4は階層関係抽出コマンドが入力された
時のデータ処理装置31の処理例を示す流れ図であり、
以下各図を参照して動作を説明する。FIG. 4 is a flowchart showing a processing example of the data processing device 31 when a hierarchical relation extraction command is input.
The operation will be described below with reference to the drawings.
【0040】設計者が、キーボード33を用いてHDL
ソースコードの入力操作,編集操作を行った場合には、
テキスト編集手段314に於いて図1に示したテキスト
編集手段14と同様の処理が行われ、HDLソースコー
ドが入力,編集される。また、設計者が、クロック信
号,リセット信号に関する情報を抽出するHDLソース
コードを指定し、情報抽出用コマンドを入力した場合に
は、抽出手段311,コメント文追加手段312に於い
て図1に示した抽出手段11,コメント文追加手段12
と同様の処理が行われ、クロック信号,リセット信号に
関する情報がコメント文の形で追加された新たなHDL
ソースコードが生成され、記憶装置32に格納される。When the designer uses the keyboard 33 to
When you perform input operation and edit operation of source code,
The same processing as that of the text editing means 14 shown in FIG. 1 is performed in the text editing means 314, and the HDL source code is input and edited. When the designer designates an HDL source code for extracting information on a clock signal and a reset signal and inputs a command for information extraction, the extraction means 311 and the comment statement addition means 312 show in FIG. Extracting means 11, comment adding means 12
New HDL in which information about the clock signal and the reset signal is added in the form of a comment statement
Source code is generated and stored in the storage device 32.
【0041】今、例えば、設計者が、キーボード33を
用いて、下位ブロックの接続を表した上位のHDLソー
スコード321の入力操作,編集操作を行ったとする
と、テキスト編集手段314が、上記操作に従って上位
のHDLソースコード321を記憶装置32に格納し編
集する。Now, for example, if the designer performs an input operation and an edit operation of the upper HDL source code 321 indicating the connection of the lower block by using the keyboard 33, the text editing unit 314 operates according to the above operation. The upper HDL source code 321 is stored in the storage device 32 and edited.
【0042】その後、設計者が、上位のHDLソースコ
ード321のクロック信号,リセット信号と、下位のH
DLソースコードのクロック信号,リセット信号に関す
る情報との関係を抽出するために、HDLソースコード
321を指定した階層関係抽出用コマンドを入力する
と、以下の処理が行われる。尚、この時点に於いては、
既に、コメント文が追加された上記下位のHDLソース
コード(例えば、HDLソースコード323−1,32
3−2)が記憶装置32に格納されているとする。Thereafter, the designer specifies the clock signal and reset signal of the upper HDL source code 321 and the lower HDL source code 321.
When a hierarchical relationship extraction command designating the HDL source code 321 is input to extract the relationship between the clock signal and the reset signal information of the DL source code, the following processing is performed. At this point,
The lower HDL source code (for example, HDL source codes 323-1 and 323-1) to which a comment statement has already been added.
It is assumed that 3-2) is stored in the storage device 32.
【0043】階層関係抽出用コマンドがキーボード33
から入力されると、階層関係抽出手段315は、HDL
ソースコード321の内容に基づいて、ここで接続を記
述している下位ブロックを求め、更に、記憶装置32に
格納されている上位のHDLソースコード321の内容
と、下位のHDLソースコード323−1,323−2
に追加されているコマンド文の内容とに基づいて、上位
のHDLソースコード321のクロック信号,リセット
信号と、下位のHDLソースコード323−1,323
−2のクロック信号,リセット信号に関する情報とを対
応関係を求める(図4,S41)。The command for extracting the hierarchical relationship is the keyboard 33
, The hierarchical relation extraction means 315 outputs
Based on the contents of the source code 321, a lower block describing the connection is obtained, and further, the contents of the upper HDL source code 321 stored in the storage device 32 and the lower HDL source code 323-1 , 323-2
And the lower HDL source code 323-1 and 323 based on the clock signal and reset signal of the upper HDL source code 321,
A correspondence relationship between the clock signal of -2 and the information on the reset signal is determined (FIG. 4, S41).
【0044】その後、階層関係抽出手段315は、抽出
手段311に対し、上位のHDLソースコード321の
クロック信号,リセット信号に関する情報を抽出するこ
とを指示する。Thereafter, the hierarchical relation extracting means 315 instructs the extracting means 311 to extract information on the clock signal and the reset signal of the upper HDL source code 321.
【0045】これにより、抽出手段311は、上位のH
DLソースコード321のクロック信号,リセット信号
に関する情報を抽出し、抽出した情報を階層関係抽出手
段315に渡す(S42)。As a result, the extracting means 311 outputs the upper H
The information related to the clock signal and the reset signal of the DL source code 321 is extracted, and the extracted information is passed to the hierarchical relation extracting unit 315 (S42).
【0046】その後、階層関係抽出手段315は、S4
1,S42で得た情報をコメント文追加手段312に渡
す。Thereafter, the hierarchical relation extracting means 315 determines whether
1, the information obtained in S42 is passed to the comment sentence adding means 312.
【0047】これにより、コメント文追加手段312
は、階層関係抽出手段315から渡された情報を見やす
い形に整理し、更に整理した情報をコメント文の形で追
加したHDLソースコード322を生成し、記憶装置3
2に格納する。Thus, the comment sentence adding means 312
Generates the HDL source code 322 in which the information passed from the hierarchical relation extracting means 315 is arranged in an easy-to-view form, and the organized information is added in the form of a comment sentence.
2 is stored.
【0048】尚、HDLソースコード322中のクロッ
ク信号,リセット信号をハイライト表示する場合や、H
DLソースコード322をプリントアウトする場合に
は、前述したと同様にすれば良い。The clock signal and the reset signal in the HDL source code 322 are highlighted,
To print out the DL source code 322, the same operation as described above may be performed.
【0049】[0049]
【実施例】次に本発明の一実施例について説明する。Next, an embodiment of the present invention will be described.
【0050】図5,図6は、それぞれ図1に示したHD
Lソースコード21,22の一例を示した図であり、R
TLレベルの動作をVHDLによって記述している。FIGS. 5 and 6 respectively show the HD shown in FIG.
FIG. 3 is a diagram showing an example of L source codes 21 and 22;
The operation at the TL level is described by VHDL.
【0051】設計者は、キーボード3,テキスト編集手
段14を用いて図5に示すようなHDLソースコード2
1を作成し、記憶装置2に格納すると、キーボード3か
らHDLソースコード21を指定した情報抽出コマンド
を入力する。The designer uses the keyboard 3 and the text editing means 14 to input the HDL source code 2 as shown in FIG.
1 is created and stored in the storage device 2, an information extraction command specifying the HDL source code 21 is input from the keyboard 3.
【0052】これにより、抽出手段11が動作し、HD
Lソースコード21に存在するクロック信号,リセット
信号に関する情報を抽出する(S21)。As a result, the extraction means 11 operates and the HD
Information on the clock signal and the reset signal existing in the L source code 21 is extracted (S21).
【0053】この例では、抽出手段11は、先ず、図5
に示すHDLソースコード21中に存在するクロック信
号特有な記述「クロック信号名’event」を検索す
ることによりクロック信号名「CLK_A」,「CLK
_B」を抽出すると共に、その行番号「18」,「2
7」を抽出する。尚、クロック特有の記述としてwai
t文が用いられている場合も同様である。In this example, the extraction means 11 first
The clock signal names “CLK_A” and “CLK” are searched by searching for the description “clock signal name 'event” specific to the clock signal existing in the HDL source code 21 shown in FIG.
_B ”and its line numbers“ 18 ”and“ 2 ”.
7 "is extracted. In addition, as the description peculiar to the clock, wai
The same applies when a t statement is used.
【0054】次いで、抽出手段11は、「クロック信号
名’event」に続く「CLK_A= '0’」,「C
LK_B= '1’」によりクロック信号CLK_A,C
LK_Bの使用エッジを抽出する。この例の場合、クロ
ック信号CLK_A,CLE_Bの使用エッジは、それ
ぞれ立ち下がり(fall),立ち上がり(rize)
となる。Next, the extraction means 11 outputs “CLK_A =“ 0 ”” and “C” following “clock signal name“ event ”.
LK_B = “1” causes the clock signals CLK_A, C
The used edge of LK_B is extracted. In the case of this example, the used edges of the clock signals CLK_A and CLE_B are falling (fall) and rising (rise), respectively.
Becomes
【0055】その後、抽出手段11は、クロック信号C
LK_A,CLK_Bに関係するリセット信号の信号
名,極性を、それぞれクロック信号CLK_A,CLK
_Bと同一プロセス文内でクロック記述の条件文と同じ
深さにある条件文から抽出する。この例の場合、信号名
「RSET」と極性「0」とが抽出される。Thereafter, the extraction means 11 outputs the clock signal C
The signal names and polarities of the reset signals related to LK_A and CLK_B are designated by the clock signals CLK_A and CLK, respectively.
_B is extracted from the conditional statement at the same depth as the conditional statement of the clock description in the same process statement. In this example, the signal name “RSET” and the polarity “0” are extracted.
【0056】更に、抽出手段11は、クロック信号とリ
セット信号とを関連付けるためのプロセス文のラベル名
と、リセット信号の行番号とを抽出する。この例の場
合、ラベル名「U1」,「U2」と、行番号「16」,
「25」が抽出される。Further, the extracting means 11 extracts the label name of the process statement for associating the clock signal with the reset signal and the row number of the reset signal. In the case of this example, the label names “U1” and “U2” and the line numbers “16”,
“25” is extracted.
【0057】抽出手段11は、クロック信号,リセット
信号に関する上記した情報を抽出すると、それらをコメ
ント文追加手段12に渡す。When the extracting means 11 extracts the above information on the clock signal and the reset signal, it passes them to the comment sentence adding means 12.
【0058】これにより、コメント文追加手段12は、
渡された情報をクロック信号名「CLK_A」,「CL
K_B」およびリセット信号名「RST」について整理
することによりコメント文を作成する(S22)。その
後、コメント文追加手段12は、図5に示したHDLソ
ースコード21に、S22で作成したコメント文COM
を追加した図6に示すHDLソースコード22を作成
し、記憶装置2に格納する。As a result, the comment sentence adding means 12
The passed information is referred to as clock signal names “CLK_A”, “CL
A comment is created by organizing the “K_B” and the reset signal name “RST” (S22). After that, the comment sentence adding means 12 adds the comment sentence COM created in S22 to the HDL source code 21 shown in FIG.
The HDL source code 22 shown in FIG.
【0059】図6に示したコメント文COM中の「CL
K_A(fall):U1(L=27)」は、クロック
信号CLK_Aについての記述であり、信号名が「CL
K_A」,使用エッジが「立ち下がり(fall)」,
使用されているプロセス文のラベル名が「U1」,使用
されている行番号が「27」であることを示している。
尚、行番号「27」は、S21で抽出した行番号「1
8」にコメント文COMを追加することにより増加した
行数「9」を加算することにより求めたものである。"CL" in the comment sentence COM shown in FIG.
“K_A (fall): U1 (L = 27)” is a description of the clock signal CLK_A, and the signal name is “CL”.
K_A ", the used edge is" falling (fall) ",
This shows that the label name of the used process statement is “U1” and the line number used is “27”.
The line number “27” is the same as the line number “1” extracted in S21.
This is obtained by adding the number of lines “9” increased by adding the comment sentence COM to “8”.
【0060】また、コメント文中の「CLK_B(ri
ze):U2(L=36)」は、クロック信号CLK_
Bについての記述であり、信号名が「CLK_B」,使
用エッジが「立ち上がり(rize)」,使用されてい
るプロセス文のラベル名が「U2」,使用されている行
番号が「36」であることを示している。Further, "CLK_B (ri
ze): U2 (L = 36) "is the clock signal CLK_
This is a description of B, where the signal name is "CLK_B", the used edge is "rise", the label name of the used process statement is "U2", and the used line number is "36". It is shown that.
【0061】更に、コメント文中の「RST(0):U
1(L25),U2(L34)」は、リセット信号RS
Tについての記述であり、信号名が「RST」、極性が
「0」、使用されているプロセス文のラベル名が「U
1」,「U2」、行番号が「25」,「34」であるこ
とを示している。Further, "RST (0): U" in the comment sentence
1 (L25), U2 (L34) "are reset signals RS
This is a description of T, the signal name is “RST”, the polarity is “0”, and the label name of the used process statement is “U”.
1 "and" U2 ", and the row numbers are" 25 "and" 34 ".
【0062】次に、HDLソースコード22中の特定の
クロック信号,リセット信号をハイライト表示する場合
の動作について説明する。Next, an operation for highlighting a specific clock signal and reset signal in the HDL source code 22 will be described.
【0063】この場合、設計者は、先ず、キーボード3
からHDLソースコード22の表示用コマンドを入力す
る。これにより、情報表示手段13が動作し、コメント
文COMが追加されているHDLソースコード22をデ
ィスプレイ装置4に表示する。In this case, the designer first sets the keyboard 3
, The display command of the HDL source code 22 is input. As a result, the information display means 13 operates to display the HDL source code 22 to which the comment sentence COM has been added on the display device 4.
【0064】その後、設計者は、HDLソースコード2
2に追加されているコメント文COM中の、ハイライト
表示したいクロック信号,リセット信号に関する情報を
カーソル等を用いて選択する。これにより、情報表示部
14は、設計者によって選択された情報と対応するクロ
ック信号,リセット信号をハイライト表示する。例え
ば、使用しているクロック信号を全てハイライト表示し
たいのであれば、コメント文COM中の「CLK_A
(fall):U1(L=27)と、「CLK_B(r
ize):U2(L=36)と選択する。これにより、
情報表示部13は、HDLソースコード22中に存在す
る文字列「CLK_A」,「CLK_B」をハイライト
表示する。尚、上記文字列の他に、その信号を使用する
プロセス文をラベルをハイライト表示するようにしても
良い。Thereafter, the designer sets the HDL source code 2
The information on the clock signal and the reset signal to be highlighted and displayed in the comment COM added to 2 is selected using a cursor or the like. Accordingly, the information display unit 14 highlights the clock signal and the reset signal corresponding to the information selected by the designer. For example, if the user wants to highlight all the used clock signals, the user may select “CLK_A” in the comment text COM.
(Fall): U1 (L = 27) and “CLK_B (r
size): U2 (L = 36) is selected. This allows
The information display unit 13 highlights character strings “CLK_A” and “CLK_B” existing in the HDL source code 22. Note that, in addition to the above-described character string, a label may be highlighted for a process sentence using the signal.
【0065】次に、コメント文が付加されているHDL
ソースコード22をプリントアウトする場合の動作を説
明する。Next, the HDL to which the comment statement is added
The operation when the source code 22 is printed out will be described.
【0066】この場合、設計者は、キーボード3からH
DLソースコード22のプリントアウトを指示するコマ
ンドを入力する。これにより、データ処理装置1は記憶
装置2からコメント文COMが追加されているHDLソ
ースコード22を読み出し、プリンタ5に出力する。In this case, the designer sends H
A command to print out the DL source code 22 is input. Accordingly, the data processing device 1 reads the HDL source code 22 to which the comment sentence COM has been added from the storage device 2 and outputs the HDL source code 22 to the printer 5.
【0067】次に本発明の他の実施例について説明す
る。Next, another embodiment of the present invention will be described.
【0068】図7は、図3に示したHDLソースコード
321の一例を示した図であり、下位ブロックの接続を
VHDL記述によって表している。FIG. 7 is a diagram showing an example of the HDL source code 321 shown in FIG. 3, and the connection of the lower blocks is represented by a VHDL description.
【0069】図7に示したHDLソースコード321の
ブロック名は「TOP」であり、2つの下位ブロック
「TEST」,「TEST2」を持つ。下位ブロック
「TEST」,「TEST2」のブロック「TOP」に
於けるユニークな名前は、それぞれ「BLOCK1」,
「BLOCK2」となっている。The block name of the HDL source code 321 shown in FIG. 7 is “TOP” and has two lower blocks “TEST” and “TEST2”. The unique names of the blocks “TOP” of the lower blocks “TEST” and “TEST2” are “BLOCK1”,
"BLOCK2".
【0070】設計者は、キーボード33,テキスト編集
手段314を用いて図7に示すような上位のHDLソー
スコード321を作成すると、キーボード33からHD
Lソースコード321を指定した階層関係抽出用コマン
ドを入力する。When the designer creates the upper HDL source code 321 as shown in FIG.
A hierarchical relation extraction command specifying the L source code 321 is input.
【0071】これにより、階層関係抽出手段315が動
作し、HDLソースコード321の内容に基づいてそこ
で接続が記述されている下位ブロックを求めると共に、
HDLソースコード321の内容と、既にコメント文が
追加されている下位のHDLソースコード(下位ブロッ
ク「TEST」,「TEST2」の動作を記述している
HDLソースコードであり、本実施例では、HDLソー
スコード321−1,321−2とする)のコメント文
の内容とに基づいて、HDLソースコード321のクロ
ック信号,リセット信号とHDLソースコード323−
1,323−2のクロック信号,リセット信号に関する
情報との対応関係を求める(図4,S41)。As a result, the hierarchical relation extracting means 315 operates to obtain the lower block in which the connection is described based on the contents of the HDL source code 321, and
The contents of the HDL source code 321 and the lower HDL source code to which the comment statement has already been added (the HDL source code describing the operation of the lower blocks “TEST” and “TEST2”. Source code 321-1, 321-2), the clock signal and reset signal of the HDL source code 321 and the HDL source code 323-
Correspondence with the information about the clock signal and the reset signal of 1,323-2 is determined (FIG. 4, S41).
【0072】このS41の処理を詳細に説明すると、次
のようになる。The processing in S41 will be described in detail as follows.
【0073】階層関係抽出手段315は、先ず、図7に
示したHDLソースコード321中の「TOP」記述の
port map文を参照することにより、ブロック
「TOP」に於いて接続を表している下位ブロックが
「TEST」,「TEST2」で、ブロック名が「BL
OCK1」,「BLOCK2」であることを得る。The hierarchical relation extracting means 315 first refers to the port map statement of the “TOP” description in the HDL source code 321 shown in FIG. The blocks are “TEST” and “TEST2”, and the block name is “BL”.
OCK1 "and" BLOCK2 ".
【0074】次に、階層関係抽出手段315は、下位ブ
ロック「TEST」,「TEST2」の動作が記述さ
れ、且つコメント文が追加されている下位のHDLソー
スコード323−1,323−2からコメント文の内容
を取得する。Next, the hierarchical relation extracting means 315 extracts comments from lower HDL source codes 323-1 and 323-2 in which the operations of the lower blocks “TEST” and “TEST 2” are described and comment statements are added. Get the contents of a sentence.
【0075】ここで、階層関係抽出手段315に於い
て、HDLソースコード323−1,323−2が、下
位ブロック「TEST」,「TEST2」の動作が記述
され、且つコメント文が追加されているHDLソースコ
ードであることを認識できる必要があるが、例えば、コ
メント文が追加された下位ブロックのHDLソースコー
ドをファイル名「下位ブロックのentity名.vh
dl」のファイルに格納するようにしておくことによ
り、認識可能にすることができる。ここで、vhdlは
拡張しである。つまり、この例では、HDLソースコー
ド323−1,323−2は、それぞれファイル名「T
EST.vhdl」,「TEST2.vhdl」のファ
イルに格納されることになるので、階層関係抽出手段3
15では、下位ブロック「TEST」,「TEST2」
のエンティティ名に基づいて、下位ブロック「TES
T」,「TEST2」の動作が記述され、且つコメント
文が追加されているHDLソースコードが、ファイル名
「TEST.vhdl」,「TEST2.vhdl」の
ファイルに格納されているHDLソースコード323−
1,323−2であると認識できる。Here, in the hierarchical relation extracting means 315, the HDL source codes 323-1 and 323-2 describe the operations of the lower blocks "TEST" and "TEST2", and a comment statement is added. It is necessary to be able to recognize that the HDL source code is the HDL source code. For example, the HDL source code of the lower block to which the comment statement has been added is stored in the file name “entity name of lower block.vh”.
By storing the information in a file “dl”, it can be made recognizable. Here, vhdl is an extension. That is, in this example, the HDL source codes 323-1 and 323-2 have the file names “T
EST. vhdl ”and“ TEST2.vhdl ”.
In 15, the lower blocks “TEST” and “TEST2”
Based on the entity name of
The HDL source code in which the operations of “T” and “TEST2” are described and a comment statement is added is stored in a file with the file name “TEST.vhdl” or “TEST2.vhdl”.
1,323-2.
【0076】その後、階層関係抽出手段315は、下位
のHDLソースコード323−1,323−2中のコメ
ント文によって示されるクロック信号,リセット信号に
関する情報と、上位のHDLソースコード321のクロ
ック信号,リセット信号との対応関係を求める。After that, the hierarchical relation extracting means 315 outputs the information on the clock signal and the reset signal indicated by the comment statement in the lower HDL source codes 323-1 and 323-2, the clock signal of the upper HDL source code 321 and the reset signal. Find the correspondence with the reset signal.
【0077】今、例えば、下位ブロック「TEST」の
動作が記述されているHDLソースコード323−1の
内容が図6に示すものであるとすると、HDLソースコ
ード323−1に追加されているコメント文COMの内
容から、下位ブロック「TEST」で使用されているク
ロック信号が「CLK_A」,「CLK_B」で、リセ
ット信号が「RST」であることが分かる。更に、図7
に示した上位のHDLソースコード321のport
map文から「CLK_A」,「CLK_B」は、「T
OP」のHDLソースコード321に於いてそれぞれ
「ACLK」,「BCLK」に接続されていることが分
かり、「RST」は「TRST」に接続されていること
が分かる。Now, for example, assuming that the contents of the HDL source code 323-1 describing the operation of the lower block “TEST” are as shown in FIG. 6, the comment added to the HDL source code 323-1 From the contents of the statement COM, it can be seen that the clock signals used in the lower block “TEST” are “CLK_A” and “CLK_B” and the reset signal is “RST”. Further, FIG.
Port of the upper HDL source code 321 shown in
From the map statement, “CLK_A” and “CLK_B” are “T
In the HDL source code 321 of "OP", it can be seen that they are connected to "ACLK" and "BCLK", respectively, and that "RST" is connected to "TRST".
【0078】従って、上位のHDLソースコード321
のクロック信号,リセット信号と、図6のコメント文に
よって示されるクロック信号,リセット信号に関する情
報(ブロック「TEST」のクロック信号,リセット信
号に関する情報)との対応関係は次のようになる。Therefore, the upper HDL source code 321
The relationship between the clock signal and the reset signal shown in FIG. 6 and the information about the clock signal and the reset signal (the information about the clock signal and the reset signal of the block “TEST”) indicated by the comment sentence in FIG. 6 is as follows.
【0079】a.「ACLK」が、ブロック「TES
T」のクロック信号「CLK_A」に関する情報「CL
K_A(fall):U1(L27)」に対応する。 b.「BCLK」が、ブロック「TEST」のクロック
信号「CLK_B」に関する情報「CLK_B(riz
e):U2(L36)」に対応する。 c.「TRST」が、ブロック「TEST」のリセット
信号「RST」に関する情報「RST(0):U1(L
=25),U2(L=34)」に対応する。A. “ACLK” is the block “TES”
T regarding the clock signal “CLK_A” of “T”
K_A (fall): U1 (L27). " b. “BCLK” is information “CLK_B (riz) related to the clock signal“ CLK_B ”of the block“ TEST ”.
e): U2 (L36) ". c. “TRST” is information “RST (0): U1 (L) related to the reset signal“ RST ”of the block“ TEST ”.
= 25), U2 (L = 34) ".
【0080】階層関係抽出手段315は、このような処
理を下位ブロック「TEST2」の動作が記述され、且
つコメント文が追加されているHDLソースコード32
3−2についても行い、上位のHDLソースコード32
1のクロック信号,リセット信号と、下位のHDLソー
スコード323−2中のコメント文によって示されてい
るクロック信号,リセット信号に関する情報(ブロック
「TEST2」のクロック信号,リセット信号に関する
情報)との対応関係を求める。以上がS41で行う処理
の詳細である。The hierarchical relation extracting means 315 performs such processing by using the HDL source code 32 in which the operation of the lower block “TEST2” is described and a comment statement is added.
3-2, the upper HDL source code 32
1 and the information on the clock signal and the reset signal (the information on the clock signal and the reset signal of the block “TEST2”) indicated by the comment statement in the lower HDL source code 323-2. Ask for a relationship. The above is the details of the processing performed in S41.
【0081】その後、階層関係抽出手段315は、抽出
手段311に対して上位のHDLソースコード321の
クロック信号,リセット信号に関する情報を抽出するこ
とを指示する。Thereafter, the hierarchical relation extracting means 315 instructs the extracting means 311 to extract information on the clock signal and the reset signal of the upper HDL source code 321.
【0082】これにより、抽出手段311は、上位のH
DLソースコード321のクロック信号,リセット信号
に関する情報を抽出し、抽出した情報を階層関係抽出手
段315に渡す(S42)。尚、図7に示した例の場合
には、クロック信号特有な記述「クロック信号名’ev
ent」が存在しないので、クロック信号,リセット信
号に関する情報は何も抽出されず、抽出手段311はそ
のことを階層関係抽出手段315に通知する。Thus, the extracting means 311 outputs the upper H
The information related to the clock signal and the reset signal of the DL source code 321 is extracted, and the extracted information is passed to the hierarchical relation extracting unit 315 (S42). In the case of the example shown in FIG. 7, the description "clock signal name 'ev
Since “ent” does not exist, no information relating to the clock signal and the reset signal is extracted, and the extracting means 311 notifies the hierarchical relation extracting means 315 of this.
【0083】その後、階層関係抽出手段315は、S4
1,S42で得た情報および上位のHDLソースコード
321を示す情報をコメント文追加手段312に渡す。
尚、この例の場合は、S42ではクロック信号,リセッ
ト信号に関する情報が抽出されなかったので、S41で
抽出された情報とHDLソースコード321を示す情報
とがコメント文追加手段312に渡される。Thereafter, the hierarchical relation extracting means 315 determines whether
1, the information obtained in S42 and the information indicating the upper HDL source code 321 are passed to the comment sentence adding means 312.
In this case, since information relating to the clock signal and the reset signal is not extracted in S42, the information extracted in S41 and the information indicating the HDL source code 321 are passed to the comment sentence adding unit 312.
【0084】これにより、コメント文追加手段312
は、階層関係抽出手段315から渡された情報を見やす
い形に整理し、更に、HDLソースコード321の記述
に上記整理した情報をコメント文の形で追加したHDL
ソースコード322を生成し、記憶装置32に格納する
(S43,S44)。Thus, the comment sentence adding means 312
Is an HDL in which the information passed from the hierarchical relation extracting means 315 is arranged in an easy-to-view form, and the information arranged above is added to the description of the HDL source code 321 in the form of a comment statement.
The source code 322 is generated and stored in the storage device 32 (S43, S44).
【0085】図8は、コメント文追加手段312によっ
てコメント文が追加されたHDLソースコード322の
一例を示す図である。この例では、階層に関するコメン
ト文COM1と、クロック信号の階層間の関係に関する
コメント文COM2と、リセット信号の階層間の関係に
関するコメント文COM3が追加されている。FIG. 8 is a diagram showing an example of the HDL source code 322 to which a comment sentence has been added by the comment sentence adding means 312. In this example, a comment sentence COM1 regarding the hierarchy, a comment sentence COM2 regarding the relationship between the clock signal hierarchies, and a comment sentence COM3 regarding the relationship between the reset signal hierarchies are added.
【0086】コメント文COM1は、上位のブロック
「TOP」は、2つのブロック「TEST」,「TES
T2」を持ち、その名前が「BLOCK1」,BLOC
K2」であることを示している。In the comment sentence COM1, the upper block “TOP” is divided into two blocks “TEST” and “TES”.
T2 "and their names are" BLOCK1 ", BLOCK
K2 ".
【0087】コメント文COM2中の「ACLK:TE
ST(CLK_A(fall))」は、上位ブロック
「TOP」に於けるクロック信号「ACLK」が、下位
ブロック「TEST」のクロック信号CLK_Aに対応
し、その使用エッジが立ち下がりであること示してい
る。更に、コメント文COM2中の「BCLK:TES
T(CLK_B(rize)).TEST2(CLK
(rize))」は、上位ブロック「TOP」に於ける
クロック信号「BCLK」が、使用エッジが立ち上がり
である下位ブロック「TEST」のクロック信号「CL
K_B」と、使用エッジが立ち上がりである下位ブロッ
ク「TEST2」のクロック信号「CLK」とに対応し
ていることを示している。“ACLK: TE” in the comment sentence COM2
“ST (CLK_A (fall))” indicates that the clock signal “ACLK” in the upper block “TOP” corresponds to the clock signal CLK_A in the lower block “TEST”, and its used edge is falling. . Furthermore, “BCLK: TES” in the comment sentence COM2
T (CLK_B (rise)). TEST2 (CLK
(Rise)) indicates that the clock signal “BCLK” in the upper block “TOP” is equal to the clock signal “CL” in the lower block “TEST” whose use edge is rising.
K_B ”and the clock signal“ CLK ”of the lower block“ TEST2 ”whose use edge is rising.
【0088】[0088]
【発明の効果】以上説明したように、本発明は、HDL
記述言語で記述されたソースコードに、そのソースコー
ドで使用されているクロック信号,リセット信号に関す
る情報をコメント文の形式で追加するようにしており、
他の設計資料等を参照することなく、コメント文に基づ
いてクロック信号,リセット信号に関する情報を容易に
把握することができるので、ハードウェア設計の生産性
を向上できる効果がある。更に、クロック信号,リセッ
ト信号に関する情報をコメント文の形式でソースコード
に追加するようにしているので、管理が容易になるとい
う効果もある。As described above, the present invention provides an HDL
Information about the clock signal and reset signal used in the source code is added to the source code described in the description language in the form of a comment statement.
Since the information on the clock signal and the reset signal can be easily grasped based on the comment text without referring to other design materials, the productivity of the hardware design can be improved. Further, since information on the clock signal and the reset signal is added to the source code in the form of a comment statement, there is an effect that management becomes easy.
【0089】また、本発明は、設計者によって指示され
たクロック信号,リセット信号をソースコード上で強調
表示するようにしたので、設計者が、論理およびタイミ
ング上の問題点を発見し易くなる。従って、論理検証や
タイミング検証での後戻りが少なくなり、ハードウェア
設計の生産性が向上する。Further, according to the present invention, the clock signal and the reset signal designated by the designer are highlighted on the source code, so that the designer can easily find a problem in logic and timing. Therefore, backtracking in logic verification and timing verification is reduced, and the productivity of hardware design is improved.
【0090】更に、本発明は、上位のソースコード中の
クロック信号,リセット信号と、下位ブロックのクロッ
ク信号,リセット信号に関する情報との対応関係をコメ
ント文の形式で追加したソースコードを生成する階層関
係抽出手段を備えているので、設計者が、コメント文に
基づいて上位,下位階層のクロック信号,リセット信号
の関係を容易に理解できる。Further, according to the present invention, a hierarchy for generating a source code in which a correspondence between a clock signal and a reset signal in an upper source code and information on a lower block clock signal and a reset signal are added in the form of a comment statement is provided. Since the relation extracting means is provided, the designer can easily understand the relation between the clock signal and the reset signal in the upper and lower layers based on the comment text.
【図1】本発明のHDLエディタの一構成例を示すブロ
ック図である。FIG. 1 is a block diagram illustrating a configuration example of an HDL editor according to the present invention.
【図2】情報抽出用コマンド入力時のデータ処理装置1
の処理例を示す流れ図である。FIG. 2 is a data processing device 1 when an information extraction command is input.
6 is a flowchart showing an example of the processing of FIG.
【図3】本発明のHDLエディタの他の構成例を示すブ
ロック図である。FIG. 3 is a block diagram showing another configuration example of the HDL editor of the present invention.
【図4】階層関係抽出用コマンド入力時のデータ処理装
置31の処理例を示す流れ図である。FIG. 4 is a flowchart showing a processing example of a data processing device 31 when a hierarchical relation extraction command is input.
【図5】HDLソースコード21の一例を示す図であ
る。FIG. 5 is a diagram showing an example of an HDL source code 21.
【図6】HDLソースコード22の一例を示す図であ
る。FIG. 6 is a diagram showing an example of an HDL source code 22.
【図7】HDLソースコード321の一例を示す図であ
る。FIG. 7 is a diagram showing an example of an HDL source code 321.
【図8】HDLソースコード322の一例を示す図であ
る。FIG. 8 is a diagram showing an example of an HDL source code 322.
1…データ処理装置 11…抽出手段 12…コメント文追加手段 13…情報表示手段 14…テキスト編集手段 2…記憶装置 21,22…HDLソースコード 3…キーボード 4…ディスプレイ装置 5…プリンタ 6…記録媒体 31…データ処理装置 311…抽出手段 312…コメント文追加手段 313…情報表示手段 314…テキスト編集手段 315…階層関係抽出手段 32…記憶装置 321,322,323−1〜323−n…HDLソー
スコード 33…キーボード 34…ディスプレイ装置 35…プリンタ 36…記録媒体DESCRIPTION OF SYMBOLS 1 ... Data processing apparatus 11 ... Extraction means 12 ... Comment sentence addition means 13 ... Information display means 14 ... Text editing means 2 ... Storage device 21, 22 ... HDL source code 3 ... Keyboard 4 ... Display device 5 ... Printer 6 ... Recording medium Reference Signs List 31 data processing device 311 extracting means 312 comment adding means 313 information displaying means 314 text editing means 315 hierarchical relation extracting means 32 storage devices 321, 322, 323-1 to 323-n HDL source code 33 keyboard 34 display device 35 printer 36 recording medium
Claims (10)
スコードを入力し編集するHDLエディタに於いて、 ハードウェア記述言語で記述されたソースコードからク
ロック信号,リセット信号に関する情報を抽出する抽出
手段と、 該抽出手段で抽出されたクロック信号,リセット信号に
関する情報をコメント文の形式で追加したソースコード
を生成するコメント文追加手段とを備えたことを特徴と
するHDLエディタ。1. An HDL editor for inputting and editing a source code described in a hardware description language, an extracting means for extracting information about a clock signal and a reset signal from a source code described in a hardware description language. An HDL editor comprising: comment statement adding means for generating a source code in which information on the clock signal and reset signal extracted by the extracting means is added in the form of a comment statement.
ト文が追加されたソースコードを表示し、設計者が前記
コメント文中の特定のクロック信号,リセット信号に関
する情報を選択することにより、選択された情報と対応
するクロック信号,リセット信号を強調表示する情報表
示手段を備えたことを特徴とする請求項1記載のHDL
エディタ。2. A source code to which a comment sentence is added by the comment sentence adding means, and a designer selects information on a specific clock signal and a reset signal in the comment sentence, thereby displaying the selected information and 2. The HDL according to claim 1, further comprising information display means for highlighting the corresponding clock signal and reset signal.
editor.
ック信号,リセット信号を含むプロセス文のラベルを強
調表示する構成を備えたことを特徴とする請求項2記載
のHDLエディタ。3. The HDL editor according to claim 2, wherein said information display means has a configuration for highlighting a label of a process statement including a clock signal and a reset signal to be highlighted.
リセット信号に関する情報は、信号名を含むことを特徴
とする請求項1記載のHDLエディタ。4. A clock signal extracted by said extracting means,
The HDL editor according to claim 1, wherein the information on the reset signal includes a signal name.
リセット信号に関する情報は、クロック信号の使用エッ
ジを含むことを特徴とする請求項4記載のHDLエディ
タ。5. A clock signal extracted by said extracting means,
The HDL editor according to claim 4, wherein the information on the reset signal includes a used edge of the clock signal.
リセット信号に関する情報は、前記クロック信号,リセ
ット信号が用いられている文のラベル名を含むことを特
徴とする請求項5記載のHDLエディタ。6. A clock signal extracted by said extracting means,
6. The HDL editor according to claim 5, wherein the information on the reset signal includes a label name of a statement in which the clock signal and the reset signal are used.
リセット信号に関する情報は、前記クロック信号,リセ
ット信号が用いられている文の行番号を含み、 前記コメント文追加手段は、追加するコメント行の行数
に基づいて補正した行番号を含むコメント文を追加する
構成を備えたことを特徴とする請求項6記載のHDLエ
ディタ。7. A clock signal extracted by said extracting means,
The information on the reset signal includes a line number of a sentence in which the clock signal and the reset signal are used, and the comment sentence adding unit outputs a comment sentence including a line number corrected based on the number of comment lines to be added. 7. The HDL editor according to claim 6, further comprising an additional configuration.
スコードを入力し編集するHDLエディタに於いて、 ハードウェア記述言語で記述されたソースコードからク
ロック信号,リセット信号に関する情報を抽出する抽出
手段と、 該抽出手段で抽出されたクロック信号,リセット信号に
関する情報をコメント文の形式で追加したソースコード
を生成するコメント文追加手段と、 下位ブロックの接続を示す上位のソースコードの内容
と、前記下位のブロックの動作を示す下位のソースコー
ドに追加されている、前記下位ブロックのクロック信
号,リセット信号に関する情報を示すコメント文とに基
づいて、上位のソースコード中のクロック信号,リセッ
ト信号と、前記下位ブロックのクロック信号,リセット
信号に関する情報との対応関係を抽出し、抽出した対応
関係をコメント文の形式で追加したソースコードを生成
する階層関係抽出手段とを備えたことを特徴とするHD
Lエディタ。8. An HDL editor for inputting and editing a source code described in a hardware description language, comprising: extraction means for extracting information about a clock signal and a reset signal from the source code described in the hardware description language. Comment statement adding means for generating a source code in which information on the clock signal and reset signal extracted by the extracting means is added in the form of a comment statement; contents of an upper source code indicating a connection of a lower block; A clock signal and a reset signal in the upper-level source code, based on a comment sentence indicating information on the clock signal and the reset signal of the lower-level block added to the lower-level source code indicating the operation of the block. The correspondence between the clock signal and reset signal information of the lower block is extracted. And a hierarchical relation extracting means for generating a source code in which the extracted correspondence is added in the form of a comment sentence.
L editor.
で記述されたソースコードを入力し編集するHDLエデ
ィタとして動作させるためのプログラムを記録した記録
媒体であって、前記コンピュータを、 ハードウェア記述言語で記述されたソースコードからク
ロック信号,リセット信号に関する情報を抽出する抽出
手段、 該抽出手段で抽出されたクロック信号,リセット信号に
関する情報をコメント文の形式で追加したソースコード
を生成するコメント文追加手段として機能させるための
プログラムを記録した機械読み取り可能な記録媒体。9. A recording medium storing a program for causing a computer to operate as an HDL editor for inputting and editing source code described in a hardware description language, wherein the computer is described in a hardware description language. Extracting means for extracting information relating to a clock signal and a reset signal from the extracted source code, as comment statement adding means for generating source code in which information relating to the clock signal and the reset signal extracted by the extracting means is added in the form of a comment statement A machine-readable recording medium on which a program for functioning is recorded.
たソースコードを表示し、設計者が前記コメント文中の
特定のクロック信号,リセット信号に関する情報を選択
することにより、選択された情報と対応するクロック信
号,リセット信号を強調表示する情報表示手段として機
能させるためのプログラムを記録した、請求項9記載の
プログラムを記録した機械読み取り可能な記録媒体。10. The computer is displayed by displaying a source code to which a comment sentence is added by the comment sentence adding means, and a designer selects information on a specific clock signal and a reset signal in the comment sentence. 10. A machine-readable recording medium storing a program according to claim 9, wherein a program for functioning as an information display means for highlighting a clock signal and a reset signal corresponding to the obtained information is recorded.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP9309616A JP3045123B2 (en) | 1997-10-24 | 1997-10-24 | Machine-readable recording medium recording HDL editor and program |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP9309616A JP3045123B2 (en) | 1997-10-24 | 1997-10-24 | Machine-readable recording medium recording HDL editor and program |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH11134372A JPH11134372A (en) | 1999-05-21 |
| JP3045123B2 true JP3045123B2 (en) | 2000-05-29 |
Family
ID=17995183
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP9309616A Expired - Lifetime JP3045123B2 (en) | 1997-10-24 | 1997-10-24 | Machine-readable recording medium recording HDL editor and program |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP3045123B2 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN121303025A (en) * | 2025-12-10 | 2026-01-09 | 航天中认软件测评科技(北京)有限责任公司 | A trigger signal identification method, apparatus, device, and storage medium |
-
1997
- 1997-10-24 JP JP9309616A patent/JP3045123B2/en not_active Expired - Lifetime
Also Published As
| Publication number | Publication date |
|---|---|
| JPH11134372A (en) | 1999-05-21 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN100474292C (en) | Method and device for copying and pasting a plurality of data items as a group | |
| US9760347B2 (en) | Method and system to identify GUI objects for non-markup-language-presented applications | |
| JP4997749B2 (en) | Document processing method, program, and system | |
| JP4924976B2 (en) | Software development support system | |
| US9613089B2 (en) | Form template refactoring | |
| JPH06103049A (en) | System for making specification abstract and detailed | |
| US5671427A (en) | Document editing apparatus using a table to link document portions | |
| JP3045123B2 (en) | Machine-readable recording medium recording HDL editor and program | |
| TWI855868B (en) | Method, device, computer equipment and storage medium for editing pdf file | |
| JP6827610B1 (en) | Development support equipment, programs and development support methods | |
| WO2024047997A1 (en) | Document analysis device and program for document analysis | |
| CN1332302C (en) | Navigation in computer software applications developed in procedural language | |
| JP2998674B2 (en) | Document creation support device for design work | |
| JP2525921B2 (en) | Error detection method for software design information | |
| JPH11161726A (en) | Electronic report system | |
| JPH11272666A (en) | Document editing system, method, and recording medium | |
| JPH11203279A (en) | Kana-kanji conversion device, kana-kanji conversion method, and storage medium | |
| JP2001155017A (en) | Tagged document creation device and recording medium recording the program | |
| JPH09293085A (en) | Design support device | |
| JP4419584B2 (en) | Input sheet system and program | |
| JPH11212776A (en) | System specification description language / program code conversion method and recording medium | |
| JP2724235B2 (en) | Variable name inference device | |
| JPH0786886B2 (en) | Hardware design system and method | |
| JP3237709B2 (en) | Document processing apparatus and document processing method | |
| JPH11120175A (en) | Structured document display system and storage medium recording program functioning computer as structured document display system |