JP2002157290A - Method for clearly showing clock name by hardware description language - Google Patents
Method for clearly showing clock name by hardware description languageInfo
- Publication number
- JP2002157290A JP2002157290A JP2000351353A JP2000351353A JP2002157290A JP 2002157290 A JP2002157290 A JP 2002157290A JP 2000351353 A JP2000351353 A JP 2000351353A JP 2000351353 A JP2000351353 A JP 2000351353A JP 2002157290 A JP2002157290 A JP 2002157290A
- Authority
- JP
- Japan
- Prior art keywords
- flip
- circuit
- flop
- clock
- description language
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Abstract
(57)【要約】 (修正有)
【課題】 ハードウエア記述言語により同期式回路を記
述する場合において、フリップフロップの入力信号の作
成回路に戻らずにセットアップ、ホールドエラーを起こ
さない関係であることを確認することができ、設計時間
の短縮を可能にする。
【解決手段】 先づすべてのフリップフロップセルが選
択されたかを判断する(ステップS1)。すべてのフリ
ップフロップセルが選択されていない場合は、セルの出
力信号にクロック名を付加して(ステップS2)ステッ
プS1に戻る。次に、すべての組み合わせ回路セルを選
択したかを判断し(ステップS3)、に進み、セルの出
力信号にクロック名を付加する(ステップS4)。
(57) [Summary] (Modified) [PROBLEMS] When describing a synchronous circuit in a hardware description language, the relationship must be such that setup and hold errors do not occur without returning to the circuit for creating the input signal of the flip-flop. Can be confirmed, and the design time can be reduced. First, it is determined whether all flip-flop cells have been selected (step S1). If all flip-flop cells have not been selected, a clock name is added to the output signals of the cells (step S2) and the process returns to step S1. Next, it is determined whether all the combinational circuit cells have been selected (step S3), and the process proceeds to add a clock name to the output signal of the cell (step S4).
Description
【0001】[0001]
【発明の産業上の利用分野】本発明は、VHDLなどの
ハードウエア記述言語を用いて、デジタル回路設計を行
うハードウエア記述言語によるクロック名明示方法に関
するものである。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method for specifying a clock name in a hardware description language for designing a digital circuit using a hardware description language such as VHDL.
【0002】[0002]
【従来の技術】近年、ハードウエア記述言語(Hardware
Description Language)と呼ばれる半導体デバイス等
の回路設計のために使用されるプログラミング言語が登
場している。半導体デバイスは、動作設計や論理設計等
の複数の設計工程を経て製造されるが、一度作成した設
計データを、各種の設計工程で、異なる表現で設計が記
述されていると、前工程のデータを活用するために一々
データ変換が必要になっていた。そこでハードウエア記
述言語を用いることで、一度作成した設計データを、各
工程でデータ変換することなく統一的に利用することが
できる。ハードウエア記述言語のなかでも代表的なもの
として、VHDL(VHSIC Hardware Description Langu
age)等がある。2. Description of the Related Art In recent years, hardware description languages (Hardware Description Language)
A programming language called Description Language) used for circuit design of a semiconductor device or the like has appeared. Semiconductor devices are manufactured through multiple design processes such as operation design and logic design.If the design data created once is described in different expressions in various design processes, the data in the previous process Data conversion was required one by one to utilize. Thus, by using a hardware description language, the design data once created can be uniformly used without converting the data in each process. As a typical hardware description language, VHDL (VHSIC Hardware Description Langu
age).
【0003】[0003]
【発明が解決しようとする課題】同期式回路、つまりク
ロックパルスに同期して信号が変化するフリップフロッ
プ等により構成されている回路では、異なるクロックパ
ルスにて信号の受け渡しをするとき、その異なるクロッ
クパルス間の位相関係が一義的に決まらず変動して、フ
リップフロップの入力信号の変化点と駆動クロックパル
スのタイミングがほぼ一致する可能性があるときは、セ
ットアップあるいはホールドエラーが発生する。In a synchronous circuit, that is, a circuit composed of a flip-flop or the like in which a signal changes in synchronization with a clock pulse, when a signal is transferred with a different clock pulse, a different clock is used. If the phase relationship between the pulses is undefined and fluctuates, and there is a possibility that the change point of the input signal of the flip-flop substantially coincides with the timing of the drive clock pulse, a setup or hold error occurs.
【0004】従来、VHDL等の記述言語により、同期
式回路を設計する場合、信号名にはクロック情報は含ま
れていなかった。したがって、記述言語を見るだけで
は、その信号がどのクロックを基にした信号か不明であ
った。そのため、設計時にフリップフロップの入力信号
の作成回路に戻って、その駆動クロックパルスを調査
し、受けてのフリップフロップの駆動クロックパルスと
の位相関係が、セットアップ、ホールドエラーを起こさ
ない関係であることを確認する必要があり、設計時に多
大な時間を使っていた。Conventionally, when a synchronous circuit is designed using a description language such as VHDL, clock information is not included in a signal name. Therefore, it was not clear just by looking at the description language which clock the signal was based on. Therefore, at the time of design, return to the circuit for creating the input signal of the flip-flop, investigate the drive clock pulse, and make sure that the phase relationship with the received drive clock pulse of the flip-flop does not cause a setup and hold error It was necessary to check and was spending a lot of time at the time of design.
【0005】本発明は、このような問題点を解決するた
め、ハードウエア記述言語により同期式回路を記述する
場合、フリップフロップの入力信号の作成回路に戻らず
にセットアップ、ホールドエラーを起こさない関係であ
ることを確認することができ、設計時間を短縮できるハ
ードウエア記述言語によるクロック名明示方法を提供す
ることを目的とする。According to the present invention, in order to solve such a problem, when a synchronous circuit is described in a hardware description language, a setup and hold error does not occur without returning to a circuit for generating an input signal of a flip-flop. It is an object of the present invention to provide a clock name specifying method using a hardware description language that can confirm that the clock name is shorter and can reduce the design time.
【0006】[0006]
【課題を解決するための手段】本発明は、同期式回路に
ついてハードウエア記述言語により記述する場合に、作
成された信号名に、その信号の作成時に基となったクロ
ック名を付加することを特徴するハードウエア記述言語
によるクロック名明示方法である。According to the present invention, when a synchronous circuit is described in a hardware description language, a clock name based on which the signal was created is added to a created signal name. This is a clock name specification method using a characteristic hardware description language.
【0007】本発明において、その信号の作成時に基と
なったクロック名を自動的にあるいは手動で付加するこ
とにより、フリップフロップの入力信号の作成回路に戻
って、その駆動クロックパルス調査する無駄をなくす。In the present invention, by automatically or manually adding the clock name based on which the signal is generated, the clock returns to the circuit for generating the input signal of the flip-flop and the drive clock pulse is wasted. lose.
【0008】[0008]
【発明の実施の形態】以下、本発明の実施の形態につい
て図面を参照しながら説明する。図1は、本発明におけ
るクロック明示方法を示すフローチャートである。ステ
ップS1において、すべてのフリップフロップセルが選
択されたかを判断する。すべてのフリップフロップセル
が選択されていない場合は、ステップS2に進み、セル
の出力信号にクロック名を付加してステップS1に戻
る。すなわち、回路記述のなかから、フリップフロップ
を選択し、選択されたセルの出力信号に、その駆動クロ
ック名を付加することを、すべてのフリップフロップが
選択、付加されるまで実行する。Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a flowchart showing a clock specifying method according to the present invention. In step S1, it is determined whether all flip-flop cells have been selected. If all flip-flop cells have not been selected, the process proceeds to step S2, where a clock name is added to the output signal of the cell, and the process returns to step S1. That is, a flip-flop is selected from the circuit description, and the addition of the driving clock name to the output signal of the selected cell is executed until all the flip-flops are selected and added.
【0009】次に、ステップS3において、すべての組
み合わせ回路セルを選択したかを判断し、ステップS4
に進み、セルの出力信号にクロック名を付加する。すな
わち、選択していなかった組み合わせ回路を選択し、選
択されたセルの出力信号に、クロック名を出力に付加
し、すべての組み合わせ回路が選択、付加されるまで実
行する。Next, in step S3, it is determined whether all the combinational circuit cells have been selected.
To add a clock name to the output signal of the cell. That is, a combination circuit that has not been selected is selected, a clock name is added to the output of the output signal of the selected cell, and the processing is executed until all the combination circuits are selected and added.
【0010】上記の作用により、フリップフロップの記
述部分では、入力される信号の駆動クロックパルスとフ
リップフロップの駆動クロックパルスが簡単に判別で
き、クロック間の位相情報を基に、セットアップホール
ドエラーが発生するか否かの判断が可能となる。According to the above operation, in the description portion of the flip-flop, the drive clock pulse of the input signal and the drive clock pulse of the flip-flop can be easily determined, and a setup hold error occurs based on phase information between clocks. It is possible to determine whether or not to do so.
【0011】図2は、フリップフロップを用いた同期式
回路を示すブロック図である。同図(a)は全体回路か
ら抜き出したフリップフロップの例を示し、(b)は組
み合わせ回路の例を示す。図3は、この同期式回路を記
述したVHDLの例である。FIG. 2 is a block diagram showing a synchronous circuit using flip-flops. FIG. 1A shows an example of a flip-flop extracted from the entire circuit, and FIG. 1B shows an example of a combinational circuit. FIG. 3 is an example of VHDL describing this synchronous circuit.
【0012】全体の回路から、フリップフロップ11,
12,13を抜き出す。抜き出されたフリップフロップ
11,12,13の出力は、図2(a)に示すように、
出力信号名に、その駆動クロックパルス名A,B,Cを
付加するものとする。すなわち、図3(a)に示すよう
に、VHDLで記述すると、出力信号名に、その駆動ク
ロックパルス名であるA,B,Cが付加される。From the entire circuit, the flip-flop 11,
Extract 12 and 13. Outputs of the extracted flip-flops 11, 12, and 13 are as shown in FIG.
The drive clock pulse names A, B, and C are added to the output signal names. That is, as shown in FIG. 3A, when described in VHDL, A, B, and C, which are the drive clock pulse names, are added to the output signal name.
【0013】一方、図2(b)の組み合わせ回路は、O
R回路14であり、フリップフロップ11,12,13
が接続した構成である。この組み合わせ回路14には、
入力された信号の付加されたクロック名A,B,Cのす
べてをその出力に付加したSIGNAL1_A〜SIG
NAL3_Cが入力され、出力信号SIGNAL4_A
BCを作成する。図3(b)に示すように、VHDLで
記述した場合、この組み合わせ回路14では、入力され
た信号の付加されたクロック名A,B,Cのすべてをそ
の出力に付加することにより、出力信号SIGNAL4
_ABCを作成する。図3の記述より、たとえばB_B
LOCKでは、AクロックとBクロックとの間にて信号
の受け渡しがなされていることが判別できる。On the other hand, the combinational circuit of FIG.
R circuit 14, and flip-flops 11, 12, 13
Are connected. In this combination circuit 14,
SIGNAL1_A to SIG in which all of the clock names A, B, and C to which the input signal is added are added to the output.
NAL3_C is input and the output signal SIGNAL4_A
Create a BC. As shown in FIG. 3 (b), when described in VHDL, the combinational circuit 14 adds all the clock names A, B, and C to which the input signal is added to its output, thereby outputting the output signal. SIGNAL4
Create _ABC. From the description of FIG. 3, for example, B_B
In the LOCK, it can be determined that a signal is transferred between the A clock and the B clock.
【0014】また、AクロックパルスとBクロックパル
スの立ち上がりのタイミングが一義的に決まらず変動し
て、Bブロックのフリップフロップの入力信号の変化点
とBクロックパルスのタイミングがほぼ一致する可能性
があるときは、セットアップあるいはホールドエラーが
発生することが判別可能である。したがって、信号名に
クロック名を付加することにより、簡単にクロック間の
位相情報と回路記述から、セットアップ、ホールドエラ
ーを検出することが可能となる。Further, the rising timing of the A clock pulse and the rising timing of the B clock pulse may not be uniquely determined and may fluctuate, so that the change point of the input signal of the flip-flop of the B block may substantially coincide with the timing of the B clock pulse. At some point, it can be determined that a setup or hold error has occurred. Therefore, by adding a clock name to a signal name, a setup and hold error can be easily detected from phase information between clocks and a circuit description.
【0015】[0015]
【発明の効果】本発明によれば、同期式回路の記述言語
による記述において、作成された信号名に、その信号の
作成時に基となったクロック名を自動的にあるいは手動
で付加することにより、ある異なるクロック間での、信
号の受け渡し時におけるセットアップ、ホールドエラー
をその回路記述とクロック間の位相情報を見ることで、
即座に判断でき、設計のスピードアップ、および、設計
不具合の発生確率を、減少できる。According to the present invention, in a description of a synchronous circuit in a description language, a clock name based on which the signal was created is automatically or manually added to a created signal name. By looking at the circuit description and the phase information between clocks, the setup and hold errors at the time of signal transfer between certain clocks are
It is possible to make an immediate judgment, thereby speeding up the design and reducing the probability of occurrence of design defects.
【図1】本発明におけるクロック明示方法を示すフロー
チャートである。FIG. 1 is a flowchart showing a clock specifying method according to the present invention.
【図2】フリップフロップを用いた同期式回路を示すブ
ロック図である。FIG. 2 is a block diagram showing a synchronous circuit using a flip-flop.
【図3】この同期式回路を記述したVHDLの例であ
る。FIG. 3 is an example of VHDL describing the synchronous circuit.
11 フリップフロップA 12 フリップフロップB 13 フリップフロップC 14 OR回路 11 Flip-flop A 12 Flip-flop B 13 Flip-flop C 14 OR circuit
Claims (1)
語により記述する場合に、作成された信号名に、その信
号の作成時に基となったクロック名を付加すること特徴
するハードウエア記述言語によるクロック名明示方法。When a synchronous circuit is described in a hardware description language, a clock name based on the generation of the signal is added to a generated signal name. Explicit method.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2000351353A JP2002157290A (en) | 2000-11-17 | 2000-11-17 | Method for clearly showing clock name by hardware description language |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2000351353A JP2002157290A (en) | 2000-11-17 | 2000-11-17 | Method for clearly showing clock name by hardware description language |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JP2002157290A true JP2002157290A (en) | 2002-05-31 |
Family
ID=18824427
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2000351353A Pending JP2002157290A (en) | 2000-11-17 | 2000-11-17 | Method for clearly showing clock name by hardware description language |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2002157290A (en) |
-
2000
- 2000-11-17 JP JP2000351353A patent/JP2002157290A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| KR940003082B1 (en) | Multi-function scan flip-flop | |
| US6216256B1 (en) | Semiconductor integrated circuit and method of designing the same | |
| TW202115420A (en) | Flip-flop | |
| US6895523B2 (en) | Generation of pulse signals from a clock signal | |
| US6163584A (en) | Synchronization element for converting an asynchronous pulse signal into a synchronous pulse signal | |
| US7692564B2 (en) | Serial-to-parallel conversion circuit and method of designing the same | |
| JP2002157290A (en) | Method for clearly showing clock name by hardware description language | |
| US6412099B1 (en) | Apparatus and method for converting logical connection information of circuit | |
| KR100291126B1 (en) | Circuit device including a plurality of sub-circuits and clock signal regeneration circuits | |
| JP3458406B2 (en) | Interface circuit | |
| CN112583382A (en) | Flip-flop | |
| CN105446445B (en) | Resetting method and signal generating device of digital circuit | |
| US6150861A (en) | Flip-flop | |
| US7072821B1 (en) | Device and method for synchronizing an asynchronous signal in synthesis and simulation of a clocked circuit | |
| JP2000165208A (en) | flip flop | |
| JPH0652259A (en) | Scan inserting method | |
| JP2001257566A (en) | Latch circuit with enable | |
| JP2000236062A (en) | Semiconductor integrated circuit | |
| JP2000353939A (en) | Clock signal synchronous flip flop circuit | |
| JP3246487B2 (en) | Semiconductor integrated circuit and control signal generation method thereof | |
| JP4186559B2 (en) | Scan flip-flop | |
| JP3115756B2 (en) | Demultiplexer circuit | |
| JPH11120212A (en) | Method and device for designing circuit and recording medium recorded with program therefor | |
| JP2903548B2 (en) | Logic circuit diagnostic system | |
| JPH04186913A (en) | edge detection circuit |