CN111044887A - Method for generating test vectors of DDR2/3PHY BIST command channel - Google Patents

Method for generating test vectors of DDR2/3PHY BIST command channel Download PDF

Info

Publication number
CN111044887A
CN111044887A CN201911252694.7A CN201911252694A CN111044887A CN 111044887 A CN111044887 A CN 111044887A CN 201911252694 A CN201911252694 A CN 201911252694A CN 111044887 A CN111044887 A CN 111044887A
Authority
CN
China
Prior art keywords
command channel
3phy
ddr2
test vector
test
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201911252694.7A
Other languages
Chinese (zh)
Other versions
CN111044887B (en
Inventor
马杰
乐立鹏
张建军
马城城
闫昕
刘亚鹏
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.)
Beijing Microelectronic Technology Institute
Mxtronics Corp
Original Assignee
Beijing Microelectronic Technology Institute
Mxtronics 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 Beijing Microelectronic Technology Institute, Mxtronics Corp filed Critical Beijing Microelectronic Technology Institute
Priority to CN201911252694.7A priority Critical patent/CN111044887B/en
Publication of CN111044887A publication Critical patent/CN111044887A/en
Application granted granted Critical
Publication of CN111044887B publication Critical patent/CN111044887B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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/3183Generation of test inputs, e.g. test vectors, patterns or sequences
    • 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/3187Built-in tests

Abstract

The invention discloses a method for generating a DDR2/3PHY BIST command channel test vector, which comprises the following steps: (1) selecting an LFSR structure, and driving the LFSR structure to generate a pseudo-random number by using a low-frequency clock; (2) selecting a shift register value in an LFSR structure as test data; (3) and coding the test data to construct a final test vector. The invention has simple structure and easy realization, the generated test vector can fully test the anti-crosstalk and driving capability of the channel, and the BIST operation frequency and the power consumption are reduced under the condition of meeting the test requirement.

Description

Method for generating test vectors of DDR2/3PHY BIST command channel
Technical Field
The invention relates to the technical field of integrated circuit testability design, in particular to a method for generating a DDR2/3PHY BIST command channel test vector.
Background
The purpose of integrated circuit testing is to detect defects generated during manufacturing, and built-in self test (BIST) is an important method for design for testability. The BIST test principle is that test vectors are generated inside a circuit, and test results are analyzed and judged. Pseudo-random test generation is a popular test generation method in BIST technology.
And the DDR2/3PHY command channel test vector is transmitted to IO through a command transmitting channel and returns to the BIST through a special command receiving channel, and the returned result is compared with the initial test vector to complete the BIST function. The whole process only sends and receives the test vector, and the reliability and the stability of channel transmission are detected. The Linear Feedback Shift Register (LFSR) structure is a popular generation method for pseudo-random test data due to low hardware overhead and compact structure. In the prior art, a Linear Feedback Shift Register (LFSR) is generally used to generate a test vector, but the IO driving capability cannot be checked for crosstalk between signals and signal inversion.
Disclosure of Invention
The technical problem to be solved by the invention is as follows: the method can simulate the conditions of signal inversion, signal crosstalk and the like, and can specifically test the stability of the PHY command channel, reduce the LFSR clock frequency and reduce the BIST operation power consumption.
The technical solution of the invention is as follows:
a DDR2/3PHY BIST command channel test vector generation method comprises the following steps:
(1) selecting an LFSR structure, and driving the LFSR structure to generate a pseudo-random number by using a low-frequency clock;
(2) selecting a shift register value in an LFSR structure as test data;
(3) and coding the test data to construct a final test vector.
In the step (1), the number of shift registers in the LFSR structure is n +1, where n is determined by the command channel bit width.
n is determined as follows:
the command channel signals are divided into two groups according to functions: one group is address signals with a bit width of M; the other group is signals except addresses, and the signals are N bits in total;
n is related to whether the register is multiplexed in the design, and if the register is selected, N is max (M, N); if not multiplexed, N is M + N.
In the step (2), the values of n shift registers are selected from n +1 shift registers of the LFSR structure and are allocated to the command channel signal as the test data.
The specific way to select the values of the n shift registers to assign to the command channel signals as test data is as follows:
if N is max (M, N), the values of N shift registers are randomly distributed to one group with the largest signal bit width in two groups of command channel signals, and then the values of min (M, N) shift registers are randomly selected from the selected N shift registers and distributed to the other group of command channel signals;
if N is M + N, the values of N shift registers are randomly assigned to all command channel signals.
In the step (3), the test data is encoded by using a 2B/4B encoding method to construct a final test vector.
The manner in which each bit of the command channel signal is 2B/4B encoded is as follows:
source code data 00 01 10 11
Encoding data 0110 1001 0101 1010
Compared with the prior art, the invention has the beneficial effects that:
(1) the invention codes the value of the LFSR structure shift register and generates a signal with all data in the channel turned over, thereby being capable of testing the anti-crosstalk and IO driving capability of the channel.
(2) The invention utilizes the low-frequency clock to drive the LFSR structure to generate the pseudo-random test data, realizes the high-frequency pseudo-random test vector through 2B/4B coding, and can reduce the LFSR clock frequency and the BIST operation power consumption.
(3) The test vector after the coding of the invention has a characteristic that: each vector has no continuous 3 same values (0 or 1), and the error detector can be constructed at the BIST receiving end according to the characteristic to judge whether the output result is correct or incorrect.
Drawings
FIG. 1 is a flow chart of test vector construction according to the present invention;
FIG. 2 is a diagram of a test vector hardware generation module;
FIG. 3 is a test vector simulation waveform diagram for a code implementation.
Detailed Description
The invention is described in further detail below with reference to the accompanying drawings and specific embodiments:
as shown in fig. 1, the method of the present invention comprises the steps of:
(1) and selecting an LFSR structure, and driving the LFSR structure to generate pseudo random numbers by using a low-frequency clock, wherein the number of shift registers in the LFSR structure is n +1, and n is determined by the bit width of a command channel.
A typical LFSR is feedback connected by n shift registers, several exclusive or gates. Shift registerThe number of registers n is related to the command channel bit width. The feedback coefficient of each register is determined by its primitive polynomial to generate a maximum length sequence. The operating state of an LFSR is close to an exhaustive test vector generator, since it can be any 2 except in the case of a register with all 0 statesn-cycling between 1 different states. In addition, the invention adds the n +1 th register, which can make the rest registers have all 0 states and complement 2 statesnSeed state, can be from 2 during testingnAnd selecting part of the middle state as a test vector. The LFSR has a simple structure and low hardware overhead.
n is determined as follows:
the command channel signals are divided into two groups according to functions: one group is address signals with a bit width of M; the other group is signals except addresses, such as a bank address signal, a chip select signal CS, a row select RAS, a column select CAS and a WE which share N bits.
The number N of shift registers is related to whether the registers are multiplexed in design, and if the multiplexing registers are selected, N is max (M, N); if not multiplexed, N is M + N.
(2) The shift register values in the LFSR structure are selected as test data.
Selecting values of n shift registers from n +1 shift registers of the LFSR structure to be distributed to command channel signals as test data, and the specific mode is as follows:
if N is max (M, N), the values of the N shift registers are randomly allocated to one of the two groups with the largest number of signals, and then the values of the min (M, N) shift registers are randomly selected from the N registers to be used as the test data of the other group. The multiplexing register reduces the scale of the LFSR register by sacrificing the randomness between signals; if N is M + N, the values of N shift registers are randomly assigned to all command channel signals.
(3) And coding the test data to construct a final test vector.
The invention designs a 2B/4B coding method, and for each bit of command channel signal, the coding method is shown as the following table:
source code data 00 01 10 11
Encoding data 0110 1001 0101 1010
As known from the encoding method, the 2 nd and 4 th bits in the encoded data can be regarded as the data jump of the 1 st and 3 rd bits respectively, so that the multi-bit command channel can be simultaneously turned over at a certain moment no matter how many source codes exist; moreover, the method can easily obtain that the new test vector formed by encoding does not have continuous 3 same data, and can construct an error detector at the BIST receiving end according to the characteristic to judge whether the result is correct.
Example (b):
in fig. 2, a 16-bit wide address signal is taken as an example, in order to cover all cases (including all 0) of 16-bit address signals as much as possible, a 17-bit linear feedback shift register is selected to generate a random number, an exclusive or gate connected in a feedback manner is an external connection type, in this example, 1 st, 10 th, 16 th, and 17 th bit register external exclusive or gates are used to feed back to a1 st bit register to form an LFSR, and a reset state is a 17 th position 1 and other 16 th positions 0. The output of 16 registers is selected as the input test data of the data encoding module, and the 16 registers can generate the length of 216Pseudo-random sequence, with partial sequence selectable according to test coverageThe columns are taken as test vectors. The clock module generates a clock signal clk connected to the shift register and the data encoding module. The test data is processed by the data encoding module to form a final test vector, and part of the output waveforms are shown in fig. 3. Where ck _ gen _ addr is the input clock and A0-A15 is the 16-bit address signal. As can be seen from the waveforms on the graph, the holding time of each address signal is ck _ gen _ addr clock half period; there are 2 consecutive identical values at most, can construct the simple error detector according to this characteristic; all addresses are periodically turned over at a certain moment, so that the channel anti-crosstalk performance and the IO driving capability can be tested. The 2B/4B encoding increases the test vector data frequency and may reduce the BIST clock frequency, thereby reducing power consumption.
Other commands than 16-bit address signals are not logically functionally related to the address signals, and the A [15:0] address signal portion of the test data may be multiplexed. In order to reduce the scale of the shift register and the power consumption and the area of the BIST in the example, other command channels select the test vectors of the multiplexed address signals, and the characteristics of the vectors are similar to those of the address signals.
The invention has simple structure and easy realization, the generated test vector can fully test the anti-crosstalk and driving capability of the channel, the stability of the PHY command channel is tested in a targeted way, the BIST operation frequency is reduced under the condition of meeting the test requirement, and the power consumption is reduced.
The above description is only an exemplary embodiment of the present invention, but the scope of the present invention is not limited thereto.

Claims (7)

1. A DDR2/3PHY BIST command channel test vector generation method is characterized by comprising the following steps:
(1) selecting an LFSR structure, and driving the LFSR structure to generate a pseudo-random number by using a low-frequency clock;
(2) selecting a shift register value in an LFSR structure as test data;
(3) and coding the test data to construct a final test vector.
2. The method of claim 1, wherein the DDR2/3PHY BIST command channel test vector generation method comprises: in the step (1), the number of shift registers in the LFSR structure is n +1, where n is determined by the command channel bit width.
3. The method of claim 2, wherein the DDR2/3PHY BIST command channel test vector generation method comprises: n is determined as follows:
the command channel signals are divided into two groups according to functions: one group is address signals with a bit width of M; the other group is signals except addresses, and the signals are N bits in total;
n is related to whether the register is multiplexed in the design, and if the register is selected, N is max (M, N); if not multiplexed, N is M + N.
4. The method of claim 3, wherein the DDR2/3PHY BIST command channel test vector generation method comprises: in the step (2), the values of n shift registers are selected from n +1 shift registers of the LFSR structure and are allocated to the command channel signal as the test data.
5. The method of claim 4, wherein the DDR2/3PHY BIST command channel test vector generation method comprises: the specific way to select the values of the n shift registers to assign to the command channel signals as test data is as follows:
if N is max (M, N), the values of N shift registers are randomly distributed to one group with the largest signal bit width in two groups of command channel signals, and then the values of min (M, N) shift registers are randomly selected from the selected N shift registers and distributed to the other group of command channel signals;
if N is M + N, the values of N shift registers are randomly assigned to all command channel signals.
6. The method of claim 1, wherein the DDR2/3PHY BIST command channel test vector generation method comprises: in the step (3), the test data is encoded by using a 2B/4B encoding method to construct a final test vector.
7. The method of claim 6, wherein the DDR2/3PHY BIST command channel test vector generation method comprises: the manner in which each bit of the command channel signal is 2B/4B encoded is as follows:
source code data 00 01 10 11 Encoding data 0110 1001 0101 1010
CN201911252694.7A 2019-12-09 2019-12-09 Method for generating test vectors of DDR2/3PHY BIST command channel Active CN111044887B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911252694.7A CN111044887B (en) 2019-12-09 2019-12-09 Method for generating test vectors of DDR2/3PHY BIST command channel

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911252694.7A CN111044887B (en) 2019-12-09 2019-12-09 Method for generating test vectors of DDR2/3PHY BIST command channel

Publications (2)

Publication Number Publication Date
CN111044887A true CN111044887A (en) 2020-04-21
CN111044887B CN111044887B (en) 2022-05-13

Family

ID=70235310

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911252694.7A Active CN111044887B (en) 2019-12-09 2019-12-09 Method for generating test vectors of DDR2/3PHY BIST command channel

Country Status (1)

Country Link
CN (1) CN111044887B (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020194557A1 (en) * 2001-06-19 2002-12-19 Samsung Electronics Co., Ltd. Built-in self test circuit using linear feedback shift register
CN1599869A (en) * 2001-12-04 2005-03-23 独立行政法人科学技术振兴机构 Testing method and tester for semiconducor integrated circuit device comprising high-speed input/output element
CN101089929A (en) * 2006-06-14 2007-12-19 日本电气株式会社 Inspection system and inspection circuit thereof, semiconductor device, display device, and method of inspecting semiconductor device
CN101692117A (en) * 2009-09-16 2010-04-07 上海电力学院 Low power consumption excitation generating system
CN101776730A (en) * 2010-01-29 2010-07-14 西安交通大学 Test graphic generator of integrated circuit and test method thereof
CN102226947A (en) * 2011-04-02 2011-10-26 电子科技大学 Controllable test vector generator based on linear feedback shift register
CN102543202A (en) * 2010-10-22 2012-07-04 Nxp股份有限公司 Shift register, electronic device, control method and software program product
US20120272110A1 (en) * 2011-04-19 2012-10-25 Janusz Rajski Test Generator For Low Power Built-In Self-Test
CN107526019A (en) * 2017-07-12 2017-12-29 清华大学 Low-power consumption Weighted pseudo-random test method, system, equipment and storage medium
CN107544017A (en) * 2017-07-12 2018-01-05 清华大学 Low-power consumption Weighted pseudo-random test method and relevant device based on vector compression
CN107991602A (en) * 2017-11-23 2018-05-04 西安交通大学 A kind of inexpensive BIST Structure with broadcasting architecture
CN108319526A (en) * 2017-12-18 2018-07-24 北京时代民芯科技有限公司 One kind is based on piece Embedded micro-system and its internal FPGA resource build-in self-test method

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020194557A1 (en) * 2001-06-19 2002-12-19 Samsung Electronics Co., Ltd. Built-in self test circuit using linear feedback shift register
CN1599869A (en) * 2001-12-04 2005-03-23 独立行政法人科学技术振兴机构 Testing method and tester for semiconducor integrated circuit device comprising high-speed input/output element
CN101089929A (en) * 2006-06-14 2007-12-19 日本电气株式会社 Inspection system and inspection circuit thereof, semiconductor device, display device, and method of inspecting semiconductor device
CN101692117A (en) * 2009-09-16 2010-04-07 上海电力学院 Low power consumption excitation generating system
CN101776730A (en) * 2010-01-29 2010-07-14 西安交通大学 Test graphic generator of integrated circuit and test method thereof
CN102543202A (en) * 2010-10-22 2012-07-04 Nxp股份有限公司 Shift register, electronic device, control method and software program product
CN102226947A (en) * 2011-04-02 2011-10-26 电子科技大学 Controllable test vector generator based on linear feedback shift register
US20120272110A1 (en) * 2011-04-19 2012-10-25 Janusz Rajski Test Generator For Low Power Built-In Self-Test
CN107526019A (en) * 2017-07-12 2017-12-29 清华大学 Low-power consumption Weighted pseudo-random test method, system, equipment and storage medium
CN107544017A (en) * 2017-07-12 2018-01-05 清华大学 Low-power consumption Weighted pseudo-random test method and relevant device based on vector compression
CN107991602A (en) * 2017-11-23 2018-05-04 西安交通大学 A kind of inexpensive BIST Structure with broadcasting architecture
CN108319526A (en) * 2017-12-18 2018-07-24 北京时代民芯科技有限公司 One kind is based on piece Embedded micro-system and its internal FPGA resource build-in self-test method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
S. HELLEBRAND 等: "Built-in test for circuits with scan based on reseeding of multiple-polynomial linear feedback shift registers", 《 IEEE TRANSACTIONS ON COMPUTERS 》 *
刘建军 等: "基于确定模式的伪单跳变测试矢量生成技术", 《电子技术应用》 *

Also Published As

Publication number Publication date
CN111044887B (en) 2022-05-13

Similar Documents

Publication Publication Date Title
US5258986A (en) Tightly coupled, low overhead RAM built-in self-test logic with particular applications for embedded memories
US7444559B2 (en) Generation of memory test patterns for DLL calibration
US6065029A (en) Method and system for providing a random number generator
US4782487A (en) Memory test method and apparatus
US5222066A (en) Modular self-test for embedded SRAMS
US6769084B2 (en) Built-in self test circuit employing a linear feedback shift register
EP1584937B1 (en) Systems and methods for processing automatically generated test patterns
KR20000033120A (en) Programmable self test system for semiconductor memory device
CN107680634B (en) Device under test, tester and method for testing device under test
CN111044886B (en) DDR2/3 PHY BIST data channel test vector generation method
US6789220B1 (en) Method and apparatus for vector processing
JPH0515092B2 (en)
KR100825783B1 (en) Test Pattern Generating Circuit and Semiconductor Memory Device having the same
KR20000023473A (en) Internal clock multiplication for test time reduction
EP0318140A2 (en) Pseudo-random generator and check sum circuitry for VLSI chip
Karpovsky et al. Transparent memory BIST
CN111044887B (en) Method for generating test vectors of DDR2/3PHY BIST command channel
US10922055B2 (en) Random number generator and method for generating random numbers
US11515860B2 (en) Deterministic jitter generator with controllable probability distribution
KR101198250B1 (en) Error code generating circuit and memory device including the same
US7426666B2 (en) Noisy channel emulator for high speed data
US6430586B1 (en) Controllable bit stream generator
Tenentes et al. Low power test-compression for high test-quality and low test-data volume
CN111627490A (en) Synchronous dynamic random access memory testing method and device
US20230402999A1 (en) Random pulse generator and memory

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant