CN1921358B - receiver and testing method thereof - Google Patents
receiver and testing method thereof Download PDFInfo
- Publication number
- CN1921358B CN1921358B CN200610127488A CN200610127488A CN1921358B CN 1921358 B CN1921358 B CN 1921358B CN 200610127488 A CN200610127488 A CN 200610127488A CN 200610127488 A CN200610127488 A CN 200610127488A CN 1921358 B CN1921358 B CN 1921358B
- Authority
- CN
- China
- Prior art keywords
- test
- test bit
- groups
- receiver
- data
- 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.)
- Active
Links
- 238000012360 testing method Methods 0.000 title claims abstract description 197
- 238000011084 recovery Methods 0.000 claims abstract description 13
- 230000005540 biological transmission Effects 0.000 claims abstract description 8
- 239000000872 buffer Substances 0.000 claims description 29
- 238000000034 method Methods 0.000 claims description 9
- 230000002159 abnormal effect Effects 0.000 claims description 5
- 238000010998 test method Methods 0.000 claims description 5
- 238000010586 diagram Methods 0.000 description 8
- 238000005516 engineering process Methods 0.000 description 3
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000035945 sensitivity Effects 0.000 description 1
Images
Landscapes
- Monitoring And Testing Of Transmission In General (AREA)
Abstract
一种接收器,包括时钟/数据恢复电路、串并行转换器与测试模块。时钟/数据恢复电路用以接收串行输入的多个测试信号组,并追随这些测试信号组的传送频率以得到时钟信号。串并行转换器用以接收自时钟/数据恢复电路所输出的这些测试信号组,并将这些测试信号组由串行输入转换为多个测试位组的并行输出。测试模块用以接收这些测试位组与时钟信号,并将二个相邻的测试位组进行比较,通过判断二个相邻的测试位组是否完全相同,以得知接收器的操作状态是否正常。
A receiver includes a clock/data recovery circuit, a serial-to-parallel converter and a test module. The clock/data recovery circuit is used to receive multiple test signal groups input in series, and follow the transmission frequency of these test signal groups to obtain a clock signal. The serial-to-parallel converter is used to receive these test signal groups output from the clock/data recovery circuit, and convert these test signal groups from serial input to parallel output of multiple test bit groups. The test module is used to receive these test bit groups and the clock signal, and compare two adjacent test bit groups. By judging whether the two adjacent test bit groups are exactly the same, it is known whether the operating state of the receiver is normal.
Description
技术领域technical field
本发明关于一种接收器与信号测试的方法,且特别是关于一种串行数据接收器与信号测试的方法。The present invention relates to a method for testing a receiver and a signal, and in particular to a method for testing a serial data receiver and a signal.
背景技术Background technique
请参照图1A,其为公知的回路测试的示意图。一具有串行高级技术连接(Serial Advanced Technology Attachment)节口的南桥芯片100包括一接收器112与一传输器114。于公知技术中,测试信号D1由传输器114连续地输出至接收器112以达到回路测试的目的。于测试信号D1的传递过程中,传输器114仅传递测试信号D1的数据部分至接收器112。因此,接收器112的时钟/数据恢复电路(未示出)会追随传输器114传递测试信号D1的频率来作为本身的操作频率。Please refer to FIG. 1A , which is a schematic diagram of a known loop test. A
请参考图1B,其为图1A中测试信号的传送示意图的一例。为了测试出传输器114传送至接收器112的测试信号D1的正确性,公知作法是于传输器114内部设计多个缓冲器10。这些缓冲器10用以预先记录多个待测信号的样本(pattern)A1-An,等到传输器114所输出的测试信号D1传递至接收器112时,再将测试信号D1与缓冲器10储存的待测信号样本进行比较,以便判断接收器112是否成功地接收测试信号D1。Please refer to FIG. 1B , which is an example of the transmission diagram of the test signal in FIG. 1A . In order to test the correctness of the test signal D1 transmitted from the
于公知回路测试方法中,利用接收器中的缓冲器来预先储存待测信号的样本,但于传输器中增加额外的缓冲器,除了造成电路设计的困难外,势必增加整体的电路成本以及功率消耗,这些都是公知回路测试方法的缺点。因此,如何能有效且正确地来对接收器的功能进行测试是一尚待解决的问题。In the known loop test method, the buffer in the receiver is used to pre-store the samples of the signal to be tested, but adding an extra buffer in the transmitter will not only cause difficulties in circuit design, but also increase the overall circuit cost and power. These are the disadvantages of known loop testing methods. Therefore, how to effectively and correctly test the function of the receiver is an unresolved problem.
发明内容Contents of the invention
有鉴于此,本发明提供一种接收器,用以接收多个测试信号组,该多个测试信号组分别具有多个位的数据,该接收器包括:一时钟/数据恢复电路,用以接收串行输入的该多个测试信号组,并追随该多个测试信号组的传送频率以得到一时钟信号,其中,该时钟信号作为该接收器的操作频率;一串并行转换器,用以接收该时钟/数据恢复电路输出的该多个测试信号组,并将串行输入的该多个测试信号组转换为并行输出的多个测试位组,其中,该多个测试位组分别具有多个位的数据;以及一测试模块,用以接收该多个测试位组与该时钟信号,并对该多个测试位组中二个相邻者进行比较,以判断该二个相邻的该多个测试位组是否完全相同,其中该二个相邻的该多个测试位组包括一目前测试位组与一下一测试位组,该测试模块包括:一第一缓冲器,用以寄存该目前测试位组;一第二缓冲器,用以寄存该下一测试位组;一数据检查单元,用以接收该目前的测试位组与该下一个测试位组,并比较该目前测试位组与该下一测试位组相对应的该多个位的数据是否完全相同;以及一计数器,用以当该目前测试位组与该下一测试位组相对应的该多个位中的任一位的数据相异时,将一错误记录值加一,其中该错误记录值超过一阈值时,表示该接收器异常。In view of this, the present invention provides a receiver for receiving a plurality of test signal groups, each of which has a plurality of bits of data, the receiver includes: a clock/data recovery circuit for receiving The plurality of test signal groups input in series, and follow the transmission frequency of the plurality of test signal groups to obtain a clock signal, wherein the clock signal is used as the operating frequency of the receiver; a series of parallel converters for receiving The multiple test signal groups output by the clock/data recovery circuit, and convert the multiple test signal groups input serially into multiple test bit groups output in parallel, wherein the multiple test bit groups respectively have multiple bit data; and a test module for receiving the plurality of test bit groups and the clock signal, and comparing two adjacent ones of the plurality of test bit groups to determine the two adjacent multiple Whether the two test bit groups are identical, wherein the two adjacent test bit groups include a current test bit group and a next test bit group, the test module includes: a first buffer for storing the current test bit group A test bit group; a second buffer for storing the next test bit group; a data checking unit for receiving the current test bit group and the next test bit group, and comparing the current test bit group with the next test bit group Whether the data of the plurality of bits corresponding to the next test bit group are exactly the same; and a counter for when any one of the plurality of bits corresponding to the current test bit group When the data are different, an error record value is added by one, wherein when the error record value exceeds a threshold, it indicates that the receiver is abnormal.
本发明另提出一种信号测试方法,适用于一可接收多个测试信号组的接收器,该多个测试信号组分别具有多个位的数据,该信号测试方法包括:将该多个测试信号组转换为并行输出的多个测试位组,其中,该多个测试位组分别具有多个位的数据;以及比较该多个测试位组中二个相邻者,以判断该二个相邻的该多个测试位组是否相同,其中,该二个相邻的该多个测试位组包括一目前测试位组与一下一测试位组,该方法还包括:分别地寄存该目前测试位组与该下一测试位组;比较该目前测试位组与该下一测试位组相对应的该多个位的数据是否完全相同;以及当该目前测试位组与该下一测试位组相对应的该多个位中的任一位的数据相异时,将一错误记录值加一,其中该错误记录值超过一阈值时,表示该接收器异常.The present invention also proposes a signal testing method, which is applicable to a receiver capable of receiving multiple test signal groups, and the multiple test signal groups respectively have multiple bits of data. The signal testing method includes: the multiple test signal groups The group is converted into a plurality of test bit groups output in parallel, wherein the plurality of test bit groups respectively have data of a plurality of bits; and comparing two adjacent ones in the plurality of test bit groups to determine whether the two adjacent Whether the plurality of test bit groups are the same, wherein, the two adjacent test bit groups include a current test bit group and a next test bit group, the method also includes: separately registering the current test bit group and the next test bit group; compare whether the data of the plurality of bits corresponding to the current test bit group and the next test bit group are completely the same; and when the current test bit group corresponds to the next test bit group When the data of any one of the multiple bits is different, an error record value is added by one, and when the error record value exceeds a threshold value, it indicates that the receiver is abnormal.
为让本发明的上述目的、特征、和优点能更明显易懂,下文特举一较佳实施例,并配合附图,详细说明如下:In order to make the above-mentioned purposes, features, and advantages of the present invention more comprehensible, a preferred embodiment is specifically cited below, together with the accompanying drawings, and the details are as follows:
附图说明Description of drawings
图1A表示公知回路测试的示意图。FIG. 1A shows a schematic diagram of a conventional loop test.
图1B表示图1A中测试信号的传送示意图。FIG. 1B is a schematic diagram of transmission of the test signal in FIG. 1A .
图2表示本发明一较佳实施例的接收器的方块图。Fig. 2 shows a block diagram of a receiver of a preferred embodiment of the present invention.
图3表示图2的测试模块的示意图。FIG. 3 shows a schematic diagram of the test module of FIG. 2 .
图4表示本发明一较佳实施例的流程图。Fig. 4 shows a flow chart of a preferred embodiment of the present invention.
主要元件符号说明Description of main component symbols
200:接收器200: Receiver
210:时钟/数据恢复电路210: Clock/data recovery circuit
220:串并行转换器220: serial parallel converter
230:测试模块230: Test Module
232:第一缓冲器232: First buffer
234:第二缓冲器234: Second buffer
236:数据检查单元236: Data checking unit
238:计数器238: Counter
240:字对齐模块240: Word alignment module
具体实施方式Detailed ways
请参照图2,其为本发明一较佳实施例的接收器的方块图.接收器200可设置于一芯片组中,例如南桥芯片,用以连续地接收数据相同的多个测试信号组D1.各测试信号组D1,例如具有10位(bits)长度的数据,由外部装置20以串行的方式输入至接收器200.接收器200与外部装置20组成一数据测试系统.接收器200包括有时钟/数据恢复电路210、串并行转换器220与测试模块230.接收器200还包括字对齐模块240.时钟/数据恢复电路210用以连续地接收这些串行输入的测试信号组D1,并追随这些测试信号组D1的传送频率以得到一时钟信号Clk.其中,时钟信号Clk作为接收器200的操作频率.串并行转换器220自时钟/数据恢复电路210接收这些测试信号组D1,并将这些测试信号组D1由串行输入转换为多个测试位组TS的并行输出.由于测试信号组D1具有10位的数据,故在一较佳实施例中,各测试位组TS亦具有10位的数据.测试模块230用以接收这些测试位组TS与时钟信号Clk,并将目前的测试位组TS(1)与下一个测试位组TS(2)进行比较,以判断两者间各个相对应位的数据是否完全相同.若测试位组TS(1)与下一个测试位组TS(2)间各个对应的10位的数据完全相同,则表示接收器200的操作状态为正常.Please refer to FIG. 2, which is a block diagram of a receiver in a preferred embodiment of the present invention. The receiver 200 can be arranged in a chipset, such as a south bridge chip, to continuously receive multiple test signal groups with the same data D1. Each test signal group D1, such as data with a length of 10 bits, is input to the receiver 200 in a serial manner by the external device 20. The receiver 200 and the external device 20 form a data testing system. The receiver 200 Including a clock/data recovery circuit 210, a serial-to-parallel converter 220 and a
进一步来看测试模块230如何达到信号测试的目的。请参考图3,其为本发明较佳实施例的测试模块230的方块图。测试模块230包括第一缓冲器232、第二缓冲器234、数据检查单元236与计数器238。第一缓冲器232用以寄存目前的测试位组TS(1)。第二缓冲器234用以寄存下一个测试位组TS(2)。数据检查单元236用以接收目前的测试位组TS(1)与下一个测试位组TS(2),并比较此二测试位组TS(1)与TS(2)中相对应的各位的数据是否完全相同。计数器238用以当二个测试位组TS(1)与TS(2)间各对应的位的数据中的任一位的数据相异时,将一错误记录值加一。当第一测试位组TS(1)与第二测试位组TS(2)的10位数据完全相同时,表示接收器200的操作状态正常,可正确接收测试信号。接着,测试模块230将对比过的第一测试位组TS(1)输出至字对齐模块240,第二测试位组TS(2)移至第一缓冲器232,并将接续的第三测试位组TS(3)寄存至第二缓冲器234。依此方式,测试模块230继续对第二测试位组TS(2)与第三测试位组TS(3)进行比较。在一较佳实施例中,第三测试位组TS(3)为第一测试位组TS(1)的后的下二个测试位组。Let's take a closer look at how the
当第一测试位组TS(1)与第二测试位组TS(2)中相对应的10位里任一位的数据相异时,计数器238将一错误记录值加1。若计数器238的错误记录值到达一预定的次数时,例如一阈值,即可判断出接收器200无法正确地进行操作。于此情况下,可以重新调整接收器200的各设定,例如调整接收器200的参数设定,然后再对接收器200重新进行测试,以找出适合接收器200的参数设定。此错误记录值的阈值可依实际操作状况而决定。When the data of any one of the 10 bits in the first test bit set TS(1) and the second test bit set TS(2) are different, the
当接收器200于正常操作的状态(亦即非进行测试的状态)下,字对齐模块240用以将所接收的位组与储存于其中的对照表(未示出)进行比较,以将所接收的位组转换成对应的字组(word)。当接收器200于进行测试的状态下时,则字对齐模块240用以接收已比较完毕的测试位组TS,使新的测试位组TS可进入第一缓冲器232与第二缓冲器234以进行新的比较。When the receiver 200 is in a normal operating state (that is, a non-testing state), the word alignment module 240 is used to compare the received bit groups with a look-up table (not shown) stored therein, so as to align the received The received bit groups are converted into corresponding word groups (word). When the receiver 200 is in the state of testing, the word alignment module 240 is used to receive the compared test bit group TS, so that the new test bit group TS can enter the
请参考图4,其为本发明的信号测试方法的一较佳实施例,并请一并参考图2与图3。首先于步骤S1,时钟/数据恢复电路210连续地接收多个串行输入的测试信号组D1,并依据这些测试信号组D1的传输频率产生一时钟信号Clk,以做为接收器200的操作频率。于步骤S2中,串并行转换器220将此串行输入的测试信号组D1转换成并行输出的测试位组TS,测试位组TS的数据位数可与测试信号组D1的数据长度相同。Please refer to FIG. 4 , which is a preferred embodiment of the signal testing method of the present invention, and please refer to FIG. 2 and FIG. 3 together. First in step S1, the clock/data recovery circuit 210 continuously receives a plurality of serially input test signal groups D1, and generates a clock signal Clk according to the transmission frequency of these test signal groups D1 as the operating frequency of the receiver 200 . In step S2, the serial-to-parallel converter 220 converts the serially input test signal set D1 into a parallel output test bit set TS. The number of data bits of the test bit set TS may be the same as the data length of the test signal set D1.
接着于步骤S3中,将前二个测试位组TS(1)与TS(2)分别寄存至第一缓冲器232与第二缓冲器234,并于步骤S4中由数据检查模块236比较此二个测试位组TS(1)与TS(2)中各个相对应的位是否具有相同的数据。Then in step S3, the first two test bit groups TS (1) and TS (2) are respectively registered in the
如果测试位组TS(1)与TS(2)比较的结果具有任一相异的位数据,则计数器238将错误记录值加一,如步骤S5所示。比较完毕后,接着于步骤S6,重新载入一对测试位组至第一缓冲器232与第二缓冲器234,以进行另一次比较。第一缓冲器232的测试位组TS(1)将输出至字对齐模块240,测试位组TS(2)则移至第一缓冲器232,并将测试位组TS(3)寄存至第二缓冲器234。接续再回到步骤S4,比较测试位组TS(2)与TS(3)的各个位组是否相同,依此类推直到所有测试位组TS比较完毕。If the comparison result of the test bit groups TS(1) and TS(2) has any different bit data, the
如果测试位组TS(1)与TS(2)比较的结果未具有相异的位数据,则于对比完毕后直接进入步骤S6,以进行新的对比。于所有测试位组比较完毕后,计数器238的错误记录值仍于一阈值范围内,即表示接收器200工作正常。若于测试过程中,计数器238的错误记录值超过此阈值时,表示接收器200异常,即可停止比较的步骤,重新设定接收器200。If the comparison result of the test bit sets TS(1) and TS(2) has no different bit data, then directly enter step S6 after the comparison is completed to perform a new comparison. After all the test bit groups are compared, if the error record value of the
本发明的实施例利用测试模块来检查相邻的二测试信号组中,各个相对应的位的数据是否完全相同,以得知接收器是否正常。相较于公知技术在接收器中增加多个缓冲器来记录多组测试信号样本的方法,本发明的测试方法仅需进行简单的位组比较,即可完成测试。本发明的电路设计亦较公知作法简单许多,所须使用的缓冲器个数也减少,故能有效地节省电路成本。In the embodiment of the present invention, the test module is used to check whether the data of each corresponding bit in two adjacent test signal groups is completely the same, so as to know whether the receiver is normal. Compared with the method of adding multiple buffers in the receiver to record multiple sets of test signal samples in the known technology, the test method of the present invention only needs to perform simple bit group comparison to complete the test. The circuit design of the present invention is also much simpler than the known method, and the number of buffers to be used is also reduced, so the circuit cost can be effectively saved.
此外,由于公知技术的接收器所接收的测试信号组必须与缓冲器的测试信号样本进行比较,所以传输器仅能输出测试信号组,故公知作法中对传输器与接收器的控制流程较为繁复。而本发明仅需持续地传送相同的测试信号组至接收器,所以不需对外部装置与接收器进行繁复的控制流程,且测试信号组的产生很容易,所能使用的测试信号组的内容较有弹性且更多元。除此的外,本发明的测试方法更具有能快速地测得接收器的其他更精确的特性信息的优点,例如接收器的抖动(jitter)是否存在、接收器的敏感度等。In addition, since the test signal set received by the receiver in the prior art must be compared with the test signal samples in the buffer, the transmitter can only output the test signal set, so the control process for the transmitter and receiver is relatively complicated in the prior art . However, the present invention only needs to continuously transmit the same test signal group to the receiver, so there is no need to perform a complicated control process on the external device and the receiver, and the generation of the test signal group is very easy, and the content of the test signal group that can be used More flexible and more diverse. In addition, the test method of the present invention has the advantage of being able to quickly measure other more accurate characteristic information of the receiver, such as whether the jitter of the receiver exists, the sensitivity of the receiver, and the like.
本发明虽以优选实施例公开如上,然其并非用以限定本发明,任何本领域技术人员,在不脱离本发明的精神和范围的情况下,可进行更动与修改,因此本发明的保护范围以所提出的权利要求所限定的范围为准。Although the present invention is disclosed as above with preferred embodiments, it is not intended to limit the present invention. Any person skilled in the art can make changes and modifications without departing from the spirit and scope of the present invention. Therefore, the protection of the present invention The scope is as defined by the appended claims.
Claims (5)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN200610127488A CN1921358B (en) | 2006-09-15 | 2006-09-15 | receiver and testing method thereof |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN200610127488A CN1921358B (en) | 2006-09-15 | 2006-09-15 | receiver and testing method thereof |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN1921358A CN1921358A (en) | 2007-02-28 |
| CN1921358B true CN1921358B (en) | 2010-05-12 |
Family
ID=37778950
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN200610127488A Active CN1921358B (en) | 2006-09-15 | 2006-09-15 | receiver and testing method thereof |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN1921358B (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| TWI533608B (en) * | 2014-06-30 | 2016-05-11 | 友達光電股份有限公司 | Data receiver and data receiving method thereof |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6459393B1 (en) * | 1998-05-08 | 2002-10-01 | International Business Machines Corporation | Apparatus and method for optimized self-synchronizing serializer/deserializer/framer |
| JP2004328369A (en) * | 2003-04-24 | 2004-11-18 | Matsushita Electric Ind Co Ltd | Test circuit and data transmission test system for semiconductor integrated circuit |
| CN1783772A (en) * | 2004-11-29 | 2006-06-07 | 四零四科技股份有限公司 | Receive method for asynchronous receivers |
-
2006
- 2006-09-15 CN CN200610127488A patent/CN1921358B/en active Active
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6459393B1 (en) * | 1998-05-08 | 2002-10-01 | International Business Machines Corporation | Apparatus and method for optimized self-synchronizing serializer/deserializer/framer |
| JP2004328369A (en) * | 2003-04-24 | 2004-11-18 | Matsushita Electric Ind Co Ltd | Test circuit and data transmission test system for semiconductor integrated circuit |
| CN1783772A (en) * | 2004-11-29 | 2006-06-07 | 四零四科技股份有限公司 | Receive method for asynchronous receivers |
Also Published As
| Publication number | Publication date |
|---|---|
| CN1921358A (en) | 2007-02-28 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5726991A (en) | Integral bit error rate test system for serial data communication links | |
| CN101127650B (en) | Method and test backplane for single board production test | |
| US8949680B2 (en) | Data receiver device and test method thereof | |
| CN108600047B (en) | Serial transmission chip and SERDES circuit testing method | |
| US20220398177A1 (en) | Error rate measuring apparatus and error rate measuring method | |
| US20220082623A1 (en) | Performing scan data transfer inside multi-die package with serdes functionality | |
| TWI407129B (en) | Adjustable voltage comparing circuit and adjustable voltage examining module | |
| US8037377B1 (en) | Techniques for performing built-in self-test of receiver channel having a serializer | |
| US8687681B2 (en) | Receiver and signal testing method thereof | |
| JP2013034133A (en) | Transmission apparatus, transmitting-receiving system, and control method | |
| US12229064B2 (en) | Integrated circuit having lanes interchangeable between clock and data lanes in clock forward interface receiver | |
| US11023023B2 (en) | Start-and-stop detecting apparatus and method for I3C bus | |
| CN1921358B (en) | receiver and testing method thereof | |
| JPWO2008152695A1 (en) | Electronic device, test method for electronic device | |
| CN114461473B (en) | Method for detecting time sequence of serializer, detection circuit and electronic device | |
| US7243283B2 (en) | Semiconductor device with self-test circuits and test method thereof | |
| US20130179745A1 (en) | Test interface circuit for increasing testing speed | |
| CN108155979B (en) | Detection equipment | |
| US12253564B2 (en) | Mechanism capable of performing on-chip test and verification | |
| CN116011037B (en) | Chip anti-counterfeiting circuit and anti-counterfeiting chip aiming at reverse design | |
| CN213814410U (en) | Frequency converter control panel test equipment, system and electronic device | |
| JP2710175B2 (en) | Data correctness judgment device | |
| KR20120069945A (en) | Semiconductor memory device for judging pass/fail of cells | |
| CN119936615A (en) | Test platform for AD chips | |
| CN117806885A (en) | Correction device and method for server automation parameters |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| C14 | Grant of patent or utility model | ||
| GR01 | Patent grant |