JP2013096727A - Semiconductor device - Google Patents

Semiconductor device Download PDF

Info

Publication number
JP2013096727A
JP2013096727A JP2011237099A JP2011237099A JP2013096727A JP 2013096727 A JP2013096727 A JP 2013096727A JP 2011237099 A JP2011237099 A JP 2011237099A JP 2011237099 A JP2011237099 A JP 2011237099A JP 2013096727 A JP2013096727 A JP 2013096727A
Authority
JP
Japan
Prior art keywords
signal
circuit
selector
semiconductor device
flip
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
JP2011237099A
Other languages
Japanese (ja)
Inventor
Takahiro Oki
隆広 大木
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.)
Renesas Electronics Corp
Original Assignee
Renesas Electronics Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Renesas Electronics Corp filed Critical Renesas Electronics Corp
Priority to JP2011237099A priority Critical patent/JP2013096727A/en
Publication of JP2013096727A publication Critical patent/JP2013096727A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Tests Of Electronic Circuits (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a semiconductor device capable of detecting timing violation of a plurality of portions with a small-scale circuit configuration.SOLUTION: A semiconductor device includes: a first selector for selecting any one of a plurality of signals based on a selecting signal; a second selector for selecting any one of a plurality of latched signals based on the selecting signal; a delay circuit for delaying a clock signal CLK for a predetermined time; a flip-flop circuit for detecting timing violation for latching the output of the first selector in synchronization with the clock signal delayed by the delay circuit; and a comparator circuit for comparing the output of the flip-flop circuit for detecting timing violation with the output of the second selector. The semiconductor device can be configured by a single circuit for detecting timing violation without providing circuits respectively for a plurality of signals.

Description

本発明は、半導体装置に関する。特に、本発明は、タイミング違反検出機能を有する半導体装置に関する。   The present invention relates to a semiconductor device. In particular, the present invention relates to a semiconductor device having a timing violation detection function.

近年、LSI(Large Scale Integration)の大規模化、高速化に伴い、LSIチップ内にタイミング条件が厳しいクリティカルパスが多数存在するようになってきている。そのようなLSIを実機に搭載して動作テスト行った場合、特に高負荷条件(高温、低電圧、高負荷動作)で、クリティカルパスにおいてタイミング違反が生じ、種々の不具合が発生することがある。例えば、画像表示装置用のLSIの場合には、表示画像にノイズが混じる不具合が発生することがある。このような場合、設計者は、実機評価結果と設計データの相関により、回路のどの部分に不具合が起きているかを予想して、不具合発生要因の解析を進めていくことになる。しかしながら、タイミング違反は、実動作状態におけるノイズやIRドロップ等に起因しているため、回路レベルで不具合が発生している箇所を特定することは非常に難しいという問題がある。   In recent years, with the increase in scale and speed of LSI (Large Scale Integration), there are many critical paths with severe timing conditions in the LSI chip. When such an LSI is mounted on an actual machine and an operation test is performed, timing violations may occur in the critical path, particularly under high load conditions (high temperature, low voltage, high load operation), and various problems may occur. For example, in the case of an LSI for an image display device, there may occur a problem that noise is mixed in a display image. In such a case, the designer predicts which part of the circuit has a failure based on the correlation between the actual machine evaluation result and the design data, and proceeds with the analysis of the cause of the failure. However, since the timing violation is caused by noise, IR drop, or the like in the actual operation state, there is a problem that it is very difficult to specify the location where the malfunction occurs at the circuit level.

上記したタイミング違反による不具合解析を効率よく行うための方法として、例えば特許文献1には、LSIを装置実装した実動作状態において、電源ノイズやクロストークノイズなどに起因したタイミング不良を検出し、発生場所を特定する方法が開示されている。   As a method for efficiently performing the failure analysis due to the timing violation described above, for example, Patent Document 1 discloses that a timing failure caused by power supply noise, crosstalk noise, or the like is detected and generated in an actual operation state in which an LSI is mounted. A method for identifying a location is disclosed.

特開2000−356667号公報JP 2000-356667 A

以下の分析は、本発明により与えられる。   The following analysis is given by the present invention.

図5は、特許文献1に記載された半導体装置の要部(フリップフロップ回路部)を示す回路図である。図5に示すように、通常動作するフリップフロップ回路FF1に、タイミング不良検出用として動作するフリップフロップ回路FF2、比較回路E−OR1、ディレイ素子などを付加し、通常のクロック信号CKと、このクロック信号を遅延した遅延クロック信号との2つのタイミングにおけるデータを観測することにより、両者のデータの不一致を検出してLSI動作状態(実動作状態)でのタイミング不良を検出している。   FIG. 5 is a circuit diagram showing a main part (flip-flop circuit part) of the semiconductor device described in Patent Document 1. As shown in FIG. 5, a flip-flop circuit FF2 that operates for detecting a timing failure, a comparison circuit E-OR1, a delay element, and the like are added to a flip-flop circuit FF1 that operates normally, and a normal clock signal CK and this clock By observing data at two timings with the delayed clock signal obtained by delaying the signal, a mismatch between the two data is detected to detect a timing failure in the LSI operation state (actual operation state).

しかしながら、特許文献1に記載された半導体装置では、1ビットの信号に対し図5で示された回路が必要であり、検出対象信号を増やそうとした場合、その分の検出回路を挿入しなくてはならないため、回路規模が増加する問題が生じる。また、自動的にタイミング違反の回避を行うには、さらに回路規模は大きくなってしまう。   However, in the semiconductor device described in Patent Document 1, the circuit shown in FIG. 5 is required for a 1-bit signal, and when an attempt is made to increase the number of detection target signals, it is not necessary to insert the corresponding detection circuit. Therefore, there is a problem that the circuit scale increases. Further, in order to automatically avoid the timing violation, the circuit scale further increases.

以上のように、クリティカルパスが多数存在する半導体装置において、複数箇所のタイミング違反を検出する半導体装置を小規模な回路構成で実現することが、望まれている。   As described above, in a semiconductor device having many critical paths, it is desired to realize a semiconductor device that detects timing violations at a plurality of locations with a small circuit configuration.

本発明の第1の視点による半導体装置は、複数の信号をクロック信号に同期して、夫々複数の異なるフリップフロップ回路でラッチする半導体装置において、選択信号に基づいて、前記複数の信号からいずれか1つを選択する第1のセレクタと、前記選択信号に基づいて、前記ラッチされた複数の信号からいずれか1つを選択する第2のセレクタと、前記クロック信号を所定時間遅延する遅延回路と、前記遅延回路により遅延したクロック信号に同期して、前記第1のセレクタの出力をラッチするタイミング違反検出用フリップフロップ回路と、前記タイミング違反検出用フリップフロップ回路の出力と前記第2のセレクタの出力とを比較する比較回路とを、備える。   According to a first aspect of the present invention, there is provided a semiconductor device in which a plurality of signals are latched by a plurality of different flip-flop circuits in synchronization with a clock signal, and one of the plurality of signals is selected based on a selection signal. A first selector for selecting one; a second selector for selecting one of the plurality of latched signals based on the selection signal; and a delay circuit for delaying the clock signal for a predetermined time The timing violation detection flip-flop circuit that latches the output of the first selector in synchronization with the clock signal delayed by the delay circuit, the output of the timing violation detection flip-flop circuit, and the second selector And a comparison circuit for comparing the output.

本発明の半導体装置によれば、小規模な回路構成で、複数箇所のタイミング違反を検出することが可能な半導体装置を提供することができる。   According to the semiconductor device of the present invention, it is possible to provide a semiconductor device capable of detecting timing violations at a plurality of locations with a small circuit configuration.

本発明の実施形態1に係る半導体装置の詳細を示すブロック図である。It is a block diagram which shows the detail of the semiconductor device which concerns on Embodiment 1 of this invention. 本発明の実施形態1に係る半導体装置の動作を示すタイミングチャートである。3 is a timing chart illustrating an operation of the semiconductor device according to the first embodiment of the present invention. 本発明の実施形態1に係る半導体装置全体を示すブロック図である。1 is a block diagram illustrating an entire semiconductor device according to a first embodiment of the present invention. 本発明の実施形態2に係る半導体装置の詳細を示すブロック図である。It is a block diagram which shows the detail of the semiconductor device which concerns on Embodiment 2 of this invention. 特許文献1に記載された半導体装置の要部(フリップフロップ回路部)を示す回路図である。FIG. 10 is a circuit diagram showing a main part (flip-flop circuit part) of a semiconductor device described in Patent Document 1.

まず、本発明の概要について、必要に応じて図面を参照して説明する。なお、概要の説明において引用する図面及び図面の符号は、理解を助けるため実施形態の一例として示すものであり、それにより本発明による実施形態のバリエーションを制限するものではない。   First, the outline | summary of this invention is demonstrated with reference to drawings as needed. In the description of the outline, the drawings and the reference numerals in the drawings are shown as examples of the embodiments to help understanding, and do not limit the variations of the embodiments according to the present invention.

本発明の一実施形態における半導体装置は、図1に示すように、複数の信号(S0〜SN−1)をクロック信号CLKに同期して、夫々複数の異なるフリップフロップ回路(8、11、14等)でラッチする半導体装置において、選択信号ADDRに基づいて、複数の信号(S0〜SN−1)からいずれか1つを選択する第1のセレクタ41と、選択信号ADDRに基づいて、ラッチされた複数の信号(LS0〜LSN−1)からいずれか1つを選択する第2のセレクタ42と、クロック信号CLKを所定時間遅延する遅延回路44と、遅延回路44により遅延したクロック信号CLKdに同期して、第1のセレクタ41の出力S_SELをラッチするタイミング違反検出用フリップフロップ回路45と、タイミング違反検出用フリップフロップ回路45の出力と第2のセレクタ42の出力LS_SELとを比較する比較回路46とを、備える。 As shown in FIG. 1, the semiconductor device according to the embodiment of the present invention synchronizes a plurality of signals (S0 to S N−1 ) with a clock signal CLK, and a plurality of different flip-flop circuits (8, 11, 14), the first selector 41 that selects one of the plurality of signals (S0 to S N-1 ) based on the selection signal ADDR, and the selection signal ADDR, A second selector 42 that selects one of the latched signals (LS0 to LS N-1 ), a delay circuit 44 that delays the clock signal CLK for a predetermined time, and a clock signal that is delayed by the delay circuit 44 A timing violation detection flip-flop circuit 45 that latches the output S_SEL of the first selector 41 in synchronization with CLKd, and a timing violation detection flip-flop And a comparing circuit 46 for comparing the output of the flop circuit 45 and the output LS_SEL of the second selector 42 comprises.

このような構成により、複数の信号(S0〜SN−1)に対して、個別に検出回路を設けずに、第1及び第2のセレクタ(41、42)、遅延回路44、タイミング違反検出用フリップフロップ回路45、及び比較回路46から構成される1つの回路(タイミング違反検出回路48)でタイミング違反検出を行うことができる。 With such a configuration, the first and second selectors (41, 42), the delay circuit 44, and the timing violation detection are not provided for the plurality of signals (S0 to S N-1 ) individually. The timing violation can be detected by one circuit (timing violation detection circuit 48) constituted by the flip-flop circuit 45 and the comparison circuit 46.

ここで、第2のセレクタ42は、第1のセレクタ41で選択された信号がラッチされた信号を選択する構成が好適である。即ち、図1において、第1のセレクタ41で、信号Si(但し、i=0、...、N−1)が選択された場合、第2のセレクタ42では、信号Siがラッチされた信号LSiを選択する。   Here, it is preferable that the second selector 42 selects a signal obtained by latching the signal selected by the first selector 41. That is, in FIG. 1, when the signal Si (where i = 0,..., N−1) is selected by the first selector 41, the signal from which the signal Si is latched is selected by the second selector 42. Select LSi.

また、上記半導体装置は、図4に示すように、選択信号ADDRをカウント動作により出力するカウンタ24を、更に備えるようにしてもよい。このような構成により、複数の信号(S0〜SN−1)、複数のラッチされた信号(LS0〜LSN−1)を第1及び第2のセレクタ(41、42)で自動的に切り替えて、タイミング違反検出を行うことが可能になる。 Further, as shown in FIG. 4, the semiconductor device may further include a counter 24 that outputs the selection signal ADDR by a count operation. With such a configuration, a plurality of signals (S0 to S N-1 ) and a plurality of latched signals (LS0 to LS N-1 ) are automatically switched by the first and second selectors (41, 42). This makes it possible to detect timing violations.

また、上記半導体装置は、図1、図3に示すように、比較回路46の比較結果(タイミング違反検出信号ERR)を、選択信号ADDRと対応付けて取り込む制御部32を更に備えるようにしてもよい。このような構成により、制御部32において、選択信号ADDRと、タイミング違反検出信号ERRを対応付けることができる。   Further, as shown in FIGS. 1 and 3, the semiconductor device may further include a control unit 32 that takes in the comparison result (timing violation detection signal ERR) of the comparison circuit 46 in association with the selection signal ADDR. Good. With such a configuration, the control unit 32 can associate the selection signal ADDR with the timing violation detection signal ERR.

複数の信号(S0〜SN−1)は、夫々、クロック信号CLKに同期して動作する複数の論理回路(1、3、5等)の出力信号としてもよい。これにより、複数の信号(S0〜SN−1)はタイミング違反を検出する対象の論理回路(1、3、5等)の出力信号とすることができる。 The plurality of signals (S0 to S N-1 ) may be output signals of a plurality of logic circuits (1, 3, 5, etc.) that operate in synchronization with the clock signal CLK, respectively. As a result, the plurality of signals (S0 to S N-1 ) can be output signals from the logic circuit (1, 3, 5, etc.) to be detected as a timing violation.

以下、本発明の各実施形態について、図面を参照して詳しく説明する。   Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.

[実施形態1]
(実施形態1の構成)
図3は、本発明の実施形態1に係る半導体装置50全体を示すブロック図である。図3に示すように、半導体装置50は、N個のクリティカルパス(20、21、22等)と、タイミング違反検出回路48と、制御部32と、レジスタ30で構成される。ここで、クリティカルパスとは、信号の伝播に時間がかかり、受信側のフリップフロップ回路で正しいデータを受け取るタイミング条件が厳しいパスのことをいう。
[Embodiment 1]
(Configuration of Embodiment 1)
FIG. 3 is a block diagram showing the entire semiconductor device 50 according to the first embodiment of the present invention. As illustrated in FIG. 3, the semiconductor device 50 includes N critical paths (20, 21, 22, etc.), a timing violation detection circuit 48, a control unit 32, and a register 30. Here, the critical path refers to a path that takes time for signal propagation and has a severe timing condition for receiving correct data in the receiving flip-flop circuit.

図1は、図3のクリティカルパス20、21、22と、タイミング違反検出回路48をより詳細に示したブロック図である。N個のクリティカルパスには、図1に示すように、アドレス0〜N−1を割り振っておく。図1に示すように、論理回路1、2はフリップフロップ回路7、8、9で挟まれて、互いに直列接続されている。また、論理回路3、4はフリップフロップ回路10、11、12で挟まれて、互いに直列接続されている。また、論理回路5、6はフリップフロップ回路13、14、15で挟まれて、互いに直列接続されている。ここで、これらのフリップフロップ回路(7〜15)は、いずれもクロック信号CLKに同期してラッチ動作を行う。具体的には、送信側のフリップフロップ回路7は送信信号TS0を出力し、論理回路1に入力する。論理回路1は信号S0を出力する。そして、受信側のフリップフロップ回路8は信号S0をラッチし、ラッチされた信号LS0を出力する。同様に、送信側のフリップフロップ回路10は送信信号TS1を出力し、論理回路3に入力する。論理回路3は信号S1を出力する。そして、受信側のフリップフロップ回路11は信号S1をラッチし、ラッチされた信号LS1を出力する。また、同様に、送信側のフリップフロップ回路13は送信信号TSN−1を出力し、論理回路5に入力する。論理回路5は信号SN−1を出力する。そして、受信側のフリップフロップ回路14は信号SN−1をラッチし、ラッチされた信号LSN−1を出力する。 FIG. 1 is a block diagram showing in more detail the critical paths 20, 21, and 22 and the timing violation detection circuit 48 of FIG. As shown in FIG. 1, addresses 0 to N-1 are allocated to the N critical paths. As shown in FIG. 1, the logic circuits 1 and 2 are sandwiched between flip-flop circuits 7, 8 and 9 and are connected in series. The logic circuits 3 and 4 are sandwiched between the flip-flop circuits 10, 11, and 12 and are connected in series with each other. The logic circuits 5 and 6 are sandwiched between the flip-flop circuits 13, 14, and 15 and are connected in series with each other. Here, these flip-flop circuits (7 to 15) all perform a latch operation in synchronization with the clock signal CLK. Specifically, the transmission-side flip-flop circuit 7 outputs the transmission signal TS0 and inputs it to the logic circuit 1. The logic circuit 1 outputs a signal S0. Then, the flip-flop circuit 8 on the receiving side latches the signal S0 and outputs the latched signal LS0. Similarly, the transmission-side flip-flop circuit 10 outputs the transmission signal TS 1 and inputs it to the logic circuit 3. The logic circuit 3 outputs a signal S1. Then, the flip-flop circuit 11 on the receiving side latches the signal S1 and outputs the latched signal LS1. Similarly, the transmission-side flip-flop circuit 13 outputs the transmission signal TS N−1 and inputs it to the logic circuit 5. The logic circuit 5 outputs a signal SN-1 . Then, the flip-flop circuit of the receiving side 14 latches the signal S N-1, and outputs the signal LS N-1 latched.

半導体装置50には、このような論理回路とフリップフロップ回路が直列接続された回路が、複数個含まれている。これらのうち、設計段階で分かっているタイミングの厳しいパスを、クリティカルパスとして予め選択しておく。図1において、クリティカルパスがN個選択されている。具体的には、夫々破線枠で示したクリティカルパス20、21、22などである。クリティカルパス20では、信号S0を受信側のフリップフロップ回路8でラッチするタイミングが厳しく、タイミング違反が発生した場合、ラッチされた信号LS0には正しい信号が出力されない。同様に、クリティカルパス21では、信号S1を受信側のフリップフロップ回路11でラッチするタイミングが厳しく、タイミング違反が発生した場合、ラッチされた信号LS1には正しい信号が出力されない。また、同様に、クリティカルパス22では、信号SN−1を受信側のフリップフロップ回路14でラッチするタイミングが厳しく、タイミング違反が発生した場合、ラッチされた信号LSN−1には正しい信号が出力されない。 The semiconductor device 50 includes a plurality of circuits in which such logic circuits and flip-flop circuits are connected in series. Among these, a path having a strict timing known at the design stage is selected in advance as a critical path. In FIG. 1, N critical paths are selected. Specifically, the critical paths 20, 21, 22 and the like indicated by broken line frames, respectively. In the critical path 20, the timing at which the signal S0 is latched by the flip-flop circuit 8 on the receiving side is severe, and when a timing violation occurs, a correct signal is not output as the latched signal LS0. Similarly, in the critical path 21, the timing at which the signal S1 is latched by the receiving flip-flop circuit 11 is strict, and when a timing violation occurs, a correct signal is not output as the latched signal LS1. Similarly, in the critical path 22, the timing at which the signal S N-1 is latched by the flip-flop circuit 14 on the receiving side is strict, and when a timing violation occurs, the latched signal LS N-1 has a correct signal. Not output.

一方、論理回路2とフリップフロップ回路9のパス、論理回路4とフリップフロップ回路12のパス、及び論理回路6とフリップフロップ回路15のパスは、動作タイミングに余裕があるため、クリティカルパスとして選択しない。   On the other hand, the path between the logic circuit 2 and the flip-flop circuit 9, the path between the logic circuit 4 and the flip-flop circuit 12, and the path between the logic circuit 6 and the flip-flop circuit 15 are not selected as critical paths because there is a margin in operation timing. .

次に、図1のタイミング違反検出回路48の詳細な構成について説明する。タイミング違反検出回路48は、第1のセレクタ(図1のMUX0)41と、第2のセレクタ(図1のMUX1)42と、遅延回路44と、タイミング違反検出用フリップフロップ回路(FFd)45と、比較回路46により構成される。   Next, a detailed configuration of the timing violation detection circuit 48 in FIG. 1 will be described. The timing violation detection circuit 48 includes a first selector (MUX0 in FIG. 1) 41, a second selector (MUX1 in FIG. 1) 42, a delay circuit 44, a timing violation detection flip-flop circuit (FFd) 45, The comparator circuit 46 is configured.

第1のセレクタ41のN個の入力端子には、各クリティカルパスにおける信号S0〜SN−1が供給される。一方、第2のセレクタ42のN個の入力端子には、各クリティカルパスにおいてラッチされた信号LS0〜LSN−1が供給される。また、第1及び第2のセレクタ(41、42)に対し、選択信号ADDRを供給し、切り替えを制御する。具体的には、選択信号ADDRがiの場合、第1のセレクタ41ではSi、第2のセレクタ42ではLSiが夫々選択されるように制御する。 Signals S0 to SN-1 in each critical path are supplied to the N input terminals of the first selector 41. On the other hand, the N input terminals of the second selector 42 are supplied with signals LS0 to LSN −1 latched in each critical path. Further, the selection signal ADDR is supplied to the first and second selectors (41, 42) to control switching. Specifically, when the selection signal ADDR is i, control is performed such that Si is selected by the first selector 41 and LSi is selected by the second selector 42.

また、遅延回路44はクロック信号CLKを所定時間(図2のτ)だけ遅延する回路であり、遅延クロック信号CLKdを出力する。ここで、遅延する所定時間は、固定値でもよいが、制御部32(図3)からレジスタ30(図3)を介して、設定するように構成してもよい。   The delay circuit 44 is a circuit that delays the clock signal CLK by a predetermined time (τ in FIG. 2), and outputs a delayed clock signal CLKd. Here, the predetermined time to be delayed may be a fixed value, or may be set from the control unit 32 (FIG. 3) via the register 30 (FIG. 3).

また、タイミング違反検出用フリップフロップ回路45のクロック入力端子には、遅延クロック信号CLKdが供給される。また、タイミング違反検出用フリップフロップ回路45の入力端子には、第1のセレクタ41の出力S_SELが入力される。そして、タイミング違反検出用フリップフロップ回路45でラッチされた信号は、比較回路46の一方の端子に供給される。   The delayed clock signal CLKd is supplied to the clock input terminal of the timing violation detection flip-flop circuit 45. The output S_SEL of the first selector 41 is input to the input terminal of the timing violation detection flip-flop circuit 45. The signal latched by the timing violation detection flip-flop circuit 45 is supplied to one terminal of the comparison circuit 46.

また、比較回路46の他方の端子には、第2のセレクタの出力LS_SELが供給される。比較回路46では、入力された2つの信号が一致しているか否かを判定し、一致している場合には、タイミング違反検出信号ERRをLowレベルに出力し、一致していない場合(すなわち、タイミング違反を検出した場合)には、タイミング違反検出信号ERRをHighレベルに出力する。   Further, the output LS_SEL of the second selector is supplied to the other terminal of the comparison circuit 46. In the comparison circuit 46, it is determined whether or not the two input signals match, and if they match, the timing violation detection signal ERR is output to the Low level, and if they do not match (ie, When a timing violation is detected, the timing violation detection signal ERR is output to a high level.

図3において、選択信号ADDRはレジスタ30を介して、制御部32から切り替えられ、タイミング違反検出回路48に供給される。タイミング違反検出回路48の比較回路46が出力するタイミング違反検出信号ERRは制御部32に転送され、制御部32は、タイミング違反検出信号ERRを選択信号ADDRに対応付けて取り込む。このように、タイミング違反検出信号ERRを選択信号ADDRに対応付けて取り込むことにより、制御部32は、複数のクリティカルパスのうち、どのクリティカルパスでタイミング違反が発生しているかを判定することができる。また、制御部32は、外部のテスタ(不図示)と接続されており、外部のテスタの表示画面に制御部32の判定結果を表示する。それにより、半導体装置50でタイミング違反の検出を行っているユーザに対して、判定結果を通知することができる。   In FIG. 3, the selection signal ADDR is switched from the control unit 32 via the register 30 and is supplied to the timing violation detection circuit 48. The timing violation detection signal ERR output from the comparison circuit 46 of the timing violation detection circuit 48 is transferred to the control unit 32, and the control unit 32 captures the timing violation detection signal ERR in association with the selection signal ADDR. As described above, by fetching the timing violation detection signal ERR in association with the selection signal ADDR, the control unit 32 can determine which critical path of the plurality of critical paths has the timing violation. . The control unit 32 is connected to an external tester (not shown), and displays the determination result of the control unit 32 on the display screen of the external tester. Thereby, the determination result can be notified to the user who detects the timing violation in the semiconductor device 50.

(実施形態1の動作)
次に、図2を参照しながら、実施形態1に係る半導体装置50の動作について説明する。図2は、半導体装置50の動作を示すタイミングチャートである。以下に示す動作説明において、説明を簡単にするために、N個のクリティカルパスのうち、2つのクリティカルパス(20、21)のみに対して、タイミング違反検出を行う場合について説明する。この場合、選択信号ADDRは、0と、1を切り替える制御を行うことになる。
(Operation of Embodiment 1)
Next, the operation of the semiconductor device 50 according to the first embodiment will be described with reference to FIG. FIG. 2 is a timing chart showing the operation of the semiconductor device 50. In the following description of the operation, in order to simplify the description, a case will be described in which timing violation detection is performed on only two critical paths (20, 21) out of N critical paths. In this case, the selection signal ADDR performs control to switch between 0 and 1.

図2において、上から順に、CLK信号、送信側のフリップフロップ回路7が出力する送信信号TS0、送信側のフリップフロップ回路10が出力する送信信号TS1、論理回路1の出力である信号S0、論理回路3の出力である信号S1、信号S0が受信側のフリップフロップ回路8によりラッチされた信号LS0、信号S1が受信側のフリップフロップ回路11によりラッチされた信号LS1、第1及び第2のセレクタ(41、42)の選択を制御する選択信号ADDR、第2のセレクタ42の出力LS_SEL、遅延クロック信号CLKd、第1のセレクタ41の出力S_SEL、タイミング違反検出用フリップフロップ回路(FFd)45の出力、及び比較回路46の比較結果であるタイミング違反検出信号ERRを示している。   2, in order from the top, the CLK signal, the transmission signal TS0 output from the transmission-side flip-flop circuit 7, the transmission signal TS1 output from the transmission-side flip-flop circuit 10, the signal S0 output from the logic circuit 1, the logic The signal S1, which is the output of the circuit 3, the signal S0 is latched by the flip-flop circuit 8 on the receiving side, the signal LS1 is latched by the flip-flop circuit 11 on the receiving side, the first and second selectors The selection signal ADDR for controlling the selection of (41, 42), the output LS_SEL of the second selector 42, the delayed clock signal CLKd, the output S_SEL of the first selector 41, and the output of the timing violation detection flip-flop circuit (FFd) 45 , And a timing violation detection signal ERR, which is a comparison result of the comparison circuit 46.

図2に示すように、クリティカルパス20における送信側のフリップフロップ回路7が、送信信号TS0として、クロック信号CLKに同期して信号値A→B→C→Dを順次出力し、クリティカルパス21における送信側のフリップフロップ回路10が、送信信号TS1として、クロック信号CLKに同期して信号値E→F→G→Hを順次出力する場合を想定する。また、選択信号ADDRは、タイミングt1〜t6において0、タイミングt6で切り替わり、タイミングt7〜t12において1になる。即ち、前半の期間t1〜t6において第1及び第2のセレクタ(41、42)でクリティカルパス20からの信号が選択され、S_SEL=S0、LS_SEL=LS0となり、後半の期間t7〜t12において第1及び第2のセレクタ(41、42)でクリティカルパス21からの信号が選択され、S_SEL=S1、LS_SEL=LS1となる。   As shown in FIG. 2, the transmission-side flip-flop circuit 7 in the critical path 20 sequentially outputs the signal values A → B → C → D in synchronization with the clock signal CLK as the transmission signal TS0, and in the critical path 21 Assume that the transmission-side flip-flop circuit 10 sequentially outputs signal values E → F → G → H in synchronization with the clock signal CLK as the transmission signal TS1. The selection signal ADDR is 0 at timings t1 to t6, and is switched at timing t6, and becomes 1 at timings t7 to t12. That is, the signals from the critical path 20 are selected by the first and second selectors (41, 42) in the first half period t1 to t6, and S_SEL = S0, LS_SEL = LS0, and the first half period t7-t12. And the signal from the critical path 21 is selected by the second selector (41, 42), and S_SEL = S1 and LS_SEL = LS1.

次に、各タイミングにおける信号値A〜D、E〜Hの伝達について図2を参照しながら、説明する。クリティカルパス20の送信側のフリップフロップ回路7の出力TS0は、論理回路1に入力され、論理回路1から信号S0として出力されるが、何らかの要因により遅延量が増加し、タイミング条件を満たせなくなる場合が発生する。例えば、信号S0において、信号値Aはタイミングt2においてタイミング条件を満す遅延量で受け取れるが、信号値Bは遅延量が増加し、タイミングt4では未だAからBに遷移されておらず、信号値Bを受け取ることができない。具体的には、図2に示すように、τ1だけ遅延量が増加したことにより、クロックの立ち上がりのタイミングt4でAからBに遷移されていない。その結果、クロック信号CLKに同期してラッチされた信号LS0は、期間t3〜t6では全て信号値Aとなり、信号値Bの情報が欠落する。   Next, transmission of the signal values A to D and E to H at each timing will be described with reference to FIG. The output TS0 of the flip-flop circuit 7 on the transmission side of the critical path 20 is input to the logic circuit 1 and output as the signal S0 from the logic circuit 1. However, the delay amount increases due to some cause and the timing condition cannot be satisfied. Will occur. For example, in the signal S0, the signal value A can be received with a delay amount satisfying the timing condition at the timing t2, but the signal value B has an increased delay amount, and the signal value B has not yet been changed from A to B at the timing t4. Cannot receive B Specifically, as shown in FIG. 2, the delay amount is increased by τ1, so that the transition from A to B is not made at the timing t4 when the clock rises. As a result, the signal LS0 latched in synchronization with the clock signal CLK becomes the signal value A in the periods t3 to t6, and the information on the signal value B is missing.

同様に、クリティカルパス21の送信側のフリップフロップ回路10の出力TS1は、論理回路3に入力され、論理回路3から信号S1として出力されるが、何らかの要因により遅延量が増加し、タイミング条件を満たせなくなる場合が発生する。例えば、信号S1において、信号値Gはタイミングt6においてタイミング条件を満す遅延量で受け取れるが、信号値Hは遅延量が増加し、タイミングt8では未だGからHに遷移されておらず、信号値Hを受け取ることができない。具体的には、図2に示すように、τ2だけ遅延量が増加したことにより、クロックの立ち上がりのタイミングt8でGからHに遷移されていない。その結果、クロック信号CLKに同期してラッチされた信号LS1は、期間t7〜t10では全て信号値Gとなり、信号値Hの情報が欠落する。   Similarly, the output TS1 of the flip-flop circuit 10 on the transmission side of the critical path 21 is input to the logic circuit 3 and output as the signal S1 from the logic circuit 3, but the delay amount increases due to some factor, and the timing condition is set. There are cases where it cannot be satisfied. For example, in the signal S1, the signal value G can be received with a delay amount that satisfies the timing condition at the timing t6, but the signal value H increases in the delay amount, and the signal value H has not yet transited from G to H at the timing t8. I cannot receive H. Specifically, as shown in FIG. 2, since the delay amount is increased by τ2, the transition from G to H is not performed at the rising timing t8 of the clock. As a result, the signal LS1 latched in synchronization with the clock signal CLK becomes a signal value G in all the periods t7 to t10, and information on the signal value H is lost.

従って、第2のセレクタ42の出力LS_SELは、図2に示すように、選択信号ADDRが0である期間t3〜t6で信号値A、選択信号ADDRが1である期間t7〜t10で信号値Gとなる。   Therefore, as shown in FIG. 2, the output LS_SEL of the second selector 42 has the signal value A in the period t3 to t6 in which the selection signal ADDR is 0, and the signal value G in the period t7 to t10 in which the selection signal ADDR is 1. It becomes.

次に、第1のセレクタ41の出力S_SELは、ADDRが0である期間t1〜t6で信号S0、ADDRが1である期間t7〜t12で信号S1となる。次に、信号S_SELを遅延クロック信号CLKdでラッチした場合には、タイミングt3、t5、t7、t9で夫々タイミング条件を満足し、タイミング違反検出用フリップフロップ回路(FFd)45でラッチすることにより、信号値A、B、G、Hを欠落することなく出力することができる。   Next, the output S_SEL of the first selector 41 becomes the signal S0 in the period t1 to t6 in which ADDR is 0, and the signal S1 in the period t7 to t12 in which ADDR is 1. Next, when the signal S_SEL is latched by the delayed clock signal CLKd, the timing conditions are satisfied at timings t3, t5, t7, and t9, respectively, and latched by the timing violation detection flip-flop circuit (FFd) 45, The signal values A, B, G, and H can be output without being lost.

次に、比較回路46で、第2のセレクタ42の出力LS_SELが、タイミング違反検出用フリップフロップ回路45の出力と比較され、不一致の箇所がHighレベルになり、タイミング違反検出信号ERRとして出力される。その結果、タイミング違反検出用フリップフロップ回路45の出力が信号値B、及び信号値Hの期間において、タイミング違反検出信号ERRはHighレベルになる。尚、タイミング違反検出信号ERRは制御部32に選択信号ADDRと対応付けて取り込まれ、制御部32においてクリティカルパス20においてタイミングt4で信号値Bを受け取れないタイミング違反が発生し、クリティカルパス21においてタイミングt8で信号値Hを受け取れないタイミング違反が発生したことを判定する。そして、判定結果は外部接続されたテスタに通知される。   Next, the output LS_SEL of the second selector 42 is compared with the output of the timing violation detection flip-flop circuit 45 by the comparison circuit 46, and the mismatched portion becomes the high level and is output as the timing violation detection signal ERR. . As a result, the timing violation detection signal ERR becomes High level during the period when the output of the timing violation detection flip-flop circuit 45 is the signal value B and the signal value H. Note that the timing violation detection signal ERR is captured by the control unit 32 in association with the selection signal ADDR. In the control unit 32, a timing violation that cannot receive the signal value B at the timing t4 occurs in the critical path 20, and the timing in the critical path 21 occurs. It is determined that a timing violation that cannot receive the signal value H has occurred at t8. The determination result is notified to an externally connected tester.

以上説明したように、実施形態1に係る半導体装置によれば、複数のクリティカルパスを有する半導体装置において、個別にタイミング違反検出回路を設けずに、1つのタイミング違反検出回路48により、複数箇所のタイミング違反検出を行うことができる。それにより、小規模な回路で複数箇所のタイミング違反検出が実現できるという効果が得られる。   As described above, according to the semiconductor device according to the first embodiment, in a semiconductor device having a plurality of critical paths, a single timing violation detection circuit 48 can provide a plurality of locations without providing a timing violation detection circuit individually. Timing violation detection can be performed. As a result, it is possible to achieve timing violation detection at a plurality of locations with a small circuit.

尚、実施形態1の動作説明では、選択信号ADDRが0、1に切り替わる場合について説明したが、N個のクリティカルパスを全てテストするように、選択信号ADDRを0〜N−1の範囲でインクリメントした場合には、図2に示したのと同様な動作が繰り返されることになる。また、選択信号ADDRの入力を、任意のパターンとすることもできる。いずれの場合においても、実施形態1で示した効果が得られるのは勿論である。   In the description of the operation of the first embodiment, the case where the selection signal ADDR is switched to 0 or 1 has been described. However, the selection signal ADDR is incremented in the range of 0 to N−1 so that all N critical paths are tested. In this case, the same operation as shown in FIG. 2 is repeated. Further, the input of the selection signal ADDR can be an arbitrary pattern. In any case, it is a matter of course that the effects shown in the first embodiment can be obtained.

[実施形態2]
次に、本発明の実施形態2に係る半導体装置について説明する。図4は、実施形態2に係る半導体装置の詳細を示すブロック図である。図4の図1に対する違いは、タイミング違反検出回路56が新たにカウンタ24を備えている点である。その他については実施形態1と同じであり、同じ参照符号を付し説明は省略する。
[Embodiment 2]
Next, a semiconductor device according to Embodiment 2 of the present invention will be described. FIG. 4 is a block diagram illustrating details of the semiconductor device according to the second embodiment. The difference between FIG. 4 and FIG. 1 is that the timing violation detection circuit 56 is newly provided with a counter 24. About others, it is the same as Embodiment 1, the same referential mark is attached | subjected and description is abbreviate | omitted.

実施形態2では、カウンタ24がカウント動作したカウント値を、選択信号ADDRとして使用している。カウンタ24はクロック信号CLKに基づいて動作し、ある周期で選択信号ADDRをインクリメントし、ある周期で再び0に戻る。ここで、検出対象となるクリティカルパスの個数Nに応じてカウンタ出力ビット数mを設定することが望ましく、具体的には、2≧Nを満足するようにするように設定するとよい。 In the second embodiment, the count value obtained by the counting operation of the counter 24 is used as the selection signal ADDR. The counter 24 operates based on the clock signal CLK, increments the selection signal ADDR in a certain cycle, and returns to 0 again in a certain cycle. Here, it is desirable to set the counter output bit number m in accordance with the number N of critical paths to be detected. Specifically, it may be set to satisfy 2 m ≧ N.

実施形態1の半導体装置全体を示す図3において、実施形態2では、選択信号ADDRをレジスタ30から供給するのではなく、タイミング違反検出回路56のカウンタ24で自動的に生成する。そして、生成された選択信号ADDRによりテストするクリティカルパスを切り替えて、タイミング違反検出を行い、タイミング違反検出信号ERRは、選択信号ADDRと共に、制御部32に転送され、制御部32はタイミング違反検出信号ERRと選択信号ADDRを対応付けて取り込む。   In FIG. 3 showing the entire semiconductor device of the first embodiment, in the second embodiment, the selection signal ADDR is not supplied from the register 30 but is automatically generated by the counter 24 of the timing violation detection circuit 56. Then, the critical path to be tested is switched by the generated selection signal ADDR, and timing violation detection is performed. The timing violation detection signal ERR is transferred to the control unit 32 together with the selection signal ADDR, and the control unit 32 detects the timing violation detection signal. The ERR and the selection signal ADDR are captured in association with each other.

以上説明したように、本発明の実施形態2に係る半導体装置によれば、実施形態1と同様な効果が得られ、更にカウンタ24による選択信号ADDRの制御により、複数のクリティカルパスを自動的に切り替えてタイミング違反検出を行うことができるという効果が得られる。   As described above, according to the semiconductor device of the second embodiment of the present invention, the same effect as that of the first embodiment can be obtained, and a plurality of critical paths can be automatically set by controlling the selection signal ADDR by the counter 24. There is an effect that the timing violation can be detected by switching.

本発明は、タイミングの厳しいパスを複数有する回路を実機搭載して動作テストを行う際に、タイミング違反を検出し、発生箇所の特定を行うのに使用することができる。   The present invention can be used to detect a timing violation and specify an occurrence location when an operation test is performed with a circuit having a plurality of paths having strict timing mounted.

本発明の全開示(請求の範囲を含む)の枠内において、さらにその基本的技術思想に基づいて、実施形態ないし実施例の変更・調整が可能である。また、本発明の請求の範囲の枠内において種々の開示要素(各請求項の各要素、各実施例の各要素、各図面の各要素等を含む)の多様な組み合わせ、ないし、選択が可能である。すなわち、本発明は、請求の範囲を含む全開示、技術的思想にしたがって当業者であればなし得るであろう各種変形、修正を含むことは勿論である。   Within the scope of the entire disclosure (including claims) of the present invention, the embodiments and examples can be changed and adjusted based on the basic technical concept. Further, various combinations or selections of various disclosed elements (including each element of each claim, each element of each embodiment, each element of each drawing, etc.) are possible within the scope of the claims of the present invention. It is. That is, the present invention of course includes various variations and modifications that could be made by those skilled in the art according to the entire disclosure including the claims and the technical idea.

1、2、3、4、5、6:論理回路
7、8、9、10、11、12、13、14、15:フリップフロップ回路
20、21、22:クリティカルパス
24:カウンタ
30:レジスタ
32:制御部
41:第1のセレクタ
42:第2のセレクタ
44:遅延回路
45:タイミング違反検出用フリップフロップ回路
46:比較回路
48、56:タイミング違反検出回路
50:半導体装置
TS0〜TSN−1:送信信号
S0〜SN−1:信号
LS0〜LSN−1:ラッチされた信号
S_SEL:第1のセレクタの出力
LS_SEL:第2のセレクタの出力
ADDR:選択信号
ERR:タイミング違反検出信号
CLK:クロック信号
CLKd:遅延クロック信号
1, 2, 3, 4, 5, 6: logic circuits 7, 8, 9, 10, 11, 12, 13, 14, 15: flip-flop circuits 20, 21, 22: critical path 24: counter 30: register 32 Control unit 41: first selector 42: second selector 44: delay circuit 45: timing violation detection flip-flop circuit 46: comparison circuit 48, 56: timing violation detection circuit 50: semiconductor devices TS0 to TS N-1 : Transmission signal S0 to S N-1 : Signal LS0 to LS N-1 : Latched signal S_SEL: Output of first selector LS_SEL: Output of second selector ADDR: Selection signal ERR: Timing violation detection signal CLK: Clock signal CLKd: delayed clock signal

Claims (5)

複数の信号をクロック信号に同期して、夫々複数の異なるフリップフロップ回路でラッチする半導体装置において、
選択信号に基づいて、前記複数の信号からいずれか1つを選択する第1のセレクタと、
前記選択信号に基づいて、前記ラッチされた複数の信号からいずれか1つを選択する第2のセレクタと、
前記クロック信号を所定時間遅延する遅延回路と、
前記遅延回路により遅延したクロック信号に同期して、前記第1のセレクタの出力をラッチするタイミング違反検出用フリップフロップ回路と、
前記タイミング違反検出用フリップフロップ回路の出力と前記第2のセレクタの出力とを比較する比較回路と、を備えたことを特徴とする半導体装置。
In a semiconductor device that latches a plurality of signals by a plurality of different flip-flop circuits in synchronization with a clock signal,
A first selector that selects any one of the plurality of signals based on a selection signal;
A second selector that selects one of the plurality of latched signals based on the selection signal;
A delay circuit for delaying the clock signal for a predetermined time;
A timing violation detection flip-flop circuit that latches the output of the first selector in synchronization with the clock signal delayed by the delay circuit;
A semiconductor device comprising: a comparison circuit that compares an output of the timing violation detection flip-flop circuit with an output of the second selector.
前記第2のセレクタは、前記第1のセレクタで選択された信号がラッチされた信号を選択することを特徴とする請求項1に記載の半導体装置。   The semiconductor device according to claim 1, wherein the second selector selects a signal obtained by latching the signal selected by the first selector. 前記選択信号をカウント動作により出力するカウンタを、更に備えたことを特徴とする請求項1または2に記載の半導体装置。   3. The semiconductor device according to claim 1, further comprising a counter that outputs the selection signal by a counting operation. 前記比較回路の比較結果を前記選択信号と対応付けて取り込む制御部を更に備えたことを特徴とする請求項1乃至3のいずれか1項に記載の半導体装置。   4. The semiconductor device according to claim 1, further comprising a control unit that captures a comparison result of the comparison circuit in association with the selection signal. 5. 前記複数の信号は、夫々、前記クロック信号に同期して動作する複数の論理回路の出力信号であることを特徴とする請求項1乃至4のいずれか1項に記載の半導体装置。   5. The semiconductor device according to claim 1, wherein each of the plurality of signals is an output signal of a plurality of logic circuits that operate in synchronization with the clock signal. 6.
JP2011237099A 2011-10-28 2011-10-28 Semiconductor device Pending JP2013096727A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011237099A JP2013096727A (en) 2011-10-28 2011-10-28 Semiconductor device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011237099A JP2013096727A (en) 2011-10-28 2011-10-28 Semiconductor device

Publications (1)

Publication Number Publication Date
JP2013096727A true JP2013096727A (en) 2013-05-20

Family

ID=48618832

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011237099A Pending JP2013096727A (en) 2011-10-28 2011-10-28 Semiconductor device

Country Status (1)

Country Link
JP (1) JP2013096727A (en)

Similar Documents

Publication Publication Date Title
US9222979B2 (en) On-chip controller and a system-on-chip
US7398442B2 (en) Electronic circuit with asynchronously operating components
US10371751B2 (en) Circuit and method for diagnosing scan chain failures
KR20110117589A (en) System and device for reducing instantaneous voltage droop during a scan shift operation
JP2002289776A (en) Semiconductor device
JP2008047121A (en) Method and apparatus for indirectly simulating semiconductor integrated circuit
US20100033189A1 (en) Semiconductor integrated circuit and test method using the same
JP6534592B2 (en) Scan test circuit and scan test apparatus
JP2006145307A (en) Scan test circuit
JP2013096727A (en) Semiconductor device
US8290734B2 (en) Semiconductor integrated circuit
JP5699780B2 (en) Electronic circuit
JP2011002261A (en) Scan test circuit, and method and program for designing the same
US8539327B2 (en) Semiconductor integrated circuit for testing logic circuit
JP6530288B2 (en) Semiconductor device and test method of semiconductor device
JP2013036960A (en) Delay scan test method, semiconductor device, and semiconductor device design method
KR100588375B1 (en) Setup/hold time control circuit
JP3335968B2 (en) Semiconductor integrated circuit
US8754667B2 (en) Semiconductor device test method and semiconductor device
JP2003344502A (en) Semiconductor integrated circuit and its failure analyzing method
JP2006139485A (en) Computer control device
JP2006170929A (en) Semiconductor integrated circuit
JP5453981B2 (en) LSI and test data setting method thereof
JP2004294424A (en) Scan test control method and scan test circuit
JP2004177194A (en) Semiconductor device