JP2008097503A - Timing analysis circuit and timing analysis method - Google Patents

Timing analysis circuit and timing analysis method Download PDF

Info

Publication number
JP2008097503A
JP2008097503A JP2006281278A JP2006281278A JP2008097503A JP 2008097503 A JP2008097503 A JP 2008097503A JP 2006281278 A JP2006281278 A JP 2006281278A JP 2006281278 A JP2006281278 A JP 2006281278A JP 2008097503 A JP2008097503 A JP 2008097503A
Authority
JP
Japan
Prior art keywords
unit
clock signal
signal
synchronization
reference clock
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2006281278A
Other languages
Japanese (ja)
Inventor
Takeshi Saito
豪 斉藤
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 Saitama Ltd
Original Assignee
NEC Saitama Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Saitama Ltd filed Critical NEC Saitama Ltd
Priority to JP2006281278A priority Critical patent/JP2008097503A/en
Publication of JP2008097503A publication Critical patent/JP2008097503A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Tests Of Electronic Circuits (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a timing analysis circuit reducing burden of confirming timing restriction of an actual device. <P>SOLUTION: A bus master 111 synchronizes and transmits a reference clock signal and a synchronization signal showing a prescribed pattern. A re-timing part 112 delays and transmits the synchronization signal transmitted from the bus master 111. A bus slave 121 fetches the synchronization signal transmitted from the re-timing part 112 in synchronization with the reference clock signal, and stores the fetched synchronization signal into a storage part 122. An analysis part 113 adjusts a delay amount of the re-timing part 112, and adjusts the synchronization signal stored in the storage part 122. The analysis part 113 obtains a time lag amount generated between a pattern shown by the synchronization signal stored in the storage part 122 and the prescribed pattern. <P>COPYRIGHT: (C)2008,JPO&INPIT

Description

本発明は、回路のタイミングを解析するタイミング解析回路およびタイミング解析方法に関する。   The present invention relates to a timing analysis circuit and a timing analysis method for analyzing circuit timing.

電子機器などの装置において、例えばデバイス間のデータの転送では、同期バスが非常に重要になっている。   In an apparatus such as an electronic device, for example, a synchronous bus is very important in transferring data between devices.

同期バスには、その同期バスの制御方式に応じて様々なタイプがある。例えば、同期バスには、CPUのプロセッサバス、PCIバス、ATM(Asynchronous Transfer Mode)のUtopiaバスなどがある。   There are various types of synchronous buses depending on the control method of the synchronous bus. For example, the synchronous bus includes a CPU processor bus, a PCI bus, an ATM (Asynchronous Transfer Mode) Utopia bus, and the like.

これらの同期バスを用いた同期通信では、送信側は、制御信号などの同期信号を、クロック信号に同期して送信し、受信側は、その同期信号をそのクロック信号に同期して取り込む。このとき、受信側がその同期信号を正常に取り込むためには、制約がある。以下、この制約をタイミング制約と称する。   In synchronous communication using these synchronous buses, the transmission side transmits a synchronization signal such as a control signal in synchronization with the clock signal, and the reception side takes in the synchronization signal in synchronization with the clock signal. At this time, there is a restriction for the receiving side to capture the synchronization signal normally. Hereinafter, this constraint is referred to as a timing constraint.

図8は、タイミング制約を説明するためのタイムチャートである。   FIG. 8 is a time chart for explaining timing constraints.

時刻801で、送信側は、クロック信号および同期信号を同期して、受信側に送信したとする。   Assume that at time 801, the transmission side transmits the clock signal and the synchronization signal to the reception side in synchronization.

同期信号には、データの送受信を制御する制御信号と、送信側または受信側を特定するアドレス信号と、データを転送するデータ信号とがある。また、アドレス信号およびデータ信号は、複数ある。図8では、複数のアドレス信号およびデータ信号のm番目のアドレス信号およびデータ信号が示されている。また、基準CLKは、クロック信号である。   The synchronization signal includes a control signal for controlling transmission / reception of data, an address signal for specifying a transmission side or a reception side, and a data signal for transferring data. There are a plurality of address signals and data signals. FIG. 8 shows the mth address signal and data signal of the plurality of address signals and data signals. The reference CLK is a clock signal.

その送信されたクロック信号および同期信号は、受信側に到達するまでの伝送により伝送遅延が発生する。この遅延時間は、例えば、同期バスの配線長およびインピーダンスなどによる波形の歪みに応じて異なる。   The transmitted clock signal and synchronization signal cause a transmission delay due to transmission until reaching the receiving side. This delay time varies depending on, for example, waveform distortion due to the wiring length and impedance of the synchronous bus.

時刻802で、受信側は、その同期信号を、クロック信号に同期して取り込んだとする。   It is assumed that at time 802, the receiving side captures the synchronization signal in synchronization with the clock signal.

このとき、受信側は、同期信号を正常に取り込むためには、タイミング制約を満たさなければならない。具体的には、セットアップタイムおよびホールドタイムを満たさなければならない。   At this time, the receiving side must satisfy timing constraints in order to capture the synchronization signal normally. Specifically, the setup time and hold time must be satisfied.

セットアップタイムとは、同期信号を正常に取り込むために必要な、同期信号の取り込みが行なわれる前に保持している時間(セットアップマージン)の最小値である。また、ホールドタイムとは、同期信号を正常に取り込むために必要な、同期信号の取り込みが行なわれる後に保持している時間(ホールドマージン)の最小値である。   The setup time is the minimum value of the time (setup margin) that is necessary to normally capture the synchronization signal and before the synchronization signal is captured. The hold time is the minimum value of the time (hold margin) that is required after the synchronization signal is captured, which is necessary for normally capturing the synchronization signal.

このため、設計者は、タイミング制約を満たすように電子機器を設計する必要がある。従来、このような設計には、労力がかかっていた。   For this reason, the designer needs to design the electronic device so as to satisfy the timing constraint. Traditionally, such a design has been labor intensive.

特許文献1(特開2003−27322号公報)には、タイミング制約を満たすように回路を設計することが可能な回路設計方法が記載されている。この回路設計方法では、回路の設計情報が入力されると、その設計情報のタイミング解析が行なわれる。また、そのタイミング解析でエラーが発生すると、信号の遅延量の変更することが可能な可変セルが調節され、そのエラーが解消される。   Japanese Patent Application Laid-Open No. 2003-27322 describes a circuit design method capable of designing a circuit so as to satisfy timing constraints. In this circuit design method, when circuit design information is input, timing analysis of the design information is performed. When an error occurs in the timing analysis, a variable cell capable of changing the signal delay amount is adjusted, and the error is eliminated.

これにより、タイミング制約が満たされない場合でも、その制約を満たすように設計を変更することが可能になり、設計にかかる労力を軽減することが可能になっている。
特開2003−27322号公報
Thereby, even when the timing constraint is not satisfied, the design can be changed so as to satisfy the constraint, and the labor required for the design can be reduced.
JP 2003-27322 A

タイミング制約の解析は、設計の段階だけでなく、製造された実装置に対しても行なうことが、装置の信頼性を保障する上で重要となる。   It is important to perform the analysis of timing constraints not only at the design stage but also on the manufactured actual device in order to ensure the reliability of the device.

従来、実装置に対してのタイミング制約の解析では、ロジックアナライザなどの測定器で信号の状態(波形など)が測定される。また、人が、その測定された信号の状態からタイミングマージン(セットアップマージンおよびホールドマージン)などを求めて、タイミング制約が満たされるか否かなどを確認していた。このため、労力がかかる。   Conventionally, in the analysis of timing constraints on an actual apparatus, the state of a signal (such as a waveform) is measured by a measuring instrument such as a logic analyzer. Further, a person obtains a timing margin (a setup margin and a hold margin) from the measured signal state and confirms whether or not the timing constraint is satisfied. For this reason, labor is required.

特許文献1に記載の回路設計方法は、回路の設計にかかる労力の軽減のために考案さており、実装置に対するタイミング制約の解析についての記載はない。   The circuit design method described in Patent Document 1 has been devised to reduce the labor required for circuit design, and there is no description about the analysis of timing constraints for an actual device.

本発明の目的は、実装置のタイミング制約の解析にかかる労力を軽減することが可能なタイミング解析回路およびタイミング解析方法を提供することである。   An object of the present invention is to provide a timing analysis circuit and a timing analysis method capable of reducing labor required for analyzing timing constraints of an actual apparatus.

上記の目的を達成するために、記憶部と、所定のパターンを示す同期信号と基準クロック信号とを同期して送信する送信部と、前記同期信号を遅延して送信する遅延部と、前記遅延部から送信された同期信号を、前記送信部から送信された基準クロック信号に同期して取り込み、該取り込んだ同期信号を前記記憶部に格納する受信部と、前記遅延部の遅延量を調節して、前記記憶部に格納される同期信号を調整し、前記記憶部に格納された同期信号が示すパターンと前記所定のパターンを比較して、該同期信号が示すパターンと前記所定のパターンとにずれが生じる遅延量を求める解析部と、を含む。   To achieve the above object, a storage unit, a transmission unit that transmits a synchronization signal indicating a predetermined pattern and a reference clock signal in synchronization, a delay unit that transmits the synchronization signal with delay, and the delay The synchronization signal transmitted from the transmission unit is captured in synchronization with the reference clock signal transmitted from the transmission unit, the reception unit that stores the captured synchronization signal in the storage unit, and the delay amount of the delay unit is adjusted. Adjusting the synchronization signal stored in the storage unit, comparing the pattern indicated by the synchronization signal stored in the storage unit with the predetermined pattern, and comparing the pattern indicated by the synchronization signal with the predetermined pattern. And an analysis unit for obtaining a delay amount at which the deviation occurs.

また、本発明のタイミング解析方法は、タイミング解析回路が行なうタイミング解析方法であって、所定のパターンを示す同期信号と基準クロック信号とを同期して送信する送信ステップと、前記同期信号を遅延して送信する遅延ステップと、前記遅延されて送信された同期信号を、前記送信された基準クロック信号に同期して取り込む取込ステップと、前記取り込まれた同期信号を格納する格納ステップと、前記同期信号の遅延量を調節して、前記格納される同期信号を調整する調節ステップと、前記格納された同期信号が示すパターンと前記所定のパターンとを比較して、該同期信号が示すパターンと前記所定のパターンとにずれが生じる遅延量を求める解析ステップと、を含む。   The timing analysis method of the present invention is a timing analysis method performed by a timing analysis circuit, a transmission step of synchronizing a synchronization signal indicating a predetermined pattern and a reference clock signal, and delaying the synchronization signal. A delay step for transmitting, a capture step for capturing the delayed and transmitted synchronization signal in synchronization with the transmitted reference clock signal, a storage step for storing the captured synchronization signal, and the synchronization An adjustment step of adjusting a delay amount of the signal to adjust the stored synchronization signal; comparing a pattern indicated by the stored synchronization signal with the predetermined pattern; and a pattern indicated by the synchronization signal; An analysis step for obtaining a delay amount that causes a deviation from a predetermined pattern.

上記の発明によれば、パターンにずれが生じる遅延量が求められる。パターンにずれが生じる遅延量は、セットアップマージンを反映する。   According to the above invention, the amount of delay that causes a shift in the pattern is obtained. The amount of delay that causes a shift in the pattern reflects the setup margin.

このため、信号の状態を測定しなくても、セットアップマージンを知ることが可能になる。また、セットアップマージンが分かると、タイミング制約が満たされるか否かが分かる。したがって、実装置のタイミング制約の解析にかかる労力を軽減することが可能になる。   Therefore, it is possible to know the setup margin without measuring the signal state. If the setup margin is known, it can be determined whether or not the timing constraint is satisfied. Therefore, it is possible to reduce the labor required for analyzing the timing constraints of the actual device.

また、前記基準クロック信号を生成する生成部から基準クロック信号を受信し、該基準クロック信号を送信する受付部を含み、前記解析部は、前記受付部から送信された基準クロック信号を逓倍して、複数の逓倍クロック信号を生成し、該複数の逓倍クロック信号を送信する逓倍部と、前記逓倍部から送信された複数の逓倍クロック信号から、一つの逓倍クロック信号を選択する制御部と、前記受付部から送信された基準クロック信号を、前記制御部にて選択された逓倍クロック信号に同期して遅延クロック信号を生成し、該遅延クロック信号を送信する遅延生成部と、を含み、前記送信部は、前記同期信号と前記受付部から送信された基準クロック信号とを同期して送信し、前記遅延部は、前記送信部から送信された同期信号を、前記遅延生成部から送信された遅延クロック信号に同期して送信することが望ましい。   A receiving unit that receives the reference clock signal from the generating unit that generates the reference clock signal and transmits the reference clock signal; and the analysis unit multiplies the reference clock signal transmitted from the receiving unit. A multiplying unit that generates a plurality of multiplied clock signals and transmits the plurality of multiplied clock signals; a control unit that selects one multiplied clock signal from the plurality of multiplied clock signals transmitted from the multiplying unit; A delay generation unit that generates a delayed clock signal in synchronization with the multiplied clock signal selected by the control unit from the reference clock signal transmitted from the reception unit, and transmits the delayed clock signal. The unit transmits the synchronization signal and the reference clock signal transmitted from the reception unit in synchronization, and the delay unit transmits the synchronization signal transmitted from the transmission unit to the delay It is desirable to transmit in synchronism with the delayed clock signal transmitted from the generating unit.

上記の発明によれば、同期信号が、遅延クロック信号に同期して送信される。これにより、同期信号が、その遅延クロック信号の遅延量だけ遅延される。   According to the above invention, the synchronization signal is transmitted in synchronization with the delayed clock signal. As a result, the synchronization signal is delayed by the delay amount of the delayed clock signal.

このため、同期信号の遅延量の調節を正確に行なうことが可能になる。   For this reason, it is possible to accurately adjust the delay amount of the synchronization signal.

また、前記送信部から送信された基準クロック信号を遅延して送信する修正部をさらに含み、前記解析部は、前記求めた遅延量に基づいて、前記修正部の遅延量を調節することが望ましい。   In addition, it is preferable that a correction unit that transmits the reference clock signal transmitted from the transmission unit with a delay is further included, and the analysis unit adjusts a delay amount of the correction unit based on the obtained delay amount. .

上記の発明によれば、基準クロック信号の遅延量が、パターンにずれが生じる同期信号の遅延量に基づいて調節される。   According to the above invention, the delay amount of the reference clock signal is adjusted based on the delay amount of the synchronization signal that causes a shift in the pattern.

このため、同期信号のタイミングマージンを所望の値に調節することが可能になる。   For this reason, the timing margin of the synchronization signal can be adjusted to a desired value.

また、前記送信部から送信された基準クロック信号を、前記遅延生成部から送信された遅延クロック信号に同期して送信する修正部をさらに含み、前記制御部は、前記求めた遅延量に基づいて、前記遅延生成部が前記基準クロック信号を同期する逓倍クロック信号を選択することが望ましい。   Further, the control unit further includes a correction unit that transmits the reference clock signal transmitted from the transmission unit in synchronization with the delay clock signal transmitted from the delay generation unit, and the control unit is based on the obtained delay amount. Preferably, the delay generator selects a multiplied clock signal that synchronizes the reference clock signal.

上記の発明によれば、基準クロック信号が、遅延クロック信号に同期して送信される。これにより、基準クロック信号が、その遅延クロック信号の遅延量だけ遅延される。   According to the above invention, the reference clock signal is transmitted in synchronization with the delayed clock signal. As a result, the reference clock signal is delayed by the delay amount of the delayed clock signal.

このため、基準クロック信号の遅延量の調節を正確に行なうことが可能になる。   Therefore, it is possible to accurately adjust the delay amount of the reference clock signal.

本発明によれば、実装置のタイミング制約の解析にかかる労力を軽減することが可能になる。   According to the present invention, it is possible to reduce the labor required for analyzing the timing constraint of an actual device.

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

図1は、本発明の一実施例のタイミング解析回路の構成を示したブロック図である。   FIG. 1 is a block diagram showing a configuration of a timing analysis circuit according to an embodiment of the present invention.

図1において、タイミング解析回路は、デバイス101および102を含む。   In FIG. 1, the timing analysis circuit includes devices 101 and 102.

デバイス101は、データの送信側のデバイスであり、デバイス102は、データの受信側のデバイスである。   The device 101 is a data transmission device, and the device 102 is a data reception device.

デバイス101および102は、同期バス103を介して同期通信を行なう。また、デバイス101および102は、信号バス104を介して接続される。   The devices 101 and 102 perform synchronous communication via the synchronous bus 103. The devices 101 and 102 are connected via a signal bus 104.

デバイス101は、バスマスタ111と、リタイミング部112と、タイミング解析機能部113とを含む。   The device 101 includes a bus master 111, a retiming unit 112, and a timing analysis function unit 113.

デバイス102は、バススレーブ121と、記憶部122とを含む。   The device 102 includes a bus slave 121 and a storage unit 122.

バスマスタ111は、送信部の一例である。   The bus master 111 is an example of a transmission unit.

バスマスタ111は、バススレーブ121と同期通信を行なう。具体的には、バスマスタ111は、同期信号と基準クロック信号とを同期してバススレーブ121に送信する。   The bus master 111 performs synchronous communication with the bus slave 121. Specifically, the bus master 111 transmits the synchronization signal and the reference clock signal to the bus slave 121 in synchronization.

同期信号は、複数ある。例えば、同期信号には、データの送受信を制御する制御信号と、データの送信先を特定するアドレス信号と、データを転送するデータ信号とがある。また、制御信号には、CS信号、WE信号およびRE信号がある。また、アドレス信号およびデータ信号の数は、mであるとする。なお、mは、1以上の整数である。   There are a plurality of synchronization signals. For example, the synchronization signal includes a control signal for controlling transmission / reception of data, an address signal for specifying a transmission destination of data, and a data signal for transferring data. Control signals include a CS signal, a WE signal, and an RE signal. The number of address signals and data signals is assumed to be m. Note that m is an integer of 1 or more.

バスマスタ111は、データの転送用の同期信号と基準クロック信号とをバススレーブ121に送信する。   The bus master 111 transmits a synchronization signal for data transfer and a reference clock signal to the bus slave 121.

また、バスマスタ111は、解析部113が解析モードを設定すると、データ転送用の同期信号の送信を停止する。その後、バスマスタ111は、解析部113からテスト要求を受信すると、その次の基準クロック信号と所定のパターンを示す同期信号とを同期して送信する。   In addition, when the analysis unit 113 sets the analysis mode, the bus master 111 stops transmission of a synchronization signal for data transfer. After that, when receiving a test request from the analysis unit 113, the bus master 111 transmits the next reference clock signal and a synchronization signal indicating a predetermined pattern in synchronization.

所定のパターンは、例えば、1と0の繰り返しである。なお、所定のパターンは、1と0の繰り返しに限らず適宜変更可能である。本実施例では、所定のパターンを示す同期信号として、1と0の繰り返しからなる32ビットの信号「0x55555555」を用いる。以下では、所定のパターンを示す同期信号をテスト信号と称する。なお、バスマスタ111は、その所定のパターンを保持している。   The predetermined pattern is, for example, a repetition of 1 and 0. The predetermined pattern is not limited to repetition of 1 and 0, but can be changed as appropriate. In this embodiment, a 32-bit signal “0x55555555” consisting of repetition of 1 and 0 is used as a synchronization signal indicating a predetermined pattern. Hereinafter, a synchronization signal indicating a predetermined pattern is referred to as a test signal. The bus master 111 holds the predetermined pattern.

テスト要求は、テスト信号を送信する旨の情報である。   The test request is information indicating that a test signal is transmitted.

リタイミング部112は、遅延部の一例である。   The retiming unit 112 is an example of a delay unit.

リタイミング部112は、バスマスタ111から送信された同期信号をバススレーブ121に送信する。このとき、リタイミング部112は、オンの場合、その送信された同期信号を遅延してバススレーブ121に送信する。   The retiming unit 112 transmits the synchronization signal transmitted from the bus master 111 to the bus slave 121. At this time, the retiming unit 112 delays the transmitted synchronization signal and transmits it to the bus slave 121 when it is on.

なお、バスマスタ111がデータ転送用の同期信号を送信する場合、リタイミング部112は、オフになるように解析部113にて制御される。   When the bus master 111 transmits a synchronization signal for data transfer, the retiming unit 112 is controlled by the analysis unit 113 so as to be turned off.

バススレーブ121は、受信部の一例である。   The bus slave 121 is an example of a receiving unit.

バススレーブ121は、リタイミング部112から送信された同期信号を、バスマスタ111から送信された基準クロック信号に同期して取り込む。   The bus slave 121 captures the synchronization signal transmitted from the retiming unit 112 in synchronization with the reference clock signal transmitted from the bus master 111.

バススレーブ121は、記憶部122が解析モードを設定すると、データの転送用の同期信号の取り込みを停止する。なお、解析部113および記憶部122は、同時に解析モードを設定するものとする。   When the storage unit 122 sets the analysis mode, the bus slave 121 stops capturing the synchronization signal for data transfer. Note that the analysis unit 113 and the storage unit 122 set the analysis mode at the same time.

その後、バススレーブ121は、解析部113からスタート信号を受信すると、その次に送信された基準クロックに同期して、リタイミング部112から送信された同期信号を取り込む。スタート信号は、テスト信号の送信の開始を示す信号である。   Thereafter, when the bus slave 121 receives the start signal from the analysis unit 113, the bus slave 121 captures the synchronization signal transmitted from the retiming unit 112 in synchronization with the reference clock transmitted next. The start signal is a signal indicating the start of transmission of the test signal.

このとき、バスマスタ111は、テスト信号を送信している。このため、バススレーブ121が取り込む同期信号もテスト信号になる。   At this time, the bus master 111 is transmitting a test signal. For this reason, the synchronization signal captured by the bus slave 121 is also a test signal.

バススレーブ121は、その取り込んだテスト信号を、そのテスト信号を特定する識別情報を付けて記憶部122に格納する。   The bus slave 121 stores the acquired test signal in the storage unit 122 with identification information for specifying the test signal.

バススレーブ121が同期信号を正常に取り込むためには、ホールドタイムおよびセットアップタイムが満たされなければならない。   In order for the bus slave 121 to capture the synchronization signal normally, the hold time and the setup time must be satisfied.

ホールドタイムまたはセットアップタイムが満たされない場合、その取り込んだ同期信号が示すパターンは、バスマスタ111が送信した同期信号が示すパターンとずれる。例えば、バスマスタ111がテスト信号「0x55555555」を送信した場合、バススレーブ121は、そのテスト信号「0x55555555」と1ビット異なる信号「0xAAAAAAAA」を取り込む。   When the hold time or setup time is not satisfied, the pattern indicated by the acquired synchronization signal is different from the pattern indicated by the synchronization signal transmitted by the bus master 111. For example, when the bus master 111 transmits a test signal “0x55555555”, the bus slave 121 receives a signal “0xAAAAAAAA” that is one bit different from the test signal “0x55555555”.

解析部113は、所定のパターンを保持する。   The analysis unit 113 holds a predetermined pattern.

解析部113は、自己に解析モードを設定すると、リタイミング部112の遅延量を調節して、記憶部122に格納されるテスト信号を調整する。なお、解析部113は、その調節した遅延量を保持する。   When the analysis unit 113 sets the analysis mode for itself, the analysis unit 113 adjusts the delay amount of the retiming unit 112 and adjusts the test signal stored in the storage unit 122. Note that the analysis unit 113 holds the adjusted delay amount.

また、解析部113は、記憶部122に格納されたテスト信号が示すパターンとその保持している所定のパターンとを比較して、そのテスト信号が示すパターンと所定のパターンとにずれが生じる遅延量を求める。   The analysis unit 113 compares the pattern indicated by the test signal stored in the storage unit 122 with the predetermined pattern held therein, and causes a delay that causes a shift between the pattern indicated by the test signal and the predetermined pattern. Find the amount.

例えば、先ず、解析部113は、自己に解析モードを設定すると、リタイミング部112の遅延量を初期値に調節する。なお、初期値は、本実施例では、0とする。   For example, first, when the analysis unit 113 sets the analysis mode for itself, the analysis unit 113 adjusts the delay amount of the retiming unit 112 to the initial value. Note that the initial value is 0 in this embodiment.

その後、記憶部122に格納されたテスト信号が示すパターンと所定のパターンとにずれが生じる遅延量を求めるまで、解析部113は、以下の動作を繰り返す。   Thereafter, the analysis unit 113 repeats the following operation until a delay amount that causes a deviation between the pattern indicated by the test signal stored in the storage unit 122 and a predetermined pattern is obtained.

具体的には、解析部113は、テスト要求をバスマスタ111に送信すると同時に、スタート信号を、信号バス104を介してバススレーブ121に送信する。   Specifically, the analysis unit 113 transmits a test request to the bus master 111 and simultaneously transmits a start signal to the bus slave 121 via the signal bus 104.

バスマスタ111がテスト信号の送信を終了すると、解析部113は、記憶部122に格納されたテスト信号が示すパターンと、保持している所定のパターンとを比較する。   When the bus master 111 finishes transmitting the test signal, the analysis unit 113 compares the pattern indicated by the test signal stored in the storage unit 122 with the predetermined pattern held.

そのテスト信号が示すパターンとその所定のパターンとがずれていないと、解析部113は、リタイミング部112の遅延量を1だけ増加させ、再度、テスト要求およびスタート信号を同時に送信する。   If the pattern indicated by the test signal does not deviate from the predetermined pattern, the analysis unit 113 increases the delay amount of the retiming unit 112 by 1, and simultaneously transmits the test request and the start signal again.

一方、そのテスト信号が示すパターンと所定のパターンとがずれていると、解析部113は、そのときのリタイミング部112の遅延量を、そのテスト信号が示すパターンとその所定のパターンとにずれが生じるテスト信号の遅延量として求める。以下、そのテスト信号が示すパターンとその所定のパターンとにずれが生じるテスト信号の遅延量を、ずれ遅延量と称する。   On the other hand, if the pattern indicated by the test signal deviates from the predetermined pattern, the analysis unit 113 shifts the delay amount of the retiming unit 112 at that time between the pattern indicated by the test signal and the predetermined pattern. Is obtained as the delay amount of the test signal in which Hereinafter, the delay amount of the test signal that causes a shift between the pattern indicated by the test signal and the predetermined pattern is referred to as a shift delay amount.

なお、解析部113は、記憶部122に格納されたテスト信号のそれぞれに対して、そのテスト信号と所定のパターンとを比較してずれ遅延量を求める。   Note that the analysis unit 113 compares the test signal with a predetermined pattern for each test signal stored in the storage unit 122 to obtain a shift delay amount.

そのずれ遅延量は、セットアップマージンを反映する。このため、信号の状態を測定しなくても、セットアップマージンを知ることが可能になる。また、セットアップマージンが分かると、タイミング制約が満たされるか否かが分かる。   The shift delay amount reflects the setup margin. Therefore, it is possible to know the setup margin without measuring the signal state. If the setup margin is known, it can be determined whether or not the timing constraint is satisfied.

また、同期バス103の配線長およびインピーダンスなどを測定せずに、セットアップマージンを知ることが可能になる。このため、このタイミング解析回路は、同期バスの種類によらずに、実装置のタイミング制約の解析にかかる労力を軽減することが可能になる。   In addition, it is possible to know the setup margin without measuring the wiring length and impedance of the synchronous bus 103. For this reason, this timing analysis circuit can reduce the labor required to analyze the timing constraint of the actual device regardless of the type of the synchronous bus.

なお、受信側のデバイスの数は、1だけだが、実際には、複数あってもよい。この場合、デバイス101は、そのずれ遅延量を、複数の受信側のデバイスのそれぞれに対して求める。   Note that the number of devices on the receiving side is only one, but there may actually be a plurality of devices. In this case, the device 101 obtains the shift delay amount for each of the plurality of receiving devices.

次に、タイミング解析回路の構成についてさらに詳しく説明する。   Next, the configuration of the timing analysis circuit will be described in more detail.

図2は、本発明の一実施例のタイミング解析回路の詳細な構成を示したブロック図である。なお、図2において、図1と同じものには同じ符号が付してある。また、以下では、主に図1で説明した構成と異なる構成について説明する。   FIG. 2 is a block diagram showing a detailed configuration of the timing analysis circuit according to the embodiment of the present invention. In FIG. 2, the same components as those in FIG. In the following, a configuration different from the configuration described in FIG. 1 will be mainly described.

図2において、タイミング解析回路は、デバイス101および102を含む。   In FIG. 2, the timing analysis circuit includes devices 101 and 102.

デバイス1および2は、CPU(図示せず)と接続される。また、デバイス1は、基準クロック生成部105と接続される。基準クロック生成部105は、基準クロック信号を生成し、その基準クロック信号をデバイス101に送信する。   Devices 1 and 2 are connected to a CPU (not shown). The device 1 is connected to the reference clock generation unit 105. The reference clock generation unit 105 generates a reference clock signal and transmits the reference clock signal to the device 101.

デバイス101は、バスマスタ111と、リタイミング部112と、解析部113と、データバッファ114と、受付部115とを含む。解析部113は、設定レジスタ201と、逓倍部202と、DelayCLK生成部203と、解析制御部204と、結果格納部205とを含む。   The device 101 includes a bus master 111, a retiming unit 112, an analysis unit 113, a data buffer 114, and a reception unit 115. The analysis unit 113 includes a setting register 201, a multiplication unit 202, a DelayCLK generation unit 203, an analysis control unit 204, and a result storage unit 205.

デバイス102は、バススレーブ121と、記憶部122と、データバッファ123とを含む。記憶部122は、設定レジスタ211と、記憶制御部212と、メモリ213とを含む。   The device 102 includes a bus slave 121, a storage unit 122, and a data buffer 123. The storage unit 122 includes a setting register 211, a storage control unit 212, and a memory 213.

リタイミング部112は、オンのときに、バスマスタ111から送信されたテスト信号を、DelayCLK生成部(以下、遅延生成部と称する)203から送信された遅延クロック信号に同期して送信する。遅延クロック信号は、基準クロック信号が遅延された信号である。これにより、リタイミング部112は、その遅延クロック信号の遅延量だけ、そのテスト信号を遅延して送信することになる。   When the retiming unit 112 is on, the retiming unit 112 transmits the test signal transmitted from the bus master 111 in synchronization with the delay clock signal transmitted from the DelayCLK generating unit (hereinafter referred to as delay generating unit) 203. The delayed clock signal is a signal obtained by delaying the reference clock signal. As a result, the retiming unit 112 transmits the test signal after delaying the delay amount of the delayed clock signal.

データバッファ114は、データの転送用の同期信号で送信されるデータを格納する。   The data buffer 114 stores data transmitted with a synchronization signal for data transfer.

受付部115は、基準クロック生成部105から基準クロック信号を受信し、その基準クロック信号をバスマスタ111および解析部113(具体的には、逓倍部202、遅延生成部203および解析制御部204)に送信する。なお、バスマスタ111および解析部113は、同じ位相の基準クロック信号を受信する。   The receiving unit 115 receives the reference clock signal from the reference clock generation unit 105, and sends the reference clock signal to the bus master 111 and the analysis unit 113 (specifically, the multiplication unit 202, the delay generation unit 203, and the analysis control unit 204). Send. The bus master 111 and the analysis unit 113 receive the reference clock signal having the same phase.

設定レジスタ201および結果格納部205は、CPUと接続される。   The setting register 201 and the result storage unit 205 are connected to the CPU.

設定レジスタ201は、CPUから、オンを示す設定信号を受信すると、自己に解析モードを設定する。   When receiving a setting signal indicating ON from the CPU, the setting register 201 sets the analysis mode for itself.

逓倍部202は、受付部115から送信された基準クロック信号を逓倍して、複数の逓倍クロック信号を生成し、その複数の逓倍クロック信号を遅延生成部203に送信する。なお、複数の逓倍クロック信号は、それぞれ基準クロック信号に対して、互いに異なる遅延量を有する。また、逓倍部202の逓倍数は、整数である。   The multiplier 202 multiplies the reference clock signal transmitted from the reception unit 115 to generate a plurality of multiplied clock signals, and transmits the plurality of multiplied clock signals to the delay generator 203. The plurality of multiplied clock signals have different delay amounts with respect to the reference clock signal. Further, the multiplication number of the multiplication unit 202 is an integer.

遅延生成部203は、逓倍部202から送信された複数の逓倍クロック信号に基づいて、受付部115から送信された基準クロック信号を遅延して遅延クロック信号を生成する。具体的には、遅延生成部203は、その基準クロック信号を、その複数の逓倍クロック信号の中の、解析制御部204にて選択されたに同期して遅延クロック信号を生成する。   The delay generation unit 203 generates a delayed clock signal by delaying the reference clock signal transmitted from the reception unit 115 based on the plurality of multiplied clock signals transmitted from the multiplication unit 202. Specifically, the delay generation unit 203 generates the delay clock signal in synchronization with the reference clock signal selected by the analysis control unit 204 among the plurality of multiplied clock signals.

遅延生成部203は、その基準クロック信号を同期する逓倍クロック信号に応じて、遅延量の異なる遅延クロック信号を生成する。遅延生成部203にて生成可能な、互いに異なる遅延量の遅延クロック信号の数は、逓倍部202が生成した逓倍クロック信号の数、すなわち、逓倍部202の逓倍数と等しい。このため、その逓倍数が大きくなるほど、リタイミング部112のテスト信号の遅延量を細かく調節することが可能になる。   The delay generation unit 203 generates delayed clock signals having different delay amounts according to the multiplied clock signal that synchronizes the reference clock signal. The number of delay clock signals having different delay amounts that can be generated by the delay generation unit 203 is equal to the number of multiplied clock signals generated by the multiplication unit 202, that is, the multiplication number of the multiplication unit 202. For this reason, it becomes possible to finely adjust the delay amount of the test signal of the retiming unit 112 as the multiplication number increases.

遅延生成部203は、その生成した遅延クロック信号をリタイミング部112に送信する。   The delay generation unit 203 transmits the generated delayed clock signal to the retiming unit 112.

解析制御部204は、制御部の一例である。また、解析制御部204は、所定のパターンを保持する。   The analysis control unit 204 is an example of a control unit. The analysis control unit 204 holds a predetermined pattern.

解析制御部204は、設定レジスタ201が解析モードを設定すると、逓倍部202が生成した複数の逓倍クロック信号から、一つの逓倍クロック信号を、遅延生成部203が基準クロック信号に同期する逓倍クロック信号として選択する。なお、解析制御部204は、逓倍クロック信号を、その逓倍クロック信号の遅延量で特定する。また、解析制御部204は、その選択した逓倍クロック信号の遅延量を保持する。   When the setting register 201 sets the analysis mode, the analysis control unit 204 generates one multiplied clock signal from the multiple clock signals generated by the multiplication unit 202, and a multiplied clock signal in which the delay generation unit 203 synchronizes with the reference clock signal. Choose as. The analysis control unit 204 identifies the multiplied clock signal by the delay amount of the multiplied clock signal. Further, the analysis control unit 204 holds the delay amount of the selected multiplied clock signal.

また、解析制御部204は、記憶部122に格納されたテスト信号が示すパターンとその保持している所定のパターンとを比較して、ずれ遅延量を求める。   Also, the analysis control unit 204 compares the pattern indicated by the test signal stored in the storage unit 122 with a predetermined pattern held therein to obtain a shift delay amount.

例えば、先ず、解析制御部204は、設定レジスタ201が解析モードを設定すると、リタイミング部112の遅延量を初期値「0」に調節する。なお、解析制御部204は、リタイミング部112をオフのままにしておいてもよいし、リタイミング部112をオンにし、かつ、遅延生成部203の同期する逓倍クロック信号を、遅延量が0の逓倍クロック信号に選択してもよい。   For example, first, when the setting register 201 sets the analysis mode, the analysis control unit 204 adjusts the delay amount of the retiming unit 112 to the initial value “0”. Note that the analysis control unit 204 may leave the retiming unit 112 off, or turn on the retiming unit 112 and the multiplied clock signal synchronized with the delay generation unit 203 has a delay amount of 0. May be selected as a multiple clock signal.

その後、解析制御部204は、ずれ遅延量を求めるまで、以下の動作を繰り返す。   Thereafter, the analysis control unit 204 repeats the following operation until the deviation delay amount is obtained.

具体的には、解析制御部204は、テスト要求をバスマスタ111に送信すると同時に、スタート信号を、信号バス104を介してバススレーブ121に送信する。   Specifically, the analysis control unit 204 transmits a test request to the bus master 111 and simultaneously transmits a start signal to the bus slave 121 via the signal bus 104.

バスマスタ111がテスト信号の送信を終了すると、解析制御部204は、記憶部122に格納されたテスト信号が示すパターンと所定のパターンとがずれているか否かを確認する。   When the bus master 111 finishes transmitting the test signal, the analysis control unit 204 checks whether or not the pattern indicated by the test signal stored in the storage unit 122 is different from the predetermined pattern.

そのテスト信号が示すパターンと所定のパターンとがずれていないと、解析制御部204は、遅延生成部203の同期する逓倍クロック信号を、遅延量を1だけ増加した逓倍クロック信号に選択し、再度、テスト要求およびスタート信号を送信する。   If the pattern indicated by the test signal does not deviate from the predetermined pattern, the analysis control unit 204 selects the multiplied clock signal synchronized with the delay generation unit 203 as the multiplied clock signal with the delay amount increased by 1, and again , Send test request and start signal.

一方、そのテスト信号が示すパターンと所定のパターンとがずれていると、解析制御部204は、そのときのリタイミング部112の遅延量を、ずれ遅延量として求める。なお、そのリタイミング部112の遅延量は、遅延生成部203の同期する逓倍クロック信号の遅延量と等しい。   On the other hand, if the pattern indicated by the test signal is different from the predetermined pattern, the analysis control unit 204 obtains the delay amount of the retiming unit 112 at that time as the deviation delay amount. The delay amount of the retiming unit 112 is equal to the delay amount of the multiplied clock signal synchronized with the delay generation unit 203.

なお、解析制御部204は、記憶部122に格納されたテスト信号に付けられた識別情報ごとに、そのテスト信号と所定のパターンとを比較してずれ遅延量を求める。   Note that the analysis control unit 204 compares the test signal with a predetermined pattern for each piece of identification information attached to the test signal stored in the storage unit 122 to obtain a shift delay amount.

解析制御部204は、ずれ遅延量を求めると、そのずれ遅延量を、その解析結果として結果格納部205に格納する。なお、解析部204は、そのずれ遅延量を、そのずれ遅延量のテスト信号を特定する識別情報を付けて格納する。   When the analysis control unit 204 obtains the shift delay amount, the analysis control unit 204 stores the shift delay amount in the result storage unit 205 as the analysis result. The analysis unit 204 stores the shift delay amount with identification information for specifying the test signal of the shift delay amount.

結果格納部205は、CPUから、解析結果を取得する旨の結果取得要求を受信すると、格納している解析結果をCPUに送信する。   When the result storage unit 205 receives a result acquisition request for acquiring an analysis result from the CPU, the result storage unit 205 transmits the stored analysis result to the CPU.

バススレーブ121は、リタイミング部112から送信された同期信号を、バスマスタ111から送信された基準クロック信号に同期して取り込む。   The bus slave 121 captures the synchronization signal transmitted from the retiming unit 112 in synchronization with the reference clock signal transmitted from the bus master 111.

バススレーブ121は、自己に解析モードが設定されていないと、その取り込んだ同期信号をデータバッファ123に格納し、自己に解析モードが設定されていると、その取り込んだ同期信号(テスト信号)を記憶部122のメモリ213に格納する。   If the analysis mode is not set for itself, the bus slave 121 stores the acquired synchronization signal in the data buffer 123. If the analysis mode is set for itself, the bus slave 121 receives the acquired synchronization signal (test signal). The data is stored in the memory 213 of the storage unit 122.

設定レジスタ211は、CPUから、オンを示す設定信号を受信すると、自己に解析モードを設定する。   When receiving a setting signal indicating ON from the CPU, the setting register 211 sets the analysis mode for itself.

記憶制御部212は、設定レジスタ211が解析モードを設定すると、バススレーブ121に解析モードを設定する。   The storage control unit 212 sets the analysis mode in the bus slave 121 when the setting register 211 sets the analysis mode.

次に動作を説明する。   Next, the operation will be described.

先ず、データの転送の動作について説明する。   First, the data transfer operation will be described.

なお、基準クロック生成部105は、設定レジスタ201および211に解析モードが設定されていても、設定されていなくても、基準クロック信号を生成し、その基準クロック信号を、バスマスタ111および逓倍部202、遅延生成部203および解析制御部204に送信している。また、リタイミング部112は、オフである。   Note that the reference clock generation unit 105 generates a reference clock signal regardless of whether the analysis mode is set in the setting registers 201 and 211, and generates the reference clock signal as the bus master 111 and the multiplication unit 202. To the delay generation unit 203 and the analysis control unit 204. Further, the retiming unit 112 is off.

バスマスタ111は、受付部115から基準クロック信号を常に受信する。   The bus master 111 always receives the reference clock signal from the reception unit 115.

バスマスタ111は、データバッファ114からデータを取得し、そのデータを示すデータ信号を生成する。バスマスタ111は、そのデータ信号、制御信号およびアドレス信号と、その受信された基準クロック信号とを同期して送信する。このとき、バスマスタ111は、その基準クロック信号を、同期バス103を介してバススレーブ121に送信し、その同期信号(データ信号、制御信号およびアドレス信号)をリタイミング部112に送信する。   The bus master 111 acquires data from the data buffer 114 and generates a data signal indicating the data. The bus master 111 transmits the data signal, control signal, and address signal and the received reference clock signal in synchronization. At this time, the bus master 111 transmits the reference clock signal to the bus slave 121 via the synchronization bus 103, and transmits the synchronization signal (data signal, control signal, and address signal) to the retiming unit 112.

リタイミング部112は、その同期信号を受信すると、その同期信号を遅延せずに同期バス103を介してバススレーブ121に送信する。これは、リタイミング部112がオフのためである。   When receiving the synchronization signal, the retiming unit 112 transmits the synchronization signal to the bus slave 121 via the synchronization bus 103 without delay. This is because the retiming unit 112 is off.

バススレーブ121は、バスマスタ111から基準クロック信号を受信し、リタイミング部112から同期信号を受信する。   The bus slave 121 receives a reference clock signal from the bus master 111 and receives a synchronization signal from the retiming unit 112.

バススレーブ121は、その基準クロック信号に同期して、その同期信号を取り込み、その取り込んだ同期信号をデータバッファ123に格納する。なお、この同期信号の取り込み処理は、従来の処理と変らないので詳しい説明は省略する。   The bus slave 121 captures the synchronization signal in synchronization with the reference clock signal, and stores the captured synchronization signal in the data buffer 123. Note that the synchronization signal capturing process is the same as the conventional process, and thus detailed description thereof is omitted.

次に、解析モードへの移行について説明する。   Next, the transition to the analysis mode will be described.

設定レジスタ201および211には、バスマスタ111がデータを転送しているときに、CPUから、オンを示す設定信号を受信したとする。   It is assumed that a setting signal indicating ON is received from the CPU while the bus master 111 is transferring data to the setting registers 201 and 211.

設定レジスタ201および211は、CPUからオンを示す設定信号を受信すると、自己に解析モードを設定する。   When the setting registers 201 and 211 receive a setting signal indicating ON from the CPU, they set the analysis mode for themselves.

設定レジスタ201は、自己に解析モードを設定すると、その設定信号を解析制御部204に送信する。   When setting the analysis mode, the setting register 201 transmits the setting signal to the analysis control unit 204.

解析制御部204は、設定信号を受信すると、その設定信号をバスマスタ111に送信する。   When the analysis control unit 204 receives the setting signal, the analysis control unit 204 transmits the setting signal to the bus master 111.

バスマスタ111は、その設定信号を受信すると、データバッファ114からデータの取得およびそのデータの転送用の同期信号の送信を停止し、その後、自己に解析モードを設定する。   When the bus master 111 receives the setting signal, the bus master 111 stops acquiring the data from the data buffer 114 and transmitting a synchronization signal for transferring the data, and then sets the analysis mode to itself.

また、設定レジスタ211は、自己に解析モードを設定すると、その設定信号を記憶制御部212に送信する。記憶制御部212は、その設定信号を受信すると、その設定信号をバススレーブ121に送信する。   Further, when setting the analysis mode for itself, the setting register 211 transmits the setting signal to the storage control unit 212. When the storage control unit 212 receives the setting signal, the storage control unit 212 transmits the setting signal to the bus slave 121.

バススレーブ121は、その設定信号を受信すると同期信号の取り込みを停止し、その後、自己に解析モードを設定する。   When the bus slave 121 receives the setting signal, the bus slave 121 stops taking in the synchronization signal, and then sets the analysis mode to itself.

次に、解析モードの動作について説明する。   Next, the operation in the analysis mode will be described.

逓倍部202は、受付部115から基準クロック信号を常に受信する。   The multiplier 202 always receives the reference clock signal from the accepting unit 115.

逓倍部202は、その基準クロック信号を逓倍して複数の逓倍クロック信号を生成し、その複数の逓倍クロック信号を遅延生成部203に送信する。   The multiplier 202 multiplies the reference clock signal to generate a plurality of multiplied clock signals, and transmits the plurality of multiplied clock signals to the delay generator 203.

遅延生成部203は、基準クロック生成部105から基準クロック信号を常に受信し、逓倍部202から逓倍クロック信号を常に受信する。また、遅延生成部203は、解析制御部204からセレクト信号を受信する。セレクト信号は、基準クロック信号を同期する逓倍クロック信号を特定する。なお、本実施例では、セレクト信号は、その特定する逓倍クロック信号の遅延量を示すものとする。   The delay generation unit 203 always receives the reference clock signal from the reference clock generation unit 105 and always receives the multiplied clock signal from the multiplication unit 202. Further, the delay generation unit 203 receives a select signal from the analysis control unit 204. The select signal specifies a multiplied clock signal that synchronizes the reference clock signal. In this embodiment, the select signal indicates the delay amount of the specified multiplied clock signal.

図3は、遅延生成部203の動作の一例を説明するためのタイムチャートである。なお、図3において、逓倍部202の逓倍数を10としている。   FIG. 3 is a time chart for explaining an example of the operation of the delay generation unit 203. In FIG. 3, the multiplication number of the multiplication unit 202 is 10.

図3において、基準CLKは、基準クロック信号であり、逓倍CLKは、逓倍クロック信号であり、DLYCLK#1ないし#9は、遅延クロック信号である。   In FIG. 3, reference CLK is a reference clock signal, multiplied CLK is a multiplied clock signal, and DLYCLK # 1 to # 9 are delayed clock signals.

図3の場合、逓倍数が10なので、遅延生成部203が生成可能な、互いに遅延量の異なる遅延クロック信号の数は、10である。なお、図3では、それらの生成可能な遅延クロック信号の中の、9個の遅延クロック信号(DLYCLK#1ないし#9)が示されている。   In the case of FIG. 3, since the multiplication number is 10, the number of delay clock signals with different delay amounts that can be generated by the delay generation unit 203 is 10. FIG. 3 shows nine delayed clock signals (DLYCLK # 1 to # 9) among the delay clock signals that can be generated.

なお、残りの一つの遅延クロック信号は、基準クロック信号が遅延量「0」の逓倍クロック信号と同期して生成される遅延クロック信号であり、基準クロック信号と同じ位相を有する。   The remaining one delayed clock signal is a delayed clock signal that is generated in synchronization with the multiplied clock signal whose delay amount is “0”, and has the same phase as the reference clock signal.

遅延生成部203は、基準クロック信号を、そのセレクト信号が特定する逓倍クロック信号に同期して、それらの生成可能な10個の遅延クロック信号のいずれか一つの遅延クロック信号を生成する。   The delay generation unit 203 generates any one of the 10 delay clock signals that can be generated by synchronizing the reference clock signal with the multiplied clock signal specified by the select signal.

なお、逓倍部202および遅延生成部203は、設定レジスタ201が解析モードを設定していても、解析モードを設定していなくても、上記の動作を行なう。   Note that the multiplication unit 202 and the delay generation unit 203 perform the above operation regardless of whether the setting register 201 sets the analysis mode or the analysis mode.

リタイミング部112は、バスマスタ111から同期信号を受信し、遅延生成部203から遅延クロック信号を受信する。   The retiming unit 112 receives a synchronization signal from the bus master 111 and receives a delayed clock signal from the delay generation unit 203.

リタイミング部112は、オフであると、その受信した同期信号を、遅延せずにバススレーブ121に送信する。   When the retiming unit 112 is off, the retiming unit 112 transmits the received synchronization signal to the bus slave 121 without delay.

リタイミング部112は、解析制御部204からオンを示すスイッチ信号を受信すると、オンになる。   When the retiming unit 112 receives a switch signal indicating ON from the analysis control unit 204, the retiming unit 112 is turned ON.

図4は、オンのときのリタイミング部112の動作の一例を説明するためのタイムチャートである。図4において、基準CLKは、基準クロック信号である。   FIG. 4 is a time chart for explaining an example of the operation of the retiming unit 112 when turned on. In FIG. 4, reference CLK is a reference clock signal.

なお、リタイミング部112は、複数の同期信号のそれぞれに対して、同様な動作を行なうため、図4では、制御信号のCS信号を例に説明し、そのCS信号と異なる同期信号についての説明は省略する。また、逓倍部202の逓倍数は、20であるとする。   Since retiming section 112 performs the same operation for each of the plurality of synchronization signals, in FIG. 4, the CS signal of the control signal will be described as an example, and a description of the synchronization signal different from the CS signal Is omitted. Further, it is assumed that the multiplication number of the multiplication unit 202 is 20.

リタイミング部112は、そのCS信号を、その遅延クロック信号に同期してバススレーブ121に送信する。これにより、リタイミング部112は、そのCS信号を、遅延クロック信号の遅延量だけ遅延することになる。   The retiming unit 112 transmits the CS signal to the bus slave 121 in synchronization with the delayed clock signal. As a result, the retiming unit 112 delays the CS signal by the delay amount of the delayed clock signal.

図4では、逓倍数が20なので、遅延生成部203は、20通りの遅延量の異なる遅延クロック信号を生成することが可能であるので、リタイミング部112も、20通りの遅延量の異なるCS信号を出力することが可能である。図4では、遅延量が0ないし3と、19とのCS信号が示されている。   In FIG. 4, since the multiplication number is 20, the delay generation unit 203 can generate delayed clock signals with 20 different delay amounts, and therefore the retiming unit 112 also has CS with 20 different delay amounts. It is possible to output a signal. In FIG. 4, CS signals with delay amounts of 0 to 3 and 19 are shown.

解析制御部204は、設定信号をバスマスタ111に送信すると、その後、リタイミング部112のテスト信号の遅延量を0に調節する。具体的には、オンを示すスイッチ制御信号をリタイミング部112に送信し、かつ、遅延量「0」を示すセレクト信号を遅延生成部203に送信する。なお、解析制御部204は、リタイミング部112をオフのままにしておいてもよい。   After transmitting the setting signal to the bus master 111, the analysis control unit 204 adjusts the delay amount of the test signal of the retiming unit 112 to 0 thereafter. Specifically, the switch control signal indicating ON is transmitted to the retiming unit 112, and the select signal indicating the delay amount “0” is transmitted to the delay generation unit 203. Note that the analysis control unit 204 may leave the retiming unit 112 off.

解析制御部204は、その遅延量を調節すると、テスト要求をバスマスタ112に送信して、テスト信号の転送処理を実行する。   After adjusting the delay amount, the analysis control unit 204 transmits a test request to the bus master 112 and executes a test signal transfer process.

図5は、テスト信号の転送処理を説明するためのタイムチャートである。   FIG. 5 is a time chart for explaining test signal transfer processing.

図5では、m番目のアドレス信号およびデータ信号が示されている。また、制御信号のCS信号が示されている。また、基準CLKは、基準クロック信号であり、STARTは、スタート信号である。   In FIG. 5, the mth address signal and data signal are shown. Further, the CS signal of the control signal is shown. Reference CLK is a reference clock signal, and START is a start signal.

時刻501で、解析制御部204は、スタート信号およびテスト要求を、基準クロック信号に同期して送信する。このとき、解析制御部204は、テスト要求をバスマスタ111に送信し、かつ、スタート信号を、信号バス104を介してバススレーブ121に送信する。   At time 501, the analysis control unit 204 transmits a start signal and a test request in synchronization with the reference clock signal. At this time, the analysis control unit 204 transmits a test request to the bus master 111 and transmits a start signal to the bus slave 121 via the signal bus 104.

時刻502で、バスマスタ111は、そのテスト要求を受信すると、その次の基準クロックおよびテスト信号を同期して送信する。なお、そのテスト要求を受信した次の基準クロック信号は、解析制御部204がスタート信号と同期した、基準クロック信号の次の基準クロック信号になるように設計されることが望ましい。   When receiving the test request at time 502, the bus master 111 transmits the next reference clock and test signal in synchronization. It is desirable that the next reference clock signal that has received the test request is designed to be a reference clock signal next to the reference clock signal that is synchronized with the start signal by the analysis control unit 204.

時刻503で、バススレーブ121は、そのスタート信号を受信すると、その次の基準クロック信号と同期して、バスマスタ111から受信したテスト信号を取り込む。なお、そのスタート信号を受信した次の基準クロック信号は、解析制御部204がスタート信号と同期した、基準クロック信号の次の基準クロック信号になるように設計されることが望ましい。   At time 503, when the bus slave 121 receives the start signal, the bus slave 121 captures the test signal received from the bus master 111 in synchronization with the next reference clock signal. It is desirable that the next reference clock signal that has received the start signal is designed to be the next reference clock signal after the reference clock signal that is synchronized with the start signal by the analysis control unit 204.

バススレーブ121は、取り込んだテスト信号のそれぞれを、そのテスト信号を特定する識別情報を付けてメモリ213に格納する。   The bus slave 121 stores each of the captured test signals in the memory 213 with identification information for specifying the test signal.

一方、バススレーブ121は、テスト信号の送信が終了すると、テスト信号の送信の終了を示す終了信号を解析制御部204に送信する。   On the other hand, when the transmission of the test signal is completed, the bus slave 121 transmits an end signal indicating the end of the transmission of the test signal to the analysis control unit 204.

解析制御部204は、その終了信号を受信すると、メモリ213に格納されたテスト信号を取得する。   When the analysis control unit 204 receives the end signal, the analysis control unit 204 acquires the test signal stored in the memory 213.

具体的には、解析制御部204は、テスト信号の取得する旨の取得要求をバスマスタ111に送信する。バスマスタ111は、その取得要求を受信すると、テスト信号の取得を示す制御信号を、同期バス104を介してバススレーブ121に送信する。バススレーブ121は、その制御信号を受信すると、そのメモリ213からテスト信号を取得し、そのテスト信号を、データ信号として同期バス104を介してバスマスタ111に送信する。バスマスタ111は、そのテスト信号を受信すると、そのテスト信号を解析制御部204に送信する。解析制御部204は、そのテスト信号を受信する。   Specifically, the analysis control unit 204 transmits an acquisition request for acquiring a test signal to the bus master 111. When receiving the acquisition request, the bus master 111 transmits a control signal indicating acquisition of the test signal to the bus slave 121 via the synchronous bus 104. When the bus slave 121 receives the control signal, the bus slave 121 acquires a test signal from the memory 213 and transmits the test signal to the bus master 111 via the synchronous bus 104 as a data signal. When the bus master 111 receives the test signal, the bus master 111 transmits the test signal to the analysis control unit 204. The analysis control unit 204 receives the test signal.

解析制御部204は、そのテスト信号が示すパターンと、保持している所定のパターンとがずれているか否かを、テスト信号ごとに確認する。   The analysis control unit 204 checks for each test signal whether the pattern indicated by the test signal is deviated from the predetermined pattern held.

そのテスト信号が示すパターンと所定のパターンとがずれていると、解析制御部204は、保持している遅延量を、ずれ遅延量として求める。   If the pattern indicated by the test signal is different from the predetermined pattern, the analysis control unit 204 obtains the held delay amount as the shift delay amount.

一方、そのテスト信号が示すパターンと所定のパターンとがずれていないと、解析制御部204は、保持している遅延量を1だけ増加させた遅延量を示すセレクト信号を、遅延生成部203に送信する。なお、解析制御部204は、リタイミング部112がオフであるときには、オンを示すスイッチ制御信号をリタイミング部112に送信する。   On the other hand, if the pattern indicated by the test signal does not deviate from the predetermined pattern, the analysis control unit 204 sends a select signal indicating a delay amount obtained by increasing the held delay amount by 1 to the delay generation unit 203. Send. When the retiming unit 112 is off, the analysis control unit 204 transmits a switch control signal indicating on to the retiming unit 112.

その後、解析制御部204は、再度、スタート信号およびテスト要求を、基準クロック信号に同期して送信する。   Thereafter, the analysis control unit 204 transmits the start signal and the test request again in synchronization with the reference clock signal.

解析制御部204は、全てのテスト信号に対して、そのテスト信号が示すパターンと所定のパターンとがずれるまで、上記の処理を繰り返す。   The analysis control unit 204 repeats the above processing for all test signals until the pattern indicated by the test signal is different from the predetermined pattern.

図6は、タイミング解析を説明するためのタイムチャートである。なお、制御信号のCS信号を例に説明し、その他のテスト信号についての説明は省略する。図6では、遅延量が0、n−1およびnのCS信号が示されている。また、基準CLKは、基準クロック信号であり、STARTは、スタート信号である。   FIG. 6 is a time chart for explaining the timing analysis. The CS signal of the control signal will be described as an example, and description of other test signals will be omitted. In FIG. 6, CS signals with delay amounts of 0, n−1 and n are shown. Reference CLK is a reference clock signal, and START is a start signal.

本実施例では、バスマスタ111が送信したテスト信号は、1および0の繰り返しからなる32ビットの信号なので、バススレーブ121が正常にそのテスト信号を取り込むと、「0x55555555」となる。もし、そのテスト信号は、リタイミング部112による遅延によって、タイミング制約マージンが満たされず、正常にデータが取り込めずに位相がずれると、例えば、「0xAAAAAA」となる。   In this embodiment, the test signal transmitted by the bus master 111 is a 32-bit signal consisting of repetitions of 1 and 0. Therefore, when the bus slave 121 normally captures the test signal, it becomes “0x55555555”. If the timing constraint margin is not satisfied due to the delay by the retiming unit 112 and the phase is shifted because the data cannot be captured normally, the test signal becomes, for example, “0xAAAAAA”.

バスマスタ111が送信したCS信号は、同期バス104の配線長およびインピーダンスなどによる波形の歪みにより伝送遅延が発生する。   The CS signal transmitted by the bus master 111 has a transmission delay due to waveform distortion due to the wiring length and impedance of the synchronous bus 104.

バススレーブ121は、時刻601で基準クロック信号と同期してCS信号を取り込んだとする。   Assume that the bus slave 121 takes in the CS signal in synchronization with the reference clock signal at time 601.

リタイミング部112のCS信号の遅延量が0のとき、その制御信号のセットアップマージンは、時間602になる。   When the CS signal delay amount of the retiming unit 112 is 0, the setup margin of the control signal is time 602.

リタイミング部112のCS信号の遅延量が大きくなるほど、そのセットアップマージンは減少する。   The setup margin decreases as the CS signal delay amount of the retiming unit 112 increases.

リタイミング部112のCS信号の遅延量がnのときに、セットアップマージンがセットアップタイムより短くなったとする。この場合、バススレーブ121は、リタイミング部112の遅延量が0ないしn−1のとき、CS信号として「0x55555555」を取り込み、その遅延量がnのとき、CS信号として「0xAAAAAA」を取り込む。   It is assumed that the setup margin becomes shorter than the setup time when the CS signal delay amount of the retiming unit 112 is n. In this case, the bus slave 121 captures “0x55555555” as the CS signal when the delay amount of the retiming unit 112 is 0 to n−1, and captures “0xAAAAAA” as the CS signal when the delay amount is n.

解析制御部204は、遅延量が0ないしn−1のときのCS信号を取得すると、そのCS信号が示すパターンと所定のパターンとがずれていないと判定する。   When the analysis control unit 204 acquires the CS signal when the delay amount is 0 to n−1, the analysis control unit 204 determines that the pattern indicated by the CS signal is not shifted from the predetermined pattern.

一方、解析制御部204は、遅延量nときのCS信号を取得すると、そのCS信号が示すパターンと所定のパターンとがずれていると判定する。解析制御部204は、保持している遅延量nを、ずれ遅延量として求める。   On the other hand, when acquiring the CS signal when the delay amount is n, the analysis control unit 204 determines that the pattern indicated by the CS signal is different from the predetermined pattern. The analysis control unit 204 obtains the held delay amount n as a shift delay amount.

また、解析制御部204は、以下のような値を求めてもよい。   Further, the analysis control unit 204 may obtain the following values.

解析制御部204は、そのずれ遅延量nを求めると、そのずれ遅延量の前の遅延量n−1を求める。解析制御部204は、その遅延量n−1に、逓倍クロック信号の周期を乗算した遅延時間を、セットアップマージンとして求める。この場合、解析制御部204は、逓倍クロック信号の周期を保持する。   When the analysis control unit 204 obtains the deviation delay amount n, the analysis control unit 204 obtains the delay amount n−1 before the deviation delay amount. The analysis control unit 204 obtains a delay time obtained by multiplying the delay amount n−1 by the period of the multiplied clock signal as a setup margin. In this case, the analysis control unit 204 holds the cycle of the multiplied clock signal.

なお、この遅延時間は、実際には、セットアップマージンからセットアップタイムを減算した値を示す。解析制御部204は、セットアップタイムを保持し、そのセットアップタイムにその遅延時間を加算した時間を、セットアップマージンとして求めてもよい。   The delay time actually indicates a value obtained by subtracting the setup time from the setup margin. The analysis control unit 204 may hold the setup time, and obtain a setup margin by adding the delay time to the setup time.

また、解析制御部204は、その求めたセットアップマージンを、基準クロック信号の周期から減算した残余時間をホールドマージンとして求める。   The analysis control unit 204 obtains a remaining time obtained by subtracting the obtained setup margin from the period of the reference clock signal as a hold margin.

なお、この残余時間は、実際には、ホールドマージンにセットアップタイムを加算した値を示す。解析制御部204は、セットアップタイムを保持し、その残余時間からそのセットアップタイムを減算した時間を、ホールドマージンとして求めてもよい。   The remaining time actually indicates a value obtained by adding the setup time to the hold margin. The analysis control unit 204 may hold the setup time and obtain a time obtained by subtracting the setup time from the remaining time as a hold margin.

解析制御部204は、ずれ遅延量、セットアップタイムおよびホールドタイムを求めると、そのずれ遅延量、セットアップタイムおよびホールドタイムを、解析結果として結果格納部205に格納する。   When the analysis control unit 204 obtains the shift delay amount, the setup time, and the hold time, the analysis control unit 204 stores the shift delay amount, the setup time, and the hold time in the result storage unit 205 as analysis results.

本実施例によれば、バスマスタ111は、所定のパターンを示す同期信号と基準クロック信号とを同期して送信する。リタイミング部112は、バスマスタ111から送信された同期信号を遅延して送信する。バススレーブ121は、リタイミング部112から送信された同期信号をその基準クロック信号に同期して取り込み、その取り込んだ同期信号を記憶部122に格納する。解析部113は、リタイミング部112の遅延量を調節して、記憶部122に格納された同期信号を調整する。また、解析部113は、記憶部122に格納された同期信号が示すパターンと所定のパターンとにずれが生じるずれ遅延量を求める。   According to the present embodiment, the bus master 111 transmits a synchronization signal indicating a predetermined pattern and a reference clock signal in synchronization. The retiming unit 112 transmits the synchronization signal transmitted from the bus master 111 with a delay. The bus slave 121 captures the synchronization signal transmitted from the retiming unit 112 in synchronization with the reference clock signal, and stores the captured synchronization signal in the storage unit 122. The analysis unit 113 adjusts the delay amount of the retiming unit 112 and adjusts the synchronization signal stored in the storage unit 122. In addition, the analysis unit 113 obtains a shift delay amount that causes a shift between the pattern indicated by the synchronization signal stored in the storage unit 122 and a predetermined pattern.

この場合、ずれ遅延量が求められる。そのずれ遅延量は、セットアップマージンを反映する。このため、信号の状態を測定しなくても、セットアップマージンを知ることが可能になる。また、セットアップマージンが分かると、タイミング制約が満たされるか否かが分かる。したがって、実装置のタイミング制約の解析にかかる労力を軽減することが可能になる。   In this case, the shift delay amount is obtained. The shift delay amount reflects the setup margin. Therefore, it is possible to know the setup margin without measuring the signal state. If the setup margin is known, it can be determined whether or not the timing constraint is satisfied. Therefore, it is possible to reduce the labor required for analyzing the timing constraints of the actual device.

また、本実施例では、逓倍部202は、受付部115から送信された基準クロック信号を逓倍して複数の逓倍クロック信号を生成し、その複数の逓倍クロック信号を送信する。解析制御部204は、逓倍部202から生成した複数の逓倍クロック信号から、一つの逓倍クロック信号を選択する。遅延生成部203は、受付部115から送信された基準クロック信号を、その選択された逓倍クロック信号に同期して遅延クロック信号を生成し、その遅延クロック信号を送信する。リタイミング部112は、基準クロック信号を、遅延生成部203が生成した遅延クロック信号に同期して送信する。   In this embodiment, the multiplication unit 202 multiplies the reference clock signal transmitted from the reception unit 115 to generate a plurality of multiplied clock signals, and transmits the plurality of multiplied clock signals. The analysis control unit 204 selects one multiplied clock signal from the plurality of multiplied clock signals generated from the multiplication unit 202. The delay generation unit 203 generates a delay clock signal by synchronizing the reference clock signal transmitted from the reception unit 115 with the selected multiplied clock signal, and transmits the delayed clock signal. The retiming unit 112 transmits the reference clock signal in synchronization with the delayed clock signal generated by the delay generating unit 203.

この場合、同期信号が、遅延クロック信号に同期して送信される。これにより、同期信号が、その遅延クロック信号の遅延量だけ遅延される。   In this case, the synchronization signal is transmitted in synchronization with the delayed clock signal. As a result, the synchronization signal is delayed by the delay amount of the delayed clock signal.

このため、同期信号の遅延量の調節を正確に行なうことが可能になる。   For this reason, it is possible to accurately adjust the delay amount of the synchronization signal.

次に、基準クロック信号の遅延量を調節することが可能なタイミング解析回路について説明する。   Next, a timing analysis circuit capable of adjusting the delay amount of the reference clock signal will be described.

図7は、基準クロック信号の遅延量を調節することが可能なタイミング解析回路の構成の一例を示したブロック図である。以下では、主に、図1ないし図6で説明した構成または動作と異なる構成および動作を説明する。なお、図7において、図6と同じものには同じ符号が付してある。   FIG. 7 is a block diagram showing an example of a configuration of a timing analysis circuit capable of adjusting the delay amount of the reference clock signal. In the following, the configuration and operation different from the configuration or operation described in FIGS. 1 to 6 will be mainly described. In FIG. 7, the same components as those in FIG. 6 are denoted by the same reference numerals.

図7において、デバイス101は、バスマスタ111と、リタイミング部112と、リタイミング調整機能部113aと、データバッファ114と、リタイミング部701とを含む。タイミング調整機能部(以下、調整部と称する)113aは、設定レジスタ201と、逓倍部202と、遅延生成部203と、調整制御部204aと、結果格納部205とを含む。   7, the device 101 includes a bus master 111, a retiming unit 112, a retiming adjustment function unit 113a, a data buffer 114, and a retiming unit 701. The timing adjustment function unit (hereinafter referred to as an adjustment unit) 113a includes a setting register 201, a multiplication unit 202, a delay generation unit 203, an adjustment control unit 204a, and a result storage unit 205.

バスマスタ111は、同期信号および基準クロック信号を同期してバススレーブ121に送信する。このとき、バスマスタ111は、その基準クロック信号を、リタイミング部701および同期バス103を介してバススレーブ121に送信する。   The bus master 111 transmits the synchronization signal and the reference clock signal to the bus slave 121 in synchronization. At this time, the bus master 111 transmits the reference clock signal to the bus slave 121 via the retiming unit 701 and the synchronization bus 103.

遅延生成部203は、遅延クロック信号をリタイミング部701にさらに送信する。   The delay generation unit 203 further transmits the delayed clock signal to the retiming unit 701.

リタイミング部701は、修正部の一例である。   The retiming unit 701 is an example of a correction unit.

リタイミング部701は、バスマスタ111から送信された基準クロック信号を遅延し、その遅延した基準クロック信号をバススレーブ121に送信する。具体的には、リタイミング部701は、バスマスタ111から送信された基準クロック信号を、遅延生成部203から送信された遅延クロック信号に同期してバススレーブ121に送信する。   The retiming unit 701 delays the reference clock signal transmitted from the bus master 111 and transmits the delayed reference clock signal to the bus slave 121. Specifically, the retiming unit 701 transmits the reference clock signal transmitted from the bus master 111 to the bus slave 121 in synchronization with the delayed clock signal transmitted from the delay generation unit 203.

バススレーブ121は、リタイミング部112から送信された同期信号を、リタイミング部701から送信された基準クロック信号に同期して取り込む。   The bus slave 121 captures the synchronization signal transmitted from the retiming unit 112 in synchronization with the reference clock signal transmitted from the retiming unit 701.

調整制御部204aは、解析制御部204が行なう処理に加え、以下の処理を行なう。   In addition to the processing performed by the analysis control unit 204, the adjustment control unit 204a performs the following processing.

調整制御部204aは、ずれ遅延量を求めると、その求めた遅延量に基づいて、リタイミング部701の遅延量を調節する。   When the adjustment control unit 204a obtains the deviation delay amount, the adjustment control unit 204a adjusts the delay amount of the retiming unit 701 based on the obtained delay amount.

具体的には、調整制御部204aは、その求めた遅延量が、予め定められた閾値以下か否かを判定する。   Specifically, the adjustment control unit 204a determines whether or not the obtained delay amount is equal to or less than a predetermined threshold value.

その求められた遅延量がその閾値以下であると、調整制御部204aは、その求めた遅延量に基づいて、バスマスタ111が送信した基準クロック信号の遅延量を求める。   If the obtained delay amount is equal to or less than the threshold value, the adjustment control unit 204a obtains the delay amount of the reference clock signal transmitted by the bus master 111 based on the obtained delay amount.

例えば、調整制御部204aは、所定値を保持し、その所定値から、その求めた遅延量を引いた値を、バスマスタ111から送信された基準クロック信号の遅延量として求める。所定値は、所望のセットアップマージンを示す。   For example, the adjustment control unit 204a holds a predetermined value, and obtains a value obtained by subtracting the obtained delay amount from the predetermined value as the delay amount of the reference clock signal transmitted from the bus master 111. The predetermined value indicates a desired setup margin.

調整制御部204aは、その基準クロック信号の遅延量を求めると、その遅延量を示すセレクト信号を遅延生成部203に送信することで、遅延生成部203が基準クロック信号を同期する逓倍クロック信号として、その求めた遅延量の逓倍クロック信号を選択する。   When the adjustment control unit 204a obtains the delay amount of the reference clock signal, the adjustment control unit 204a transmits a select signal indicating the delay amount to the delay generation unit 203 so that the delay generation unit 203 synchronizes the reference clock signal. Then, the multiplied clock signal of the obtained delay amount is selected.

本実施例では、リタイミング部701は、バスマスタ111が送信した基準クロック信号を遅延し、その遅延した基準クロック信号を送信する。調整制御部204aは、その求めたずれ遅延量に基づいて、リタイミング部701の遅延量を調節する。   In the present embodiment, the retiming unit 701 delays the reference clock signal transmitted by the bus master 111 and transmits the delayed reference clock signal. The adjustment control unit 204a adjusts the delay amount of the retiming unit 701 based on the obtained shift delay amount.

この場合、基準クロック信号の遅延量が、パターンにずれが生じる同期信号の遅延量に基づいて調節される。このため、同期信号のタイミングマージンを所望の値に調節することが可能になる。   In this case, the delay amount of the reference clock signal is adjusted based on the delay amount of the synchronization signal that causes a shift in the pattern. For this reason, the timing margin of the synchronization signal can be adjusted to a desired value.

また、本実施例では、リタイミング部701は、バスマスタ111が送信した基準クロック信号を、遅延生成部203が送信した遅延クロック信号に同期して送信する。調整制御部204aは、求めたずれ遅延量に基づいて、遅延生成部203が基準クロック信号を同期する逓倍クロック信号を選択する。   In this embodiment, the retiming unit 701 transmits the reference clock signal transmitted by the bus master 111 in synchronization with the delayed clock signal transmitted by the delay generation unit 203. The adjustment control unit 204a selects a multiplied clock signal with which the delay generation unit 203 synchronizes the reference clock signal based on the obtained shift delay amount.

この場合、基準クロック信号が、遅延クロック信号に同期して送信される。これにより、基準クロック信号が、その遅延クロック信号の遅延量だけ遅延される。このため、基準クロック信号の遅延量の調節を正確に行なうことが可能になる。   In this case, the reference clock signal is transmitted in synchronization with the delayed clock signal. As a result, the reference clock signal is delayed by the delay amount of the delayed clock signal. Therefore, it is possible to accurately adjust the delay amount of the reference clock signal.

以上説明した実施例において、図示した構成は単なる一例であって、本発明はその構成に限定されるものではない。   In the embodiment described above, the illustrated configuration is merely an example, and the present invention is not limited to the configuration.

例えば、逓倍部202の逓倍数は、可変でもよい。この場合、設定レジスタ201が逓倍数を設定する。   For example, the multiplication number of the multiplication unit 202 may be variable. In this case, the setting register 201 sets the multiplication number.

この場合、設定レジスタ201は、CPUから逓倍数を示す信号を受信すると、その信号が示す逓倍数を自己に設定する。また、設定レジスタ201は、自己に解析モードを設定すると、その逓倍数を逓倍部202に設定し、かつ、解析制御部204(または、調整制御部204a)にその逓倍数を送信する。   In this case, when receiving a signal indicating the multiplication number from the CPU, the setting register 201 sets the multiplication number indicated by the signal to itself. Further, when setting the analysis mode for itself, the setting register 201 sets the multiplication number in the multiplication unit 202 and transmits the multiplication number to the analysis control unit 204 (or the adjustment control unit 204a).

逓倍部202は、その設定された逓倍数で、受付部115から受信した基準クロック信号を逓倍する。   The multiplication unit 202 multiplies the reference clock signal received from the reception unit 115 by the set multiplication number.

解析制御部204は、その逓倍数を受信すると、その逓倍数と、基準クロック信号の周期に基づいて、逓倍クロック信号の周期および逓倍クロック信号の遅延量などをもとめる。なお、解析制御部204は、基準クロック信号の周期を保持する。   When the analysis control unit 204 receives the multiplication number, the analysis control unit 204 obtains the period of the multiplication clock signal, the delay amount of the multiplication clock signal, and the like based on the multiplication number and the period of the reference clock signal. Note that the analysis control unit 204 holds the period of the reference clock signal.

本発明の一実施例のタイミング解析回路の構成を示したブロック図である。It is the block diagram which showed the structure of the timing analysis circuit of one Example of this invention. 本発明の一実施例のタイミング解析回路の詳細な構成を示したブロック図である。FIG. 3 is a block diagram illustrating a detailed configuration of a timing analysis circuit according to an embodiment of the present invention. 遅延生成部の動作の一例を説明するためのタイムチャートである。It is a time chart for demonstrating an example of operation | movement of a delay production | generation part. リタイミング部の動作の一例を説明するためのタイムチャートである。It is a time chart for demonstrating an example of operation | movement of a retiming part. テスト信号の転送動作の一例を説明するためのタイムチャートである。It is a time chart for demonstrating an example of the transfer operation | movement of a test signal. タイミング解析の一例を説明するためのタイムチャートである。It is a time chart for demonstrating an example of a timing analysis. 本発明の他の実施例のタイミング解析回路の構成を示したブロック図である。It is the block diagram which showed the structure of the timing analysis circuit of the other Example of this invention. タイミング制約を説明するためのタイムチャートである。It is a time chart for demonstrating timing restrictions.

符号の説明Explanation of symbols

101 デバイス
102 デバイス
103 同期バス
104 信号バス
111 バスマスタ
112 リタイミング部
113 タイミング解析機能部
113a タイミング調整機能部
114 データバッファ
115 受付部
121 バススレーブ
122 記憶部
201 設定レジスタ
202 逓倍部
203 DelayCLK生成部
204 解析制御部
204a 調整制御部
211 設定レジスタ
212 記憶制御部
213 メモリ
701 リタイミング部
DESCRIPTION OF SYMBOLS 101 Device 102 Device 103 Synchronous bus 104 Signal bus 111 Bus master 112 Retiming part 113 Timing analysis function part 113a Timing adjustment function part 114 Data buffer 115 Reception part 121 Bus slave 122 Storage part 201 Setting register 202 Multiplication part 203 DelayCLK generation part 204 Analysis Control unit 204a Adjustment control unit 211 Setting register 212 Storage control unit 213 Memory 701 Retiming unit

Claims (8)

記憶部と、
所定のパターンを示す同期信号と基準クロック信号とを同期して送信する送信部と、
前記同期信号を遅延して送信する遅延部と、
前記遅延部から送信された同期信号を、前記送信部から送信された基準クロック信号に同期して取り込み、該取り込んだ同期信号を前記記憶部に格納する受信部と、
前記遅延部の遅延量を調節して、前記記憶部に格納される同期信号を調整し、前記記憶部に格納された同期信号が示すパターンと前記所定のパターンを比較して、該同期信号が示すパターンと前記所定のパターンとにずれが生じる遅延量を求める解析部と、を含むタイミング解析回路。
A storage unit;
A transmission unit that synchronously transmits a synchronization signal indicating a predetermined pattern and a reference clock signal;
A delay unit that delays and transmits the synchronization signal;
A synchronization unit transmitted from the delay unit is captured in synchronization with a reference clock signal transmitted from the transmission unit, and a reception unit that stores the captured synchronization signal in the storage unit;
The delay amount of the delay unit is adjusted, the synchronization signal stored in the storage unit is adjusted, the pattern indicated by the synchronization signal stored in the storage unit is compared with the predetermined pattern, and the synchronization signal is A timing analysis circuit including: an analysis unit that obtains a delay amount that causes a deviation between the pattern to be displayed and the predetermined pattern.
請求項1に記載のタイミング解析回路において、
前記基準クロック信号を生成する生成部から基準クロック信号を受信し、該基準クロック信号を送信する受付部を含み、
前記解析部は、
前記受付部から送信された基準クロック信号を逓倍して、複数の逓倍クロック信号を生成し、該複数の逓倍クロック信号を送信する逓倍部と、
前記逓倍部から送信された複数の逓倍クロック信号から、一つの逓倍クロック信号を選択する制御部と、
前記受付部から送信された基準クロック信号を、前記制御部にて選択された逓倍クロック信号に同期して遅延クロック信号を生成し、該遅延クロック信号を送信する遅延生成部と、を含み、
前記送信部は、前記同期信号と前記受付部から送信された基準クロック信号とを同期して送信し、
前記遅延部は、前記送信部から送信された同期信号を、前記遅延生成部から送信された遅延クロック信号に同期して送信する、タイミング解析回路。
The timing analysis circuit according to claim 1,
Receiving a reference clock signal from the generating unit for generating the reference clock signal, and including a receiving unit for transmitting the reference clock signal,
The analysis unit
Multiplying the reference clock signal transmitted from the reception unit to generate a plurality of multiplied clock signals, and a multiplying unit that transmits the plurality of multiplied clock signals;
A control unit that selects one multiplied clock signal from a plurality of multiplied clock signals transmitted from the multiplication unit;
A reference clock signal transmitted from the receiving unit, a delay clock signal is generated in synchronization with the multiplied clock signal selected by the control unit, and a delay generation unit that transmits the delayed clock signal,
The transmission unit transmits the synchronization signal and the reference clock signal transmitted from the reception unit in synchronization,
The timing analysis circuit, wherein the delay unit transmits the synchronization signal transmitted from the transmission unit in synchronization with the delay clock signal transmitted from the delay generation unit.
請求項1または2項に記載のタイミング解析回路において、
前記送信部から送信された基準クロック信号を遅延して送信する修正部をさらに含み、
前記解析部は、前記求めた遅延量に基づいて、前記修正部の遅延量を調節する、タイミング解析回路。
In the timing analysis circuit according to claim 1 or 2,
A correction unit that delays and transmits the reference clock signal transmitted from the transmission unit;
The timing analysis circuit, wherein the analysis unit adjusts a delay amount of the correction unit based on the obtained delay amount.
請求項2に記載のタイミング解析回路において、
前記送信部から送信された基準クロック信号を、前記遅延生成部から送信された遅延クロック信号に同期して送信する修正部をさらに含み、
前記制御部は、前記求めた遅延量に基づいて、前記遅延生成部が前記基準クロック信号を同期する逓倍クロック信号を選択する、タイミング解析回路。
The timing analysis circuit according to claim 2,
A correction unit that transmits the reference clock signal transmitted from the transmission unit in synchronization with the delayed clock signal transmitted from the delay generation unit;
The control unit is a timing analysis circuit in which the delay generation unit selects a multiplied clock signal that synchronizes the reference clock signal based on the obtained delay amount.
タイミング解析回路が行なうタイミング解析方法であって、
所定のパターンを示す同期信号と基準クロック信号とを同期して送信する送信ステップと、
前記同期信号を遅延して送信する遅延ステップと、
前記遅延されて送信された同期信号を、前記送信された基準クロック信号に同期して取り込む取込ステップと、
前記取り込まれた同期信号を格納する格納ステップと、
前記同期信号の遅延量を調節して、前記格納される同期信号を調整する調節ステップと、
前記格納された同期信号が示すパターンと前記所定のパターンとを比較して、該同期信号が示すパターンと前記所定のパターンとにずれが生じる遅延量を求める解析ステップと、を含むタイミング解析方法。
A timing analysis method performed by a timing analysis circuit,
A transmission step of synchronously transmitting a synchronization signal indicating a predetermined pattern and a reference clock signal;
A delay step of delaying and transmitting the synchronization signal;
Capturing the delayed and transmitted synchronization signal in synchronization with the transmitted reference clock signal;
A storing step for storing the captured synchronization signal;
An adjustment step of adjusting a delay amount of the synchronization signal to adjust the stored synchronization signal;
A timing analysis method comprising: an analysis step of comparing a pattern indicated by the stored synchronization signal with the predetermined pattern to obtain a delay amount that causes a shift between the pattern indicated by the synchronization signal and the predetermined pattern.
請求項5に記載のタイミング解析方法において、
前記基準クロック信号を生成する生成部から基準クロック信号を受信するクロック受信ステップと、
前記受信された基準クロック信号を逓倍して、複数の逓倍クロック信号を生成する逓倍ステップと、
前記複数の逓倍クロック信号から、一つの逓倍クロック信号を選択する選択ステップと、
前記受信された基準クロック信号を、前記選択された逓倍クロック信号に同期して遅延クロック信号を生成する遅延生成ステップと、を含み、
前記送信ステップでは、前記同期信号と前記受信された基準クロック信号とを同期して送信し、
前記遅延ステップでは、前記送信された同期信号を、前記生成された遅延クロック信号に同期して送信する、タイミング解析方法。
The timing analysis method according to claim 5,
A clock receiving step of receiving a reference clock signal from a generating unit for generating the reference clock signal;
A multiplying step of multiplying the received reference clock signal to generate a plurality of multiplied clock signals;
A selection step of selecting one multiplied clock signal from the plurality of multiplied clock signals;
A delay generation step of generating a delayed clock signal in synchronization with the received multiplied clock signal, the received reference clock signal;
In the transmission step, the synchronization signal and the received reference clock signal are transmitted in synchronization with each other,
In the delay step, the transmitted synchronization signal is transmitted in synchronization with the generated delayed clock signal.
請求項5または6に記載のタイミング解析方法において、
前記求められた遅延量に基づいて、前記送信された基準クロック信号の遅延量を調節する修正調節ステップと、
前記調節された遅延量で、前記送信された基準クロック信号を遅延して送信する修正ステップと、を含むタイミング解析方法。
In the timing analysis method according to claim 5 or 6,
A correction adjustment step of adjusting a delay amount of the transmitted reference clock signal based on the determined delay amount;
And a correction step of delaying and transmitting the transmitted reference clock signal by the adjusted delay amount.
請求項6に記載のタイミング解析方法において、
前記求められた遅延量に基づいて、前記送信された前記基準クロック信号を同期する逓倍クロック信号を選択する修正選択ステップと、
前記送信された基準クロック信号を、前記集計選択ステップで選択された遅延クロック信号に同期して送信する補正ステップと、を含むタイミング解析方法。
The timing analysis method according to claim 6,
A correction selection step of selecting a multiplied clock signal that synchronizes the transmitted reference clock signal based on the determined delay amount;
And a correction step of transmitting the transmitted reference clock signal in synchronization with the delayed clock signal selected in the totaling selection step.
JP2006281278A 2006-10-16 2006-10-16 Timing analysis circuit and timing analysis method Pending JP2008097503A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006281278A JP2008097503A (en) 2006-10-16 2006-10-16 Timing analysis circuit and timing analysis method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006281278A JP2008097503A (en) 2006-10-16 2006-10-16 Timing analysis circuit and timing analysis method

Publications (1)

Publication Number Publication Date
JP2008097503A true JP2008097503A (en) 2008-04-24

Family

ID=39380258

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006281278A Pending JP2008097503A (en) 2006-10-16 2006-10-16 Timing analysis circuit and timing analysis method

Country Status (1)

Country Link
JP (1) JP2008097503A (en)

Similar Documents

Publication Publication Date Title
JP4878215B2 (en) Interface circuit and memory control device
JP3856696B2 (en) Configurable synchronizer for double data rate synchronous dynamic random access memory
JP4998699B2 (en) Semiconductor device and communication control method
WO2022057844A1 (en) Device synchronous calibration method and apparatus, devices, and storage medium
JP4272515B2 (en) Phase correction circuit
JP2018506029A (en) High-speed data transfer using a calibrated single clock source synchronous serializer / deserializer protocol
JP4758311B2 (en) Asynchronous data holding circuit
KR100891326B1 (en) Test method and system for semiconductor memory device using data strobe signal generated from internal clock signal of semiconductor memory device
JP2018045409A (en) Data transmitter/receiver, and data transmission/reception system
US8711996B2 (en) Methods and apparatus for determining a phase error in signals
US7984351B2 (en) Data transfer device and method thereof
KR100817270B1 (en) Interface device and method for synchronizing data
JPWO2007097008A1 (en) Data receiving apparatus and data transmitting apparatus
US7177379B1 (en) DDR on-the-fly synchronization
JP2008097503A (en) Timing analysis circuit and timing analysis method
JP4408022B2 (en) Asynchronous data transfer device
US7248661B1 (en) Data transfer between phase independent clock domains
US20090232266A1 (en) Signal processing device
WO2023087588A1 (en) Sampling circuit, use method of sampling circuit, storage medium, and electronic device
US10504569B2 (en) System and method for controlling phase alignment of clock signals
US11622171B2 (en) Image sensor apparatus and corresponding method capable of automatically adjusting signal timing margins in response to different circuit routing designs
US7526017B2 (en) Transmitting device, receiving device, transmission system, and transmission method
JP4194430B2 (en) Synchronizer
US6744834B1 (en) Method and apparatus for initializing a synchronizer for same frequency, phase unknown data across multiple bit-sliced interfaces
CN117785792A (en) Signal processing method and device crossing synchronous frequency asynchronous clock domain