JPH1027191A - Logic circuit generator - Google Patents
Logic circuit generatorInfo
- Publication number
- JPH1027191A JPH1027191A JP8183618A JP18361896A JPH1027191A JP H1027191 A JPH1027191 A JP H1027191A JP 8183618 A JP8183618 A JP 8183618A JP 18361896 A JP18361896 A JP 18361896A JP H1027191 A JPH1027191 A JP H1027191A
- Authority
- JP
- Japan
- Prior art keywords
- logic circuit
- circuit diagram
- partial
- file
- unit
- 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.)
- Withdrawn
Links
Abstract
(57)【要約】
【課題】 HDL(ハードウエア記述言語)で記述され
たファイルを基にして論理回路図を生成する際に、完全
な記述がなくても一部の指定された部分だけの部分論理
回路図を生成することのできる論理回路生成装置を提供
する。
【解決手段】 キーボード11から「部分回路生成モー
ド」を選択することにより、処理モード判別部12によ
って、部分回路生成部16が起動される。部分回路生成
部16の命令文抽出部16aでは、HDLファイル17
の中から指定された一部分の指定範囲命令文PFが抽出
される。局部信号抽出部16bでは、指定範囲命令文P
F中の入力信号と出力信号とが抽出され、中間言語の変
換された中間ファイルIFが生成される。部分回路生成
部16cでは、抽出された入力信号と出力信号とがすべ
て外部信号であると仮定して中間ファイルIFから部分
論理回路図が生成される。
(57) [Problem] To generate a logic circuit diagram based on a file described in HDL (hardware description language), only a part of a specified part is required without a complete description. Provided is a logic circuit generation device capable of generating a partial logic circuit diagram. SOLUTION: When a "partial circuit generation mode" is selected from a keyboard 11, a processing mode discrimination unit 12 activates a partial circuit generation unit 16. In the statement extractor 16a of the partial circuit generator 16, the HDL file 17
Are extracted from the specified range command PF. In the local signal extraction unit 16b, the specified range statement P
An input signal and an output signal in F are extracted, and an intermediate file IF in which an intermediate language is converted is generated. The partial circuit generation unit 16c generates a partial logic circuit diagram from the intermediate file IF, assuming that the extracted input signal and output signal are all external signals.
Description
【0001】[0001]
【発明の属する技術分野】本発明は、ハードウエア記述
言語(Hardware Description Language、以下、HDLと
いう)で記述された論理回路情報に基づいて、その論理
回路情報と等価な論理動作を行う論理回路図を生成する
CAD(Computer Aided Design)装置等の論理回路生成
装置に関するものである。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a logic circuit diagram for performing a logical operation equivalent to logic circuit information based on logic circuit information described in a hardware description language (HDL). The present invention relates to a logic circuit generation device such as a CAD (Computer Aided Design) device for generating a logic circuit.
【0002】[0002]
【従来の技術】図2は、従来のHDLを使用して論理回
路の設計を行うための論理回路生成装置の一例を示す構
成図である。この論理回路生成装置は、例えば、ワーク
ステーション等のコンピュータを用いて構成されたCA
D装置であり、キーボード1等の入力装置を有してい
る。キーボード1は、論理回路設計を行おうとする設計
者が、論理回路生成装置に対して処理モードの指定やデ
ータ入力等を行うための入力装置であり、この出力側に
処理モード判別部2が接続されている。処理モード判別
部2は、キーボード1から入力された「ファイル入力/
編集モード」、「論理回路生成モード」、「シミュレー
ションモード」等の処理モード指定情報を判別し、該当
する処理機能部を起動するものであり、この出力側にフ
ァイル生成部3、論理回路生成部4、及びシミュレーシ
ョン部5の処理機能部が接続されている。2. Description of the Related Art FIG. 2 is a block diagram showing an example of a conventional logic circuit generator for designing a logic circuit using HDL. This logic circuit generation device is, for example, a CA configured using a computer such as a workstation.
D device, which has an input device such as a keyboard 1. The keyboard 1 is an input device for a designer who designs a logic circuit to specify a processing mode and input data to the logic circuit generating device. Have been. The processing mode determination unit 2 determines whether or not “file input /
Processing mode designation information such as "edit mode", "logic circuit generation mode", and "simulation mode" is determined, and the corresponding processing function unit is started. The file generation unit 3 and the logic circuit generation unit 4 and a processing function unit of the simulation unit 5 are connected.
【0003】ファイル生成部3は、ファイル入力/編集
モード時に起動され、HDLで記述された論理回路情報
を入力し、HDLファイル6を生成するとともに、既に
生成されているHDLファイル6の内容に対して、変更
/追加/削除等の編集を行う機能を有している。論理回
路生成部4は、論理回路生成モード時に起動され、HD
Lファイル6に基づいて論理回路図を生成する機能を有
している。この論理回路生成部4は、HDLファイル6
中に記述された単語を図示されていない単語辞書によっ
て解析する単語解析部4aと、HDLファイル6中の記
述方法が定められた文法に従っているか否かをチェック
する構文解析部4bと、解析された構文に従って等価な
論理回路図を生成する回路図生成部4cとを有してい
る。回路図生成部4cから、回路図ファイル7が出力さ
れるようになっている。シミュレーション部5は、シミ
ュレーションモード時に起動され、回路図ファイル7の
論理回路図に基づいて、この論理回路図上の各入力信号
と各出力信号の状態の関係を求めたり、この論理回路の
動作に伴う遅延時間を算出したりする機能を有してい
る。これらのHDLファイル6、回路図ファイル7、及
びシミュレーション部5は、出力部8に接続されてお
り、各ファイル6,7の内容、及びシミュレーション部
5の結果が、該出力部8を介して表示部9に表示される
構成になっている。A file generation unit 3 is started in a file input / edit mode, inputs logic circuit information described in HDL, generates an HDL file 6, and generates an HDL file 6 based on the contents of the HDL file 6 already generated. And has a function of editing such as change / addition / deletion. The logic circuit generation unit 4 is activated in the logic circuit generation mode,
It has a function of generating a logic circuit diagram based on the L file 6. The logic circuit generation unit 4 includes an HDL file 6
A word analysis unit 4a for analyzing words described therein by a word dictionary (not shown), a syntax analysis unit 4b for checking whether or not a description method in the HDL file 6 conforms to a prescribed grammar; A circuit diagram generator 4c for generating an equivalent logic circuit diagram according to the syntax. The circuit diagram generation unit 4c outputs a circuit diagram file 7. The simulation unit 5 is activated in the simulation mode, and obtains the relationship between the state of each input signal and each output signal on the logic circuit diagram based on the logic circuit diagram of the circuit diagram file 7 and performs the operation of the logic circuit. It has a function to calculate the accompanying delay time. The HDL file 6, the circuit diagram file 7, and the simulation unit 5 are connected to the output unit 8, and the contents of the files 6, 7 and the result of the simulation unit 5 are displayed via the output unit 8. It is configured to be displayed on the unit 9.
【0004】この論理回路設計装置による論理回路設計
は、次のように行われる。まず、設計者は、キーボード
1から、例えば特定のファンクションキーを押すことに
より、「ファイル入力/編集モード」を指定する。処理
モード判別部2がこの指定を検出すると、ファイル作成
部3が起動され、ファイル入力/編集モードに入る。設
計者は、キーボード1を使用してHDLによる論理回路
情報の入力/編集を行う。入力/編集中のHDLファイ
ル6は、出力部8を介して表示部9に表示される。設計
対象となるすべての論理回路情報の入力/編集が終了す
ると、完成したHDLファイル6が作成される。図3
は、HDLで記述されたHDLファイル6の内容の一例
を示す図である。図3のHDLファイル6は、ケーデン
ス社のシミュレーション用言語Verilog−HDL
を使用して記述されたものであり、行L1のモジュール
宣言文から行L5のモジュール終了文までの完全な形式
で記述されている。The logic circuit design by this logic circuit design device is performed as follows. First, the designer specifies “file input / edit mode” by pressing, for example, a specific function key from the keyboard 1. When the processing mode discrimination unit 2 detects this designation, the file creation unit 3 is activated and enters the file input / edit mode. The designer uses the keyboard 1 to input / edit logic circuit information by HDL. The HDL file 6 being input / edited is displayed on the display unit 9 via the output unit 8. When the input / edit of all the logic circuit information to be designed is completed, a completed HDL file 6 is created. FIG.
Is a diagram showing an example of the contents of an HDL file 6 described in HDL. The HDL file 6 in FIG. 3 is a Cadence simulation language Verilog-HDL.
And is described in a complete format from the module declaration statement on line L1 to the module end statement on line L5.
【0005】HDLファイル6の作成が完了すると、設
計者は、次に、キーボード1から「論理回路生成モー
ド」を指定する。処理モード判別部2がこの指定を検出
すると、論理回路生成部4が起動され、論理回路生成モ
ードに入る。論理回路生成部4の単語解析部4aによっ
てHDLファイル6が読み出され、HDLファイル6中
に記述された単語が抽出され、単語辞書と照合されて命
令語や入出力信号等に分類される。この分析結果は、論
理回路図生成処理に適した中間言語に変換されて中間フ
ァイルIFとして構文解析部4bに与えられる。中間フ
ァイルIFは、構文解析部4bによって、シミュレーシ
ョン用言語Verilog−HDLの文法に従って記述
されている否かがチェックされる。構文解析部4bによ
るチェックの結果、誤りがなければ、中間ファイルIF
は回路図生成部4cへ与えられる。回路図生成部4にお
いて、図示されていない部品辞書等が参照されて、中間
ファイルIFに基づいた論理回路図が生成され、回路図
ファイル7として出力される。回路図ファイル7は、出
力部8を介して表示部9に表示される。When the creation of the HDL file 6 is completed, the designer next designates a “logic circuit generation mode” from the keyboard 1. When the processing mode determination unit 2 detects this designation, the logic circuit generation unit 4 is activated, and enters the logic circuit generation mode. The HDL file 6 is read by the word analysis unit 4a of the logic circuit generation unit 4, the words described in the HDL file 6 are extracted, collated with a word dictionary, and classified into command words, input / output signals, and the like. This analysis result is converted into an intermediate language suitable for the logic circuit diagram generation processing, and is provided to the syntax analyzer 4b as an intermediate file IF. The syntax analysis unit 4b checks whether or not the intermediate file IF is described according to the syntax of the simulation language Verilog-HDL. If there is no error as a result of the check by the syntax analysis unit 4b, the intermediate file IF
Is supplied to the circuit diagram generation unit 4c. The circuit diagram generation unit 4 generates a logic circuit diagram based on the intermediate file IF by referring to a component dictionary or the like (not shown) and outputs the circuit diagram file 7. The circuit diagram file 7 is displayed on the display unit 9 via the output unit 8.
【0006】設計者は、表示部9に図面の形式で表示さ
れた回路図ファイル7を見ることにより、設計された論
理回路の構成や規模を知ることができる。更に、設計者
は、キーボード1から「シミュレーションモード」を指
定することにより、設計された論理回路の動作を確認す
ることができる。処理モード判別部2が「シミュレーシ
ョンモード」指定を検出すると、シミュレーション部5
が起動され、シミュレーションモードに入る。設計者
は、論理回路のシミュレーションに必要なパラメータを
キーボード1から入力する。シミュレーション部5にお
いて、入力されたパラメータと、回路図ファイル7から
読み出された論理回路図をもとに、この論理回路の動作
が模擬的に実行される。このシミュレーション結果は、
出力部8を介して表示部9に表示される。The designer can know the configuration and scale of the designed logic circuit by looking at the circuit diagram file 7 displayed on the display unit 9 in the form of a drawing. Further, the designer can confirm the operation of the designed logic circuit by designating the “simulation mode” from the keyboard 1. When the processing mode determination unit 2 detects the “simulation mode” designation, the simulation unit 5
Is started and the simulation mode is entered. The designer inputs parameters necessary for the simulation of the logic circuit from the keyboard 1. The simulation section 5 simulates the operation of the logic circuit based on the input parameters and the logic circuit diagram read from the circuit diagram file 7. The result of this simulation is
The information is displayed on the display unit 9 via the output unit 8.
【0007】[0007]
【発明が解決しようとする課題】しかしながら、従来の
論理回路生成装置では、次のような課題があった。従来
の論理回路生成装置では、構文解析部4bにおいて、H
DLファイル6が一定の文法に従って記述されているか
否かがチェックされ、誤りのない完全な記述の場合にの
み、回路図生成部4cにおいて論理回路図の生成が行わ
れる。ここでいう完全な記述とは、次の(ア)〜(ウ)
のような条件をすべて満たした記述である。 (ア)HDLの文法で決められた宣言文でファイルの開
始と終了が明確に示されていること。 (イ)論理回路情報中の信号名が定義され、かつ、入出
力先が明示されていること。 (ウ)HDLの文法で決められた書式に従って、記述さ
れていること。However, the conventional logic circuit generator has the following problems. In the conventional logic circuit generation device, the syntax analyzer 4b uses H
It is checked whether or not the DL file 6 is described according to a certain grammar, and only in the case of a complete description without errors, the circuit diagram generation unit 4c generates a logic circuit diagram. The complete description here means the following (A) to (C)
It is a description that satisfies all the conditions such as. (A) The start and end of the file must be clearly indicated in the declaration statement determined by the HDL grammar. (A) The signal name in the logic circuit information is defined and the input / output destination is specified. (C) Be described in a format determined by the HDL grammar.
【0008】このため、従来の論理回路生成装置を利用
する設計者は、HDLファイル6を完全に記述した後で
なければ、論理回路図の生成やシミュレーション等によ
る解析を行うことができなかった。しかし、特に大規模
な論理回路設計を行う場合、設計者が論理回路情報を記
述している過程で、一部の論理回路について解析する必
要が生じることがある。このような場合、一部の論理回
路の解析のために、その一部の論理回路だけの新たなH
DLファイルを作成する必要があり、設計能率が低下す
ることがあった。本発明は、前記従来技術が持っていた
課題を解決し、HDLの記述が完全でなくても、指定さ
れた部分の記述だけに基づいて論理回路図の生成が可能
な論理回路生成装置を提供するものである。[0008] For this reason, a designer using a conventional logic circuit generation device cannot perform analysis by generation of a logic circuit diagram, simulation, or the like until the HDL file 6 is completely described. However, particularly when designing a large-scale logic circuit, it may be necessary to analyze some of the logic circuits while the designer is describing the logic circuit information. In such a case, a new H of only some of the logic circuits is used for analysis of some of the logic circuits.
It is necessary to create a DL file, which may reduce design efficiency. The present invention solves the problem of the prior art, and provides a logic circuit generation device capable of generating a logic circuit diagram based only on a description of a specified part even if an HDL description is not complete. Is what you do.
【0009】[0009]
【課題を解決するための手段】前記課題を解決するた
め、本発明は、論理動作とその論理動作に対する入力信
号及び出力信号とからなる複数の命令文を、目的とする
論理処理の順に一定の文法に従って行単位に記述した論
理回路情報を入力し、前記複数の命令文を解析してこの
解析結果に基づき、前記入力信号及び出力信号と前記論
理動作に対応する論理回路との接続を行い、前記目的と
する論理処理を実現する論理回路図を生成する論理回路
生成装置において、次のような手段を設けている。即
ち、本発明の前記論理回路生成装置には、論理回路図中
の一部分の部分論理回路図を作成するために該部分論理
回路図に対応する先頭行と最終行とを指定する指定手段
と、前記論理回路情報の中から、前記先頭行と最終行と
の間に記述された命令文を指定範囲命令文として抽出す
る命令文抽出手段と、前記指定範囲命令文の中に記述さ
れたすべての入力信号と出力信号とを抽出する局部信号
抽出手段と、前記抽出された入力信号と出力信号とを、
すべて外部に接続されている信号とみなして前記指定範
囲命令文に記述された単語解析及び構文解析を行い、こ
の解析結果に基づいて前記部分論理回路図を生成する部
分回路生成手段とが、設けられている。In order to solve the above-mentioned problems, according to the present invention, a plurality of statements composed of a logical operation and an input signal and an output signal for the logical operation are fixed in an order of a target logical processing. Input logic circuit information described in units of rows according to grammar, analyze the plurality of command statements, and based on the analysis result, connect the input signal and output signal to a logic circuit corresponding to the logic operation, The following means is provided in a logic circuit generation device for generating a logic circuit diagram for realizing the target logic processing. That is, the logic circuit generating device of the present invention includes a designation unit that designates a first row and a last row corresponding to the partial logic circuit diagram in order to create a partial logic circuit diagram of a part of the logic circuit diagram; A command sentence extracting means for extracting a command sentence described between the first line and the last line as a specified range command from the logic circuit information; and Local signal extraction means for extracting an input signal and an output signal, and the extracted input signal and output signal,
A partial circuit generating means for performing word analysis and syntax analysis described in the designated range command statement assuming that the signals are all externally connected, and generating the partial logic circuit diagram based on the analysis result; Have been.
【0010】本発明によれば、以上のように論理回路生
成装置を構成したので、次のような作用が行われる。一
定の文法に従って目的とする論理処理の順に行単位に記
述され論理回路情報の中から、一部分の論理回路図を生
成するために先頭行と最終行とが、指定手段によって指
定される。命令文抽出手段によって、論理回路図情報中
の先頭行と最終行とで指定される指定範囲命令文が抽出
される。更に、局部信号抽出手段によって、指定範囲命
令文中に記述されたすべての入力信号と出力信号とが抽
出される。部分回路生成手段では、抽出された入力信号
と出力信号とが、すべて外部に接続されている信号とみ
なされて、その指定範囲命令文に記述された単語解析及
び構文解析が行われ、この解析結果に基づいて部分論理
回路図が生成される。According to the present invention, since the logic circuit generator is configured as described above, the following operation is performed. According to a certain grammar, the first line and the last line are specified by the specifying means in order to generate a part of the logical circuit diagram from the logical circuit information described in the order of the target logical processing in the order of the logical processing. The specified range command specified by the first and last lines in the logic circuit diagram information is extracted by the command extraction unit. Further, all input signals and output signals described in the designated range command are extracted by the local signal extracting means. In the partial circuit generating means, the extracted input signal and output signal are all regarded as signals connected to the outside, and word analysis and syntax analysis described in the specified range statement are performed. A partial logic circuit diagram is generated based on the result.
【0011】[0011]
【発明の実施の形態】図1は、本発明の実施形態を示す
論理回路生成装置の構成図である。この論理回路生成装
置は、例えば、CAD装置であり、入力/指定手段(例
えば、キーボード)11を有している。キーボード11
は、論理回路設計を行おうとする設計者が、論理回路生
成装置に対して処理モードの指定やデータ入力等を行う
ための入力装置である。キーボード11には、処理モー
ド判別部12が接続されている。処理モード判別部12
は、キーボード11から指定された「ファイル入力/編
集モード」、「論理回路生成モード」、「シミュレーシ
ョンモード」、「部分回路生成モード」等の処理モード
指定情報を判別し、該当する処理機能部を起動するもの
である。処理モード判別部12には、ファイル生成部1
3、論理回路生成部14、シミュレーション部15、及
び部分回路生成部16の処理機能部が接続されている。FIG. 1 is a configuration diagram of a logic circuit generation device showing an embodiment of the present invention. This logic circuit generation device is, for example, a CAD device, and has input / designation means (for example, a keyboard) 11. Keyboard 11
Is an input device used by a designer who designs a logic circuit to specify a processing mode and input data to the logic circuit generation device. The processing mode determining unit 12 is connected to the keyboard 11. Processing mode determination unit 12
Determines the processing mode specification information such as “file input / edit mode”, “logic circuit generation mode”, “simulation mode”, and “partial circuit generation mode” specified by the keyboard 11 and determines the corresponding processing function unit. It is something that starts. The processing mode determination unit 12 includes the file generation unit 1
3. The processing function units of the logic circuit generation unit 14, the simulation unit 15, and the partial circuit generation unit 16 are connected.
【0012】ファイル生成部13は、ファイル入力/編
集モード時に起動され、HDLで記述された論理回路情
報を入力し、HDLファイル17を生成するとともに、
既に生成されているHDLファイル17の内容に対し
て、変更/追加/削除等の編集を行う機能を有してい
る。論理回路生成部14は、論理回路生成モード時に起
動され、HDLファイル17に基づいて論理回路図を生
成する機能を有している。論理回路生成部14は、HD
Lファイル17中に記述された単語を図示されていない
単語辞書を参照して解析する単語解析部14aと、HD
Lファイル17中の記述方法が定められた文法に従って
いるか否かをチェックする構文解析部14bと、解析さ
れた構文に従って等価な論理回路図を生成する回路図生
成部14cとを有している。この回路図生成部14cか
ら、回路図ファイル18が出力されるようになってい
る。シミュレーション部15は、シミュレーションモー
ド時に起動され、回路図ファイル18の論理回路図に基
づいて、この論理回路図上の各入力信号の状態と、各出
力信号の状態との関係を求めたり、この論理回路の動作
に伴う遅延時間を算出したりする機能を有している。The file generation unit 13 is activated in the file input / edit mode, inputs logic circuit information described in HDL, generates an HDL file 17, and
It has a function of editing, such as changing / adding / deleting, the contents of the HDL file 17 that has already been generated. The logic circuit generation unit 14 is activated in the logic circuit generation mode, and has a function of generating a logic circuit diagram based on the HDL file 17. The logic circuit generation unit 14
A word analyzer 14a for analyzing words described in the L file 17 with reference to a word dictionary (not shown);
It has a syntax analyzer 14b for checking whether the description method in the L file 17 conforms to a prescribed grammar, and a circuit diagram generator 14c for generating an equivalent logic circuit diagram according to the analyzed syntax. The circuit diagram generation unit 14c outputs a circuit diagram file 18. The simulation unit 15 is activated in the simulation mode, and obtains the relationship between the state of each input signal on the logic circuit diagram and the state of each output signal on the basis of the logic circuit diagram in the circuit diagram file 18. It has a function of calculating a delay time associated with the operation of the circuit.
【0013】部分回路生成部16は、指定された部分の
論理回路図を生成するもので、命令文抽出手段(例え
ば、命令文抽出部)16aと、局部信号抽出手段(例え
ば、局部信号抽出部)16bと、部分回路生成手段(例
えば、部分回路生成部)16cとで構成されている。命
令文抽出部16aは、部分回路生成モード時に起動さ
れ、HDLファイル17中の一部分の部分論理回路図を
生成するために、キーボード11で指定された先頭行と
最終行との間に記述された命令文を抽出する機能を有し
ている。命令文抽出部16aで抽出された命令文は、指
定範囲命令文PFとして、局部信号抽出部16bへ与え
られる。局部信号抽出部16bは、指定範囲命令文PF
中に記述されたすべての入力信号と出力信号を抽出する
とともに、命令文を論理回路図生成処理に適した中間言
語に変換し、中間ファイルIFとして出力する機能を有
している。中間ファイルIFは、部分回路生成部16c
に与えられる。部分回路生成部16cは、中間ファイル
IFに基づいて、抽出された入力信号と出力信号はすべ
て外部に接続されている信号と見なして、単語解析及び
構文解析を行う。更に、部分回路生成部16cは、これ
らの解析結果に基づいて部分論理回路図を生成する機能
を有している。部分論理回路生成部16cから、部分回
路図ファイル19が出力される構成になっている。The partial circuit generator 16 generates a logical circuit diagram of a designated portion, and includes a command sentence extracting means (for example, a command sentence extracting unit) 16a and a local signal extracting means (for example, a local signal extracting unit). ) 16b and a partial circuit generating means (for example, a partial circuit generating unit) 16c. The command sentence extraction unit 16a is started in the partial circuit generation mode, and is described between the first line and the last line specified by the keyboard 11 to generate a partial logical circuit diagram of a part in the HDL file 17. It has a function to extract a command sentence. The command sentence extracted by the command sentence extraction unit 16a is provided to the local signal extraction unit 16b as a designated range command sentence PF. The local signal extraction unit 16b outputs the specified range statement PF
It has a function of extracting all input signals and output signals described therein, converting a command sentence into an intermediate language suitable for logic circuit diagram generation processing, and outputting it as an intermediate file IF. The intermediate file IF is stored in the partial circuit generator 16c.
Given to. The partial circuit generator 16c performs word analysis and syntax analysis on the basis of the intermediate file IF, assuming that all the extracted input signals and output signals are externally connected signals. Further, the partial circuit generation unit 16c has a function of generating a partial logic circuit diagram based on these analysis results. The configuration is such that the partial circuit diagram file 19 is output from the partial logic circuit generation unit 16c.
【0014】これらのシミュレーション部15、HDL
ファイル17、回路図ファイル18、及び部分回路図フ
ァイル19には、シミュレーション結果及びファイルの
内容を出力するための出力部20が接続されている。更
に、出力部20には、出力内容を表示するための表示部
21が接続されている。次に、この論理回路生成装置に
よる部分論理回路図生成時の動作を説明する。まず、設
計者は、キーボード11から、「ファイル入力/編集モ
ード」を指定して、例えば、図3に示すようなHDLフ
ァイル17を作成する。このHDLファイル17の入力
/編集における動作は、図2の従来の論理回路生成装置
によるHDLファイル6の作成時の動作と同様である。
但し、ここで作成されたHDLファイル17において、
部分論理回路図の生成対象とならない部分の記述は、完
全である必要はない。These simulation units 15, HDL
An output unit 20 for outputting the simulation result and the contents of the file is connected to the file 17, the circuit diagram file 18, and the partial circuit diagram file 19. Further, a display unit 21 for displaying output contents is connected to the output unit 20. Next, an operation of the logic circuit generation device when generating a partial logic circuit diagram will be described. First, the designer designates “file input / edit mode” from the keyboard 11 and creates, for example, an HDL file 17 as shown in FIG. The operation in inputting / editing the HDL file 17 is the same as the operation when the HDL file 6 is created by the conventional logic circuit generator of FIG.
However, in the HDL file 17 created here,
The description of the part that is not to be generated in the partial logic circuit diagram need not be complete.
【0015】次に、設計者は、キーボード11から「部
分回路生成モード」を指定する。処理モード判別部12
がこの指定を検出すると、部分回路生成部16の命令文
抽出部16aが起動され、部分回路生成モードに入る。
設計者は、キーボード11から、部分論理回路図を生成
させたいHDLファイル17を指定する。この指定に基
づき、出力部20によって、図3に示すようなHDLフ
ァイル17の内容が表示部21に表示される。設計者
は、キーボード11を使用し、表示部21のカーソルに
よって、生成対象となる部分論理回路図の先頭行(例え
ば、図3の行L2)と最終行(例えば、図3の行L3)
とを指定する。先頭行L2と最終行L3の指定が行われ
ると、命令文抽出部16aにより、図3の行L1,L2
間の命令文が指定範囲命令文PFとして抽出される。抽
出された指定範囲命令文PFは、局部信号抽出部16b
に与えられる。局部信号抽出部16bにおいて、指定範
囲命令文PF中に記述されている単語の中から入力信号
及び出力信号(例えば、CLK,COUNT)が抽出さ
れる。更に、図示されていない単語辞書と照合されて命
令語や入出力信号等に分類され、中間言語による中間フ
ァイルIFに変換される。この中間ファイルIFは、部
分回路生成部16cに与えられる。部分回路生成部16
cでは、与えられた中間ファイルIF中の入力信号と出
力信号とがすべて外部に接続された信号であると解釈さ
れ、中間ファイルIFに基づいて図示されていない部品
辞書等が参照されて、部分論理回路図が生成される。生
成された部分論理回路図は、部分回路図ファイル19と
して出力される。部分回路図ファイル19の内容は、出
力部20を介して表示部21に、例えば図4(a),
(b)のように表示される。Next, the designer designates a “partial circuit generation mode” from the keyboard 11. Processing mode determination unit 12
Detects this designation, the command sentence extraction unit 16a of the partial circuit generation unit 16 is activated and enters the partial circuit generation mode.
The designer specifies, from the keyboard 11, an HDL file 17 for which a partial logic circuit diagram is to be generated. Based on this designation, the contents of the HDL file 17 as shown in FIG. The designer uses the keyboard 11 and moves the cursor of the display unit 21 to the first row (for example, row L2 in FIG. 3) and the last row (for example, row L3 in FIG. 3) of the partial logic circuit diagram to be generated.
And. When the first line L2 and the last line L3 are specified, the instruction statement extracting unit 16a causes the lines L1 and L2 in FIG.
The intervening statement is extracted as a specified range statement PF. The extracted specified range statement PF is transmitted to the local signal extraction unit 16b.
Given to. In the local signal extraction unit 16b, an input signal and an output signal (for example, CLK and COUNT) are extracted from the words described in the specified range command sentence PF. Further, it is collated with a word dictionary (not shown), classified into command words, input / output signals, and the like, and converted into an intermediate file IF in an intermediate language. This intermediate file IF is provided to the partial circuit generator 16c. Partial circuit generator 16
In c, all the input signals and output signals in the given intermediate file IF are interpreted as externally connected signals, and a part dictionary or the like (not shown) is referred to based on the intermediate file IF, and A logic circuit diagram is generated. The generated partial logic circuit diagram is output as a partial circuit diagram file 19. The contents of the partial circuit diagram file 19 are displayed on the display unit 21 via the output unit 20, for example, as shown in FIG.
It is displayed as shown in (b).
【0016】図4(a),(b)は、図1の論理回路生
成装置によって生成された部分論理回路図である。この
うち、図4(a)は、部分回路生成部16で生成された
図3のHDLファイル中の行L2〜L3に対応する部分
論理回路図であり、図4(b)は、指定範囲命令文PF
として、図3のHDLファイルの行L2〜L4を選択し
た場合の部分論理回路図である。なお、「論理回路生成
モード」及び「シミュレーションモード」時における、
論理回路生成部14及びシミュレーション部15の動作
は、それぞれ図2の従来の論理回路生成装置における論
理回路生成部4及びシミュレーション部5の動作と同様
である。この様に、本実施形態の論理回路生成装置は、
部分回路生成部16を有するため、HDLファイル17
中の指定された部分についてのみ、部分論理回路図を生
成することができる。このため、HDLファイル17の
記述が完了する前でも記述した部分だけの部分論理回路
図を生成し、それが意図した通りのものであるか否かを
確認することができるという利点がある。FIGS. 4A and 4B are partial logic circuit diagrams generated by the logic circuit generator of FIG. 4A is a partial logic circuit diagram corresponding to lines L2 to L3 in the HDL file of FIG. 3 generated by the partial circuit generation unit 16, and FIG. Statement PF
FIG. 4 is a partial logic circuit diagram when lines L2 to L4 of the HDL file in FIG. 3 are selected. In addition, in the “logic circuit generation mode” and the “simulation mode”,
The operations of the logic circuit generator 14 and the simulation unit 15 are the same as the operations of the logic circuit generator 4 and the simulation unit 5 in the conventional logic circuit generator of FIG. 2, respectively. As described above, the logic circuit generation device according to the present embodiment includes:
The HDL file 17
A partial logic circuit diagram can be generated only for a designated part in the inside. For this reason, even before the description of the HDL file 17 is completed, there is an advantage that a partial logic circuit diagram of only the described portion can be generated and whether or not it is as intended can be confirmed.
【0017】更に、部分回路生成部16で生成された部
分回路図ファイル19を基にして、シミュレーション部
15によって部分論理回路のシミュレーションを行うこ
とができる。これにより、部分論理回路が設計者の考え
ている通りの機能を有するか否かを調べることができ
る。なお、本発明は、上記実施形態に限定されず、種々
の変形が可能である。この変形例としては、例えば、次
のようなものがある。Furthermore, the simulation of the partial logic circuit can be performed by the simulation unit 15 based on the partial circuit diagram file 19 generated by the partial circuit generation unit 16. This makes it possible to check whether or not the partial logic circuit has a function as expected by the designer. Note that the present invention is not limited to the above embodiment, and various modifications are possible. For example, there are the following modifications.
【0018】(a)図1の論理回路生成装置は、処理モ
ード判別部12、ファイル生成部13等の機能を個別の
処理部として構成されているが、例えば、ワークステー
ション等のコンピュータを用いて、プログラム制御によ
って、これらの機能を実現するような構成にしても良
い。プログラム制御により、図示された機能以外の機能
を容易に追加することが可能になる。 (b)図3のHDLファイル17は、Verilog−
HDLで記述されたファイルであるが、この言語に限る
ことはなく、例えばVHSIC−HDL等の言語を使用
することも可能である。 (c)命令文抽出部16aでは、表示部21に表示され
たHDLファイル17から、部分論理回路生成の対象と
なる先頭行と最終行を指定するためにカーソルを用いて
いるが、カーソルに限定せず、例えば、マウスを用いて
指定したり、行番号をキーボード11から入力する等の
方法で行うことも可能である。(A) In the logic circuit generation device shown in FIG. 1, the functions of the processing mode discriminating unit 12, the file generating unit 13, and the like are configured as individual processing units. Alternatively, the configuration may be such that these functions are realized by program control. By the program control, it is possible to easily add functions other than the illustrated functions. (B) The HDL file 17 of FIG.
Although it is a file described in HDL, it is not limited to this language, and it is also possible to use a language such as VHSIC-HDL. (C) In the statement extractor 16a, the cursor is used to specify the first line and the last line for which the partial logic circuit is to be generated from the HDL file 17 displayed on the display unit 21, but the cursor is limited to the cursor. Instead, for example, it is also possible to use a method such as specifying using a mouse or inputting a line number from the keyboard 11.
【0019】[0019]
【発明の効果】以上詳細に説明したように、本発明によ
れば、HDLによる完全な記述が無い状態でも、一部分
の命令と一部分の入出力信号とから部分論理回路図を生
成する構成になっているので、次の(1)〜(3)のよ
うな効果がある。 (1)HDLによるファイルの記述途中であっても、部
分論理回路図の生成が可能な箇所を指定することによ
り、部分論理回路図を逐次生成することができる。実際
に生成された部分論理回路図を検討することにより、設
計者が考えている機能が妥当なものであるか否かを判断
でき、それ以降のHDLの記述に反映することができ
る。 (2)生成された論理回路をシミュレーションすること
により、論理回路の遅延時間が、期待した範囲内に収ま
るかどうかが判断でき、それ以降の記述に反映すること
ができる。 (3)HDLの記述中に論理回路規模の見積もりができ
るので、HDLの完全な記述を完了する前に、論理回路
の分割をする必要があるかどうかの判断をすることがで
きる。As described above in detail, according to the present invention, a partial logic circuit diagram is generated from a part of instructions and a part of input / output signals even when there is no complete description in HDL. Therefore, there are the following effects (1) to (3). (1) Even when a file is being described in HDL, a partial logic circuit diagram can be sequentially generated by specifying a location where a partial logic circuit diagram can be generated. By examining the actually generated partial logic circuit diagram, it is possible to determine whether or not the function considered by the designer is appropriate, and to reflect it in the HDL description thereafter. (2) By simulating the generated logic circuit, it can be determined whether or not the delay time of the logic circuit falls within an expected range, and this can be reflected in the description thereafter. (3) Since the scale of the logic circuit can be estimated during the description of the HDL, it is possible to determine whether it is necessary to divide the logic circuit before completing the complete description of the HDL.
【図1】本発明の実施形態を示す論理回路生成装置の構
成図である。FIG. 1 is a configuration diagram of a logic circuit generation device according to an embodiment of the present invention.
【図2】従来の論理回路生成装置の構成図である。FIG. 2 is a configuration diagram of a conventional logic circuit generation device.
【図3】HDLファイルの内容の一例を示す図である。FIG. 3 is a diagram illustrating an example of the contents of an HDL file.
【図4】図1の論理回路生成装置によって生成された部
分論理回路図である。FIG. 4 is a partial logic circuit diagram generated by the logic circuit generation device of FIG. 1;
11 キーボード 12 処理モード判別部 13 ファイル生成部 14 論理回路生成部 14a 単語解析部 14b 構文解析部 14c 回路図生成部 15 シミュレーション部 16 部分回路生成部 16a 命令文抽出部 16b 局部信号抽出部 16c 部分回路生成部 17 HDLファイル 18 回路図ファイル 19 部分回路図ファイル 20 出力部 21 表示部 DESCRIPTION OF SYMBOLS 11 Keyboard 12 Processing mode discrimination part 13 File generation part 14 Logic circuit generation part 14a Word analysis part 14b Syntax analysis part 14c Circuit diagram generation part 15 Simulation part 16 Partial circuit generation part 16a Command sentence extraction part 16b Local signal extraction part 16c Partial circuit Generation unit 17 HDL file 18 Circuit diagram file 19 Partial circuit diagram file 20 Output unit 21 Display unit
Claims (1)
号及び出力信号とからなる複数の命令文を、目的とする
論理処理の順に一定の文法に従って行単位に記述した論
理回路情報を入力し、 前記複数の命令文を解析してこの解析結果に基づき、前
記入力信号及び出力信号と前記論理動作に対応する論理
回路との接続を行い、前記目的とする論理処理を実現す
る論理回路図を生成する論理回路生成装置において、 前記論理回路図中の一部分の部分論理回路図を作成する
ために該部分論理回路図に対応する先頭行と最終行とを
指定する指定手段と、 前記論理回路情報の中から、前記先頭行と最終行との間
に記述された命令文を指定範囲命令文として抽出する命
令文抽出手段と、 前記指定範囲命令文の中に記述されたすべての入力信号
と出力信号とを抽出する局部信号抽出手段と、 前記抽出された入力信号と出力信号とを、すべて外部に
接続されている信号とみなして前記指定範囲命令文に記
述された単語解析及び構文解析を行い、この解析結果に
基づいて前記部分論理回路図を生成する部分回路生成手
段とを、 設けたことを特徴とする論理回路生成装置。1. A logic circuit information in which a plurality of command statements composed of a logical operation and an input signal and an output signal for the logical operation are described in units of rows according to a predetermined grammar in the order of a target logical process, and A plurality of command statements are analyzed, and based on the analysis result, the input signal and the output signal are connected to a logic circuit corresponding to the logic operation, and a logic circuit diagram for implementing the target logic processing is generated. In the logic circuit generation device, designating means for designating a first row and a last row corresponding to the partial logic circuit diagram to create a partial logic circuit diagram of a part of the logic circuit diagram; A statement extracting means for extracting a statement described between the first line and the last line as a specified range statement, and all input signals and output signals described in the specified range statement. Local signal extracting means for extracting the input signal and the output signal, and performing word analysis and syntax analysis described in the specified range command statement assuming that all of the extracted input signal and output signal are externally connected signals, A partial circuit generating means for generating the partial logical circuit diagram based on the analysis result.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP8183618A JPH1027191A (en) | 1996-07-12 | 1996-07-12 | Logic circuit generator |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP8183618A JPH1027191A (en) | 1996-07-12 | 1996-07-12 | Logic circuit generator |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH1027191A true JPH1027191A (en) | 1998-01-27 |
Family
ID=16138937
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP8183618A Withdrawn JPH1027191A (en) | 1996-07-12 | 1996-07-12 | Logic circuit generator |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH1027191A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2008009678A (en) * | 2006-06-29 | 2008-01-17 | Fujitsu Ltd | Logic diagram display method, program, and device |
-
1996
- 1996-07-12 JP JP8183618A patent/JPH1027191A/en not_active Withdrawn
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2008009678A (en) * | 2006-06-29 | 2008-01-17 | Fujitsu Ltd | Logic diagram display method, program, and device |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5367468A (en) | Design aid method and design aid apparatus for integrated circuits | |
| JP3372532B2 (en) | Computer-readable recording medium for emotion information extraction method and emotion information extraction program | |
| US6237007B1 (en) | Verification of port list integrity in a hardware description language file | |
| CN120832858A (en) | Chip post-simulation verification acceleration method, system, device and storage medium | |
| JP2004246440A (en) | Morphemic analyzing device, natural language processor, and morphemic analyzing method and program | |
| JPH08212106A (en) | System test support device and system test support method | |
| JP5001190B2 (en) | LSI design verification system, LSI design verification method and program thereof | |
| US6684372B2 (en) | Method, system and computer product to translate electronic schematic files between computer aided design platforms | |
| US6877140B1 (en) | Method and system for generating a schematic representing bus structures | |
| KR102953565B1 (en) | Method and apparatus for generating a domain model | |
| US20240202522A1 (en) | Device and method for generating deep learning model graph and abstract syntax tree for integrated compiler | |
| CN113343628B (en) | Method for automatically generating testbench | |
| JP4387324B2 (en) | Property conversion device | |
| JP2001060216A (en) | Logical equivalence verification device | |
| JPH01287774A (en) | Japanese data input processor | |
| JP2001022808A (en) | Logic circuit reduction device and logic simulation method and device | |
| JP2990882B2 (en) | Functional simulation device | |
| JP2006190085A (en) | Digital circuit modeling method and design method | |
| JPH0916652A (en) | Method and apparatus for analyzing circuit simulation result | |
| JP2773655B2 (en) | VHDL simulator | |
| JPH06251102A (en) | Circuit design method, circuit search method, circuit correction method, and circuit design device | |
| Cyre et al. | A rapid modeling tool for virtual prototypes | |
| JP2000112747A (en) | Equivalence verification device for non-executable statements in program assets | |
| JP2002041286A (en) | Automatic conversion system of source program and method | |
| JPH0844589A (en) | Test item design supporting system |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A300 | Application deemed to be withdrawn because no request for examination was validly filed |
Free format text: JAPANESE INTERMEDIATE CODE: A300 Effective date: 20031007 |