[go: up one dir, main page]

JP2008180592A - Test pattern generating circuit and test circuit - Google Patents

Test pattern generating circuit and test circuit Download PDF

Info

Publication number
JP2008180592A
JP2008180592A JP2007014025A JP2007014025A JP2008180592A JP 2008180592 A JP2008180592 A JP 2008180592A JP 2007014025 A JP2007014025 A JP 2007014025A JP 2007014025 A JP2007014025 A JP 2007014025A JP 2008180592 A JP2008180592 A JP 2008180592A
Authority
JP
Japan
Prior art keywords
clock
circuit
test pattern
signal
random number
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
JP2007014025A
Other languages
Japanese (ja)
Inventor
Hisafumi Nakamura
尚史 中村
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 Electronics Corp
Original Assignee
NEC 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 NEC Electronics Corp filed Critical NEC Electronics Corp
Priority to JP2007014025A priority Critical patent/JP2008180592A/en
Priority to TW097100171A priority patent/TW200844463A/en
Priority to US12/010,264 priority patent/US20080178055A1/en
Priority to KR1020080007703A priority patent/KR100934598B1/en
Publication of JP2008180592A publication Critical patent/JP2008180592A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/04Generating or distributing clock signals or signals derived directly therefrom
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/28Testing of electronic circuits, e.g. by signal tracer
    • G01R31/317Testing of digital circuits
    • G01R31/3181Functional testing
    • G01R31/31813Test pattern generators

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Tests Of Electronic Circuits (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To solve such a problem that existing test pattern circuit can not arbitrary set the combination of random number sequences to be generated. <P>SOLUTION: A test pattern generating circuit, connected with a bus wiring, is a test pattern generating circuit outputting a test pattern to an interface circuit 14 inputting/outputting multi bit data in parallel. This circuit includes: a plurality of pseudo random number generating circuits 13_1-13_n, set corresponding to the signal lines in a bus wiring respectively, with predetermined first initial values, each of them showing the same value, and generating pseudo random numbers with the initial value set as a start value according to the inputted first clock signals CLK_1-CLK_2; and a clock control circuit 11 arbitrary determining the output starting timing of the first clock signals CLK_1-CLK_n to be given to the plurality of pseudo random number generating circuits 13_1-13_n respectively according to the control signal values. <P>COPYRIGHT: (C)2008,JPO&INPIT

Description

本発明にかかるテストパターン生成回路及びテスト回路は、特に多ビット構成のインタフェース回路に対して疑似乱数をテストパターンとして与えるテストパターン生成回路及びテスト回路に関する。   The test pattern generation circuit and the test circuit according to the present invention particularly relate to a test pattern generation circuit and a test circuit that provide a pseudo random number as a test pattern to an interface circuit having a multi-bit configuration.

近年、半導体装置における不具合の1つとして、バス配線に接続されるインタフェース回路における不具合が問題となっている。バス配線に接続されるインタフェース回路では、バス配線に対してランダムなデータの送受信が行われる。送受信するデータの並び方によってはインタフェース回路内でデータの干渉が発生して、送受信するデータに誤りが発生する不具合が発生する。インタフェース回路においては、上述のような不具合を起こしうる様々なデータに対しても良好な送受信を行うことが求められる。そのため、インタフェース回路に対してこのようなデータでテストを行うためのテスト回路やテストパターン生成回路が所望されており、下記特許文献1〜4に示すような回路が提案されている。   In recent years, a defect in an interface circuit connected to a bus wiring has become a problem as one of the defects in a semiconductor device. In the interface circuit connected to the bus wiring, random data transmission / reception is performed with respect to the bus wiring. Depending on the arrangement of data to be transmitted / received, data interference may occur in the interface circuit, resulting in a problem that an error occurs in the data to be transmitted / received. The interface circuit is required to perform good transmission / reception with respect to various data that may cause the above-described problems. Therefore, a test circuit and a test pattern generation circuit for testing the interface circuit with such data are desired, and circuits as shown in Patent Documents 1 to 4 below have been proposed.

特許文献1(以下、従来例1と称す)に開示されているテスト回路110のブロック図を図18に示す。テスト回路110は、半導体装置101に内蔵され、ランダムなテストパターンの生成とインタフェース回路120を経由して入力されるテストパターンのシグネチャの生成とを行う。このときテスト回路110は、ランダムなテストパターンをパターン発生部111及びシフトレジスタ112を用いて行う。パターン発生部111は、所定のシード値(以下では、Seed値と称す)を開始値とした疑似乱数を生成するLFSR(Linear Feedback Shift Register)116を有し、シリアルに疑似乱数を生成する。シフトレジスタ112は、直列に接続されたフリップフロップによって、シリアルな疑似乱数を並べ替えてパラレルな疑似乱数に変換する。そして、パターン発生部111の出力とシフトレジスタ112の出力とを並列にしてデータ連結部113に入力することで、バス配線に接続されるインタフェース回路120にランダム性を有するテストパターンを入力する。これによって、テスト回路110は、インタフェース回路120にランダム性を有するデータ列を入力することが可能である。   FIG. 18 shows a block diagram of a test circuit 110 disclosed in Patent Document 1 (hereinafter referred to as Conventional Example 1). The test circuit 110 is built in the semiconductor device 101 and generates a random test pattern and a test pattern signature input via the interface circuit 120. At this time, the test circuit 110 performs a random test pattern using the pattern generator 111 and the shift register 112. The pattern generation unit 111 includes an LFSR (Linear Feedback Shift Register) 116 that generates a pseudo random number starting from a predetermined seed value (hereinafter referred to as Seed value), and generates a pseudo random number serially. The shift register 112 rearranges serial pseudo-random numbers by flip-flops connected in series and converts them into parallel pseudo-random numbers. Then, the test pattern having randomness is input to the interface circuit 120 connected to the bus wiring by inputting the output of the pattern generation unit 111 and the output of the shift register 112 in parallel to the data connection unit 113. Thus, the test circuit 110 can input a data string having randomness to the interface circuit 120.

また、インタフェース回路の試験の他の一例が特許文献2(以下、従来例2と称す)に開示されている。従来例2にかかるテスト回路は、テストパターン発生器とテスト対象となる半導体装置とが個別に用意されている。テストパターン発生器は、所定のSeed値を開始値とした疑似乱数を生成し、半導体装置に出力する。半導体装置は、テストパターン発生器に対応した回路構成を有する期待値生成回路を有している。そして、半導体装置に内蔵されるインタフェース回路を経由して入力されるテストパターンと期待値生成回路の出力とを比較器で比較する。これによって、従来例2では、ランダムなデータ列によるインタフェース回路のテストを行う。   Another example of the interface circuit test is disclosed in Patent Document 2 (hereinafter referred to as Conventional Example 2). In the test circuit according to Conventional Example 2, a test pattern generator and a semiconductor device to be tested are prepared separately. The test pattern generator generates a pseudo random number having a predetermined seed value as a start value, and outputs the pseudo random number to the semiconductor device. The semiconductor device has an expected value generation circuit having a circuit configuration corresponding to the test pattern generator. Then, the test pattern input via the interface circuit built in the semiconductor device and the output of the expected value generation circuit are compared by a comparator. Thus, in the conventional example 2, the interface circuit is tested with a random data string.

従来例1、2では、テストパターンとして疑似乱数を使用したが、このような疑似乱数を生成する回路の他の例は、特許文献3、4(以下、それぞれを従来例3、従来例4と称す。)に開示されている。
特開2006−78447号公報 特開2005−339675号公報 特開平11−85475号公報 特開2003−330704号公報
Conventional examples 1 and 2 use pseudo-random numbers as test patterns. Other examples of circuits that generate such pseudo-random numbers are disclosed in Patent Documents 3 and 4 (hereinafter referred to as conventional examples 3 and 4, respectively). It is disclosed.
JP 2006-78447 A JP 2005-339675 A JP-A-11-85475 JP 2003-330704 A

従来例1〜4を用いることで、データ列方向に対してはデータのランダム性は確保される。しかしながら、従来例1〜4のパターン発生回路あるいはパターン発生部では、多数のSeed値を設定することができないために、その回路構成に基づく疑似乱数しか生成することができない。そのため、バス配線内の信号線間(以下、バス幅方向と称す)に対するデータの組み合わせが限られてしまう。例えば、所定の組み合わせを有するテストパターンを意識的に作り出すことができない。このようなことから、従来例1〜4では、インタフェース回路の試験においてバス幅方向のテストカバレッジを向上させることができない問題がある。   By using Conventional Examples 1 to 4, the randomness of the data is ensured in the data string direction. However, since the pattern generation circuits or pattern generation units of the conventional examples 1 to 4 cannot set a large number of seed values, only pseudo-random numbers based on the circuit configuration can be generated. Therefore, combinations of data between signal lines in the bus wiring (hereinafter referred to as the bus width direction) are limited. For example, a test pattern having a predetermined combination cannot be created intentionally. Therefore, the conventional examples 1 to 4 have a problem that the test coverage in the bus width direction cannot be improved in the interface circuit test.

本発明にかかるテストパターン生成回路は、バス配線に接続され、並列に多ビットのデータの入出力を行うインタフェース回路に対してテストパターンを出力するテストパターン生成回路であって、前記バス配線内の信号線のそれぞれに対応して設けられ、それぞれ同一の値となる第1の初期値が予め設定され、入力される第1のクロック信号に応じて前記第1の初期値を開始値とした疑似乱数を発生する複数の疑似乱数発生回路と、制御信号の値に応じて前記複数の疑似乱数発生回路のそれぞれに与える前記第1のクロック信号の出力開始タイミングをそれぞれ任意に決定するクロック制御回路とを有するものである。   A test pattern generation circuit according to the present invention is a test pattern generation circuit that outputs a test pattern to an interface circuit that is connected to a bus wiring and performs input / output of multi-bit data in parallel. A first initial value which is provided corresponding to each of the signal lines and has the same value is set in advance, and the first initial value is set as a start value according to the input first clock signal. A plurality of pseudo-random number generation circuits for generating random numbers, and a clock control circuit for arbitrarily determining an output start timing of the first clock signal to be given to each of the plurality of pseudo-random number generation circuits according to a value of the control signal; It is what has.

本発明にかかるテストパターン生成回路によれば、同一の第1の初期値を有する複数の疑似乱数発生回路の動作開始タイミングを任意に設定することが可能である。これによって、所定の時刻において複数の疑似乱数発生回路が生成しているパターンの組み合わせを任意に設定することが可能になる。   According to the test pattern generation circuit of the present invention, it is possible to arbitrarily set operation start timings of a plurality of pseudo random number generation circuits having the same first initial value. This makes it possible to arbitrarily set a combination of patterns generated by a plurality of pseudo random number generation circuits at a predetermined time.

また、本発明にかかるテスト回路は、本発明にかかるテストパターン生成回路と、前記インタフェース回路を経由して入力される疑似乱数と前記複数の疑似乱数発生回路が出力する疑似乱数とを比較する比較器と、前記比較器が出力するテスト結果を保持し、前記テスト結果を出力する結果保持回路とを有するものである。このテスト回路によって、テストカバレッジの高いフィードバック試験を行うことが可能である。   In addition, the test circuit according to the present invention compares the test pattern generation circuit according to the present invention with the pseudorandom numbers input via the interface circuit and the pseudorandom numbers output from the plurality of pseudorandom number generation circuits. And a result holding circuit for holding the test result output from the comparator and outputting the test result. With this test circuit, it is possible to perform a feedback test with high test coverage.

本発明にかかるテストパターン生成回路及びテスト回路によれば、データ列方向のランダム性及びバス幅方向のデータの組み合わせのランダム性を共に向上させることで、テストカバレッジの高いフィードバック試験を行うことが可能である。   According to the test pattern generation circuit and the test circuit of the present invention, it is possible to perform a feedback test with high test coverage by improving both the randomness in the data string direction and the randomness of the data combination in the bus width direction. It is.

実施の形態1
以下、図面を参照して本発明の実施の形態について説明する。図1に本発明にかかるテストパターン生成回路1のブロック図を示す。図1に示すように、テストパターン生成回路1は、クロック制御回路11と疑似乱数発生回路(図中のPRBS)13_1〜13_nを有しており、疑似乱数発生回路の出力はそれぞれ対応するインタフェースのチャネルに接続される。以下の説明ではn、mは整数を示す。また、テストパターン生成回路1には、クロック生成回路10とインタフェース回路14が接続される。
Embodiment 1
Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 shows a block diagram of a test pattern generation circuit 1 according to the present invention. As shown in FIG. 1, the test pattern generation circuit 1 includes a clock control circuit 11 and pseudo-random number generation circuits (PRBS in the figure) 13_1 to 13_n, and the outputs of the pseudo-random number generation circuits correspond to the corresponding interfaces. Connected to the channel. In the following description, n and m represent integers. Further, a clock generation circuit 10 and an interface circuit 14 are connected to the test pattern generation circuit 1.

クロック生成回路10は、所定の周波数を有する基準クロックを出力する。本実施の形態において、クロック生成回路10は後述のリセット信号RSTがロウレベルからハイレベルになった後に基準クロックを出力するものとする。   The clock generation circuit 10 outputs a reference clock having a predetermined frequency. In the present embodiment, it is assumed that the clock generation circuit 10 outputs a reference clock after a reset signal RST described later changes from a low level to a high level.

インタフェース回路14は、被テスト回路であって、バス配線(不図示)に接続される。また、本発明にかかるテストパターン生成回路及びテスト回路がテスト対象とするインタフェース回路14は、複数のチャネルを有し、それぞれのチャネルは送信回路と受信回路とを含む。   The interface circuit 14 is a circuit under test and is connected to a bus wiring (not shown). The test pattern generation circuit and the interface circuit 14 to be tested by the test circuit according to the present invention have a plurality of channels, and each channel includes a transmission circuit and a reception circuit.

クロック制御回路11は、第1のクロック制御回路12を有している。第1のクロック制御回路12は、基準クロックに応じて複数の第1のクロック信号CLK1_1〜CLK1_nを生成する。また、第1のクロック制御回路12は、第1の制御信号の値に基づき、複数の第1のクロック信号の出力開始タイミングをそれぞれ任意に設定する。そして、第1のクロック信号CLK1_1〜CLK1_nは、第1のクロック信号CLK1_1〜CLK1_nに対応して設けられる疑似乱数発生回路13_1〜13_nにそれぞれクロックとして入力される。なお、第1の制御信号は、多ビット構成(例えば、mビット)の制御信号で構成されている。そして、本実施の形態では、第1のクロック制御回路12は、mビットで表される値に応じて、第1のクロック信号CLK1_1〜CLK1_nの出力開始タイミングを設定する。また、第1のクロック制御回路12はリセット信号RSTを受ける。このリセット信号RSTは、疑似乱数発生回路13_1〜13_nそれぞれにも供給される。このリセット信号RSTについては後述する。   The clock control circuit 11 has a first clock control circuit 12. The first clock control circuit 12 generates a plurality of first clock signals CLK1_1 to CLK1_n according to the reference clock. Further, the first clock control circuit 12 arbitrarily sets the output start timings of the plurality of first clock signals based on the value of the first control signal. Then, the first clock signals CLK1_1 to CLK1_n are input as clocks to pseudo random number generation circuits 13_1 to 13_n provided corresponding to the first clock signals CLK1_1 to CLK1_n, respectively. The first control signal is a multi-bit control signal (for example, m bits). In the present embodiment, the first clock control circuit 12 sets the output start timing of the first clock signals CLK1_1 to CLK1_n according to the value represented by m bits. The first clock control circuit 12 receives a reset signal RST. The reset signal RST is also supplied to each of the pseudo random number generation circuits 13_1 to 13_n. The reset signal RST will be described later.

疑似乱数発生回路13_1〜13_nはそれぞれ、例えば、文献4の図6などに示される回路であって、それぞれ同一の値となるSeed値(以下、第1の初期値と称す)を開始値として同じ疑似乱数データ列(PRBS(Pseudo Random Binary Sequence)と呼ばれるデータ列)を出力する。本実施の形態においては、疑似乱数発生回路13_1〜13_nは、排他的論理和(ExOR)回路を介して帰還をかけたシフトレジスタによって構成される(LFSR:Linear Feedback Shift Register)をその内部に有する。疑似乱数発生回路13_1〜13_nはそれぞれリセット時(リセット信号RSTがロウレベルの間)は、その内部レジスタ(LFSR)を初期化し第1の初期値を有する。そして、リセット解除後、上述のように第1のクロック信号CLK1_1〜CLK1_nに応じて擬似乱数を生成し出力する。また、疑似乱数発生回路13_1〜13_nは、それぞれインタフェース回路14のチャネルに対応して設けられているので、インタフェース回路14に接続されるバス配線の信号線のそれぞれに対応して設けられる状態にある。つまり、疑似乱数発生回路13_1〜13_nの個数は、バス配線の信号線の数と同数である。   Each of the pseudo-random number generation circuits 13_1 to 13_n is, for example, a circuit shown in FIG. 6 of Reference 4, and the same seed value (hereinafter referred to as a first initial value) having the same value is the same as a start value. A pseudo-random data sequence (a data sequence called PRBS (Pseudo Random Binary Sequence)) is output. In the present embodiment, the pseudo-random number generation circuits 13_1 to 13_n have therein a shift register (LFSR: Linear Feedback Shift Register) that is fed back via an exclusive OR (ExOR) circuit. . Each of the pseudo random number generation circuits 13_1 to 13_n initializes its internal register (LFSR) and has a first initial value when reset (while the reset signal RST is at low level). Then, after the reset is released, pseudo random numbers are generated and output according to the first clock signals CLK1_1 to CLK1_n as described above. Further, since the pseudo random number generation circuits 13_1 to 13_n are provided corresponding to the channels of the interface circuit 14, respectively, they are provided corresponding to the signal lines of the bus wiring connected to the interface circuit 14. . That is, the number of pseudo random number generation circuits 13_1 to 13_n is the same as the number of signal lines of the bus wiring.

ここで、第1のクロック制御回路12について更に詳細に説明する。第1のクロック制御回路12のブロック図を図2に示す。図2に示すように、第1のクロック制御回路は、カウンタ17_2〜17_n、クロックゲーティング回路16_2〜16_n、比較器18_2〜18_nを有している。   Here, the first clock control circuit 12 will be described in more detail. A block diagram of the first clock control circuit 12 is shown in FIG. As shown in FIG. 2, the first clock control circuit includes counters 17_2 to 17_n, clock gating circuits 16_2 to 16_n, and comparators 18_2 to 18_n.

本実施の形態において、第1のクロック制御回路12は、入力された基準クロックを第1のクロック信号CLK1_1〜CLK1_nとして出力する。カウンタ17_2〜17_nは、リセット信号RSTを受け、リセット信号RSTがロウレベルの間、カウンタの値は初期値"0"のままである。そして、リセット信号RSTがハイレベルとなった後に、カウンタ17_2〜17_nは、それぞれ対応する第1のクロック信号CLK1_1〜CLK1_n−1のクロック数をカウントする。例えば、第1のクロック信号CLK1_2を出力するクロックゲーティング回路16_2に対応して設けられるカウンタ17_2は、第1のクロック信号CLK1_1のクロック数をカウントする。比較器18_2〜18_nは、対応して設けられるカウンタが出力するカウント値と第1の制御信号の値とを比較して、カウント値が第1の制御信号の値と一致した時点でイネーブル信号EN_2〜EN_nを出力する。例えば、比較器18_2は、カウンタ17_2が出力するカウント値と第1の制御信号の値とを比較して、カウント値が第1の制御信号の値と一致した時点でイネーブル信号EN_2を出力する。なお、本実施例におけるカウンタ17_2〜17_nは、カウント値が第1の制御信号の値と一致した以降はその値を保持するものとする。   In the present embodiment, the first clock control circuit 12 outputs the input reference clock as the first clock signals CLK1_1 to CLK1_n. The counters 17_2 to 17_n receive the reset signal RST, and the value of the counter remains the initial value “0” while the reset signal RST is at the low level. Then, after the reset signal RST becomes high level, the counters 17_2 to 17_n count the number of clocks of the corresponding first clock signals CLK1_1 to CLK1_n−1, respectively. For example, the counter 17_2 provided corresponding to the clock gating circuit 16_2 that outputs the first clock signal CLK1_2 counts the number of clocks of the first clock signal CLK1_1. The comparators 18_2 to 18_n compare the count value output from the counter provided corresponding thereto with the value of the first control signal, and when the count value matches the value of the first control signal, the enable signal EN_2. ~ EN_n is output. For example, the comparator 18_2 compares the count value output from the counter 17_2 with the value of the first control signal, and outputs the enable signal EN_2 when the count value matches the value of the first control signal. Note that the counters 17_2 to 17_n in the present embodiment hold the values after the count value matches the value of the first control signal.

クロックゲーティング回路16_2〜16_nは、ANDゲートなどであって、対応して入力されるイネーブル信号EN_2〜EN_nに応じて第1のクロック信号CLK1_1〜CLK1_n−1をそれぞれ対応する第1のクロック信号CLK1_2〜CLK1_nとして出力する。例えば、イネーブル信号EN_2がハイレベルであった場合、クロックゲーティング回路16_2は、第1のクロック信号CLK1_1を第1のクロック信号CLK1_2として出力する。一方、イネーブル信号EN_2がロウレベルであった場合、クロックゲーティング回路16_2は、出力をロウレベルとし、クロックを出力しない。   The clock gating circuits 16_2 to 16_n are AND gates or the like, and correspond to the first clock signals CLK1_1 to CLK1_n-1 corresponding to the corresponding enable signals EN_2 to EN_n, respectively. Output as ~ CLK1_n. For example, when the enable signal EN_2 is at a high level, the clock gating circuit 16_2 outputs the first clock signal CLK1_1 as the first clock signal CLK1_2. On the other hand, when the enable signal EN_2 is at the low level, the clock gating circuit 16_2 sets the output to the low level and does not output the clock.

以下、インタフェース回路14が4チャネル(n=4)、疑似乱数発生回路が7次(次数k=7、すなわち7段のレジスタにより構成されている)、第1の制御信号が6ビット(m=6)である場合を考える。このとき1つの疑似乱数発生回路13_1は2の7乗−1=127の擬似乱数列を作成する。つまり127クロックで1周期となる擬似乱数を発生する。また、第1のクロック制御回路12は、6ビットで表される値に応じて、第1のクロック信号CLK1_1〜CLK1_nの出力開始タイミングを設定する。   Hereinafter, the interface circuit 14 has 4 channels (n = 4), the pseudo random number generation circuit has the 7th order (the order k = 7, that is, is configured by a 7-stage register), and the first control signal has 6 bits (m = Consider the case of 6). At this time, one pseudo random number generation circuit 13_1 creates a pseudo random number sequence of 2 7 −1 = 127. That is, a pseudo-random number having one cycle is generated at 127 clocks. Further, the first clock control circuit 12 sets the output start timing of the first clock signals CLK1_1 to CLK1_n according to a value represented by 6 bits.

この場合における第1のクロック制御回路12の動作のタイミングチャートを図3、図4に示す。図3に示すタイミングチャートは、第1の制御信号が"1"(例えば、"000001")を示す場合における第1のクロック制御回路12の動作を示すものである。また、図4に示すタイミングチャートは、第1の制御信号が"4"(例えば、"000100")を示す場合における第1のクロック制御回路12の動作を示すものである。なお、図3及び図4では、n=4の場合であるから、第1のクロック制御回路12は第1のクロック信号CLK1_1〜CLK1_4を出力するものとする。この図3及び図4を参照して、第1のクロック制御回路12の動作について説明する。   The timing chart of the operation of the first clock control circuit 12 in this case is shown in FIGS. The timing chart shown in FIG. 3 shows the operation of the first clock control circuit 12 when the first control signal indicates “1” (for example, “000001”). The timing chart shown in FIG. 4 shows the operation of the first clock control circuit 12 when the first control signal indicates “4” (for example, “000100”). In FIGS. 3 and 4, since n = 4, the first clock control circuit 12 outputs the first clock signals CLK1_1 to CLK1_4. The operation of the first clock control circuit 12 will be described with reference to FIGS.

まず、図3に示す動作について説明する。第1のクロック制御回路12は、動作開始前の状態においてリセット信号RSTをロウレベルとすることでカウンタ17_2〜17_n(ここの説明ではn=4)のカウント値を"0"とする。そして、リセット信号RSTをハイレベルとし、リセットを解除する。リセット解除後にクロック生成回路10から基準クロックを入力する。リセットが解除され、基準クロックが印加されることによって、第1のクロック制御回路12は基準クロックを第1のクロックCLK1_1として出力する。(タイミングT11)。   First, the operation shown in FIG. 3 will be described. The first clock control circuit 12 sets the count value of the counters 17_2 to 17_n (n = 4 in this description) to “0” by setting the reset signal RST to the low level in the state before the operation starts. Then, the reset signal RST is set to the high level to release the reset. After the reset is released, the reference clock is input from the clock generation circuit 10. When the reset is released and the reference clock is applied, the first clock control circuit 12 outputs the reference clock as the first clock CLK1_1. (Timing T11).

また、第1の制御信号の値が"1"であるため、カウンタ17_2のカウント値が"1"に達すると、比較器18_2はイネーブル信号EN_2をハイレベルとする。従って、クロックゲーティング回路16_2は、第1のクロック信号CLK1_1よりも基準クロックの1クロックに相当する時間だけ遅れて第1のクロック信号CLK1_2の出力を開始する(タイミングT12)。   Further, since the value of the first control signal is “1”, when the count value of the counter 17_2 reaches “1”, the comparator 18_2 sets the enable signal EN_2 to the high level. Accordingly, the clock gating circuit 16_2 starts outputting the first clock signal CLK1_2 with a delay from the first clock signal CLK1_1 by a time corresponding to one clock of the reference clock (timing T12).

その後、第1のクロック信号CLK1_3と第1のクロック信号CLK1_4とが、第1のクロック信号CLK1_2と同様に出力される。すなわち、第1のクロック信号CLK1_3は、第1のクロック信号CLK1_2から基準クロックの1クロックに相当する時間だけ遅れて出力が開始される(タイミングT13)。第1のクロック信号CLK1_4は、第1のクロック信号CLK1_3から基準クロックの1クロックに相当する時間だけ遅れて出力が開始される(タイミングT14)。つまり、第1のクロック信号CLK1_1〜CLK1_4は、それぞれ第1の制御信号の値に応じたクロック数分、順次遅れて出力される。   After that, the first clock signal CLK1_3 and the first clock signal CLK1_4 are output in the same manner as the first clock signal CLK1_2. That is, output of the first clock signal CLK1_3 is delayed by a time corresponding to one clock of the reference clock from the first clock signal CLK1_2 (timing T13). The output of the first clock signal CLK1_4 is delayed from the first clock signal CLK1_3 by a time corresponding to one clock of the reference clock (timing T14). That is, the first clock signals CLK1_1 to CLK1_4 are sequentially output with a delay of the number of clocks corresponding to the value of the first control signal.

ここで、最後に第1のクロック信号が疑似乱数発生回路に入力されるタイミングT14以降(T14を含む)にタイミングT15を設定する。タイミングT15以降は、すべての疑似乱数発生回路に第1のクロック信号CLK1_1〜CLK1_4が1サイクル以上印加されている状態であり、タイミングT15以降に実際のテストに利用されるテストパターンが生成される。なお、ここで、図3におけるタイミングT11〜T15の期間を以下では、テストパターン初期値設定期間と称す。   Here, the timing T15 is set after the timing T14 (including T14) when the first clock signal is finally input to the pseudo-random number generation circuit. After timing T15, the first clock signals CLK1_1 to CLK1_4 are applied to all the pseudo random number generation circuits for one cycle or more, and a test pattern used for an actual test is generated after timing T15. Here, the period of timing T11 to T15 in FIG. 3 is hereinafter referred to as a test pattern initial value setting period.

続いて、図4に示す動作について説明する。図4では、第1の制御信号の値が"4"であるため、カウンタ17_2のカウント値が"4"に達すると、比較器18_2はイネーブル信号EN_2をハイレベルとする。従って、クロックゲーティング回路16_2は、第1のクロック信号CLK1_1よりも基準クロックの4クロックに相当する時間だけ遅れて第1のクロック信号CLK1_2の出力を開始する(タイミングT22)。その他の動作は図3と同じであり、タイミングT21,T22,T23,T24,T25はそれぞれタイミングT11,T12,T13,T14,T15に対応する。なお、タイミングT25はタイミングT15と同様最後に第1のクロック信号が疑似乱数発生回路に入力されるタイミングT24以降(T24を含む)に設定されている。   Next, the operation shown in FIG. 4 will be described. In FIG. 4, since the value of the first control signal is “4”, when the count value of the counter 17_2 reaches “4”, the comparator 18_2 sets the enable signal EN_2 to the high level. Therefore, the clock gating circuit 16_2 starts outputting the first clock signal CLK1_2 with a delay from the first clock signal CLK1_1 by a time corresponding to four clocks of the reference clock (timing T22). Other operations are the same as those in FIG. 3, and timings T21, T22, T23, T24, and T25 correspond to timings T11, T12, T13, T14, and T15, respectively. Note that the timing T25 is set after the timing T24 (including T24) when the first clock signal is finally input to the pseudo-random number generation circuit, similarly to the timing T15.

このように、第1のクロック制御回路は、第1のクロック信号CLK1_1〜CLK1_nの出力開始タイミングを第1の制御信号の値に応じて設定する。本実施の形態にかかるテストパターン生成回路1は、この第1のクロック制御回路の動作により疑似乱数発生回路13_1〜13_nのテスト開始時の乱数発生開始値(以下、第2の初期値と称す)を設定する。つまり、上述したように、タイミングT15、T25で、実際のテストに利用されるテストパターンの初期値(第2の初期値)が生成されるとともに設定される。   In this way, the first clock control circuit sets the output start timing of the first clock signals CLK1_1 to CLK1_n according to the value of the first control signal. The test pattern generation circuit 1 according to the present exemplary embodiment has a random number generation start value (hereinafter referred to as a second initial value) at the start of the test of the pseudo random number generation circuits 13_1 to 13_n by the operation of the first clock control circuit. Set. That is, as described above, the initial value (second initial value) of the test pattern used for the actual test is generated and set at the timings T15 and T25.

ここで、この第2の初期値の設定動作及びテスト時に用いられるテストパターンについて説明する。まず、第2の初期値の設定動作について説明する。本実施の形態にかかる疑似乱数発生回路13_1〜13_nは、7次のPRBSを出力するため、出力するデータ列は127個のデータを有する。このデータ列の各データをD1〜D127とすると、疑似乱数発生回路13_1〜13_nは、開始値が第1の初期値である場合、データD1を動作開始時のデータとし、データD1からデータD127を順に繰り返し出力する。   Here, the setting operation of the second initial value and the test pattern used during the test will be described. First, the setting operation of the second initial value will be described. Since the pseudo random number generation circuits 13_1 to 13_n according to the present embodiment output the 7th-order PRBS, the data string to be output has 127 data. Assuming that each data of this data string is D1 to D127, when the start value is the first initial value, the pseudo random number generation circuits 13_1 to 13_n use the data D1 as the data at the start of operation, and the data D1 to the data D127. Output repeatedly in order.

このような、疑似乱数発生回路13_1〜13_nに第1のクロック制御回路12が出力する第1のクロック信号CLK1_1〜CLK1_nを与えた場合、例えば図3に示すタイミングT14では、疑似乱数発生回路13_1〜13_4の出力OUT1〜OUT4は、OUT1から順に"D4、D3、D2、D1"となる。ここでタイミングT15をタイミングT14と同じと設定した場合は、疑似乱数発生回路13_1〜13_4の出力OUT1〜OUT4は、OUT1から順に"D4、D3、D2、D1"、タイミングT11から基準クロックが127クロック分経過したところに設定すれば、"D127、D126、D125、D124"となる。本実施の形態では、このように、タイミングT15で、擬似乱数生成回路13_1〜13_4の初期化が完了し、タイミングT15におけるOUT1〜4の値が第2の初期値として与えられたことになる。また、図4に示す例では、テストパターンTP1〜TP4の第2の初期値は、同様にタイミングT25をタイミングT24と同じと設定すればテストパターンTP1から順に"D13、D9、D5、D1"、タイミングT21から基準クロックが127クロック分経過したところに設定すればテストパターンTP1から順に"D127、D123、D119、D115"となる。タイミングT15以降が、インタフェース回路14に対する、実際のテストパターンとなる。従って、テスト状態では、タイミングT15以降に疑似乱数発生回路13_1〜13_4が出力するテストパターンが順次インタフェース回路14に与えられる。   When the first clock signals CLK1_1 to CLK1_n output from the first clock control circuit 12 are supplied to the pseudo random number generation circuits 13_1 to 13_n, for example, at the timing T14 illustrated in FIG. 3, the pseudo random number generation circuits 13_1 to 13_1 are provided. The outputs OUT1 to OUT4 of 13_4 are “D4, D3, D2, D1” in order from OUT1. When the timing T15 is set to be the same as the timing T14, the outputs OUT1 to OUT4 of the pseudo random number generation circuits 13_1 to 13_4 are “D4, D3, D2, D1” sequentially from OUT1, and the reference clock is 127 clocks from the timing T11. If it is set at the place where minutes have passed, it becomes “D127, D126, D125, D124”. In this embodiment, as described above, the initialization of the pseudorandom number generation circuits 13_1 to 13_4 is completed at the timing T15, and the values of OUT1 to OUT4 at the timing T15 are given as the second initial values. In the example shown in FIG. 4, the second initial values of the test patterns TP1 to TP4 are “D13, D9, D5, D1” in order from the test pattern TP1 if the timing T25 is set to be the same as the timing T24. If the reference clock is set at the point where 127 clocks have elapsed from the timing T21, "D127, D123, D119, D115" are obtained in order from the test pattern TP1. After the timing T15, an actual test pattern for the interface circuit 14 is obtained. Therefore, in the test state, the test patterns output from the pseudo random number generation circuits 13_1 to 13_4 after the timing T15 are sequentially given to the interface circuit 14.

上記説明より、本実施の形態にかかるテストパターン生成回路1は、第1の制御信号の値に基づきクロック制御回路11は、出力する複数の第1のクロック信号の出力開始タイミングをそれぞれ変更することが可能である。また、この複数の第1のクロック信号に基づき複数の疑似乱数発生回路を動作させることで、テストパターン初期値設定期間中に複数の疑似乱数発生回路に与えられる第1のクロック信号のクロック数をそれぞれ異なるものとすることが可能である。そして、テストパターン初期値設定期間の終了時点で複数の疑似乱数発生回路が出力している値に基づき第2の初期値を設定する。つまり、複数の疑似乱数発生回路に設定される第2の初期値は、第1の制御信号の値に応じてそれぞれ異なるものとなり、テスト開始後は、第2の初期値を開始値とした疑似乱数データ列を生成する。すなわち、本実施の形態にかかるテストパターン生成回路1は、複数の疑似乱数発生回路のSeed値を任意に設定する機能に相当する機能を有する。   From the above description, in the test pattern generation circuit 1 according to the present embodiment, the clock control circuit 11 changes the output start timings of the plurality of first clock signals to be output based on the value of the first control signal. Is possible. In addition, by operating a plurality of pseudo random number generation circuits based on the plurality of first clock signals, the number of clocks of the first clock signal given to the plurality of pseudo random number generation circuits during the test pattern initial value setting period is set. Each can be different. Then, the second initial value is set based on the values output from the plurality of pseudo random number generation circuits at the end of the test pattern initial value setting period. That is, the second initial values set in the plurality of pseudo-random number generation circuits are different depending on the value of the first control signal, and after starting the test, the pseudo initial value is set to the second initial value. Generate a random data sequence. That is, the test pattern generation circuit 1 according to the present embodiment has a function corresponding to a function of arbitrarily setting the seed values of a plurality of pseudo random number generation circuits.

これによって、本実施の形態にかかるテストパターン生成回路1は、テスト開始後の所定の時刻において複数の疑似乱数発生回路が出力するデータのバス幅方向における組み合わせを任意に設定することが可能である。従って、本実施の形態にかかるテストパターン生成回路1によれば、データ列方向の高いランダム性とバス幅方向の高いランダム性とを有するテストパターンをインタフェース回路14に与えることが可能である。   Thereby, the test pattern generation circuit 1 according to the present embodiment can arbitrarily set a combination in the bus width direction of data output from a plurality of pseudo random number generation circuits at a predetermined time after the start of the test. . Therefore, according to the test pattern generation circuit 1 according to the present embodiment, a test pattern having high randomness in the data string direction and high randomness in the bus width direction can be given to the interface circuit 14.

また、テストパターン生成回路1は、複数の疑似乱数発生回路を有しているため、高速にランダムパターンを生成することができる。従来例1では、LFSRが出力するランダムパターンを4つに1つインタフェース回路に送信する。これに対して、テストパターン生成回路1が出力するランダムパターンを間引くことなく連続してインタフェース回路14に与えることができる。   In addition, since the test pattern generation circuit 1 has a plurality of pseudo-random number generation circuits, it can generate a random pattern at high speed. In Conventional Example 1, one out of four random patterns output from the LFSR is transmitted to the interface circuit. On the other hand, the random pattern output from the test pattern generation circuit 1 can be continuously supplied to the interface circuit 14 without being thinned out.

上記実施の形態では、第1のクロック制御回路12は、複数の第1のクロック信号が異なる出力開始タイミングで出力される例について述べた。しかし、第1の制御信号の値として"0"を設定した場合、複数の第1のクロック信号は、実質的に同じタイミングで出力される。これによって、疑似乱数発生回路が出力するテストパターンをいずれの時刻においても全て同じデータとすることが可能である。つまり、本実施の形態にかかるテストパターン生成回路1は、高い自由度でバス幅方向のデータを組み合わせることが可能である。すなわち、テストパターン生成回路1は、所定の組み合わせを有するテストパターンを意識的に作り出すことが可能である。   In the embodiment described above, the first clock control circuit 12 has described the example in which the plurality of first clock signals are output at different output start timings. However, when “0” is set as the value of the first control signal, the plurality of first clock signals are output at substantially the same timing. As a result, the test pattern output from the pseudo random number generation circuit can be made the same data at any time. That is, the test pattern generation circuit 1 according to the present embodiment can combine data in the bus width direction with a high degree of freedom. That is, the test pattern generation circuit 1 can intentionally create a test pattern having a predetermined combination.

ここで、テストパターン生成回路1のタイミングT15、T25の設定及び第1の制御信号のビット幅の設定について説明する。タイミングT15、T25は、すべての疑似乱数発生回路に第1のクロック信号CLK1_1〜CLK1_4が1サイクル以上印加され、それぞれ擬似乱数を生成できるタイミングである。本発明においては、インタフェース回路がnチャネル、第1の制御信号がmビットであるため、少なくとも(2のm乗−1)×(n−1)サイクル数の基準クロックが印加されたタイミング以降に設定すればよい。   Here, the setting of the timings T15 and T25 of the test pattern generation circuit 1 and the setting of the bit width of the first control signal will be described. Timings T15 and T25 are timings at which the first clock signals CLK1_1 to CLK1_4 are applied to all the pseudorandom number generation circuits for one cycle or more, and pseudorandom numbers can be generated respectively. In the present invention, since the interface circuit has n channels and the first control signal has m bits, at least after the timing when the reference clock of (2 to the power of m−1) × (n−1) cycles is applied. You only have to set it.

また、第1の制御信号は、第1のクロック信号CLK1_1〜CLK1_nにおいて隣り合う第1のクロック信号の間のクロックのずれ(遅れ)を示す。疑似乱数発生回路13_1〜13_nをそれぞれk次とすれば、第1の制御信号は最大で2のk乗−1のずれを示すことが可能であればよい。つまり、第1の制御信号のビット幅は、kであればよい。なお、kより小さい値であっても本発明の効果は得られる。   The first control signal indicates a clock shift (delay) between the first clock signals adjacent to each other in the first clock signals CLK1_1 to CLK1_n. If each of the pseudo random number generation circuits 13_1 to 13_n is k-th order, it is only necessary that the first control signal can show a shift of 2 k-1 at the maximum. That is, the bit width of the first control signal may be k. Even if the value is smaller than k, the effect of the present invention can be obtained.

実施の形態2
実施の形態1では、基準クロックを用いて、インタフェース回路14をテストするためのテストパターンに対するSeed値(第2の初期値)の生成と、第2の初期値生成後の実際のテストパターンの生成を、基準クロックを用いて実施する例を示した。しかしながら、別途テストクロックを用意し、基準クロックを用いて第2の初期値を生成し、第2の初期値生成後の実際のテストパターンの生成をこのテストクロックを用いて行うことも可能である。
Embodiment 2
In the first embodiment, using the reference clock, generation of a seed value (second initial value) for a test pattern for testing the interface circuit 14 and generation of an actual test pattern after generation of the second initial value are performed. An example in which the reference clock is used is shown. However, it is also possible to prepare a separate test clock, generate the second initial value using the reference clock, and use this test clock to generate the actual test pattern after the second initial value is generated. .

このような場合に対応する実施の形態を図5、図6に示す。図5は、実施の形態2にかかるテストパターン生成回路1'のブロック図であり、図6は第1のクロック制御回路12'のブロック図である。実施の形態2においては、実施の形態1(図1)にさらにセレクタ31_1〜31_nを備え、第1のクロック制御回路12'の出力である第1のクロック信号CLK1_1〜CLK1_nと、テストクロックとを選択信号SELを用いて切り替える。そして、疑似乱数発生回路13_1〜13_nに第1のクロック信号CLK1_1'〜CLK1_n'として出力する。また、第1のクロック制御回路12'は、図2に示す第1のクロック制御回路12を図6に示す回路に置き換えたものである。   An embodiment corresponding to such a case is shown in FIGS. FIG. 5 is a block diagram of the test pattern generation circuit 1 ′ according to the second embodiment, and FIG. 6 is a block diagram of the first clock control circuit 12 ′. In the second embodiment, selectors 31_1 to 31_n are further provided in the first embodiment (FIG. 1), and the first clock signals CLK1_1 to CLK1_n, which are the outputs of the first clock control circuit 12 ′, and the test clock are provided. Switching is performed using the selection signal SEL. Then, the first clock signals CLK1_1 ′ to CLK1_n ′ are output to the pseudo random number generation circuits 13_1 to 13_n. Further, the first clock control circuit 12 ′ is obtained by replacing the first clock control circuit 12 shown in FIG. 2 with a circuit shown in FIG.

図6に示す第1のクロック制御回路12'は、図2に示す第1のクロック制御回路12と比べ、その構成上の違いは、カウンタ15とクロックゲーティング回路16_1とを備える点である。クロックゲーティング回路16_1は、カウンタ15のstop信号により第1のクロック信号CLK1_1の出力を停止する機能を備えるものである。この第1のクロック制御回路12'において上記した相違点以外の構成は、第1のクロック制御回路12とすべて同じである。   The first clock control circuit 12 ′ shown in FIG. 6 is different from the first clock control circuit 12 shown in FIG. 2 in that it includes a counter 15 and a clock gating circuit 16_1. The clock gating circuit 16_1 has a function of stopping the output of the first clock signal CLK1_1 by the stop signal of the counter 15. The configuration of the first clock control circuit 12 ′ is the same as that of the first clock control circuit 12 except for the differences described above.

カウンタ15は、例えば上述のようにテストパターン初期値設定期間の間に印加される基準クロックの数をカウントするCtビットのカウンタである。カウンタ15は基準クロックとリセット信号RSTが入力される。そして、リセット信号RSTがロウレベルのとき初期化(カウント値が"0")され、リセット信号RSTがハイレベルとなった以降入力される基準クロックをカウントする。そしてカウント値がCtとなったときstop信号をクロックゲーティング回路に出力する。本実施の形態においてstop信号は、動作状態をハイレベル、停止状態をロウレベルとしてクロックゲーティング回路16_1に与えられるものとする。また、カウンタ15は一旦stop信号をロウレベルに切り替えた後はリセットされるまでロウレベルを保持するものとする。   The counter 15 is a Ct-bit counter that counts the number of reference clocks applied during the test pattern initial value setting period, for example, as described above. The counter 15 receives a reference clock and a reset signal RST. When the reset signal RST is low level, it is initialized (count value is “0”), and the reference clock input after the reset signal RST becomes high level is counted. When the count value reaches Ct, a stop signal is output to the clock gating circuit. In this embodiment, it is assumed that the stop signal is supplied to the clock gating circuit 16_1 with the operation state being high level and the stop state being low level. The counter 15 holds the low level until it is reset after the stop signal is once switched to the low level.

クロックゲーティング回路16_1はリセット信号RSTとstop信号とがハイレベルである期間に、基準クロックを第1のクロック信号CLK1_1として出力する。そして、カウンタ15のカウント値がCtとなりstop信号をロウレベルとした段階で、その出力をとめる(ロウレベルに固定する)。   The clock gating circuit 16_1 outputs the reference clock as the first clock signal CLK1_1 while the reset signal RST and the stop signal are at the high level. Then, when the count value of the counter 15 becomes Ct and the stop signal is set to the low level, the output is stopped (fixed to the low level).

図7は実施の形態2の動作を示すタイミングチャートである。タイミングT35にて、カウンタ15のカウント値がCtに達するとstop信号がハイレベルからロウレベルに切り替わる。これによって第2の初期値が設定される。また、第1のクロック制御回路12'は、疑似乱数発生回路13_1〜13_nに対して第1のクロック信号CLK1_1〜CLK1_nを出力することを停止する。このとき、タイミングT35までは選択信号SELはロウレベルであって、セレクタ31_1〜31_nは、第1のクロック制御回路12'の出力である第1のクロック信号CLK1_1〜CLK1_nを疑似乱数発生回路13_1〜13_nに第1のクロック信号CLK1_1'〜CLK1_n'として出力する。続いて、タイミングT35以降の任意のタイミングで選択信号SELをハイレベルとする。これによって、セレクタ31_1〜31_nは、テストクロックを疑似乱数発生回路13_1〜13_nに第1のクロック信号CLK1_1'〜CLK1_n'として出力する(図中のタイミングT36)。   FIG. 7 is a timing chart showing the operation of the second embodiment. When the count value of the counter 15 reaches Ct at timing T35, the stop signal is switched from the high level to the low level. As a result, a second initial value is set. In addition, the first clock control circuit 12 ′ stops outputting the first clock signals CLK1_1 to CLK1_n to the pseudo random number generation circuits 13_1 to 13_n. At this time, the selection signal SEL is at the low level until the timing T35, and the selectors 31_1 to 31_n use the first clock signals CLK1_1 to CLK1_n, which are the outputs of the first clock control circuit 12 ′, as pseudo random number generation circuits 13_1 to 13_n. Are output as first clock signals CLK1_1 ′ to CLK1_n ′. Subsequently, the selection signal SEL is set to the high level at an arbitrary timing after the timing T35. Accordingly, the selectors 31_1 to 31_n output the test clocks to the pseudo random number generation circuits 13_1 to 13_n as the first clock signals CLK1_1 ′ to CLK1_n ′ (timing T36 in the drawing).

ここでカウンタ15の最大カウント値であるCtがタイミングT35を規定することになる。つまり、タイミングT35において本発明にかかるテストパターン発生回路の第2の初期値が設定されることになる。   Here, Ct which is the maximum count value of the counter 15 defines the timing T35. That is, the second initial value of the test pattern generation circuit according to the present invention is set at the timing T35.

なお、基準クロックとテストクロックとが同時に入力される場合、基準クロックとテストクロックとを切り替えるタイミングでノイズが発生する問題や切り替え後不要となるクロック(ここでは基準クロック)がノイズ源となるなどの問題がある。このような問題を回避するために、上記実施の形態では、図2に示した第1のクロック制御回路12に代えて図6に示した第1のクロック制御回路12'を使用した。しかしながら、クロックの切替タイミングや互いのクロックの間で発生するノイズが問題にならない場合には、実施の形態2においても第1のクロック制御回路12をそのまま利用してもよい。   When the reference clock and the test clock are input simultaneously, there is a problem that noise is generated at the timing of switching between the reference clock and the test clock, and a clock that becomes unnecessary after switching (here, the reference clock) becomes a noise source. There's a problem. In order to avoid such a problem, in the above embodiment, the first clock control circuit 12 ′ shown in FIG. 6 is used in place of the first clock control circuit 12 shown in FIG. However, if the clock switching timing or noise generated between the clocks does not matter, the first clock control circuit 12 may be used as it is in the second embodiment.

また、実施の形態2においては、テストクロックとして高速クロックを利用するようにできる。本発明にかかるテストパターン生成回路が搭載されるLSIの内部クロックをそのままテストクロックとして利用することも可能となる。   In the second embodiment, a high-speed clock can be used as a test clock. It is also possible to use the internal clock of the LSI on which the test pattern generation circuit according to the present invention is mounted as it is as a test clock.

実施の形態3
実施の形態3にかかるテストパターン生成回路2のブロック図を図8に示す。図8に示すようにテストパターン生成回路2のクロック制御回路21は、第1のクロック制御回路12(図2)に加えて第2のクロック制御回路22を有している。また、テストパターン生成回路2は、第2のクロック制御回路22に対応して疑似乱数発生回路23_1〜23_nを有している。この疑似乱数発生回路23_1〜23_nは、実施の形態1にかかる疑似乱数発生回路13_1〜13_nと実質的に同じものである。また、インタフェース回路14、24はそれぞれ被テスト回路であって、バス配線(不図示)に接続される。
Embodiment 3
FIG. 8 is a block diagram of the test pattern generation circuit 2 according to the third embodiment. As shown in FIG. 8, the clock control circuit 21 of the test pattern generation circuit 2 has a second clock control circuit 22 in addition to the first clock control circuit 12 (FIG. 2). The test pattern generation circuit 2 includes pseudo random number generation circuits 23_1 to 23_n corresponding to the second clock control circuit 22. The pseudo random number generation circuits 23_1 to 23_n are substantially the same as the pseudo random number generation circuits 13_1 to 13_n according to the first embodiment. Each of the interface circuits 14 and 24 is a circuit under test and is connected to a bus wiring (not shown).

ここで、第2のクロック制御回路22について詳細に説明する。第2のクロック制御回路22は、第1のクロック制御回路12が出力する第1のクロック信号CLK1_1〜CLK1_nが入力される。そして、第2のクロック制御回路22は、入力された第1のクロック信号CLK1_1〜CLK1_nに基づいて、第1のクロック信号CLK2_1〜CLK2_nを出力する。このとき第2のクロック制御回路22は、第2の制御信号に基づいて、第1のクロック信号CLK1_1〜CLK1_nの出力開始タイミングと第2のクロック信号CLK2_1〜CLK2_nの出力開始タイミングをずらすかどうかを決定する。なお、第2の制御信号は1ビットの信号であって、"0"(ロウレベル)と"1"(ハイレベル)の2つの状態を有する。   Here, the second clock control circuit 22 will be described in detail. The second clock control circuit 22 receives the first clock signals CLK1_1 to CLK1_n output from the first clock control circuit 12. Then, the second clock control circuit 22 outputs the first clock signals CLK2_1 to CLK2_n based on the input first clock signals CLK1_1 to CLK1_n. At this time, the second clock control circuit 22 determines whether to shift the output start timing of the first clock signals CLK1_1 to CLK1_n and the output start timing of the second clock signals CLK2_1 to CLK2_n based on the second control signal. decide. The second control signal is a 1-bit signal and has two states of “0” (low level) and “1” (high level).

この第2のクロック制御回路22のブロック図を図9に示す。図9に示すように、第2のクロック制御回路22は、カウンタ25_1〜25_n、比較器26_1〜26_n、クロックゲーティング回路27_1〜27_nを有している。カウンタ25_1〜25_nは、第1のクロック信号CLK1_1〜CLK1_nのそれぞれに対応して設けられており、第1のクロック信号CLK1_1〜CLK1_nのクロック数をカウントする。比較器26_1〜26_nは、第2の制御信号の値が"0"である場合、カウント値に依存せずにリセット解除とともにハイレベルを出力する。比較器26_1〜26_nは、第2の制御信号の値が"1"である場合、対応して設けられるカウンタ25_1〜25_nが出力するカウント値と予め設定されたマスク値とを比較して、カウント値がマスク値と一致した時点で、それぞれに対応するイネーブル信号EN2_1〜EN2_nをハイレベルとする。一方、比較器26_1〜26_nは、カウント値がマスク値よりも小さい場合、それぞれに対応するイネーブル信号EN2_1〜EN2_nをロウレベルとする。クロックゲーティング回路27_1〜27_nは、イネーブル信号EN2_1〜EN2_nがハイレベルである場合に第1のクロック信号CLK1_1〜CLK1_nを第1のクロック信号CLK2_1〜CLK2_nとして出力する。一方、クロックゲーティング回路27_1〜27_nは、イネーブル信号EN2_1〜EN2_nがロウレベルである場合に第1のクロック信号CLK1_1〜CLK1_nを遮断して、ロウレベルを出力する。なお、本実施の形態におけるカウンタ25_2〜25_nは、カウント値がマスク値と一致した以降はその値を保持するものとする。   A block diagram of the second clock control circuit 22 is shown in FIG. As shown in FIG. 9, the second clock control circuit 22 includes counters 25_1 to 25_n, comparators 26_1 to 26_n, and clock gating circuits 27_1 to 27_n. The counters 25_1 to 25_n are provided corresponding to the first clock signals CLK1_1 to CLK1_n, respectively, and count the number of clocks of the first clock signals CLK1_1 to CLK1_n. When the value of the second control signal is “0”, the comparators 26 </ b> _ <b> 1 to 26 </ b> _n output a high level upon reset release without depending on the count value. When the value of the second control signal is “1”, the comparators 26 </ b> _ <b> 1 to 26 </ b> _n compare the count values output from the corresponding counters 25 </ b> _ <b> 1 to 25 </ b> _n with the preset mask values, When the values coincide with the mask values, the corresponding enable signals EN2_1 to EN2_n are set to the high level. On the other hand, when the count value is smaller than the mask value, the comparators 26_1 to 26_n set the corresponding enable signals EN2_1 to EN2_n to the low level. The clock gating circuits 27_1 to 27_n output the first clock signals CLK1_1 to CLK1_n as the first clock signals CLK2_1 to CLK2_n when the enable signals EN2_1 to EN2_n are at a high level. On the other hand, when the enable signals EN2_1 to EN2_n are at the low level, the clock gating circuits 27_1 to 27_n block the first clock signals CLK1_1 to CLK1_n and output the low level. Note that the counters 25_2 to 25_n in the present embodiment hold the values after the count value matches the mask value.

第2のクロック制御回路22の動作について説明する。図10に第2の制御信号が"1"であった場合における第2のクロック制御回路22の動作のタイミングチャートを示し、図11に、第2の制御信号が"0"であった場合における第2のクロック制御回路22の動作のタイミングチャートを示す。なお、図10、11では、被テスト回路14、24がそれぞれ4チャネル構成である場合に対応した例を示している。また、図10、11における第1のクロック信号CLK1_1〜CLK1_4は、第1の制御信号の値が"1"であった場合に第1のクロック制御回路12が出力するものである。図10、11に示す例では比較器26_1〜26_4に設定されるマスク値を"4"とし、第2のクロック制御回路22は第1のクロック信号CLK2_1〜CLK2_4を出力するものとする。   The operation of the second clock control circuit 22 will be described. FIG. 10 shows a timing chart of the operation of the second clock control circuit 22 when the second control signal is “1”, and FIG. 11 shows the case where the second control signal is “0”. 6 shows a timing chart of the operation of the second clock control circuit 22. 10 and 11 show examples corresponding to the case where the circuits under test 14 and 24 each have a 4-channel configuration. Further, the first clock signals CLK1_1 to CLK1_4 in FIGS. 10 and 11 are output by the first clock control circuit 12 when the value of the first control signal is “1”. 10 and 11, the mask value set in the comparators 26_1 to 26_4 is “4”, and the second clock control circuit 22 outputs the first clock signals CLK2_1 to CLK2_4.

図10に示す例では、第1のクロック信号CLK1_1〜CLK1_4は、それぞれタイミングT41〜T44で出力される。このとき、カウンタ25_1は、第1のクロック信号CLK1_1のクロック数をカウントし、このカウント値が"4"になると比較器26_1が出力するイネーブル信号EN2_1がハイレベルとなる。そして、タイミングT45で第1のクロック信号CLK2_1の出力が開始される。このタイミングT45とタイミングT41との差は、基準クロックの4クロック分に相当する時間である。第1のクロック信号CLK2_2〜CLK2_4についても、第1のクロック信号CLK2_1と同様に、対応する第1のクロック信号CLK1_2〜CLK2_4から基準クロックの4クロック分に相当する時間だけ遅れて出力が開始される(タイミングT46〜T48)。   In the example shown in FIG. 10, the first clock signals CLK1_1 to CLK1_4 are output at timings T41 to T44, respectively. At this time, the counter 25_1 counts the number of clocks of the first clock signal CLK1_1. When this count value becomes “4”, the enable signal EN2_1 output from the comparator 26_1 becomes high level. Then, output of the first clock signal CLK2_1 is started at timing T45. The difference between the timing T45 and the timing T41 is a time corresponding to four clocks of the reference clock. Similarly to the first clock signal CLK2_1, the output of the first clock signals CLK2_2 to CLK2_4 is delayed from the corresponding first clock signals CLK1_2 to CLK2_4 by a time corresponding to four clocks of the reference clock. (Timing T46-T48).

また、図11に示す例では、第1のクロック信号CLK1_1〜CLK1_4は、それぞれタイミングT51〜T54で出力される。このとき、カウンタ25_1は、第1のクロック信号CLK1_1のクロック数のカウントを行うが、このカウント値に依存せず比較器26_2が出力するイネーブル信号EN2_1がハイレベルとなる。そのため、第1のクロック信号CLK2_1は、第1のクロック信号CLK1_1と実質的に同じタイミングで出力が開始される(タイミングT51)。第1のクロック信号CLK2_2〜CLK2_4についても、第1のクロック信号CLK2_1と同様に、対応する第1のクロック信号CLK1_2〜CLK1_4と実質的に同じタイミングで出力が開始される(タイミングT52〜T54)。つまり、図11の場合(第2の制御信号が"0"(ロウレベル)の場合)は、マスク値が"0"と同義である。   In the example shown in FIG. 11, the first clock signals CLK1_1 to CLK1_4 are output at timings T51 to T54, respectively. At this time, the counter 25_1 counts the number of clocks of the first clock signal CLK1_1, but the enable signal EN2_1 output from the comparator 26_2 is at a high level regardless of the count value. Therefore, the output of the first clock signal CLK2_1 is started at substantially the same timing as the first clock signal CLK1_1 (timing T51). Similarly to the first clock signal CLK2_1, the output of the first clock signals CLK2_2 to CLK2_4 is started at substantially the same timing as the corresponding first clock signals CLK1_2 to CLK1_4 (timing T52 to T54). That is, in the case of FIG. 11 (when the second control signal is “0” (low level)), the mask value is synonymous with “0”.

上記説明より、第2のクロック制御回路22は、第1のクロック信号CLK1_1〜CLK1_nの出力開始タイミングと第1のクロック信号CLK2_1〜CLK2_nの出力開始タイミングとの間に第2の制御信号の値に基づいて所定のずれ量を持たせるか否かを決定する。つまり、第1のクロック制御回路12に加えて、第2のクロック制御回路22を加えることで、クロック制御回路21は、クロック制御回路11よりもバリエーションに富んだ第1のクロック信号の出力開始タイミングを設定することが可能である。これによって、実施の形態3にかかるテストパターン生成回路2は、実施の形態1にかかるテストパターン生成回路1よりもバリエーションに富んだバス幅方向のデータの組み合わせを実現することが可能である。   From the above description, the second clock control circuit 22 sets the value of the second control signal between the output start timing of the first clock signals CLK1_1 to CLK1_n and the output start timing of the first clock signals CLK2_1 to CLK2_n. Based on this, it is determined whether or not to have a predetermined deviation amount. That is, by adding the second clock control circuit 22 in addition to the first clock control circuit 12, the clock control circuit 21 can output the first clock signal with more variations than the clock control circuit 11. Can be set. As a result, the test pattern generation circuit 2 according to the third exemplary embodiment can realize a variety of combinations of data in the bus width direction that are more varied than the test pattern generation circuit 1 according to the first exemplary embodiment.

なお、第2の初期値の設定タイミングであるT49、T55は、実施の形態1と同じように、すべての疑似乱数発生回路に第1のクロック信号CLK1_1〜CLK1_4が1サイクル以上印加され、それぞれ擬似乱数を生成できるタイミングである。本実施の形態においては、インタフェース回路14、24がnチャネル、第1の制御信号がmビット、第2の制御回路のマスク値をLとすれば、少なくとも(2のm乗−1)×(n−1)+Lサイクル分の基準クロックが印加されたタイミング以降に設定すればよい。   Note that T49 and T55, which are the timings for setting the second initial value, are applied to all the pseudo random number generation circuits for at least one cycle, as in the first embodiment, and each of the pseudo initial values CLK1_1 to CLK1_4 is simulated. This is the timing at which a random number can be generated. In the present embodiment, if the interface circuits 14 and 24 are n channels, the first control signal is m bits, and the mask value of the second control circuit is L, at least (2 to the power of m−1) × ( It may be set after the timing at which the reference clock for n-1) + L cycles is applied.

また、第2のクロック制御回路に第1の制御信号を入力することも可能である。この場合におけるテストパターン生成回路2aのブロック図を図12に示す。図12に示すテストパターン生成回路2aは、第2のクロック制御回路22aを有している。この第2のクロック制御回路22aは、内蔵される比較器として、第1のクロック制御回路に内蔵される比較器が採用されている。   It is also possible to input the first control signal to the second clock control circuit. A block diagram of the test pattern generation circuit 2a in this case is shown in FIG. The test pattern generation circuit 2a shown in FIG. 12 has a second clock control circuit 22a. The second clock control circuit 22a employs a comparator built in the first clock control circuit as a built-in comparator.

この第2のクロック制御回路22aの動作のタイミングチャートを図13に示す。図13にしめすタイミングチャートは、第1の制御信号の値が"1"である場合を示している。図13に示すように、この場合、第1のクロック信号CLK2_1は、第1のクロック信号CLK1_1から基準クロックの1クロック分に相当する時間だけ遅れて出力が開始される(タイミングT62)。第1のクロック信号CLK2_2〜CLK2_4についても、対応する入力となる第1のクロック信号CLK1_1〜CLK1_4から基準クロックの1クロック分に相当する時間だけ遅れて出力が開始される(タイミングT63〜T65)。   A timing chart of the operation of the second clock control circuit 22a is shown in FIG. The timing chart shown in FIG. 13 shows a case where the value of the first control signal is “1”. As shown in FIG. 13, in this case, the output of the first clock signal CLK2_1 is delayed by a time corresponding to one clock of the reference clock from the first clock signal CLK1_1 (timing T62). The outputs of the first clock signals CLK2_2 to CLK2_4 are also delayed by a time corresponding to one clock of the reference clock from the first clock signals CLK1_1 to CLK1_4 that are the corresponding inputs (timing T63 to T65).

このように、第2のクロック制御回路に第1の制御信号を入力することでも、第1のクロック信号の出力開始タイミングに多くのバリエーションを持たせることが可能である。つまり、クロック制御回路を構成する、第1のクロック制御回路、第2のクロック制御回路は、多ビット構成の第1の制御信号による制御、1ビット構成の第2の制御信号による制御のいずれであっても構成することが可能であり、少なくともいずれか一方の制御信号によるクロック制御回路を有していれば良い。   As described above, even when the first control signal is input to the second clock control circuit, it is possible to have many variations in the output start timing of the first clock signal. In other words, the first clock control circuit and the second clock control circuit constituting the clock control circuit can be controlled by the first control signal having a multi-bit configuration or by the second control signal having a 1-bit configuration. However, it is only necessary to have a clock control circuit based on at least one of the control signals.

実施の形態4
実施の形態4にかかるテストパターン生成回路3は、実施の形態3にかかるテストパターン生成回路2にセレクタ31_1〜31_n、32_1〜32_nを加え、第1のクロック制御回路12を実施の形態2に示した第1のクロック制御回路12'に変えたものである。テストパターン生成回路3のブロック図を図14に示す。セレクタ31_1〜31_n、32_1〜32_nは、それぞれクロック制御回路21'の出力端子に対応して接続される。また、セレクタ31_1〜31_n、32_1〜32_nの出力端子は、それぞれ対応する疑似乱数発生回路13_1〜13_n、23_1〜23_nに接続される。セレクタ31_1〜31_n、32_1〜32_nは、選択信号SELの値に応じて2つの入力信号のいずれか一方を選択して出力する。
Embodiment 4
In the test pattern generation circuit 3 according to the fourth exemplary embodiment, selectors 31_1 to 31_n and 32_1 to 32_n are added to the test pattern generation circuit 2 according to the third exemplary embodiment, and the first clock control circuit 12 is illustrated in the second exemplary embodiment. The first clock control circuit 12 ′ is changed. A block diagram of the test pattern generation circuit 3 is shown in FIG. The selectors 31_1 to 31_n and 32_1 to 32_n are connected to the output terminals of the clock control circuit 21 ′, respectively. The output terminals of the selectors 31_1 to 31_n and 32_1 to 32_n are connected to the corresponding pseudorandom number generation circuits 13_1 to 13_n and 23_1 to 23_n, respectively. The selectors 31_1 to 31_n and 32_1 to 32_n select and output one of the two input signals according to the value of the selection signal SEL.

本実施の形態では、セレクタ31_1〜31_n、32_1〜32_nの一方の入力に第1のクロック信号CLK1_1〜CLK1_n、CLK2_1〜CLK2_nが入力され、他方の入力にテストクロックが入力される。テストクロックは実施の形態1のように、基準クロックと同じであってもよいし、高速なクロックであってもよい。ここで、本実施の形態では、テストクロックとして高速クロックが印加され、また高速クロックとしてテストパターン生成回路3が搭載される半導体装置の通常使用状態における動作クロック(例えば、外部メモリとの通信クロック速度=533MHz)を使用する。また、高速クロックは、各疑似乱数発生回路に到達するクロックのスキューが調節されたものである。   In this embodiment, the first clock signals CLK1_1 to CLK1_n and CLK2_1 to CLK2_n are input to one input of the selectors 31_1 to 31_n and 32_1 to 32_n, and the test clock is input to the other input. The test clock may be the same as the reference clock as in the first embodiment, or may be a high-speed clock. Here, in this embodiment, a high-speed clock is applied as a test clock, and an operation clock (for example, a communication clock speed with an external memory) in a normal use state of a semiconductor device on which the test pattern generation circuit 3 is mounted as a high-speed clock. = 533 MHz). The high-speed clock is one in which the skew of the clock that reaches each pseudo-random number generator is adjusted.

ここで、テストパターン生成回路3の動作を示すタイミングチャートを図15に示す。図15に示す例では、タイミングT49までは選択信号SELがロウレベルであるため、クロック制御回路21'は、図10に示すタイミングチャートと同じ動作となっている。そして、タイミングT49で、疑似乱数発生回路13_1〜13_n、23_1〜23_nの第2の初期値が設定されると、その後、タイミングT71でテストが開始される前までに選択信号SELをハイレベルとし、タイミングT71以降に入力される高速クロックが疑似乱数発生回路13_1〜13_n、23_1〜23_nに供給される。これによって、疑似乱数発生回路13_1〜13_n、23_1〜23_nは、高速クロックに同期して疑似乱数データ列を出力する。   Here, a timing chart showing the operation of the test pattern generation circuit 3 is shown in FIG. In the example shown in FIG. 15, since the selection signal SEL is at the low level until the timing T49, the clock control circuit 21 ′ operates in the same manner as the timing chart shown in FIG. Then, when the second initial values of the pseudo random number generation circuits 13_1 to 13_n and 23_1 to 23_n are set at the timing T49, the selection signal SEL is set to the high level before the test is started at the timing T71. A high-speed clock input after timing T71 is supplied to the pseudo-random number generation circuits 13_1 to 13_n and 23_1 to 23_n. As a result, the pseudo random number generation circuits 13_1 to 13_n and 23_1 to 23_n output pseudo random number data strings in synchronization with the high-speed clock.

なお、高速クロックに対する選択信号SELのタイミング設計がうまくできる場合は、高速クロックは当初からセレクタ31_1〜31_n、32_1〜32_nに印加し続け、タイミングT71で高速クロックと同期をとって切り替えるように構成してもよい。また、実施の形態3と同様に、内蔵される比較器として、第2のクロック制御回路22に内蔵される比較器を第1のクロック制御回路12'に内蔵される比較器に変えた第3のクロック制御回路を構成し、第1のクロック制御回路、第3のクロック制御回路がともに第1の制御信号で制御されるようにしてもよい。また、逆に内蔵される比較器として、第1のクロック制御回路12'に内蔵される比較器を第2のクロック制御回路22に内蔵される比較器に変えた第4のクロック制御回路を構成し、第2のクロック制御回路、第4のクロック制御回路がともに第2の制御信号で制御されるようにしてもよい。   When the timing design of the selection signal SEL with respect to the high-speed clock can be successfully performed, the high-speed clock is continuously applied to the selectors 31_1 to 31_n and 32_1 to 32_n from the beginning, and is switched in synchronization with the high-speed clock at timing T71. May be. Further, as in the third embodiment, as a built-in comparator, a comparator built in the second clock control circuit 22 is replaced with a comparator built in the first clock control circuit 12 ′. The first clock control circuit and the third clock control circuit may be controlled by the first control signal. On the other hand, as a built-in comparator, a fourth clock control circuit in which the comparator built in the first clock control circuit 12 ′ is replaced with a comparator built in the second clock control circuit 22 is configured. However, both the second clock control circuit and the fourth clock control circuit may be controlled by the second control signal.

上記説明より、テストパターン生成回路3では、半導体装置の動作速度に応じたクロック周波数でテストパターンを生成することが可能である。これによって、半導体装置の実際の動作を確認することが可能になるため、半導体装置の信頼性を向上させることが可能である。   From the above description, the test pattern generation circuit 3 can generate a test pattern at a clock frequency corresponding to the operating speed of the semiconductor device. As a result, the actual operation of the semiconductor device can be confirmed, and the reliability of the semiconductor device can be improved.

実施の形態5
実施の形態5では、実施の形態1にかかるテストパターン生成回路1を有するテスト回路4について説明する。図16にテスト回路4を示す。テスト回路4は、テストパターン生成回路1に加えて、インタフェース回路14、比較器43_1〜43_n、結果保持回路44、テスト端子45を有している。
Embodiment 5
In the fifth embodiment, a test circuit 4 having the test pattern generation circuit 1 according to the first embodiment will be described. FIG. 16 shows the test circuit 4. In addition to the test pattern generation circuit 1, the test circuit 4 includes an interface circuit 14, comparators 43_1 to 43_n, a result holding circuit 44, and a test terminal 45.

インタフェース回路14は、送信回路41、受信回路42を有している。送信回路41と受信回路42は、配線FLで接続されている。これによって、送信回路41から送信された信号は、受信回路42で受信される。   The interface circuit 14 includes a transmission circuit 41 and a reception circuit 42. The transmission circuit 41 and the reception circuit 42 are connected by a wiring FL. As a result, the signal transmitted from the transmission circuit 41 is received by the reception circuit 42.

比較器43_1〜43_nは、インタフェース回路14に接続されるバス配線の信号線のそれぞれに対応して設けられている。つまり、比較器43_1〜43_nの数と疑似乱数発生回路13_1〜13_nの数とは同じ数になる。比較器43_1〜43_nは、疑似乱数発生回路13_1〜13_nが出力するテストパターンとインタフェース回路14を経由して入力されるテストパターンとを比較する。結果保持回路44は、テストパターン毎のテスト結果を保持する。テスト端子45は、テスト結果を取り出すための端子である。   The comparators 43_1 to 43_n are provided corresponding to the signal lines of the bus wiring connected to the interface circuit 14. That is, the number of the comparators 43_1 to 43_n and the number of the pseudo random number generation circuits 13_1 to 13_n are the same. The comparators 43_1 to 43_n compare the test pattern output from the pseudo random number generation circuits 13_1 to 13_n with the test pattern input via the interface circuit 14. The result holding circuit 44 holds the test result for each test pattern. The test terminal 45 is a terminal for taking out a test result.

テスト回路4の動作について説明する。まず、テストパターン生成回路1において、第2の初期値の設定を完了させる。その後、テストが開始されると、比較器43_1〜43_nは、疑似乱数発生回路13_1〜13_nが出力するテストパターンとインタフェース回路14を経由して入力されるテストパターンとの比較結果に基づきスト結果を出力する。このテスト結果は、2つのパターンの値が一致していればOKとなり、不一致であればNGとなるものである。そして、このテスト結果が結果保持回路44で保持される。保持されたテスト結果は、テスト終了後にテスト端子45を介して出力される。   The operation of the test circuit 4 will be described. First, the test pattern generation circuit 1 completes the setting of the second initial value. Thereafter, when the test is started, the comparators 43_1 to 43_n output the test results based on the comparison result between the test pattern output from the pseudo random number generation circuits 13_1 to 13_n and the test pattern input via the interface circuit 14. Output. The test result is OK if the values of the two patterns match, and NG if the values do not match. The test result is held in the result holding circuit 44. The held test result is output via the test terminal 45 after the test is completed.

上記説明より、本実施の形態にかかるテスト回路によれば、テストパターン生成回路1において生成されるデータ列方向とバス幅方向とにおいて高いランダム性を有するテストパターンを用いることができる。これによって、回路不良のみならずクロストーク不良の検出を含めたテストカバレッジの高いテストを行うことが可能である。なお、テストパターン生成回路1'、テストパターン生成回路2あるいはテストパターン生成回路3をテスト回路4に採用しても良い。一例として、テストパターン生成回路2をテスト回路4に採用した場合のブロック図を図17に示す。実施の形態3、4、5では、被テスト回路(インタフェース回路14、24)を2つとしているが、第1、第2のクロック制御回路を被テスト回路の数にあわせて追加することによって、任意の数の被テスト回路に対し、テストパターンを生成、提供するように構成することも可能である。   From the above description, according to the test circuit according to the present embodiment, a test pattern having high randomness in the data string direction and the bus width direction generated in the test pattern generation circuit 1 can be used. As a result, it is possible to perform a test with high test coverage including detection of not only circuit failure but also crosstalk failure. Note that the test pattern generation circuit 1 ′, the test pattern generation circuit 2, or the test pattern generation circuit 3 may be adopted as the test circuit 4. As an example, FIG. 17 shows a block diagram when the test pattern generation circuit 2 is employed in the test circuit 4. In the third, fourth, and fifth embodiments, there are two circuits under test (interface circuits 14 and 24), but by adding first and second clock control circuits according to the number of circuits under test, It is possible to generate and provide test patterns for an arbitrary number of circuits under test.

なお、本発明は上記実施の形態に限られたものではなく、趣旨を逸脱しない範囲で適宜変更することが可能である。   Note that the present invention is not limited to the above-described embodiment, and can be changed as appropriate without departing from the spirit of the present invention.

実施の形態1にかかるテストパターン生成回路のブロック図である。1 is a block diagram of a test pattern generation circuit according to a first embodiment; 実施の形態1にかかる第1のクロック制御回路のブロック図である。FIG. 3 is a block diagram of a first clock control circuit according to the first exemplary embodiment; 実施の形態1にかかる第1のクロック制御回路において第1の制御信号の値が"1"である場合の動作を示すタイミングチャートを示す図である。FIG. 6 is a timing chart showing an operation when the value of the first control signal is “1” in the first clock control circuit according to the first exemplary embodiment; 実施の形態1にかかる第1のクロック制御回路において第1の制御信号の値が"4"である場合の動作を示すタイミングチャートを示す図である。FIG. 6 is a timing chart showing an operation when the value of the first control signal is “4” in the first clock control circuit according to the first exemplary embodiment; 実施の形態2にかかるテストパターン生成回路のブロック図である。FIG. 3 is a block diagram of a test pattern generation circuit according to a second exemplary embodiment. 実施の形態2にかかる第1のクロック制御回路のブロック図である。FIG. 3 is a block diagram of a first clock control circuit according to a second exemplary embodiment; 実施の形態2にかかる第1のクロック制御回路において第1の制御信号の値が"1"である場合の動作を示すタイミングチャートを示す図である。FIG. 10 is a timing chart showing an operation when the value of the first control signal is “1” in the first clock control circuit according to the second exemplary embodiment; 実施の形態3にかかるテストパターン生成回路のブロック図である。FIG. 6 is a block diagram of a test pattern generation circuit according to a third exemplary embodiment. 実施の形態3にかかる第2のクロック制御回路のブロック図である。FIG. 10 is a block diagram of a second clock control circuit according to the third exemplary embodiment; 実施の形態3にかかる第2のクロック制御回路において第2の制御信号の値が"1"である場合の動作を示すタイミングチャートを示す図である。FIG. 10 is a timing chart illustrating an operation when the value of the second control signal is “1” in the second clock control circuit according to the third embodiment; 実施の形態3にかかる第2のクロック制御回路において第2の制御信号の値が"0"である場合の動作を示すタイミングチャートを示す図である。FIG. 10 is a timing chart illustrating an operation when the value of the second control signal is “0” in the second clock control circuit according to the third embodiment; 実施の形態3にかかるテストパターン生成回路の他の例を示すブロック図である。FIG. 10 is a block diagram showing another example of the test pattern generation circuit according to the third exemplary embodiment. 実施の形態3にかかる第2のクロック制御回路の他の例において第1の制御信号の値が"1である場合の動作を示すタイミングチャートを示す図である。FIG. 14 is a timing chart showing an operation when the value of the first control signal is “1” in another example of the second clock control circuit according to the third exemplary embodiment; 実施の形態4にかかるテストパターン生成回路のブロック図である。FIG. 6 is a block diagram of a test pattern generation circuit according to a fourth exemplary embodiment. 実施の形態4にかかるテストパターン生成回路の動作を示すタイミングチャートである。6 is a timing chart illustrating an operation of a test pattern generation circuit according to a fourth embodiment; 実施の形態5にかかるテスト回路のブロック図である。FIG. 10 is a block diagram of a test circuit according to a fifth embodiment; 実施の形態5にかかるテスト回路においてテストパターン生成回路2を採用した場合のブロック図である。FIG. 10 is a block diagram when a test pattern generation circuit 2 is employed in a test circuit according to a fifth embodiment; 従来例1にかかるテスト回路のブロック図である。It is a block diagram of a test circuit according to Conventional Example 1.

符号の説明Explanation of symbols

1、1'、2、2a、3 テストパターン生成回路
4、4a テスト回路
10 クロック生成回路
11、11'、21、21' クロック制御回路
12、12' 第1のクロック制御回路
13_1〜13_n、23_1〜23_n 疑似乱数発生回路
14、24 インタフェース回路
15、17_2〜17_n、25_1〜25_n カウンタ
16_1〜16_n、27_1〜27_n クロックゲーティング回路
18_2〜18_n、26_1〜26_n、43_1〜43_n 比較器
22、22a 第2のクロック制御回路
31_1〜31_n、32_1〜32_n セレクタ
41、51 送信回路
42、52 受信回路
44、54 結果保持回路
45、55 テスト端子
1, 1 ′, 2, 2a, 3 Test pattern generation circuit 4, 4a Test circuit 10 Clock generation circuit 11, 11 ′, 21, 21 ′ Clock control circuit 12, 12 ′ First clock control circuit 13_1 to 13_n, 23_1 ˜23_n Pseudorandom number generation circuit 14, 24 Interface circuit 15, 17_2˜17_n, 25_1˜25_n Counter 16_1˜16_n, 27_1˜27_n Clock gating circuit 18_2˜18_n, 26_1˜26_n, 43_1˜43_n Comparators 22, 22a Second Clock control circuit 31_1 to 31_n, 32_1 to 32_n selector 41, 51 transmission circuit 42, 52 reception circuit 44, 54 result holding circuit 45, 55 test terminal

Claims (11)

バス配線に接続され、並列に多ビットのデータの入出力を行うインタフェース回路に対してテストパターンを出力するテストパターン生成回路であって、
前記バス配線内の信号線のそれぞれに対応して設けられ、それぞれ同一の値となる第1の初期値が予め設定され、入力される第1のクロック信号に応じて前記第1の初期値を開始値とした疑似乱数を発生する複数の疑似乱数発生回路と、
制御信号の値に応じて前記複数の疑似乱数発生回路のそれぞれに与える前記第1のクロック信号の出力開始タイミングをそれぞれ任意に決定するクロック制御回路とを有するテストパターン生成回路。
A test pattern generation circuit that outputs a test pattern to an interface circuit that is connected to a bus wiring and inputs / outputs multi-bit data in parallel,
A first initial value provided corresponding to each of the signal lines in the bus wiring and having the same value is set in advance, and the first initial value is set according to the input first clock signal. A plurality of pseudo-random number generators for generating a pseudo-random number as a start value;
A test pattern generation circuit comprising: a clock control circuit that arbitrarily determines an output start timing of the first clock signal given to each of the plurality of pseudo-random number generation circuits according to a value of the control signal.
前記疑似乱数発生回路は、排他的論理和回路を介して帰還をかけたシフトレジスタによって構成される請求項1に記載のテストパターン生成回路。   The test pattern generation circuit according to claim 1, wherein the pseudo-random number generation circuit is configured by a shift register that is fed back through an exclusive OR circuit. 前記クロック制御回路は、基準クロックを入力信号とし、前記制御信号の値に基づき前記複数の疑似乱数発生回路への前記第1のクロック信号の供給開始タイミングずれ量を設定する、あるいは、基準クロックを入力信号とし、前記制御信号に基づき予め設定された供給開始タイミングずれ量で前記基準クロック信号を出力するか否かを決定し、前記決定に基づき前記複数の疑似乱数発生回路への前記第1のクロック信号の供給開始タイミングずれ量を設定する第1のクロック制御回路を有する請求項2に記載のテストパターン生成回路。   The clock control circuit uses a reference clock as an input signal, and sets a supply start timing deviation amount of the first clock signal to the plurality of pseudo-random number generation circuits based on a value of the control signal, or a reference clock It is determined whether to output the reference clock signal with a preset supply start timing deviation amount based on the control signal as an input signal, and based on the determination, the first pseudo-random number generation circuit to the first pseudo random number generation circuit The test pattern generation circuit according to claim 2, further comprising a first clock control circuit that sets a supply start timing deviation amount of the clock signal. 前記クロック制御回路は、前記第1のクロック信号を入力信号とし、前記制御信号の値に基づき前記複数の疑似乱数発生回路への前記第1のクロック信号の供給開始タイミングずれ量を設定する、あるいは、前記第1のクロック信号を入力信号とし、前記制御信号に基づき予め設定された供給開始タイミングずれ量で前記基準クロック信号を出力するか否かを決定し、前記決定に基づき前記複数の疑似乱数発生回路への前記第1のクロック信号の供給開始タイミングずれ量を設定する第2のクロック制御回路を備える請求項3に記載のテストパターン生成回路。   The clock control circuit uses the first clock signal as an input signal and sets a supply start timing deviation amount of the first clock signal to the plurality of pseudo-random number generation circuits based on a value of the control signal, or , Using the first clock signal as an input signal, determining whether to output the reference clock signal with a preset supply start timing deviation based on the control signal, and determining the plurality of pseudo-random numbers based on the determination The test pattern generation circuit according to claim 3, further comprising a second clock control circuit that sets a supply start timing deviation amount of the first clock signal to the generation circuit. 前記クロック制御回路は、前記第1のクロック制御回路および前記第2のクロック制御回路のそれぞれに対応する被テスト回路に接続される請求項3又は4に記載のテストパターン生成回路。   5. The test pattern generation circuit according to claim 3, wherein the clock control circuit is connected to a circuit under test corresponding to each of the first clock control circuit and the second clock control circuit. 前記第1のクロック制御回路は、第1のカウンタとクロックゲーティング回路とを備え、
前記第1のカウンタは入力された前記基準クロックのクロック数をカウントし、前記カウントした値が所定値に達した場合に停止信号を出力し、
前記クロックゲーティング回路は、前記停止信号を受けるまで、入力された前記基準クロックを入力し、前記第1のクロック信号として出力する請求項3乃至5のいずれか1項に記載のテストパターン生成回路。
The first clock control circuit includes a first counter and a clock gating circuit,
The first counter counts the number of clocks of the input reference clock, and outputs a stop signal when the counted value reaches a predetermined value,
6. The test pattern generation circuit according to claim 3, wherein the clock gating circuit receives the input reference clock and outputs the reference clock signal as the first clock signal until the stop signal is received. .
前記第2のクロック制御回路は、前記第1のクロック制御回路が出力する前記第1のクロック信号が入力される請求項4に記載のテストパターン生成回路。   5. The test pattern generation circuit according to claim 4, wherein the second clock control circuit receives the first clock signal output from the first clock control circuit. 6. 前記制御信号は、第1の制御信号と第2の制御信号とのうち少なくとも1つを含み、
前記クロック制御回路は、前記第1の制御信号に基づき制御される場合、前記複数の疑似乱数発生回路への前記第1のクロック信号の供給開始タイミングずれ量を前記第1の制御信号の値に基づき設定し、前記第2の制御信号に基づき制御される場合、予め設定された供給開始タイミングずれ量で前記基準クロック信号を出力するか否かを決定する請求項2に記載のテストパターン生成回路。
The control signal includes at least one of a first control signal and a second control signal;
When the clock control circuit is controlled based on the first control signal, the supply start timing deviation amount of the first clock signal to the plurality of pseudo-random number generation circuits is set to the value of the first control signal. 3. The test pattern generation circuit according to claim 2, wherein the test pattern generation circuit determines whether to output the reference clock signal with a preset supply start timing deviation when the control is performed based on the second control signal. .
前記第1のクロック信号と第2のクロック信号とのうちいずれか一方を選択し、選択したクロック信号を前記複数の疑似乱数発生回路に与えるセレクタを更に有する請求項1乃至8のいずれか1項に記載のテストパターン生成回路。   9. The device according to claim 1, further comprising: a selector that selects one of the first clock signal and the second clock signal and supplies the selected clock signal to the plurality of pseudo-random number generation circuits. Test pattern generation circuit described in 1. 前記複数の疑似乱数発生回路は、それぞれ前記第1の初期値と前記第1のクロック信号とに基づき任意の値となる第2の初期値が設定され、前記第2の初期値を開始値とした疑似乱数を前記テストパターンとして出力する請求項1乃至9のいずれか1項に記載のテストパターン生成回路。   Each of the plurality of pseudo-random number generation circuits is set with a second initial value that is an arbitrary value based on the first initial value and the first clock signal, and the second initial value is used as a start value. The test pattern generation circuit according to claim 1, wherein the pseudo random number is output as the test pattern. 請求項1乃至10に記載のテストパターン生成回路と、
前記インタフェース回路を経由して入力される疑似乱数と前記複数の疑似乱数発生回路が出力する疑似乱数とを比較する比較器と、
前記比較器が出力するテスト結果を保持し、前記テスト結果を出力する結果保持回路とを有するテスト回路。
A test pattern generation circuit according to claim 1;
A comparator that compares a pseudo-random number input via the interface circuit and a pseudo-random number output by the plurality of pseudo-random number generation circuits;
A test circuit having a result holding circuit for holding the test result output from the comparator and outputting the test result;
JP2007014025A 2007-01-24 2007-01-24 Test pattern generating circuit and test circuit Pending JP2008180592A (en)

Priority Applications (4)

Application Number Priority Date Filing Date Title
JP2007014025A JP2008180592A (en) 2007-01-24 2007-01-24 Test pattern generating circuit and test circuit
TW097100171A TW200844463A (en) 2007-01-24 2008-01-03 Test pattern generation circuit having plural pseudo random number generation circuits supplied with clock signals at different timing respectively
US12/010,264 US20080178055A1 (en) 2007-01-24 2008-01-23 Test pattern generation circuit having plural pseudo random number generation circuits supplied with clock signals at different timing respectively
KR1020080007703A KR100934598B1 (en) 2007-01-24 2008-01-24 Test pattern generation circuit having a plurality of pseudo-random number generation circuits to which clock signals are each supplied at different timings

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007014025A JP2008180592A (en) 2007-01-24 2007-01-24 Test pattern generating circuit and test circuit

Publications (1)

Publication Number Publication Date
JP2008180592A true JP2008180592A (en) 2008-08-07

Family

ID=39642434

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007014025A Pending JP2008180592A (en) 2007-01-24 2007-01-24 Test pattern generating circuit and test circuit

Country Status (4)

Country Link
US (1) US20080178055A1 (en)
JP (1) JP2008180592A (en)
KR (1) KR100934598B1 (en)
TW (1) TW200844463A (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5123150B2 (en) * 2008-12-10 2013-01-16 株式会社東芝 Trigger signal detection device
US8013654B1 (en) * 2008-12-17 2011-09-06 Mediatek Inc. Clock generator, pulse generator utilizing the clock generator, and methods thereof
FR2960978B1 (en) * 2010-06-07 2013-06-21 St Microelectronics Grenoble 2 ASYNCHRONOUS SEQUENCE COMPARATOR FOR INTEGRATED SELF-TEST CIRCUIT
FR2960977B1 (en) * 2010-06-07 2012-07-13 St Microelectronics Grenoble 2 VARIABLE SOLICITATION SEQUENCE GENERATOR FOR INTEGRATED SELF-TEST CIRCUIT
JP2012198065A (en) * 2011-03-18 2012-10-18 Fujitsu Ltd Semiconductor integrated circuit, test method, information processor, and program
US9722663B2 (en) 2014-03-28 2017-08-01 Intel Corporation Interference testing
US9794055B2 (en) * 2016-03-17 2017-10-17 Intel Corporation Distribution of forwarded clock
KR101872329B1 (en) * 2016-07-07 2018-06-28 국민대학교산학협력단 Random number generator for supporting multi entropy pool
CN109670343B (en) * 2017-10-17 2023-01-03 华邦电子股份有限公司 Random number generating system and random number generating method thereof
TWI634480B (en) * 2017-10-17 2018-09-01 華邦電子股份有限公司 Random number generation system and random number generating method thereof
TWI793429B (en) * 2019-07-25 2023-02-21 熵碼科技股份有限公司 Encryption key generating engine and transmission system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH097392A (en) * 1995-06-19 1997-01-10 Advantest Corp Semiconductor-testing apparatus
JP2000002749A (en) * 1998-06-16 2000-01-07 Hitachi Electron Eng Co Ltd Data transmitting equipment for ic testing device

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4801870A (en) * 1985-06-24 1989-01-31 International Business Machines Corporation Weighted random pattern testing apparatus and method
US4905176A (en) * 1988-10-28 1990-02-27 International Business Machines Corporation Random number generator circuit
WO1996026451A1 (en) * 1995-02-24 1996-08-29 Advantest Corporation Bit error measuring instrument
US5844925A (en) * 1996-07-17 1998-12-01 Ericsson Inc. Spiral scrambling
EP1120662B1 (en) * 2000-01-26 2006-03-01 EM Microelectronic-Marin SA Method for testing an integrated circuit having confidential software or hardware elements
US7139397B2 (en) * 2001-07-20 2006-11-21 Stmicroelectronics S.R.L. Hybrid architecture for realizing a random numbers generator
KR100434111B1 (en) * 2001-12-26 2004-06-04 한국전자통신연구원 Apparatus and method for generating pseudo random numbers

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH097392A (en) * 1995-06-19 1997-01-10 Advantest Corp Semiconductor-testing apparatus
JP2000002749A (en) * 1998-06-16 2000-01-07 Hitachi Electron Eng Co Ltd Data transmitting equipment for ic testing device

Also Published As

Publication number Publication date
US20080178055A1 (en) 2008-07-24
KR20080069932A (en) 2008-07-29
KR100934598B1 (en) 2009-12-31
TW200844463A (en) 2008-11-16

Similar Documents

Publication Publication Date Title
JP2008180592A (en) Test pattern generating circuit and test circuit
US6816991B2 (en) Built-in self-testing for double data rate input/output
US7512645B2 (en) System and method for generating pseudorandom numbers
JP4870840B2 (en) Test apparatus, conversion circuit, and test method
US7941720B2 (en) Scan test circuit and scan test control method
JP5165755B2 (en) Cryptographic random number generator using finite field operations
JP2010158004A (en) Delay circuit, and variable delay circuit
US20160349318A1 (en) Dynamic Clock Chain Bypass
WO2021098077A1 (en) True random number generator and true random number generation method
US9858042B1 (en) Configurable ring oscillator
JP2010531018A5 (en)
US20090240996A1 (en) Semiconductor integrated circuit device
JP6697776B2 (en) Unique information generator
KR101912905B1 (en) Cas latency setting circuit and semiconductor memory apparatus including the same
US20100201409A1 (en) Frequency Divider Circuit
US10389341B1 (en) Synchronize-able modular physical layer architecture for scalable interface
Lin et al. Parallel scrambler for high-speed applications
US20080082880A1 (en) Method of testing high-speed ic with low-speed ic tester
US10048317B2 (en) Method and device for testing a chain of flip-flops
JP4869911B2 (en) Logic BIST circuit and modulo circuit
JP2013072797A (en) Semiconductor test circuit
JP2011089914A (en) Testing device of semiconductor integrated circuit and testing method of the same
CN110928524B (en) pseudorandom signal generator
KR100656444B1 (en) Data output circuit of semiconductor memory device
US20190080039A1 (en) Integrated circuit, scan shift control method, and circuit design method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20091214

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110913

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20120124