JPH0855143A - Vhdl simulator - Google Patents

Vhdl simulator

Info

Publication number
JPH0855143A
JPH0855143A JP6210696A JP21069694A JPH0855143A JP H0855143 A JPH0855143 A JP H0855143A JP 6210696 A JP6210696 A JP 6210696A JP 21069694 A JP21069694 A JP 21069694A JP H0855143 A JPH0855143 A JP H0855143A
Authority
JP
Japan
Prior art keywords
input
signal
output
model
vhdl
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.)
Granted
Application number
JP6210696A
Other languages
Japanese (ja)
Other versions
JP2773655B2 (en
Inventor
Shigeki Sakai
茂樹 堺
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.)
NEC Corp
Original Assignee
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP6210696A priority Critical patent/JP2773655B2/en
Publication of JPH0855143A publication Critical patent/JPH0855143A/en
Application granted granted Critical
Publication of JP2773655B2 publication Critical patent/JP2773655B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Abstract

PURPOSE:To simulate a VHDL model which includes a two-way signal in itself by generating a model wherein the two-way signal is divided into an input dedicated signal and an output dedicated signal and outputting a simulation result from the output dedicated signal when the output dedicated signal is active. CONSTITUTION:In a VHDL simulator, a VHDL model A8 which has the two- way signal or two-way terminal is divided into the input dedicated signal and output dedicated signal. On the basis of test pattern A7 input information and a VHDL model A8, a two-way signal input/output mode deciding function A4 decides the input/output mode of the two-way signal; and an input test pattern is extracted and passed as the input dedicated signal to a simulation part in input mode and the simulation result is outputted as an output dedicated signal in output mode. Consequently, the design restrictions of the VHDL model that the control signal of the two-way signal should be led out of the model are made unnecessary.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、双方向信号を有するV
HDL(HSIC ardware escription anguage)
モデルに対するシミュレーションを実行する際に有用
な、VHDLシミュレータに関する。
FIELD OF THE INVENTION The present invention relates to a V with bidirectional signals.
HDL (V HSIC H ardware D escription L anguage)
The present invention relates to a VHDL simulator that is useful when performing a simulation on a model.

【0002】[0002]

【従来の技術】ハードウェアをRTL(register trans
fer level)記述あるいは動作レベル(behavioral leve
l)で記述する専用言語であるVHDLにより記述され
た論理回路をシミュレーションするVHDLシミュレー
タの従来の構成は、例えば図5に示すように、入力VH
DL記述の構文解析をする構文解析機能E1、解析結果
のVHDLモデルをCPUで判読可能なコードに変換す
るコード変換機能E2、変換されたコードを解釈しVH
DLモデル内に記述された動作をシミュレーションする
シミュレーション機能E3、シミュレーション結果を出
力する出力機能E4を有している。なお、VHDLの言
語仕様は例えばIEEE1076として標準化されている。
2. Description of the Related Art RTL (register trans
fer level) description or behavior level (behavioral leve
The conventional configuration of a VHDL simulator for simulating a logic circuit written in VHDL, which is a dedicated language described in l), is shown in FIG.
A parsing function E1 for parsing the DL description, a code conversion function E2 for converting the VHDL model of the analysis result into a code readable by the CPU, and a VH for interpreting the converted code.
It has a simulation function E3 for simulating the operation described in the DL model and an output function E4 for outputting the simulation result. The VHDL language specification is standardized as, for example, IEEE1076.

【0003】[0003]

【発明が解決しようとする課題】前記従来のVHDLシ
ミュレータにおいて、前記した各機能を用いてVHDL
モデル内に存在する双方向信号を扱う場合、該双方向信
号の入出力モードを制御するコントロール信号の値をモ
デル外部から参照しなければならないことになる。
In the conventional VHDL simulator described above, the VHDL using each of the functions described above is used.
When handling a bidirectional signal existing in the model, the value of the control signal for controlling the input / output mode of the bidirectional signal must be referenced from outside the model.

【0004】すなわち、VHDLモデル内に存在する双
方向信号の入出力モードを判定し、双方向信号に対して
テストパターンを与えるか、又はシミュレーション結果
を出力するように制御する場合、VHDLモデル内に存
在する双方向信号の入出力モードを制御するコントロー
ル信号の値をVHDLモデル外部から参照しなければな
らないことになる。
That is, when the input / output mode of the bidirectional signal existing in the VHDL model is determined and a control is given to the bidirectional signal or control is performed so as to output the simulation result, the control is performed in the VHDL model. The value of the control signal for controlling the input / output mode of the existing bidirectional signal must be referenced from outside the VHDL model.

【0005】しかしながら、VHDL記述仕様上、VH
DLモデル内部に存在する信号値をモデル外部から参照
することはできないという制約条件が設けられており、
このため、VHDLモデル内に存在する双方向信号の入
出力モードを制御するコントロール信号をVHDLモデ
ル外まで引き出さなければならないという設計上の制約
が課せられることになる。
However, according to the VHDL description specification, VH
There is a constraint that the signal value existing inside the DL model cannot be referenced from outside the model.
Therefore, there is a design constraint that the control signal for controlling the input / output mode of the bidirectional signal existing in the VHDL model has to be extracted to the outside of the VHDL model.

【0006】そして、前記設計上の制約が回路設計に際
して容認されない場合、双方向信号を含むVHDLモデ
ルをシミュレーションすることは不可能であった。
If the above design restrictions are not accepted in circuit design, it is impossible to simulate a VHDL model including bidirectional signals.

【0007】従って、本発明は、前記問題点を解消し、
モデル内に双方向信号を含むVHDLモデルのシミュレ
ーションを可能とするVHDLシミュレータを提供する
ことを目的とする。
Therefore, the present invention solves the above problems,
An object is to provide a VHDL simulator that enables simulation of a VHDL model including bidirectional signals in the model.

【0008】[0008]

【課題を解決するための手段】前記目的を達成するため
に、本発明は、入力されたVHDLモデル内に双方向信
号を検出した場合に、該双方向信号を入力専用信号と出
力専用信号に分割したモデルを生成し、該モデルと入力
されたテストパターン情報に基づき、前記双方向信号に
対して前記入力専用信号がアクティブの時には前記入力
専用信号にテストパターンを入力し、前記出力専用信号
がアクティブの時には前記出力専用信号からシミュレー
ション結果を出力する、ように構成されたVHDLシミ
ュレータを提供する。
In order to achieve the above object, the present invention, when a bidirectional signal is detected in an input VHDL model, converts the bidirectional signal into an input dedicated signal and an output dedicated signal. A divided model is generated, and a test pattern is input to the input-only signal when the input-only signal is active for the bidirectional signal based on the model and the input test pattern information. There is provided a VHDL simulator configured to output a simulation result from the output-only signal when active.

【0009】また、本発明のVHDLシミュレータは、
入力されたVHDLモデルに対して構文解析を行う構文
解析手段と、前記構文解析手段にて解析された前記VH
DLモデルをCPUで判読可能なコードに変換するコー
ド変換手段と、変換されたコードを解釈し前記VHDL
モデルにて記述された動作をシミュレーションするシミ
ュレーション手段と、を備え、更に、前記入力されたV
HDLモデル内に双方向信号が存在する場合に該双方向
信号がシミュレーション現在時刻時において入力信号受
付可能状態であるか又は信号値出力状態であるかを判定
する双方向信号入出力モード判定手段と、前記双方向信
号入出力モード判定手段による入出力モードの判定結果
が入力信号受付可能状態である場合入力されたテストパ
ターンを前記双方向信号に与えるテストパターン入力手
段と、前記双方向信号入出力モード判定手段による入出
力モードの判定結果が信号出力状態である場合前記双方
向信号のシミュレーション結果をファイルに出力する出
力手段と、を有することを特徴とするものである。
Also, the VHDL simulator of the present invention is
Syntax analysis means for performing syntax analysis on the input VHDL model, and the VH analyzed by the syntax analysis means
Code conversion means for converting the DL model into a code readable by the CPU, and the VHDL for interpreting the converted code.
A simulation means for simulating the operation described in the model, and further, the input V
A bidirectional signal input / output mode determination means for determining, when a bidirectional signal exists in the HDL model, whether the bidirectional signal is in an input signal receivable state or a signal value output state at the current simulation time. A test pattern inputting means for giving an input test pattern to the bidirectional signal when the input / output mode judgment result of the bidirectional signal input / output mode judging means indicates that the input signal can be received; And an output unit for outputting the simulation result of the bidirectional signal to a file when the determination result of the input / output mode by the mode determination unit is a signal output state.

【0010】本発明のVHDLシミュレータにおいて
は、好ましくは、コード変換手段は、VHDLモデルの
変換において前記双方向信号を入力専用信号と出力専用
信号に分割したモデルのコードを記憶手段に登録するこ
とを特徴としている。
In the VHDL simulator of the present invention, preferably, the code conversion means registers the code of the model obtained by dividing the bidirectional signal into an input-only signal and an output-only signal in the storage means in the conversion of the VHDL model. It has a feature.

【0011】また、本発明のVHDLシミュレータにお
いては、好ましくは、テストパターンを入力し該テスト
パターン情報に基づき双方向信号を検出した際に、双方
向信号名を出力するテストパターン入力手段を備えてい
る。
Further, the VHDL simulator of the present invention preferably comprises a test pattern input means for outputting a bidirectional signal name when a test pattern is input and a bidirectional signal is detected based on the test pattern information. There is.

【0012】さらに、本発明のVHDLシミュレータに
おいては、好ましくは、双方向信号入出力モード判定手
段は、前記テストパターン入力手段から出力された双方
向信号名を前記コード変換手段により前記記憶手段に登
録されたVHDLモデルのコード内で探索する双方向信
号探索手段を備えている。
Further, in the VHDL simulator of the present invention, preferably, the bidirectional signal input / output mode determination means registers the bidirectional signal name output from the test pattern input means in the storage means by the code conversion means. Bidirectional signal searching means for searching in the code of the VHDL model is provided.

【0013】さらにまた、本発明のVHDLシミュレー
タにおいては、好ましくは、双方向信号入出力モード判
定手段が、前記記憶手段に記録されたモデルとテストパ
ターン入力手段から入力されたテストパターン情報に基
づき、前記分割された入力専用信号がアクティブの時に
は前記双方向信号を入力モードと判定し、前記分割され
た出力専用信号がアクティブの時には前記双方向信号を
出力モードと判定することを特徴とするものである。
Further, in the VHDL simulator of the present invention, preferably, the bidirectional signal input / output mode determination means is based on the model recorded in the storage means and the test pattern information input from the test pattern input means. When the divided input-only signal is active, the bidirectional signal is determined as an input mode, and when the divided output-only signal is active, the bidirectional signal is determined as an output mode. is there.

【0014】そして、本発明のVHDLシミュレータ
は、好適な態様として、入力されたVHDLモデルに対
して構文解析を行う構文解析手段と、前記構文解析手段
にて解析された前記VHDLモデルをCPUで判読可能
なコードに変換するコード変換手段であって、前記VH
DLモデル内の双方向信号を入力専用信号と出力専用信
号に分割したモデルに変換するコード変換手段と、変換
されたコードを解釈し前記VHDLモデルにて記述され
た動作をシミュレーションするシミュレーション手段
と、テストパターンを入力し、入力されたテストパター
ン情報に基づき双方向信号を検出した際に、少なくとも
双方向信号名を出力するテストパターン入力手段と、前
記テストパターン入力手段から出力された前記双方向信
号名に基づき前記コード変換手段により出力されるVH
DLモデルのコードについて双方向信号を探索する双方
向信号探索手段と、前記双方向信号探索手段により見い
出された前記VHDLモデル内の双方向信号であって、
前記入力専用信号と出力専用信号に分割された前記双方
向信号に対して、前記テストパターン情報に基づき、前
記入力専用信号がアクティブの時には入力モードと判定
し、前記出力専用信号がアクティブの時には入力モード
と判定する入出力モード判定手段と、前記入出力モード
判定手段による入出力モードの判定結果が入力信号受付
可能状態である場合前記テストパターンを前記双方向信
号に与えるテストパターン入力手段と、前記入出力モー
ド判定手段による入出力モードの判定結果が信号出力状
態である場合前記双方向信号のシミュレーション結果を
ファイルに出力する出力手段と、を有することを特徴と
するものである。
The VHDL simulator of the present invention, as a preferred mode, is a syntactic analysis means for performing syntactic analysis on the input VHDL model, and the CPU analyzes the VHDL model analyzed by the syntactic analysis means. A code converting means for converting into a possible code, said VH
Code conversion means for converting a bidirectional signal in the DL model into a model in which it is divided into an input-only signal and an output-only signal, and a simulation means for interpreting the converted code and simulating the operation described in the VHDL model, Test pattern input means for inputting a test pattern and outputting at least a bidirectional signal name when a bidirectional signal is detected based on the input test pattern information, and the bidirectional signal output from the test pattern input means VH output by the code conversion means based on the name
A bidirectional signal searching means for searching a bidirectional signal for the code of the DL model, and a bidirectional signal in the VHDL model found by the bidirectional signal searching means,
For the bidirectional signal divided into the input-only signal and the output-only signal, based on the test pattern information, when the input-only signal is active, the input mode is determined, and when the output-only signal is active, the input mode is input. Input / output mode determination means for determining the mode, test pattern input means for applying the test pattern to the bidirectional signal when the input / output mode determination result by the input / output mode determination means indicates that the input signal can be received, Output means for outputting the simulation result of the bidirectional signal to a file when the input / output mode determination result by the entry output mode determination means is a signal output state.

【0015】[0015]

【作用】本発明によれば、双方向信号又は双方向端子を
有するVHDLモデルに対して、VHDLシミュレータ
内部で、入力専用信号と出力専用信号に分割し、テスト
パターン入力情報とVHDLモデルに基づき、双方向信
号の入力/出力モードを判定し、入力モードの際には入
力テストパターンを抽出して入力専用信号としてシミュ
レーション部に渡し、出力モードの際にはシミュレーシ
ョン結果を出力専用信号として出力することにより、双
方向信号のコントロール信号をモデル外部に引き出さな
ければいけないというVHDLモデルの設計制約を不要
としている。
According to the present invention, a VHDL model having a bidirectional signal or a bidirectional terminal is divided into an input-only signal and an output-only signal inside the VHDL simulator, and based on the test pattern input information and the VHDL model, Determine the input / output mode of the bidirectional signal, extract the input test pattern in the input mode and pass it to the simulation section as the input-only signal, and output the simulation result as the output-only signal in the output mode. Therefore, the design constraint of the VHDL model that the control signal of the bidirectional signal has to be extracted outside the model is unnecessary.

【0016】[0016]

【実施例】以下、本発明について図面を参照して説明す
る。
DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will be described below with reference to the drawings.

【0017】図1に、本発明の一実施例の構成を示す。
図1を参照して、本実施例は、テストパターンA7を入
力するテストパターン入力機能A1、入力VHDL記述
の構文解析をする構文解析機能A2、解析結果のVHD
LモデルをCPUで判読可能なコードに変換生成するコ
ード生成機能A3、双方向信号の入力/出力モードを判
定する双方向信号入出力モード判定機能A4、双方向信
号入出力モード判定機能A4の判定結果に基づき、VH
DLモデル内に記述された動作をシミュレーションする
VHDLシミュレータ機能A5、シミュレーション結果
を出力する出力機能A6から構成されている。
FIG. 1 shows the configuration of an embodiment of the present invention.
With reference to FIG. 1, in the present embodiment, a test pattern input function A1 for inputting a test pattern A7, a parsing function A2 for parsing an input VHDL description, and a VHD of an analysis result.
A code generation function A3 for converting the L model into a code readable by the CPU and generating it, a bidirectional signal input / output mode determination function A4 for determining the input / output mode of the bidirectional signal, and a determination for the bidirectional signal input / output mode determination function A4 Based on the results, VH
It is composed of a VHDL simulator function A5 for simulating the operation described in the DL model and an output function A6 for outputting the simulation result.

【0018】図2は、図1に示す本実施例の構成におけ
る処理の詳細を示す流れ図である。
FIG. 2 is a flow chart showing details of the processing in the configuration of this embodiment shown in FIG.

【0019】図2を参照して、テストパターン入力機能
A1は、テストパターン解釈部B1、命令解釈部B2、
テストパターン適用部B3を有している。
Referring to FIG. 2, the test pattern input function A1 includes a test pattern interpretation unit B1, an instruction interpretation unit B2,
It has a test pattern application unit B3.

【0020】また、構文解析機能A2は、VHDLモデ
ルの構文解釈部B4を有し、コード生成機能A3は、コ
ード変換部B5を有している。
The syntax analysis function A2 has a VHDL model syntax interpretation unit B4, and the code generation function A3 has a code conversion unit B5.

【0021】そして、双方向信号入出力モード判定機能
A4は、双方向信号サーチ部B6、入出力モード判定部
B7を有している。さらに、VHDLシミュレータ機能
A5は、シミュレーション部B8を有し、出力機能A6
は、命令解釈部B9と出力部B10とを有している。
The bidirectional signal input / output mode determination function A4 has a bidirectional signal search section B6 and an input / output mode determination section B7. Further, the VHDL simulator function A5 has a simulation unit B8, and an output function A6.
Has an instruction interpretation unit B9 and an output unit B10.

【0022】図3は、双方向信号C2と双方向信号C2
に対するコントロール信号C1を有する入力VHDLモ
デルの一例を説明するための図である。
FIG. 3 shows the bidirectional signal C2 and the bidirectional signal C2.
FIG. 6 is a diagram for explaining an example of an input VHDL model having a control signal C1 with respect to FIG.

【0023】図4は、図3の入力VHDLモデル例に対
して、図1に示す構文解釈機能A2、コード生成機能A
3を適用した後にメモリB14(図2参照)上に展開さ
れた双方向信号を有するモデルを説明するための図であ
る。
FIG. 4 shows a syntax interpretation function A2 and a code generation function A shown in FIG. 1 for the input VHDL model example shown in FIG.
3 is a diagram for explaining a model having a bidirectional signal expanded on a memory B14 (see FIG. 2) after applying No. 3; FIG.

【0024】次に、本実施例の動作について図面を参照
して説明する。
Next, the operation of this embodiment will be described with reference to the drawings.

【0025】まず、図3に示す双方向信号C2を有する
VHDLモデルを構文解釈部B4に入力し、コード変換
部B5においてCPUが解釈可能なコードに変換し、変
換過程において、双方向信号C2に対する信号を、図4
に示す入力専用信号D2、出力専用信号D3に分割して
メモリB14に登録する。
First, the VHDL model having the bidirectional signal C2 shown in FIG. 3 is input to the syntax interpreting unit B4 and converted into a code which can be interpreted by the CPU in the code converting unit B5. The signal is shown in Figure 4.
The input dedicated signal D2 and the output dedicated signal D3 are divided and registered in the memory B14.

【0026】テストパターン解釈部B1は、入力テスト
パターンB12中に定義されている信号名、信号属性、
信号名に対する信号値等のテストパターン情報を読み込
んでメモリB13に登録し、読み込んだ情報中に双方向
信号C2に対する情報が含まれていた場合、双方向信号
名を双方向信号サーチ部B6に伝達する。なお、テスト
パターン情報は、イベント駆動型シミュレータではイベ
ントテーブルにて与えられる。
The test pattern interpretation unit B1 is provided with a signal name, a signal attribute, and a signal name defined in the input test pattern B12.
When the test pattern information such as the signal value for the signal name is read and registered in the memory B13 and the read information includes the information for the bidirectional signal C2, the bidirectional signal name is transmitted to the bidirectional signal search unit B6. To do. The test pattern information is given in the event table in the event-driven simulator.

【0027】双方向信号サーチ部B6は前述したメモリ
B14に登録されたモデル中から双方向信号C2に対す
る入力専用信号D2の信号情報と出力専用信号D3の信
号情報を抽出して、入出力モード判定部B7に抽出した
信号情報を渡す。
The bidirectional signal search section B6 extracts the signal information of the input-only signal D2 and the signal information of the output-only signal D3 for the bidirectional signal C2 from the model registered in the memory B14, and determines the input / output mode. The extracted signal information is passed to the section B7.

【0028】入出力モード判定部B7では、入力専用信
号D2と出力専用信号D3に対する信号情報の内容から
双方向信号C2に対する入出力モードの判定を行い、判
定結果を命令解釈部B2、命令解釈部B9に伝達する。
The input / output mode determination unit B7 determines the input / output mode for the bidirectional signal C2 from the contents of the signal information for the input dedicated signal D2 and the output dedicated signal D3, and the determination result is the instruction interpretation unit B2, the instruction interpretation unit. Transmit to B9.

【0029】より詳細には、入出力モード判定部B7に
おいて、入力専用信号D2に対するテストパターンがア
クティブのとき双方向信号C2が入力モードであると判
定し、出力専用信号D3に対するテストパターンがアク
ティブのとき双方向信号C2が出力モードであると判定
する。なお、テストパターンは通常1、0、X(不
定)、Z(高インピーダンス)等で表わされる。
More specifically, the input / output mode determination section B7 determines that the bidirectional signal C2 is in the input mode when the test pattern for the input-only signal D2 is active, and the test pattern for the output-only signal D3 is active. At this time, it is determined that the bidirectional signal C2 is in the output mode. The test pattern is usually represented by 1, 0, X (indefinite), Z (high impedance), or the like.

【0030】入出力モード判定部B7における判定結果
が、入力モードに対する判定であった場合、命令解釈部
B2は、テストパターン適用部B3に対してメモリB1
3からテストパターンを抽出し、シミュレーション部B
8にテストパターンを渡す命令を出力する。
When the result of the judgment by the input / output mode judging unit B7 is the judgment for the input mode, the instruction interpreting unit B2 instructs the test pattern applying unit B3 to the memory B1.
Test pattern is extracted from 3 and simulation part B
The instruction to pass the test pattern to 8 is output.

【0031】入出力モード判定部B7における判定結果
が、出力モードに対する判定であった場合、命令解釈部
B9は、シミュレーション部B8においてシミュレーシ
ョンした結果を格納しているメモリB15からシミュレ
ーション結果を抽出して該シミュレーション結果に出力
するように出力部B10に命令を伝達してシミュレーシ
ョン出力結果B16を得る。
When the determination result in the input / output mode determination unit B7 is the determination for the output mode, the instruction interpretation unit B9 extracts the simulation result from the memory B15 storing the simulation result in the simulation unit B8. A command is transmitted to the output unit B10 so as to output the simulation result, and the simulation output result B16 is obtained.

【0032】以上説明したように、本実施例によれば、
双方向信号又は双方向端子を有するVHDLモデルに対
して、VHDLシミュレータ内部で、入力専用信号と出
力専用信号に分割し、テストパターン入力とVHDLモ
デルに基づき、双方向信号の入力/出力モードを判定
し、入力モードの際には入力テストパターンを抽出して
入力信号としてシミュレーション部に渡し、出力モード
の際にはシミュレーション結果を出力専用信号から出力
することにより、双方向信号のコントロール信号をモデ
ル外部に引き出すことなくシミュレーションが行なえ、
双方向信号のコントロール信号をモデル外部に引き出さ
なければならないという設計制約をVHDLモデルに対
して課すことを不要としている
As described above, according to this embodiment,
A VHDL model with bidirectional signals or bidirectional terminals is divided into an input-only signal and an output-only signal inside the VHDL simulator, and the input / output mode of the bidirectional signal is determined based on the test pattern input and the VHDL model. However, in the input mode, the input test pattern is extracted and passed as an input signal to the simulation section, and in the output mode, the simulation result is output from the output-only signal, so that the bidirectional control signal is output from the model outside. Simulation can be performed without pulling out
It is not necessary to impose a design constraint on the VHDL model that a control signal of a bidirectional signal must be extracted outside the model.

【0033】[0033]

【発明の効果】以上説明したように、本発明によれば、
双方向信号を有するVHDLモデルに対してコントロー
ル信号をモデル外部に引き出さなければいけないという
設計制約をVHDLモデルに対して課すことが不要とさ
れ、双方向信号に対してテストパターンの入力、シミュ
レーション結果の出力が行える。
As described above, according to the present invention,
It is not necessary to impose on the VHDL model a design constraint that the control signal has to be drawn out of the model for the VHDL model having bidirectional signals. Can output.

【0034】このため、本発明によれば、従来、回路設
計上、上記設計制約が容認されない場合、双方向信号を
含むVHDLモデルをシミュレーションすることが不可
能であった回路のVHDLモデル化、VHDLシミュレ
ーションの実行を可能とするという効果を有する。
Therefore, according to the present invention, conventionally, when the above design constraint is not allowed in the circuit design, it is impossible to simulate a VHDL model including a bidirectional signal. This has the effect of enabling the execution of simulation.

【0035】本発明においては、請求項3ないし6に規
定される好適な態様を備えた構成によっても同様に上記
効果を奏すると共に、さらに請求項7に好ましい構成が
規定されるVHDLシミュレータによっても上記効果を
奏するものであり、VHDLモデルによる回路シミュレ
ーションの適用範囲を拡大し、大規模論理LSI設計等
における設計の効率を大幅に向上するものである。
According to the present invention, the above-mentioned effects can be obtained similarly by the configuration having the preferable modes defined in claims 3 to 6, and the VHDL simulator defined in claim 7 can also provide the above-mentioned effect. This is effective, and the range of application of the circuit simulation by the VHDL model is expanded to significantly improve the design efficiency in large-scale logic LSI design and the like.

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

【図1】本発明の一実施例の構成を示すブロック図であ
る。
FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention.

【図2】本発明に一実施例における処理の詳細を示した
流れ図である。
FIG. 2 is a flowchart showing details of processing according to an embodiment of the present invention.

【図3】入力VHDLモデル例を示す図である。FIG. 3 is a diagram showing an example of an input VHDL model.

【図4】図3に示す入力VHDLモデルに対して本発明
の一実施例を適用した後のメモリ上のモデルである。
FIG. 4 is a model on a memory after applying an embodiment of the present invention to the input VHDL model shown in FIG.

【図5】従来のVHDLシミュレータの構成を示すブロ
ック図である。
FIG. 5 is a block diagram showing a configuration of a conventional VHDL simulator.

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

A1 テストパターン入力機能 A2 構文解析機能 A3 コード生成機能 A4 双方向信号入出力モード判定機能 A5 VHDLシミュレータ機能 A6 出力機能 A7 テストパターン A8 VHDLモデル A9 出力結果 B1 テストパターン解釈部 B2 命令解釈部 B3 テストパターン適用部 B4 構文解釈部 B5 コード変換部 B6 双方向信号サーチ部 B7 入出力モード判定部 B8 シミュレーション部 B9 命令解釈部 B10 出力部 B11 VHDLモデル B12 テストパターン B13、B14、B15 メモリ B16 シミュレーション出力結果 C1 コントロール信号 C2 双方向信号 D2 入力専用信号 D3 出力専用信号 A1 test pattern input function A2 syntax analysis function A3 code generation function A4 bidirectional signal input / output mode determination function A5 VHDL simulator function A6 output function A7 test pattern A8 VHDL model A9 output result B1 test pattern interpretation unit B2 instruction interpretation unit B3 test pattern Application section B4 Syntax interpretation section B5 Code conversion section B6 Bidirectional signal search section B7 Input / output mode determination section B8 Simulation section B9 Instruction interpretation section B10 Output section B11 VHDL model B12 Test pattern B13, B14, B15 Memory B16 Simulation output result C1 control Signal C2 Bidirectional signal D2 Input only signal D3 Output only signal

Claims (7)

【特許請求の範囲】[Claims] 【請求項1】入力されたVHDLモデル内に双方向信号
を検出した場合に、該双方向信号を入力専用信号と出力
専用信号に分割したモデルを生成し、該モデルと入力さ
れたテストパターン情報に基づき、前記双方向信号に対
して前記入力専用信号がアクティブの時には前記入力専
用信号にテストパターンを入力し、前記出力専用信号が
アクティブの時には前記出力専用信号からのシミュレー
ション結果を出力する、ように構成されたVHDLシミ
ュレータ。
1. When a bidirectional signal is detected in an input VHDL model, a model in which the bidirectional signal is divided into an input dedicated signal and an output dedicated signal is generated, and the model and the input test pattern information are generated. Based on the above, a test pattern is input to the input-only signal when the input-only signal is active with respect to the bidirectional signal, and a simulation result from the output-only signal is output when the output-only signal is active. VHDL simulator configured to.
【請求項2】入力されたVHDLモデルに対して構文解
析を行う構文解析手段と、 前記構文解析手段にて解析された前記VHDLモデルを
CPUで判読可能なコードに変換するコード変換手段
と、 変換されたコードを解釈し前記VHDLモデルにて記述
された動作をシミュレーションするシミュレーション手
段と、 を備え、更に、 前記入力されたVHDLモデル内に双方向信号が存在す
る場合に該双方向信号がシミュレーション現在時刻時に
おいて入力信号受付可能状態であるか又は信号値出力状
態であるかを判定する双方向信号入出力モード判定手段
と、 前記双方向信号入出力モード判定手段による入出力モー
ドの判定結果が入力信号受付可能状態である場合入力さ
れたテストパターンを前記双方向信号に与えるテストパ
ターン入力手段と、 前記双方向信号入出力モード判定手段による入出力モー
ドの判定結果が信号出力状態である場合前記双方向信号
のシミュレーション結果をファイルに出力する出力手段
と、 を有することを特徴とするVHDLシミュレータ。
2. Parsing means for parsing an inputted VHDL model; code converting means for converting the VHDL model analyzed by the parsing means into a code readable by a CPU. A simulation means for interpreting the input code and simulating the operation described in the VHDL model, and further, if a bidirectional signal exists in the input VHDL model, the bidirectional signal is simulated. A bidirectional signal input / output mode determination means for determining whether the input signal is in an acceptable state or a signal value output state at time, and the input / output mode determination result by the bidirectional signal input / output mode determination means is input. When the signal can be received, the test pattern inputting means for giving the input test pattern to the bidirectional signal And an output unit for outputting the simulation result of the bidirectional signal to a file when the result of the input / output mode determination by the bidirectional signal input / output mode determination unit is a signal output state. .
【請求項3】前記コード変換手段が、VHDLモデルの
変換において前記双方向信号を入力専用信号と出力専用
信号に分割したモデルのコードを記憶手段に登録するこ
とを特徴とする請求項2記載のVHDLシミュレータ。
3. The code conversion means registers the code of a model obtained by dividing the bidirectional signal into an input-only signal and an output-only signal in the storage means in the conversion of the VHDL model. VHDL simulator.
【請求項4】テストパターンを入力し該テストパターン
情報に基づき双方向信号を検出した際に、双方向信号名
を出力するテストパターン入力手段を備えたことを特徴
とする請求項2記載のVHDLシミュレータ。
4. The VHDL according to claim 2, further comprising a test pattern input means for outputting a bidirectional signal name when a test pattern is input and a bidirectional signal is detected based on the test pattern information. Simulator.
【請求項5】前記双方向信号入出力モード判定手段が、
前記テストパターン入力手段から出力された双方向信号
名を前記コード変換手段により前記記憶手段に登録され
たVHDLモデルのコード内で探索する双方向信号探索
手段を備えたことを特徴とする請求項3記載のVHDL
シミュレータ。
5. The bidirectional signal input / output mode determination means,
The bidirectional signal search means for searching the bidirectional signal name output from the test pattern input means in the code of the VHDL model registered in the storage means by the code conversion means is provided. VHDL described
Simulator.
【請求項6】前記双方向信号入出力モード判定手段が、
前記記憶手段に記録されたモデルと前記テストパターン
入力手段から入力されたテストパターン情報に基づき、
前記分割された入力専用信号がアクティブの時には前記
双方向信号を入力モードと判定し、前記分割された出力
専用信号がアクティブの時には前記双方向信号を出力モ
ードと判定することを特徴とする請求項3記載のVHD
Lシミュレータ。
6. The bidirectional signal input / output mode determination means,
Based on the model recorded in the storage unit and the test pattern information input from the test pattern input unit,
The bidirectional signal is determined as an input mode when the divided input-only signal is active, and the bidirectional signal is determined as an output mode when the divided output-only signal is active. VHD described in 3
L simulator.
【請求項7】入力されたVHDLモデルに対して構文解
析を行う構文解析手段と、 前記構文解析手段にて解析された前記VHDLモデルを
CPUで判読可能なコードに変換するコード変換手段で
あって、前記VHDLモデル内の双方向信号を入力専用
信号と出力専用信号に分割したモデルに変換するコード
変換手段と、 変換されたコードを解釈し前記VHDLモデルにて記述
された動作をシミュレーションするシミュレーション手
段と、 テストパターンを入力し、入力されたテストパターン情
報に基づき双方向信号を検出した際に、少なくとも双方
向信号名を出力するテストパターン入力手段と、 前記テストパターン入力手段から出力された前記双方向
信号名に基づき前記コード変換手段により出力される前
記VHDLモデルのコードについて双方向信号を探索す
る双方向信号探索手段と、 前記双方向信号探索手段により見い出された前記VHD
Lモデル内の双方向信号であって、前記入力専用信号と
出力専用信号に分割された前記双方向信号に対して、前
記テストパターン情報に基づき、前記入力専用信号がア
クティブの時には入力モードと判定し、前記出力専用信
号がアクティブの時には入力モードと判定する入出力モ
ード判定手段と、 前記入出力モード判定手段による入出力モードの判定結
果が入力信号受付可能状態である場合前記テストパター
ンを前記双方向信号に与えるテストパターン入力手段
と、 前記入出力モード判定手段による入出力モードの判定結
果が信号出力状態である場合前記双方向信号のシミュレ
ーション結果をファイルに出力する出力手段と、 を有することを特徴とするVHDLシミュレータ。
7. Parsing means for parsing an input VHDL model, and code conversion means for converting the VHDL model analyzed by the parsing means into a code readable by a CPU. A code conversion means for converting a bidirectional signal in the VHDL model into a model in which an input-only signal and an output-only signal are divided; and a simulation means for interpreting the converted code and simulating the operation described in the VHDL model. A test pattern input means for inputting a test pattern and outputting at least a bidirectional signal name when a bidirectional signal is detected based on the input test pattern information; and both of the test pattern input means output from the test pattern input means. The code of the VHDL model output by the code converting means based on the direction signal name. Bidirectional signal searching means for searching for bidirectional signals, and the VHD found by the bidirectional signal searching means
For the bidirectional signal in the L model, which is divided into the input-only signal and the output-only signal, based on the test pattern information, when the input-only signal is active, it is determined as the input mode However, when the output-only signal is active, the input / output mode determination unit determines the input mode, and when the determination result of the input / output mode by the input / output mode determination unit indicates that the input signal can be accepted A test pattern inputting means for giving a directional signal, and an output means for outputting the simulation result of the bidirectional signal to a file when the input / output mode determining means determines the input / output mode is a signal output state. Characteristic VHDL simulator.
JP6210696A 1994-08-12 1994-08-12 VHDL simulator Expired - Lifetime JP2773655B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6210696A JP2773655B2 (en) 1994-08-12 1994-08-12 VHDL simulator

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6210696A JP2773655B2 (en) 1994-08-12 1994-08-12 VHDL simulator

Publications (2)

Publication Number Publication Date
JPH0855143A true JPH0855143A (en) 1996-02-27
JP2773655B2 JP2773655B2 (en) 1998-07-09

Family

ID=16593590

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6210696A Expired - Lifetime JP2773655B2 (en) 1994-08-12 1994-08-12 VHDL simulator

Country Status (1)

Country Link
JP (1) JP2773655B2 (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05282395A (en) * 1992-03-27 1993-10-29 Nec Corp Bidirectional pin input/output switching method for hardware simulator

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05282395A (en) * 1992-03-27 1993-10-29 Nec Corp Bidirectional pin input/output switching method for hardware simulator

Also Published As

Publication number Publication date
JP2773655B2 (en) 1998-07-09

Similar Documents

Publication Publication Date Title
JP4574047B2 (en) Machine translation apparatus and program for performing translation using translation example dictionary
KR100186869B1 (en) Methodology for deriving executable low-level structural descriptions and valid physical implementations of circuit and system
US9703921B1 (en) Naturally connecting mixed-signal power networks in mixed-signal simulations
US10586003B1 (en) Circuit design using high level synthesis and linked hardware description language libraries
US7769569B2 (en) Method and system for designing a structural level description of an electronic circuit
WO2007078915A2 (en) System and method for generating a plurality of models at different levels of abstraction from a single master model
JPH11513512A (en) Method of manufacturing digital signal processor
CN102480467A (en) SOC (System on a Chip) software and hardware collaborative simulation verification method based on network communication protocol
CN114625349A (en) Front-end page generation method and device, terminal equipment and storage medium
US7496869B1 (en) Method and apparatus for implementing a program language description of a circuit design for an integrated circuit
KR101826828B1 (en) System and method for managing log data
JPH0855143A (en) Vhdl simulator
US8443314B1 (en) Abstraction level-preserving conversion of flip-flop-inferred hardware description language (HDL) to instantiated HDL
US6684372B2 (en) Method, system and computer product to translate electronic schematic files between computer aided design platforms
US6442738B1 (en) RTL back annotator
US7852117B1 (en) Hierarchical interface for IC system
JP2003316845A (en) Function model generating device and function model generating method
US7890911B2 (en) Skeleton generation apparatus and method
US8312420B1 (en) System and method for performing structural templatization
JP2004133896A (en) Patent specification debugging tool and patent specification debugging tool program
JPH0896015A (en) Function simulation and logical synthesis device
JP2001022808A (en) Logic circuit reducing device, method and device for logic simulation
JPH05225277A (en) Design assistance device
JP2946973B2 (en) Description data converter
JPH027171A (en) Logical circuit synthesizing system

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 19980324