JPH07152794A - Logic simulator - Google Patents

Logic simulator

Info

Publication number
JPH07152794A
JPH07152794A JP5297179A JP29717993A JPH07152794A JP H07152794 A JPH07152794 A JP H07152794A JP 5297179 A JP5297179 A JP 5297179A JP 29717993 A JP29717993 A JP 29717993A JP H07152794 A JPH07152794 A JP H07152794A
Authority
JP
Japan
Prior art keywords
information
interruption
simulation
operation information
control means
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
JP5297179A
Other languages
Japanese (ja)
Other versions
JP2606658B2 (en
Inventor
Hitoshi Kurosaka
均 黒坂
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 JP5297179A priority Critical patent/JP2606658B2/en
Publication of JPH07152794A publication Critical patent/JPH07152794A/en
Application granted granted Critical
Publication of JP2606658B2 publication Critical patent/JP2606658B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Abstract

PURPOSE:To interrupt/resume simulation by designating description information when simulation is executed through the use of a hardware description language. CONSTITUTION:A construction information output means 11 outputs construction information (c) on hardware, and an operation information output means 12 outputs operation information (d) on hardware. A line information output means 13 adds line information to operation information (d). An execution control means 14 processes execution information included in the operation information (d). An interruption control means 15 refers to interruption information (e) when the execution control means 14 detects line information on operation information (d), controls the interruption/resumption of simulation, rewrites/refers to interruption information (e) and displays the hardware description language (b) of an interrupted place. A command control means 16 executes the command of a simulator by the instruction of the interruption control means 15. Thus, simulation can be interrupted/resumed.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は論理シミュレータに関
し、特にLSIやコンピュータを構成するボード等の設
計検証時に使用する論理シミュレータに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a logic simulator, and more particularly to a logic simulator used for design verification of a board or the like constituting an LSI or a computer.

【0002】[0002]

【従来の技術】従来の論理シミュレータは、信号の変化
や指定した信号値条件を満たした場合に論理シミュレー
ションの中断を行っていたが、ハードウェア記述言語
(以降HDL)のライン番号指定による中断処理は行っ
ていなかった。このため、指定した信号がHDLのどの
部分で記述されているかを調べるために、シミュレーシ
ョン開始前にHDL中で定義されている信号とHDLの
ライン数との対応をとり、シミュレーション終了後に信
号値とHDLの対応をとり表示を行っていた(特開平2
ー272644号公報 論理シミュレーション結果表示
方式)。
2. Description of the Related Art In a conventional logic simulator, logic simulation is interrupted when a signal change or a specified signal value condition is satisfied. However, interruption processing is performed by specifying a line number in a hardware description language (hereinafter referred to as HDL). Didn't go. Therefore, in order to check in which part of the HDL the specified signal is described, the signal defined in the HDL is associated with the number of lines of the HDL before the simulation is started, and the signal value is obtained after the simulation is completed. The display was made in correspondence with the HDL (Japanese Patent Laid-Open No. Hei 2)
-272644 gazette. Logic simulation result display method).

【0003】[0003]

【発明が解決しようとする課題】上述した従来の方式で
は、HDLのファイル名とライン数の指定によるシミュ
レーションの中断が行えなかった。
In the above-mentioned conventional method, the simulation cannot be interrupted by designating the HDL file name and the number of lines.

【0004】[0004]

【課題を解決するための手段】本発明の論理シミュレー
タは、ハードウェアの構造や動作を表現するHDLを入
力としてシミュレーションを行う論理シミュレータにお
いて、HDLに対して構文解析と意味解析を行った後の
情報を入力とし、ハードウェアの構造を抽出し構造情報
として出力する構造情報出力手段と、HDLに対して構
文解析と意味解析を行った後の情報を入力とし、ハード
ウェアの動作を抽出し動作情報として出力する動作情報
出力手段と、動作情報に対して、対応するHDLのファ
イル名、ライン番号からなるライン情報を追加するライ
ン情報出力手段と、構造情報と動作情報を入力とし、動
作情報に含まれる実行情報とライン情報を処理する実行
制御手段と、実行制御手段が動作情報に含まれるライン
情報を検出した場合、中断情報を参照し、シミュレーシ
ョンの中断および再開の制御と中断情報の書き換えおよ
び参照と中断箇所のHDL表示を行う中断制御手段と、
中断制御手段の命令により、シミュレータのコマンド実
行を行うコマンド制御手段を備える。
The logic simulator of the present invention is a logic simulator that performs simulation by using HDL representing the structure and operation of hardware as an input, after performing syntax analysis and semantic analysis on HDL. Structure information output means for inputting information, extracting the structure of hardware and outputting it as structure information, and inputting information after performing syntax analysis and semantic analysis for HDL, extracting the operation of hardware and operating Operation information output means for outputting as information, line information output means for adding line information consisting of a corresponding HDL file name and line number to the operation information, and structure information and operation information as input Execution control means for processing the included execution information and line information, and when the execution control means detects the line information included in the operation information. And interruption control means for referring to the interruption information, rewriting and reference and HDL Viewing interrupt location and control interruption information simulation suspend and resume,
The command control means is provided for executing the command of the simulator according to the instruction of the interruption control means.

【0005】[0005]

【実施例】次に、本発明の実施例について図面を参照し
て説明する。
Embodiments of the present invention will now be described with reference to the drawings.

【0006】図1は本発明の論理シミュレータの一実施
例を示す構成図である。
FIG. 1 is a block diagram showing an embodiment of the logic simulator of the present invention.

【0007】本実施例の論理シミュレータは、図1に示
すように、HDLbに対して構文解析/意味解析した後
の情報であるHDL解析情報aを入力とし、ハードウェ
アの構造を抽出し構造情報cとして出力する構造情報出
力手段11と、HDL解析情報aを入力とし、ハードウ
ェアの動作を抽出し動作情報dとして出力する動作情報
出力手段12と、動作情報dに対して、対応するHDL
のファイル名、ライン番号を追加するライン情報出力手
段13と、構造情報cと動作情報dを入力とし、動作情
報dに含まれる実行情報を処理する実行制御手段14
と、実行制御手段14が動作情報dに含まれるライン情
報を検出した場合、中断情報eを参照し、シミュレーシ
ョンの中断/再開の制御と中断情報の書き換え/参照と
中断箇所のHDL表示を行う中断制御手段15と、中断
制御手段15の命令により、シミュレータのコマンド実
行を行うコマンド制御手段16から構成される。
As shown in FIG. 1, the logic simulator of this embodiment receives the HDL analysis information a, which is the information after syntax / semantic analysis on HDLb, and extracts the hardware structure to extract the structure information. The structure information output means 11 for outputting as c, the operation information output means 12 for inputting the HDL analysis information a and extracting the operation of the hardware and outputting as operation information d, and the HDL corresponding to the operation information d
Line information output means 13 for adding a file name and a line number, and an execution control means 14 for processing the execution information contained in the operation information d by inputting the structure information c and the operation information d.
When the execution control means 14 detects the line information included in the operation information d, the interruption information e is referred to, the interruption / restart control of the simulation, the rewriting / reference of the interruption information, and the HDL display of the interruption point are performed. The control means 15 and the command control means 16 for executing the command of the simulator according to the instruction of the interruption control means 15.

【0008】図2は構造情報を示す図である。構造情報
は信号値と信号の接続先にある回路の動作を表す動作情
報の識別子を格納している。実行制御手段14は構造情
報から信号値を参照し、信号が変化した場合に接続先の
動作情報を実行することでシミュレーションを行う。
FIG. 2 is a diagram showing structure information. The structure information stores the signal value and the identifier of the operation information indicating the operation of the circuit at the connection destination of the signal. The execution control unit 14 refers to the signal value from the structure information, and executes the operation information of the connection destination when the signal changes to perform the simulation.

【0009】図3は動作情報を示す図である。動作情報
は信号伝搬情報や回路の動作を表す実行情報とHDLの
ファイル名、ライン番号を格納するライン情報を格納し
ている。実行制御手段14は実行情報を読み込むとシミ
ュレーションを実行し、ライン情報を読み込むと中断制
御手段15に制御を渡す。
FIG. 3 is a diagram showing operation information. The operation information includes signal propagation information, execution information indicating the operation of the circuit, HDL file names, and line information for storing line numbers. The execution control means 14 executes the simulation when the execution information is read, and transfers the control to the interruption control means 15 when the line information is read.

【0010】図4は中断情報を示す図である。中断情報
は中断条件と中断条件が有効か無効かを識別するための
中断フラグを格納している。中断制御手段15は中断フ
ラグが有効なものの中からライン情報と一致する中断条
件を検索する。一致するものが見つかればシミュレーシ
ョンを中断する。
FIG. 4 is a diagram showing interruption information. The interruption information stores an interruption condition and an interruption flag for identifying whether the interruption condition is valid or invalid. The interruption control means 15 searches for an interruption condition that matches the line information from among valid interruption flags. If a match is found, the simulation will stop.

【0011】図5は本実施例の論理シミュレータにおけ
る動作の一例を示す流れ図である。シミュレーションを
開始(ステップ51)すると、まず、構造情報を読み込
み(ステップ52)、次に動作情報を1命令づつ読み込
む動作情報読み込み(ステップ53)を行う。動作情報
が実行情報の場合、実行情報に従い信号値の伝搬などの
シミュレーション実行(ステップ55)を行う。シミュ
レーション実行(ステップ55)を終えるとシミュレー
ション終了かどうかの判定を行う(ステップ56)。終
了でない場合は動作情報読み込み(ステップ53)に戻
る。終了の場合はシミュレーションを終了(ステップ5
A)する。動作情報がライン情報の場合、中断情報を参
照しシミュレーション中断の判定を行う(ステップ5
7)。中断しない場合は動作情報読み込み(ステップ5
3)に戻る。中断の場合はコマンド実行(ステップ5
8)を行う。コマンド実行(ステップ58)では信号値
の書き換え/参照、中断している箇所に相当するHDL
部分の表示を行う。シミュレーション再開のコマンドが
実行(ステップ59)されると動作情報読み込み(ステ
ップ53)へ戻る。
FIG. 5 is a flow chart showing an example of the operation in the logic simulator of this embodiment. When the simulation is started (step 51), first, the structural information is read (step 52), and then the operation information is read one instruction at a time (step 53). When the operation information is execution information, simulation execution such as signal value propagation is performed according to the execution information (step 55). When the simulation execution (step 55) is completed, it is determined whether the simulation is completed (step 56). If not completed, the process returns to operation information reading (step 53). If it is finished, the simulation is finished (step 5).
A) do. If the motion information is line information, the interruption information is referred to determine whether the simulation is to be interrupted (step 5).
7). If not interrupted, read operation information (step 5)
Return to 3). Command execution if interrupted (step 5
Perform 8). In command execution (step 58), rewriting / reference of signal value, HDL corresponding to the interrupted part
The part is displayed. When the simulation restart command is executed (step 59), the process returns to the operation information reading (step 53).

【0012】[0012]

【発明の効果】以上説明したように、本発明の論理シミ
ュレータは、HDLのファイル名、ライン数の指定によ
りシミュレーションを中断し、その時点での信号値の参
照や信号値を書き換えを行いシミュレーションを再開で
きることにより、HDLの書き換え時間、HDLの解析
時間およびシミュレーション入力データの生成時間を省
くことができる。
As described above, the logic simulator of the present invention interrupts the simulation by designating the HDL file name and the number of lines, and refers to the signal value at that time or rewrites the signal value to perform the simulation. By being able to restart, the HDL rewriting time, the HDL analysis time, and the simulation input data generation time can be saved.

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

【図1】本発明の論理シミュレータの一実施例を示す構
成図である。
FIG. 1 is a configuration diagram showing an embodiment of a logic simulator of the present invention.

【図2】本実施例の論理シミュレータにおける構造情報
を示す図である。
FIG. 2 is a diagram showing structural information in the logic simulator of the present embodiment.

【図3】本実施例の論理シミュレータにおける動作情報
を示す図である。
FIG. 3 is a diagram showing operation information in the logic simulator of this embodiment.

【図4】本実施例の論理シミュレータにおける中断情報
を示す図である。
FIG. 4 is a diagram showing interruption information in the logic simulator of the present embodiment.

【図5】本実施例の論理シミュレータにおける動作の一
例を示す流れ図である。
FIG. 5 is a flowchart showing an example of the operation of the logic simulator of this embodiment.

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

11 構造情報出力手段 12 動作情報出力手段 13 ライン情報出力手段 14 実行制御手段 15 中断制御手段 16 コマンド制御手段 a HDL解析情報 b HDL c 構造情報 d 動作情報 e 中断情報 11 structure information output means 12 operation information output means 13 line information output means 14 execution control means 15 interruption control means 16 command control means a HDL analysis information b HDL c structure information d operation information e interruption information

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 ハードウェアの構造や動作を表現するハ
ードウェア記述言語を入力としてシミュレーションを行
う論理シミュレータにおいて、 ハードウェア記述言語に対して構文解析と意味解析を行
った後の情報を入力とし、ハードウェアの構造を抽出し
構造情報として出力する構造情報出力手段と、 ハードウェア記述言語に対して構文解析と意味解析を行
った後の情報を入力とし、ハードウェアの動作を抽出し
動作情報として出力する動作情報出力手段と、 動作情報に対して、対応するハードウェア記述言語のフ
ァイル名、ライン番号からなるライン情報を追加するラ
イン情報出力手段と、 構造情報と動作情報を入力とし、動作情報に含まれる実
行情報とライン情報を処理する実行制御手段と、 実行制御手段が動作情報に含まれるライン情報を検出し
た場合、中断情報を参照し、シミュレーションの中断お
よび再開の制御と中断情報の書き換えおよび参照と中断
箇所のハードウェア記述言語表示を行う中断制御手段
と、 中断制御手段の命令により、シミュレータのコマンド実
行を行うコマンド制御手段と、を備えることを特徴とす
る論理シミュレータ。
1. A logic simulator that performs a simulation using a hardware description language that expresses the structure and operation of hardware as input, and inputs information after performing syntax analysis and semantic analysis on the hardware description language, A structure information output means that extracts the hardware structure and outputs it as structure information, and inputs the information after parsing and semantic analysis to the hardware description language, and extracts the hardware operation and outputs it as operation information. Operation information output means for outputting, line information output means for adding line information consisting of a file name and line number of a corresponding hardware description language to the operation information, operation information by inputting structure information and operation information Execution control means for processing the execution information and line information included in the When the information is detected, the interruption information is referred to, the interruption control is performed by controlling the interruption and restart of the simulation, rewriting the interruption information, displaying the hardware description language of the interruption information, and the instruction of the interruption control means. And a command control means for executing the command of (1).
【請求項2】 構造情報を読み込んだ後動作情報を1命
令づつ読み込み、動作情報が実行情報の場合、実行情報
に従いシミュレーション実行を行う。シミュレーション
実行後、シミュレーション終了かどうかの判定を行い、
終了でない場合は前記動作情報読み込みに戻り、終了の
場合はシミュレーションを終了し、動作情報がライン情
報の場合、中断情報を参照しシミュレーション中断の判
定を行い、中断しない場合は前記動作情報読み込みに戻
り、中断の場合はコマンド実行を行い、コマンド実行で
は信号値の書き換えおよび参照と中断している箇所に相
当するハードウェア記述言語部分の表示を行い、シミュ
レーション再開のコマンドが実行されると前記動作情報
読み込みへ戻ることを特徴とする論理シミュレータ。
2. The operation information is read one by one after the structure information is read, and when the operation information is the execution information, the simulation is executed according to the execution information. After executing the simulation, determine whether the simulation is finished,
If it is not finished, return to the operation information reading. If it is finished, the simulation is ended. If the operation information is line information, refer to the interruption information to judge whether the simulation is interrupted. If not interrupted, return to the operation information reading. , In the case of interruption, the command is executed. In the command execution, the signal value is rewritten and referenced, and the hardware description language part corresponding to the interrupted part is displayed. When the command to restart the simulation is executed, the operation information is displayed. A logic simulator characterized by returning to reading.
JP5297179A 1993-11-29 1993-11-29 Logic simulator and control method Expired - Lifetime JP2606658B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5297179A JP2606658B2 (en) 1993-11-29 1993-11-29 Logic simulator and control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5297179A JP2606658B2 (en) 1993-11-29 1993-11-29 Logic simulator and control method

Publications (2)

Publication Number Publication Date
JPH07152794A true JPH07152794A (en) 1995-06-16
JP2606658B2 JP2606658B2 (en) 1997-05-07

Family

ID=17843203

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5297179A Expired - Lifetime JP2606658B2 (en) 1993-11-29 1993-11-29 Logic simulator and control method

Country Status (1)

Country Link
JP (1) JP2606658B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2000052753A1 (en) * 1999-03-04 2000-09-08 Hitachi, Ltd. Semiconductor integrated circuit and method for designing logic integrated circuit comprising the same

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63188268A (en) * 1987-01-31 1988-08-03 Toshiba Corp Design supporting device

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63188268A (en) * 1987-01-31 1988-08-03 Toshiba Corp Design supporting device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2000052753A1 (en) * 1999-03-04 2000-09-08 Hitachi, Ltd. Semiconductor integrated circuit and method for designing logic integrated circuit comprising the same

Also Published As

Publication number Publication date
JP2606658B2 (en) 1997-05-07

Similar Documents

Publication Publication Date Title
US5557774A (en) Method for making test environmental programs
JPH0546697A (en) Logical simulator
JP2003173270A (en) Software debugging device
JPH07152794A (en) Logic simulator
JP3189793B2 (en) System simulator and system simulation method
JPH06131215A (en) Software development supporting method
JPH0934918A (en) Method and apparatus for simulation of digital circuit
JP2982418B2 (en) Functional simulation device
JPH03129465A (en) Assistance information display device
JP2000047779A (en) Help system, help method, and medium
JPH06242933A (en) Program document maintenance device
JP3130421B2 (en) Program analysis method and apparatus
JP2990882B2 (en) Functional simulation device
JPS63131238A (en) Logic simulator
JP2908184B2 (en) Text file editing method and apparatus
JPH05165886A (en) Natural language processor
JPH07175684A (en) Program evaluating system
JPH05181661A (en) General purpose menu system for each user
JPH0668192A (en) Logic simulator and logic simulation method
JPH05210538A (en) Program operation monitor device
JPH0251737A (en) Display system for symbol defining line of assembler program
JPH07141407A (en) Logical simulator and logical simulation method
JPH0540661A (en) Simulator
JPS6172339A (en) Control system for execution and display of program
JPH0689170A (en) Source program analysis method for case 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: 19961224