JP2002056041A - Method for reflecting hardware description language hierarchy information - Google Patents

Method for reflecting hardware description language hierarchy information

Info

Publication number
JP2002056041A
JP2002056041A JP2000244844A JP2000244844A JP2002056041A JP 2002056041 A JP2002056041 A JP 2002056041A JP 2000244844 A JP2000244844 A JP 2000244844A JP 2000244844 A JP2000244844 A JP 2000244844A JP 2002056041 A JP2002056041 A JP 2002056041A
Authority
JP
Japan
Prior art keywords
file
information
port
hdl
hierarchy
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
JP2000244844A
Other languages
Japanese (ja)
Inventor
Yasunori Yamamoto
恭儀 山本
Masakazu Murase
正和 村瀬
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP2000244844A priority Critical patent/JP2002056041A/en
Publication of JP2002056041A publication Critical patent/JP2002056041A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To make accurately and efficiently performable the preparation and change operations of the HDL(Hardware Description Language) file and to make effectively utilizable the resource of the HDL file. SOLUTION: An input-output controlling part 2 reads the external file (HDL file) 1 to be an origin to a device and expands the external file on a storing part 6, and a controlling part 4 displays the automatic generation of an upper hierarchical HDL and the port change contents of the hierarchical HDL on a displaying part 3 on the basis of port information extracted from the HDL file, reflects the automatic generation and the port change contents on a related hierarchical file and stores the related hierarchical file in a file storing part 5.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、HDL(Hardware
Discription Language:ハードウェア記述言語)階層情
報反映方法に係り、特に、電気回路の論理回路設計に用
いられるHDLで作成されたファイルの編集に用いて好
適なHDL階層情報反映方法に関する。
The present invention relates to an HDL (Hardware)
The present invention relates to a method of reflecting hierarchical information, and more particularly to a method of reflecting HDL hierarchical information suitable for editing a file created in HDL used for designing a logic circuit of an electric circuit.

【0002】[0002]

【従来の技術】近年、効率的な論理回路設計手法の1つ
として、HDLを用いてHDLファイルを記述し、論理
検証・論理合成を行う方法が用いられるようになってい
る。HDLを用いた設計手法を実行する場合、そのHD
Lの可読性及びHDLに対して論理合成を行う際の処理
速度がその後の工程に大きな影響を与える。
2. Description of the Related Art In recent years, as one of efficient logic circuit design techniques, a method of describing an HDL file using HDL and performing logic verification and logic synthesis has been used. When a design method using HDL is executed, the HD
The readability of L and the processing speed at the time of performing logic synthesis on HDL greatly affect the subsequent steps.

【0003】例えば、既に記述されたHDLファイルが
長大なものである場合、論理検証時にその内部の前後関
係が複雑になり、関連する記述が広範囲に及んでしまう
という理由によってHDLの可読性が低下し、その結
果、作業効率が低下するという問題点を生じる。また、
前述の場合、論理合成を行う論理合成装置に多くの記憶
領域が必要となり、その結果、論理合成に要する時間が
非常に大きくなったり、あるいは、最後まで合成を完了
させることができないこともあるという問題点をも生じ
させる。
For example, if an HDL file that has already been described is long, the internal context of the HDL file becomes complicated at the time of logic verification, and the readability of HDL deteriorates because the related description extends over a wide range. As a result, there arises a problem that the working efficiency is reduced. Also,
In the case described above, a large amount of storage area is required for the logic synthesis device that performs the logic synthesis, and as a result, the time required for the logic synthesis becomes extremely long, or the synthesis may not be completed to the end. It also creates problems.

【0004】前述のような問題点を回避するための対策
として、論理的に等価な状態を保ったまま、HDL記述
単位を予め複数に分割した下位階層ファイルを作成する
方法が用いられている。そして、この方法は、分割して
作成した下位階層ファイルに対して論理検証・論理合成
を行い、最終的に分割したHDLファイルを統括して上
位階層ファイルを作成するというものである。
As a countermeasure for avoiding the above-mentioned problems, a method of creating a lower layer file in which an HDL description unit is divided into a plurality of units in advance while maintaining a logically equivalent state is used. In this method, logic verification and logic synthesis are performed on the lower hierarchical file created by division, and an upper hierarchical file is created by finally managing the divided HDL files.

【0005】前述した従来技術による方法は、上位階層
を作成するために、人手によって下位階層ファイルの仕
様を参照しながら階層関係を構成する作業が必要であ
り、また、上位階層ファイルの下位階層接続port名
を変更する場合、先に下位階層ファイルのport名を
変更し上位階層を作成する作業が必要である。
In the above-described method according to the prior art, in order to create an upper layer, it is necessary to manually construct a hierarchical relationship while referring to the specification of the lower layer file. When changing the port name, it is necessary to first change the port name of the lower layer file and create an upper layer.

【0006】[0006]

【発明が解決しようとする課題】前述した従来技術によ
る上位階層ファイルの作成方法は、操作者が下位階層フ
ァイルの仕様を参照しながら人手で上位階層ファイルを
作成しなければならず、多大な工数を必要とし、また、
生成された上位階層ファイル中に記述の誤りが混入する
可能性があるという問題点を有している。
The above-described method of creating an upper-layer file according to the prior art requires the operator to manually create the upper-layer file while referring to the specifications of the lower-layer file. Requires, and
There is a problem that a description error may be mixed in the generated upper layer file.

【0007】本発明の目的は、前述した従来技術の問題
点を解決し、上位階層ファイル作成作業を正確かつ効率
的に行うことができ、HDLファイル資産の有効利用を
図ることを可能にしたHDL階層情報反映方法を提供す
ることにある。
SUMMARY OF THE INVENTION An object of the present invention is to solve the above-mentioned problems of the prior art, to make it possible to accurately and efficiently create an upper-layer file, and to make effective use of HDL file assets. An object of the present invention is to provide a method for reflecting hierarchical information.

【0008】[0008]

【課題を解決するための手段】本発明によれば前記目的
は、ハードウェア記述言語を用いて階層的に記述された
論理回路の論理設計を行うハードウェア記述言語階層情
報反映方法において、下位階層論理のport情報を抽
出し、下位階層論理の接続情報を定義した記述に基づい
てハードウェア記述言語文法に準じて上位階層論理のフ
ァイルを生成することにより達成される。
According to the present invention, an object of the present invention is to provide a hardware description language hierarchy information reflection method for performing a logic design of a logic circuit hierarchically described using a hardware description language. This is achieved by extracting port information of logic and generating a file of upper layer logic according to a hardware description language grammar based on a description defining connection information of lower layer logic.

【0009】具体的に言えば、本発明は、HDLで記述
された下位階層ファイルを複数読込み、下位階層ファイ
ルから階層port情報としてのport名・入出力属
性・タイプ属性・Vector幅・下位階層名を抽出
し、port名と入出力属性とから各下位階層とのpo
rt接続関係を接続ポインタとして、下位階層構成要素
であるcomponent文を作成し各port名と接
続ポインタによりcomponentを接続しHDLの
文法に従って上位階層HDLを生成するように構成され
る。
More specifically, the present invention reads a plurality of lower-layer files described in HDL, reads port names, input / output attributes, type attributes, Vector widths, and lower-layer names from the lower-layer files as layer port information. Is extracted, and the Po for each lower layer is extracted from the port name and the input / output attribute.
Using the rt connection relation as a connection pointer, a component statement as a lower layer component is created, components are connected by each port name and the connection pointer, and an upper layer HDL is generated according to the HDL grammar.

【0010】[0010]

【発明の実施の形態】以下、本発明によるHDL階層情
報反映方法を用いたHDL編集装置の一実施形態を図面
により詳細に説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, an embodiment of an HDL editing apparatus using an HDL layer information reflecting method according to the present invention will be described in detail with reference to the drawings.

【0011】図1は本発明の一実施形態を用いたHDL
編集装置の構成を示すブロック図、図2は論理回路の階
層構造の例を説明する図、図3は図2に示す論理回路の
上位階層のHDL記述例を示す図、図4は図2に示す論
理回路の下位階層のHDL記述例を示す図、図5は本発
明の実施形態による処理により下位階層ファイルから抽
出する階層port情報のテーブルを説明する図、図6
は本発明の実施形態による処理により下位階層ファイル
から抽出する各階層のツリー及びリピート情報のテーブ
ルを説明する図、図7は操作者によって定義された下位
階層論理の接続情報記述例を示す図である。図1におい
て、1は外部ファイル、2は入出力制御部、3は表示
部、4は制御部、5はファイル保存部、6は記憶部であ
る。
FIG. 1 shows an HDL using one embodiment of the present invention.
FIG. 2 is a block diagram showing a configuration of the editing apparatus, FIG. 2 is a diagram for explaining an example of a hierarchical structure of the logic circuit, FIG. 3 is a diagram showing an example of HDL description of an upper hierarchy of the logic circuit shown in FIG. 2, and FIG. FIG. 5 is a diagram illustrating an HDL description example of a lower hierarchy of the logic circuit illustrated, FIG. 5 is a diagram illustrating a table of hierarchy port information extracted from a lower hierarchy file by processing according to the embodiment of the present invention, and FIG.
FIG. 7 is a diagram illustrating a tree of each layer and a table of repeat information extracted from a lower layer file by the processing according to the embodiment of the present invention. FIG. 7 is a diagram illustrating an example of connection information description of lower layer logic defined by an operator. is there. In FIG. 1, 1 is an external file, 2 is an input / output control unit, 3 is a display unit, 4 is a control unit, 5 is a file storage unit, and 6 is a storage unit.

【0012】図1に示すHDL編集装置は、外部ファイ
ル1と、入出力制御部2と、表示部3と、制御部4と、
ファイル保存部5と、記憶部6とにより構成される。そ
して、本発明の実施形態によるHDL階層情報反映方法
は、入出力制御部2と、表示部3と、制御部4と、ファ
イル保存部5と、記憶部6とにより実行される。
The HDL editing apparatus shown in FIG. 1 includes an external file 1, an input / output control unit 2, a display unit 3, a control unit 4,
It comprises a file storage unit 5 and a storage unit 6. The HDL layer information reflection method according to the embodiment of the present invention is executed by the input / output control unit 2, the display unit 3, the control unit 4, the file storage unit 5, and the storage unit 6.

【0013】入力される下位階層ファイルは、外部ファ
イル1に格納されており、入出力制御部2から読み込ま
れる。その内容は、ファイル保存部5に保存されると共
に、記憶部6にも展開される。制御部4は、記憶部6上
に展開された下位階層ファイルの階層port情報を抽
出して表示部3に表示する。それを元に生成された上位
階層ファイルは、ファイル保存部5に保存される。操作
者は、この上位階層ファイルを、必要に応じてファイル
保存部5から入出力制御部2を通して外部ファイル1と
して取り出すことができる。
The input lower layer file is stored in the external file 1 and is read from the input / output control unit 2. The contents are stored in the file storage unit 5 and are also expanded in the storage unit 6. The control unit 4 extracts hierarchical port information of the lower hierarchical file developed on the storage unit 6 and displays the extracted information on the display unit 3. The upper layer file generated based on the file is stored in the file storage unit 5. The operator can retrieve the upper layer file as an external file 1 from the file storage unit 5 through the input / output control unit 2 as necessary.

【0014】次に、図2〜図4を参照して、本発明の実
施形態により取り扱おうとしている論理回路の階層構造
の例と、HDLによる記述例とについて説明する。
Next, an example of a hierarchical structure of a logic circuit to be handled according to the embodiment of the present invention and an example of description in HDL will be described with reference to FIGS.

【0015】図2に示す論理回路は、2つの下位階層
(UNDER_1、UNDER_2)と、これらの下位階層を統合した
上位階層(TOP)とにより構成される。各下位階層は、そ
の回路の詳細な論理構造と入出力信号とにより構成さ
れ、また、上位階層は、下位階層名のブロックと入出力
信号とにより構成される。このような図2に示す例の論
理回路をHDLにより記述すると、その上位階層の記述
は、図3に示すようになり、また、下位階層の記述は、
図4に示すようになる。
The logic circuit shown in FIG. 2 is composed of two lower layers (UNDER_1, UNDER_2) and an upper layer (TOP) obtained by integrating these lower layers. Each lower layer is composed of a detailed logical structure of the circuit and input / output signals, and the upper layer is composed of blocks of lower layer names and input / output signals. When such a logic circuit of the example shown in FIG. 2 is described in HDL, the description of the upper layer is as shown in FIG. 3, and the description of the lower layer is
As shown in FIG.

【0016】本発明の実施形態の後述する処理において
は、図4に示すようなHDLにより記述されて格納され
ている下位階層ファイルから階層port情報と、各階
層のツリー及びリピート情報とを抽出する。抽出される
階層port情報は、図5(a)に示すように、階層p
ort情報としてのport名11と、入出力属性12
と、タイプ属性13と、Vector幅14と、階層名
15とである。また、また、抽出される各階層のツリー
及びリピート情報は、図6(a)に示すように、階層名
21と、上位階層数22と、上位階層名23と、下位階
層数24と、下位階層名25と、リピート回数26とで
ある。
In the processing to be described later of the embodiment of the present invention, layer port information, and tree and repeat information of each layer are extracted from a lower layer file described and stored in HDL as shown in FIG. . The extracted layer port information is, as shown in FIG.
port name 11 as ort information and input / output attribute 12
, A type attribute 13, a Vector width 14, and a hierarchy name 15. As shown in FIG. 6A, the tree and repeat information of each layer to be extracted include a layer name 21, an upper layer number 22, an upper layer name 23, a lower layer number 24, a lower layer number 24, and a lower layer number 24. The hierarchy name 25 and the number of repeats 26 are shown.

【0017】図7に示す下位階層論理の接続情報は、予
め操作者によって下位階層と上位階層とのport接続
を定義したものであり、下位階層ファイルから上位階層
ファイルを作成する処理において参照される。但し、接
続情報として定義されていない場合、下位階層のpor
t名を上位階層での接続接続情報とする。
The connection information of the lower hierarchy logic shown in FIG. 7 is defined in advance by the operator as a port connection between the lower hierarchy and the upper hierarchy, and is referred to in the process of creating the upper hierarchy file from the lower hierarchy file. . However, if it is not defined as the connection information, the lower-level por
The t name is used as connection information in the upper hierarchy.

【0018】図8は下位階層ファイルから上位階層ファ
イルを作成する処理を説明するフローチャートであり、
以下、これについて説明する。
FIG. 8 is a flowchart for explaining a process of creating an upper layer file from a lower layer file.
Hereinafter, this will be described.

【0019】(1)まず、図4に示すように記述された
下位階層ファイルは、外部ファイル1から入出力制御部
2を介して読み取られ、ファイル保存部5に保存される
と共に、記憶部6上に制御部4が自由に扱うことができ
るように展開される(ステップS31)。
(1) First, the lower layer file described as shown in FIG. 4 is read from the external file 1 via the input / output control unit 2 and is stored in the file storage unit 5 and is stored in the storage unit 6 It is developed so that the control unit 4 can handle it freely (step S31).

【0020】(2)次に、制御部4は、下位階層ファイ
ル内のport記述を検索し、port情報を抽出す
る。この抽出した階層port情報は、図5(a)によ
り説明した情報であり、図4により説明した下位階層フ
ァイルの例の場合、具体的には、図5(b)に示すよう
なものとして抽出される。これらの情報は、記憶部6の
port情報テーブルに登録される(ステップS32、
S33)。
(2) Next, the control unit 4 searches for a port description in the lower hierarchical file and extracts port information. The extracted layer port information is the information described with reference to FIG. 5A. In the case of the example of the lower layer file described with reference to FIG. 4, specifically, the extracted layer port information is extracted as shown in FIG. Is done. These pieces of information are registered in the port information table of the storage unit 6 (Step S32,
S33).

【0021】(3)また、制御部4は、下位階層ファイ
ル内の階層記述を検索し、図6(a)により説明した階
層情報としてのツリー及びリピート情報を抽出する。図
4により説明した下位階層ファイルの例の場合、具体的
には、図6(b)に示すようなものとして抽出される。
これらの情報は、記憶部6のツリー及びリピート情報テ
ーブルに登録される(ステップS34)。
(3) The control unit 4 searches the hierarchical description in the lower hierarchical file and extracts the tree and repeat information as the hierarchical information described with reference to FIG. In the case of the example of the lower layer file described with reference to FIG. 4, specifically, the file is extracted as shown in FIG. 6B.
These pieces of information are registered in the tree and repeat information table of the storage unit 6 (Step S34).

【0022】(4)全ての下位階層ファイルを読み込ん
でステップS34までの処理を終了したか否かを判定
し、下位階層ファイルがまだ残っている場合、ステップ
S31からの処理を繰り返す。また、全ての下位階層フ
ァイルの読み込みが終了していれば、制御部4は、図7
に示した下位階層論理の接続情報を参照し、階層por
t情報の入出力属性がOUT属性のport名を基準に
他の入出力属性がIN属性あるいはINOUT属性であ
るport名が存在するか否かを検索し、存在する場合
に接続ポインタ16を記憶部6に登録する。図4により
説明した下位階層ファイルの例の場合、具体的には、図
6(b)に示すように、接続ポインタ16として2つだ
けが登録される(ステップS35、S36)。
(4) It is determined whether or not all lower layer files have been read and the processing up to step S34 has been completed. If lower layer files still remain, the processing from step S31 is repeated. If reading of all lower layer files has been completed, the control unit 4 proceeds to FIG.
Refer to the connection information of the lower hierarchy logic shown in FIG.
Based on the port name of the input / output attribute of the t information based on the port name of the OUT attribute, a search is performed to determine whether or not a port name having another input / output attribute of the IN attribute or the INOUT attribute is present. Register in 6. In the case of the example of the lower hierarchical file described with reference to FIG. 4, specifically, as shown in FIG. 6B, only two connection pointers 16 are registered (steps S35 and S36).

【0023】(5)各接続関係が正常であるか否かのネ
ットチェックを行い、その結果を表示部3に表示する。
そして、ネットチェックの結果にエラーが生じていれ
ば、その後の処理を行わずに処理を終了する(ステップ
S37、S38)。
(5) A net check is performed to determine whether each connection relationship is normal, and the result is displayed on the display unit 3.
If an error has occurred in the result of the net check, the process ends without performing the subsequent processes (steps S37 and S38).

【0024】(6)ステップS38でのネットチェック
で、その結果が正常であれば、制御部4は、ツリー及び
リピート情報の階層名を元に、上位階層ファイルとして
下位階層構成要素であるcomponent文をHDL
の文法に従って作成する(ステップS39)。
(6) If the result of the net check in step S38 is normal, the control unit 4 determines, based on the hierarchical names of the tree and the repeat information, a component statement as a lower hierarchical component as a higher hierarchical file. HDL
(Step S39).

【0025】(7)また、制御部4は、階層port情
報の信号名及び階層名ならびに接続ポインタにより各c
omponentの接続記述をHDLの文法に従って作
成し、上位階層ファイルを作成する。図4により説明し
た下位階層ファイルの例の場合、具体的には、図3に示
すように記述された上位階層ファイルが作成されること
になり、このファイルは、ファイル保存部5に格納保存
される(ステップS40)。
(7) Further, the control unit 4 uses the signal name and the layer name of the layer port information and the connection pointer to execute each c.
A component description is created according to the HDL grammar, and an upper layer file is created. In the case of the example of the lower layer file described with reference to FIG. 4, specifically, an upper layer file described as shown in FIG. 3 is created, and this file is stored and saved in the file storage unit 5. (Step S40).

【0026】図9は図8により説明した処理によって生
成した上位階層ファイルの各componentの接続
記述が変更された場合、その変更を下位階層ファイルに
反映させる処理を説明するフローチャートであり、以
下、これについて説明する。
FIG. 9 is a flowchart for explaining a process for reflecting the change in the lower layer file when the connection description of each component of the upper layer file generated by the process described with reference to FIG. 8 is changed. Will be described.

【0027】(1)まず、制御部4は、ファイル保存部
5に保存されている上位階層ファイルを読み込んで、記
憶部6に制御部4が自由に取り扱うことができるように
展開する(ステップS41)。
(1) First, the control unit 4 reads the upper layer file stored in the file storage unit 5 and develops it in the storage unit 6 so that the control unit 4 can handle it freely (step S41). ).

【0028】(2)次に、制御部4は、記憶部6に読み
込まれている上位階層ファイルから下位階層に対するp
ort接続記述を検索してport情報を抽出し、抽出
したport情報が、図8により説明した処理で作成し
た階層port情報テーブルのport名と一致するか
否かを比較する(ステップS43、S44)。
(2) Next, the control unit 4 reads the p from the upper layer file read into the storage unit 6 to the lower layer.
The port information is retrieved by searching the ort connection description, and it is compared whether or not the extracted port information matches the port name of the hierarchical port information table created by the processing described with reference to FIG. 8 (steps S43 and S44). .

【0029】(3)ステップS44の比較の結果、階層
port情報テーブルに抽出したport名が存在する
か否かを判定し、存在しない場合、そのportが変更
されたportであるとみなし、抽出されたportの
接続情報と階層port情報テーブルの接続ポインタと
を比較して一致する変更元portを抽出する(ステッ
プS45、S46)。
(3) As a result of the comparison in step S44, it is determined whether or not the extracted port name exists in the hierarchical port information table. If the port name does not exist, the port is regarded as a changed port and extracted. The connection information of the port and the connection pointer of the hierarchical port information table are compared to extract a matching change source port (steps S45 and S46).

【0030】(4)そして、制御部4は、抽出したpo
rtの階層名を元にツリー及びリピート情報の上位階層
名及び下位階層名ならびにリピート回数により変更対象
下位階層を絞り込み、変更port名と変更対象下位階
層を記憶部6に記憶する(ステップS47、S48)。
(4) Then, the control unit 4 sets the extracted po
Based on the rt hierarchy name, the lower hierarchy to be changed is narrowed down by the upper hierarchy name and lower hierarchy name of the tree and repeat information, and the number of repeats, and the changed port name and the lower hierarchy to be changed are stored in the storage unit 6 (steps S47 and S48). ).

【0031】(5)ステップS48の処理後、あるい
は、ステップS45の判定で、階層port情報テーブ
ルに抽出したport名が存在していた場合、制御部4
は、全port情報の抽出が終了したか否かをチェック
し、残っているport情報があれば、ステップS43
からの処理を繰り返し実行する(ステップS42)。
(5) If the extracted port name exists in the hierarchical port information table after the processing in step S48 or in the determination in step S45, the control unit 4
Checks whether or not extraction of all port information is completed. If there is any remaining port information, step S43 is performed.
Are repeated (step S42).

【0032】(6)ステップS42のチェックで、全p
ort情報の抽出が終了していた場合、変更対象の下位
階層を読み込み、該当port箇所をテキストエディタ
あるいはスケマティックエディタ上に表示し、操作者に
自動変更を行うか否かを問い合せる(ステップS4
9)。
(6) In step S42, all p
When the extraction of the ort information has been completed, the lower hierarchy to be changed is read, the corresponding port location is displayed on a text editor or a schematic editor, and the operator is asked whether or not to perform the automatic change (step S4).
9).

【0033】(7)ステップS49での問い合わせに対
する操作者からの回答として、自動変更が選択されたか
否かをチェックし、自動変更が選択されなかった場合、
以後の処理を行わずに、ここでの処理を終了し、自動変
更が選択された場合、該当するport名を変更し、階
層port情報テーブルの内容を更新する(ステップS
50〜S52)。
(7) As a response from the operator in response to the inquiry in step S49, it is checked whether or not automatic change has been selected, and if automatic change has not been selected,
If the process is terminated without performing the subsequent processes and the automatic change is selected, the corresponding port name is changed and the contents of the hierarchical port information table are updated (step S).
50 to S52).

【0034】図10は図8により説明した処理によって
生成した上位階層ファイルの下位階層のport接続記
述が変更された場合、その変更を上位階層ファイルに反
映させる処理を説明するフローチャートであり、以下、
これについて説明する。
FIG. 10 is a flowchart for explaining a process of reflecting the change in the upper layer file when the port connection description of the lower layer of the upper layer file generated by the process described with reference to FIG. 8 is changed.
This will be described.

【0035】(1)まず、制御部4は、ファイル保存部
5に保存されている下位階層ファイルを読み込んで、記
憶部6に制御部4が自由に取り扱うことができるように
展開する(ステップS61)。
(1) First, the control unit 4 reads the lower layer file stored in the file storage unit 5 and develops it in the storage unit 6 so that the control unit 4 can handle it freely (step S61). ).

【0036】(2)次に、制御部4は、記憶部6に読み
込まれている下位階層ファイルから階層内のport接
続記述を検索してport情報を抽出し、抽出したpo
rt情報が、図8により説明した処理で作成した階層p
ort情報テーブルのport名と一致するか否かを比
較する(ステップS63、S64)。
(2) Next, the control unit 4 searches for a port connection description in the hierarchy from the lower hierarchy file read into the storage unit 6, extracts port information, and extracts the extracted po.
The rt information is the hierarchy p created by the process described with reference to FIG.
It is determined whether or not the port name matches the port name in the ort information table (steps S63 and S64).

【0037】(3)ステップS64の比較の結果、階層
port情報テーブルに抽出したport名が存在する
か否かを判定し、存在しない場合、そのportが変更
されたportであるとみなし、抽出されたportの
接続情報と階層port情報テーブルの階層ポート情報
とを比較して一致する変更元portを抽出する(ステ
ップS65、S66)。
(3) As a result of the comparison in step S64, it is determined whether or not the extracted port name exists in the hierarchical port information table. If the port name does not exist, the port is regarded as the changed port and extracted. The connection information of the extracted port and the layer port information in the layer port information table are compared to extract a matching change source port (steps S65 and S66).

【0038】(4)そして、制御部4は、抽出したpo
rtの階層名を元にツリー及びリピート情報の上位階層
名及び下位階層名ならびにリピート回数により変更対象
上位階層を絞り込み、変更port名と変更対象上位階
層を記憶部6に記憶する(ステップS67、S68)。
(4) Then, the control unit 4 sets the extracted po
Based on the rt hierarchy name, the upper hierarchy to be changed is narrowed down by the upper hierarchy name and lower hierarchy name of the tree and repeat information and the number of repeats, and the changed port name and the upper hierarchy to be changed are stored in the storage unit 6 (steps S67 and S68). ).

【0039】(5)ステップS68の処理後、あるい
は、ステップS65の判定で、階層port情報テーブ
ルに抽出したport名が存在していた場合、制御部4
は、全port情報の抽出が終了したか否かをチェック
し、残っているport情報があれば、ステップS63
からの処理を繰り返し実行する(ステップS62)。
(5) After the processing in step S68 or in the determination in step S65, if the extracted port name exists in the hierarchical port information table, the control unit 4
Checks whether extraction of all port information has been completed, and if there is any remaining port information, determines in step S63
Are repeated (step S62).

【0040】(6)ステップS62のチェックで、全p
ort情報の抽出が終了していた場合、変更対象の上位
階層を読み込み、該当port箇所をテキストエディタ
あるいはスケマティックエディタ上に表示し、操作者に
自動変更を行うか否かを問い合せる(ステップS6
9)。
(6) By checking in step S62, all p
If the extraction of the ort information has been completed, the upper hierarchy to be changed is read, the corresponding port location is displayed on a text editor or a schematic editor, and the operator is asked whether or not to perform the automatic change (step S6).
9).

【0041】(7)ステップS69での問い合わせに対
する操作者からの回答として、自動変更が選択されたか
否かをチェックし、自動変更が選択されなかった場合、
以後の処理を行わずに、ここでの処理を終了し、自動変
更が選択された場合、該当するport名を変更し、上
位階層port情報の内容も更新する(ステップS70
〜S72)。
(7) It is checked whether or not automatic change has been selected as a response from the operator in response to the inquiry in step S69, and if automatic change has not been selected,
If the process is terminated here and the automatic change is selected without performing the subsequent processes, the corresponding port name is changed and the contents of the upper layer port information are also updated (step S70).
To S72).

【0042】前述したように、本発明の実施形態によれ
ば、元になる外部ファイル(HDLファイル)1を入出
力制御部2によって装置内に読み込ませ、記憶部6上に
展開し、制御部4が、上位階層ファイルの生成し、階層
ファイルのport接続記述が変更された場合、変更内
容を表示部3に表示して関連する階層ファイルへの変更
を反映させてファイル保存部5に保存することができる
ので、階層ファイル作成作業を正確かつ効率的に行うこ
とができ、HDLファイル資産の有効利用を図ることが
できる。
As described above, according to the embodiment of the present invention, the original external file (HDL file) 1 is read into the device by the input / output control unit 2, expanded on the storage unit 6, and 4 generates an upper hierarchical file and, when the port connection description of the hierarchical file is changed, displays the changed content on the display unit 3 and reflects the change to the related hierarchical file and saves it in the file storage unit 5. Therefore, the hierarchical file creation operation can be performed accurately and efficiently, and the HDL file assets can be effectively used.

【0043】[0043]

【発明の効果】以上説明したように本発明によれば、下
位階層ファイルから上位階層ファイルを自動生成するこ
とができ、また、階層ファイルの接続記述の変更を自動
的に関連する階層HDLに反映させることができるの
で、HDLファイルの作成及び変更作業を正確かつ効率
的に行うことができ、HDLファイルの資産の有効活用
を図ることができる。
As described above, according to the present invention, an upper hierarchical file can be automatically generated from a lower hierarchical file, and a change in the connection description of the hierarchical file is automatically reflected on the associated hierarchical HDL. Therefore, the creation and modification of the HDL file can be performed accurately and efficiently, and the resources of the HDL file can be effectively used.

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

【図1】本発明の一実施形態を用いたHDL編集装置の
構成を示すブロック図である。
FIG. 1 is a block diagram illustrating a configuration of an HDL editing device according to an embodiment of the present invention.

【図2】論理回路の階層構造の例を説明する図である。FIG. 2 is a diagram illustrating an example of a hierarchical structure of a logic circuit.

【図3】図2に示す論理回路の上位階層のHDL記述例
を示す図である。
FIG. 3 is a diagram illustrating an example of an HDL description of an upper layer of the logic circuit illustrated in FIG. 2;

【図4】図2に示す論理回路の下位階層のHDL記述例
を示す図である。
FIG. 4 is a diagram illustrating an example of an HDL description of a lower hierarchy of the logic circuit illustrated in FIG. 2;

【図5】本発明の実施形態による処理により下位階層フ
ァイルから抽出する階層port情報のテーブルを説明
する図である。
FIG. 5 is a diagram illustrating a table of hierarchical port information extracted from a lower hierarchical file by a process according to the embodiment of the present invention.

【図6】本発明の実施形態による処理により下位階層フ
ァイルから抽出する各階層のツリー及びリピート情報の
テーブルを説明する図である。
FIG. 6 is a diagram illustrating a tree of each layer and a table of repeat information extracted from a lower layer file by the processing according to the embodiment of the present invention.

【図7】操作者によって定義された下位階層論理の接続
情報記述例を示す図である。
FIG. 7 is a diagram showing an example of connection information description of lower-level logic defined by an operator.

【図8】下位階層ファイルから上位階層ファイルを作成
する処理を説明するフローチャートである。
FIG. 8 is a flowchart illustrating a process of creating an upper layer file from a lower layer file.

【図9】上位階層ファイルの各componentの接
続記述が変更された場合、その変更を下位階層ファイル
に反映させる処理を説明するフローチャートである。
FIG. 9 is a flowchart illustrating a process in which, when the connection description of each component of the upper layer file is changed, the change is reflected in the lower layer file.

【図10】上位階層ファイルの下位階層のport接続
記述が変更された場合、その変更を上位階層ファイルに
反映させる処理を説明するフローチャートである。
FIG. 10 is a flowchart illustrating a process in which, when a port connection description of a lower layer of an upper layer file is changed, the change is reflected in the upper layer file.

【符号の説明】[Explanation of symbols]

1 外部ファイル 2 入出力制御部 3 表示部 4 制御部 5 ファイル保存部 6 記憶部 Reference Signs List 1 external file 2 input / output control unit 3 display unit 4 control unit 5 file storage unit 6 storage unit

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 ハードウェア記述言語を用いて階層的に
記述された論理回路の論理設計を行うハードウェア記述
言語階層情報反映方法において、下位階層論理のpor
t情報を抽出し、下位階層論理の接続情報を定義した記
述に基づいてハードウェア記述言語文法に準じて上位階
層論理のファイルを生成することを特徴とするハードウ
ェア記述言語階層情報反映方法。
1. A hardware description language hierarchy information reflection method for designing a logic circuit hierarchically described by using a hardware description language, the method comprising:
A hardware description language hierarchy information reflection method characterized by extracting t information and generating a file of an upper hierarchy logic according to a hardware description language grammar based on a description defining connection information of a lower hierarchy logic.
【請求項2】 前記下位階層論理の接続情報を定義した
記述に接続情報がない場合、下位階層論理のport名
を上位階層論理での接続情報とすることを特徴とする請
求項1記載のハードウェア記述言語階層情報反映方法。
2. The hardware according to claim 1, wherein when there is no connection information in the description defining the connection information of the lower layer logic, the port name of the lower layer logic is used as the connection information of the upper layer logic. How to reflect the hardware description language hierarchy information.
【請求項3】 前記下位階層論理を記述した下位階層フ
ァイルを読み込み、各階層のツリー及びリピート情報を
抽出する手順を有することを特徴とする請求項1記載の
ハードウェア記述言語階層情報反映方法。
3. The method according to claim 1, further comprising a step of reading a lower layer file describing the lower layer logic and extracting a tree and repeat information of each layer.
【請求項4】 前記下位階層論理を記述した下位階層フ
ァイルから生成した上位階層論理を記述した上位階層フ
ァイルの階層間の接続port情報が変更となった場
合、前記抽出した階層port情報と、各階層のツリー
及びリピート情報から該当する前記階層間のport名
を抽出することを特徴とする請求項3記載のハードウェ
ア記述言語階層情報反映方法。
4. When the connection port information between the layers of an upper layer file describing an upper layer logic generated from a lower layer file describing the lower layer logic is changed, the extracted layer port information and 4. The hardware description language hierarchy information reflection method according to claim 3, wherein a port name between the corresponding hierarchies is extracted from the hierarchy tree and the repeat information.
JP2000244844A 2000-08-11 2000-08-11 Method for reflecting hardware description language hierarchy information Pending JP2002056041A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000244844A JP2002056041A (en) 2000-08-11 2000-08-11 Method for reflecting hardware description language hierarchy information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000244844A JP2002056041A (en) 2000-08-11 2000-08-11 Method for reflecting hardware description language hierarchy information

Publications (1)

Publication Number Publication Date
JP2002056041A true JP2002056041A (en) 2002-02-20

Family

ID=18735471

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000244844A Pending JP2002056041A (en) 2000-08-11 2000-08-11 Method for reflecting hardware description language hierarchy information

Country Status (1)

Country Link
JP (1) JP2002056041A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007083380A1 (en) * 2006-01-20 2007-07-26 Fujitsu Limited Hierarchical logical circuit signal connection program, method, and device
JP2008090695A (en) * 2006-10-04 2008-04-17 Fujitsu Ltd Method, apparatus and program for designing integrated circuit
US7698661B2 (en) 2005-03-08 2010-04-13 Panasonic Corporation Circuit automatic generation apparatus and method

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7698661B2 (en) 2005-03-08 2010-04-13 Panasonic Corporation Circuit automatic generation apparatus and method
WO2007083380A1 (en) * 2006-01-20 2007-07-26 Fujitsu Limited Hierarchical logical circuit signal connection program, method, and device
WO2007083747A1 (en) * 2006-01-20 2007-07-26 Fujitsu Limited Signal connecting program, method and device for hiearchical type logical circuit
US7840930B2 (en) 2006-01-20 2010-11-23 Fujitsu Limited Signal connection program, method, and device of hierarchical logic circuit
JP2008090695A (en) * 2006-10-04 2008-04-17 Fujitsu Ltd Method, apparatus and program for designing integrated circuit

Similar Documents

Publication Publication Date Title
JPH03266039A (en) Free format data link processing system
JP2009532805A (en) Virtual view schematic editor
US7975247B2 (en) Method and system for organizing data generated by electronic design automation tools
JP2008217651A (en) Design support device, design support method and program
JP4769687B2 (en) Timing verification method, timing verification apparatus, and timing verification program
JP2002056041A (en) Method for reflecting hardware description language hierarchy information
JPH09293085A (en) Design support device
JPH05150970A (en) Program generation supporting device
JPH11219372A (en) Data categorizing device
JP2002287964A (en) Screen input/output specification designing system, method and program
JP2002108875A (en) Electronic manual unit and electronic manual change method
JP3722854B2 (en) Data editing device
JP2822677B2 (en) Electronic circuit design equipment
JP2969423B2 (en) Communication system between graphics display and text file display in CAD system
JPH05143304A (en) Consistency inspecting system
JP3543404B2 (en) Digital circuit input device
JPS6386021A (en) Screen control method
JPH01220073A (en) Method and device for design aid
JP2004030179A (en) Reference device for schema information
JPH06231205A (en) Macro-connecting system for state transition diagram
JPH0442371A (en) Logic simulation method
JPH0778195A (en) Data updating system in circuit design cad
JPH09179761A (en) Data base management system and its method
JPH05190666A (en) Layout hierarchy generating apparatus
JPS63254566A (en) Development system for hierarchical circuit descriptive language