TWI795901B - Serial link system with an embedded test function - Google Patents

Serial link system with an embedded test function Download PDF

Info

Publication number
TWI795901B
TWI795901B TW110132821A TW110132821A TWI795901B TW I795901 B TWI795901 B TW I795901B TW 110132821 A TW110132821 A TW 110132821A TW 110132821 A TW110132821 A TW 110132821A TW I795901 B TWI795901 B TW I795901B
Authority
TW
Taiwan
Prior art keywords
test
stream
bit stream
symbol
bit
Prior art date
Application number
TW110132821A
Other languages
Chinese (zh)
Other versions
TW202311955A (en
Inventor
洪浩喬
林聖華
Original Assignee
國立陽明交通大學
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 國立陽明交通大學 filed Critical 國立陽明交通大學
Priority to TW110132821A priority Critical patent/TWI795901B/en
Application granted granted Critical
Publication of TWI795901B publication Critical patent/TWI795901B/en
Publication of TW202311955A publication Critical patent/TW202311955A/en

Links

Images

Abstract

The present invention provides a serial link system with an embedded test function. The transmitting end consists of a transmitter and a test symbol generator. The test symbol generator generates a test symbol stream which is constituted by at least a test bit-stream and a golden test bit-stream, and the test bit-stream and the golden test bit-stream are the same except they have a relative delay. The transmitter modulates the test symbol stream and then outputs a serial test signal to the receiving end. The receiving end includes a receiver and an error detector. The receiver recovers a recovered test symbol stream from the serial test signal. The recovered test symbol stream includes a recovered test bit-stream corresponding to the test bit-stream in the test symbol stream, and a recovered golden test bit-stream corresponding to the golden test bit-stream. The error detector first compensates for the relative delay of the recovered test bit-stream and the recovered golden test bit-stream, and then checks if the two resulted delay-compensated bit-streams are the same to obtain a test result. Since the test bit-stream and the golden test bit-stream are combined into a test symbol stream and sent together, there will be no unpredictable timing skew between the recovered test bit-stream and the recovered golden test bit-stream restored after demodulation at the receiving end. The invention uses the recovered golden test bit-stream to replace the golden test bit-stream to greatly simplify the circuit for aligning the recovered test bit-stream with the golden test bit-stream.

Description

具內建測試功能之串列傳輸系統Serial transmission system with built-in test function

本發明係有關一種測試方法,特別是指一種具內建測試功能之串列傳輸系統。The present invention relates to a test method, in particular to a serial transmission system with built-in test function.

串列傳輸系統(serial links)解決傳統平行匯流排(parallel buses)在高速傳輸時資料與時脈會產生時序偏移(timing skew)的問題,因此成為無論是有線或無線資料傳輸系統的主流技術。為增加資料傳輸率,更先進的串列傳輸系統改採例如脈衝振幅調變(PAM)或正交振幅調變(QAM)這類每符號多位元(multiple bits per symbol)的調變方式。然而,測試這類先進串列傳輸系統也隨之變得更加複雜與昂貴。特別是在車用電子、航空器電子系統等需要高可靠度的電子系統中,只有內建測試技術可以持續執行現場測試(field tests),解決系統在長期使用後因元件老化產生錯誤的嚴重問題。The serial transmission system (serial links) solves the problem of timing skew (timing skew) between the data and the clock during the high-speed transmission of traditional parallel buses, so it has become the mainstream technology of both wired and wireless data transmission systems . In order to increase the data transmission rate, more advanced serial transmission systems adopt modulation methods such as pulse amplitude modulation (PAM) or quadrature amplitude modulation (QAM) such as multiple bits per symbol. However, testing such advanced serial transmission systems also becomes more complex and expensive. Especially in automotive electronics, aircraft electronic systems and other electronic systems that require high reliability, only built-in testing technology can continuously perform field tests to solve the serious problem of errors caused by component aging after long-term use of the system.

大部分習知串列傳輸系統內建測試(BIST)技術都是由傳送端產生由一個或多個測試位元流(test bit-stream(s))所構成之一測試符號流(test symbol stream),經調變後產生一串列測試訊號後傳送至接收端。而在接收端重新產生與傳輸端送出之測試位元流相同的對照位元流(golden test bit-streams)。接收端接收到測試位元流後會進行解調變,還原出一還原符號流(recovered test symbol stream),其包含對應於該等測試位元流之還原測試位元流(recovered test bit-stream(s)),最後再將還原測試符號流與接收端產生的對照符號流相比對,檢查兩者是否相同,以決定待測串列傳輸系統是否通過測試。舉例來說,如第1圖所示,先前技術的串列傳輸系統包括傳送端22以及接收端24。傳送端22包括一測試符號產生器222及一傳送電路224,測試符號產生器222產生測試符號流後,傳送電路224將其調變產生串列測試訊號後傳送到接收端24。接收端24包括一接收電路242及一錯誤偵測器244,其中接收電路242將所接收的串列測試訊號解調變後產生還原符號流再輸入錯誤偵測器。但測試符號產生器222只產生測試符號流,沒有對照符號流。接收端24重新產生對照符號流的方法可為:1.在接收端24設置另一測試符號產生器244,用以產生與測試符號產生器222相同的測試符號流,以作為對照符號流;或2.傳送端22的測試符號產生器222直接再傳送一份相同的測試符號流到錯誤偵測器246中做為對照符號流,如圖中的虛線所示。然而,接收端24所解調變出的還原測試符號流與產生的對照符號流本質上並不會同步,因此需要複雜的電路來對齊解調變出的還原測試符號流與產生的對照符號流。在非常高速(e.g. >10 Gb/s)的串列傳輸系統中,符號週期(symbol period)變得非常短使得此類電路設計變得非常困難,複雜的電路也增加硬體成本。Most of the conventional built-in-test-in-serial-transmission-system (BIST) technologies generate a test symbol stream (test symbol stream) consisting of one or more test bit-stream(s) at the transmitting end. ), after modulation, a series of test signals are generated and sent to the receiving end. At the receiving end, the same control bit-streams (golden test bit-streams) as the test bit-streams sent by the transmitting end are regenerated. After receiving the test bit-stream, the receiver will demodulate and restore a recovered test symbol stream, which includes the recovered test bit-stream corresponding to the test bit-stream (s)), and finally compare the restored test symbol stream with the control symbol stream generated by the receiving end to check whether the two are the same, so as to determine whether the serial transmission system under test passes the test. For example, as shown in FIG. 1 , the prior art serial transmission system includes a transmitting end 22 and a receiving end 24 . The transmitting end 22 includes a test symbol generator 222 and a transmitting circuit 224 . After the test symbol generator 222 generates a test symbol stream, the transmitting circuit 224 modulates it to generate a serial test signal and transmits it to the receiving end 24 . The receiving end 24 includes a receiving circuit 242 and an error detector 244 , wherein the receiving circuit 242 demodulates the received serial test signal to generate a restored symbol stream and then input it into the error detector. However, the test symbol generator 222 only generates a test symbol stream without a control symbol stream. The method for the receiving end 24 to regenerate the comparison symbol flow can be: 1. Another test symbol generator 244 is set at the receiving end 24 to generate the same test symbol flow as the test symbol generator 222 as the comparison symbol flow; or 2. The test symbol generator 222 of the transmitting end 22 directly transmits the same test symbol stream to the error detector 246 as a comparison symbol stream, as shown by the dotted line in the figure. However, the restored test symbol stream demodulated by the receiving end 24 and the generated comparison symbol stream are not synchronized in nature, so complex circuits are required to align the demodulated restored test symbol stream and the generated comparison symbol stream . In a very high-speed (e.g. >10 Gb/s) serial transmission system, the symbol period (symbol period) becomes very short, making this type of circuit design very difficult, and the complex circuit also increases the hardware cost.

因此,本發明即提出一種具內建測試功能之串列傳輸系統,以有效地解決上述該等問題,具體架構及其實施方式將詳述於下:Therefore, the present invention proposes a serial transmission system with a built-in test function to effectively solve the above-mentioned problems. The specific structure and its implementation will be described in detail below:

本發明之主要目的在提供一種具內建測試功能之串列傳輸系統,其將相同的測試位元流與對照位元流其中之一延遲一相對延遲週期後,再合成為一測試符號流後一起傳送,在接收端解調變後所還原的測試符號流中的還原測試位元流與還原對照位元流間就不會產生不可預測的時間偏移,只需補償還原對照位元流與還原測試位元流之間的該相對延遲週期後再相互比較,就可以知道是否有誤碼產生。如此便能大幅簡化將還原測試位元流與對照位元流對齊的電路。The main purpose of the present invention is to provide a serial transmission system with a built-in test function, which delays one of the same test bit stream and the control bit stream for a relative delay period, and then synthesizes it into a test symbol stream transmitted together, there will be no unpredictable time offset between the restored test bit stream and the restored comparison bit stream in the restored test symbol stream after demodulation at the receiving end, only need to compensate for the restored comparison bit stream and the restored comparison bit stream By restoring the relative delay period between the test bit streams and comparing them with each other, it is possible to know whether there is a bit error. This greatly simplifies the circuitry for aligning the restored test bitstream with the control bitstream.

本發明之另一目的在提供一種具內建測試功能之串列傳輸系統,其接收端的錯誤偵測器僅需少數正反器與互斥或閘數位電路,所需面積極小,故具備低成本、低功耗與強健性等優點。Another object of the present invention is to provide a serial transmission system with a built-in test function. The error detector at the receiving end only needs a few flip-flops and exclusive OR gate digital circuits, and the required area is extremely small, so it has low cost. , low power consumption and robustness.

本發明之再一目的在提供一種具內建測試功能之串列傳輸系統,其中錯誤偵測器採用全數位化電路設計,不需要複製原始的類比調解電路,除了可降低不匹配元件造成的影響,還可以降低晶片成本。Another object of the present invention is to provide a serial transmission system with a built-in test function, in which the error detector adopts a fully digital circuit design, and there is no need to copy the original analog modulation circuit, in addition to reducing the impact caused by mismatched components , can also reduce wafer cost.

為達上述目的,本發明提供一種具內建測試功能之串列傳輸系統,包括:一傳送端,包括:一測試符號產生器,產生一測試符號流,測試符號流由一測試位元流及至少一對照位元流所組成;以及一傳送電路,將測試符號流調變成一串列測試訊號後輸出;以及一接收端,通過一傳輸通道與傳送端訊號連接,接收該串列測試訊號,接收端包括:一接收電路,將串列測試訊號中的測試符號流還原成對應於測試位元流之一還原測試位元流及對應於對照位元流之一還原對照位元流;以及一錯誤偵測器,比較還原測試位元流及還原對照位元流是否有一錯誤碼產生,得到一測試結果。For reaching above-mentioned object, the present invention provides a kind of serial transmission system with built-in test function, comprise: a transmission end, comprise: a test symbol generator, produce a test symbol stream, test symbol stream is made up of a test bit stream and Consisting of at least one control bit stream; and a transmission circuit, which modulates the test symbol stream into a serial test signal and then outputs it; and a receiving end, which is connected to the transmitting end signal through a transmission channel, and receives the serial test signal, The receiving end includes: a receiving circuit, which restores the test symbol stream in the serial test signal into a restored test bit stream corresponding to the test bit stream and a restored control bit stream corresponding to the control bit stream; and a The error detector compares whether an error code is generated in the restoration test bit stream and the restoration comparison bit stream, and obtains a test result.

依據本發明之實施例,測試位元流及對照位元流具有相同資料序列及固定的相對延遲週期,接收電路還原還原測試位元流與還原對照位元流時,同時還原出相對延遲週期。According to an embodiment of the present invention, the test bit stream and the control bit stream have the same data sequence and a fixed relative delay period. When the receiving circuit restores the test bit stream and the control bit stream, the relative delay period is simultaneously restored.

依據本發明之實施例,測試符號產生器包括:一偽隨機位元流(pseudo-random binary sequence, PRBS)產生器,用以產生測試位元流及具有一相對延遲週期的對照位元流。According to an embodiment of the present invention, the test symbol generator includes: a pseudo-random binary sequence (PRBS) generator for generating a test bit stream and a control bit stream with a relative delay period.

依據本發明之實施例,偽隨機位元流產生器包括複數個第一正反器,選擇其中之兩個第一正反器之輸出分別作為對照位元流及測試位元流,使對照位元流比測試位元流延遲固定相對延遲週期。According to an embodiment of the present invention, the pseudo-random bit stream generator includes a plurality of first flip-flops, and the outputs of two of the first flip-flops are selected as the control bit stream and the test bit stream respectively, so that the control bit stream The metastream is delayed by a fixed relative delay period from the test bitstream.

依據本發明之實施例,所選擇的第一正反器之輸出所組成的測試符號流中,所有的符號(symbol)皆會出現,且每一種符號出現的機率幾乎相同,各個符號之間轉換的次數也幾乎相同。According to the embodiment of the present invention, in the test symbol stream composed of the output of the selected first flip-flop, all symbols (symbols) will appear, and the probability of each symbol appearing is almost the same, and the conversion between each symbol The number of times is almost the same.

依據本發明之實施例,錯誤偵測器包括一延遲線,用以將還原測試位元流延遲相對延遲週期,產生一延遲還原測試位元流,延遲還原測試位元流與還原對照位元流在無錯誤狀況下之相同資料位元一一對齊。According to an embodiment of the present invention, the error detector includes a delay line for delaying the restoration test bit stream by a relative delay period to generate a delayed restoration test bit stream, delaying the restoration test bit stream and the restoration comparison bit stream Bits of the same data are aligned one by one under error-free conditions.

依據本發明之實施例,錯誤偵測器包括一互斥或閘,接收還原對照位元流及延遲相對延遲週期後之還原測試位元流並進行比對,得到測試結果。According to the embodiment of the present invention, the error detector includes a mutual exclusive OR gate, receives and compares the restoration control bit stream and the restoration test bit stream after a delay of a relative delay period, and obtains the test result.

依據本發明之實施例,傳送端及接收端位於不同之測試晶片中。According to an embodiment of the present invention, the transmitting end and the receiving end are located in different test chips.

依據本發明之實施例,測試符號產生器產生之測試符號流的符號為單位元時,對照位元流之數量為一組,測試符號流係由測試位元流和對照位元流以交錯合併的方式產生。According to the embodiment of the present invention, when the symbol of the test symbol stream produced by the test symbol generator is a unit cell, the number of comparison bit streams is one group, and the test symbol stream is combined by the test bit stream and the comparison bit stream in an interleaved manner. produced in a manner.

依據本發明之實施例,測試符號產生器中包括一多工器,用以將測試位元流和對照位元流交錯合併以產生單位元之測試符號流。According to an embodiment of the present invention, the test symbol generator includes a multiplexer for interleaving and combining the test bit stream and the control bit stream to generate a unit-bit test symbol stream.

依據本發明之實施例,測試符號產生器產生之測試符號流的符號為多位元符號,且每一該多位元符號的位元數大於或等於三位元時,對照位元流之數量為至少二組,測試符號流係由測試位元流和該至少二組對照位元流所組成。According to an embodiment of the present invention, the symbols of the test symbol stream generated by the test symbol generator are multi-bit symbols, and when the number of bits of each multi-bit symbol is greater than or equal to three bits, the number of bit streams is compared There are at least two groups, and the test symbol stream is composed of the test bit stream and the at least two sets of control bit streams.

本發明提供一種具內建測試功能之串列傳輸系統,只需在晶片上加入非常精簡的電路就可以讓串列傳輸系統完成內建測試。本發明不需要複雜的內建資料與位元流同步電路,也不需使用昂貴的高階測試機台,因此可大幅降低晶片的測試時間與測試成本。由於將內建測試電路(Built-in Self Test, BIST)內建在晶片內部,因此可以在全速與實際通道的影響下完成測試,提高測試覆蓋率與測試結果的可靠度。The invention provides a serial transmission system with a built-in test function, which allows the serial transmission system to complete the built-in test only by adding a very simplified circuit on the chip. The present invention does not require complex built-in data and bit stream synchronization circuits, nor does it need to use expensive high-end test machines, so the test time and cost of the chip can be greatly reduced. Since the built-in test circuit (Built-in Self Test, BIST) is built inside the chip, the test can be completed at full speed and under the influence of the actual channel, improving the test coverage and the reliability of the test results.

請參考第2A圖,其為本發明具內建測試功能之串列傳輸系統10之方塊圖。具內建測試功能之串列傳輸系統10包括一傳送端12及一接收端14,傳送端12和接收端14可設在同一晶片上,亦可設在不同晶片上。接收端14通過一傳輸通道16與傳送端12連接。此傳輸通道16可設在晶片內或是晶片外。傳送端12包括一測試符號產生器122及一傳送電路124。其中,測試符號產生器122用以產生一測試符號流,測試符號流由一測試位元流及至少一對照位元流所組成,且測試位元流及對照位元流的資料內容一模一樣,但兩者間具有一固定時脈週期的相對延遲。傳送電路124用以將測試位元流及對照位元流所合併成之測試符號流調變成一串列測試訊號後,輸出串列測試訊號到接收端14。接收端14包括一接收電路142及一錯誤偵測器144,接收電路142連接錯誤偵測器144。在本實施例中,接收電路142用以將串列測試訊號中的測試符號流還原成一還原測試符號流,包括對應於測試位元流之一還原測試位元流及對應於對照位元流之一還原對照位元流。同時,接收電路142還會還原出回復時脈rclk。接著,再由錯誤偵測器144先補償測試位元流及對照位元流的相對延遲後,再比較還原測試位元流及還原對照位元流是否有一錯誤碼產生,得到一測試結果(BIST result)。若還原測試位元流或還原對照位元流中有任一錯誤碼產生,則錯誤偵測器144輸出的測試結果會即時產生一脈衝,提供後續設計者所定義的錯誤處理功能處理。Please refer to FIG. 2A, which is a block diagram of the serial transmission system 10 with built-in test function of the present invention. The serial transmission system 10 with built-in testing function includes a transmitting end 12 and a receiving end 14. The transmitting end 12 and the receiving end 14 can be set on the same chip or on different chips. The receiving end 14 is connected to the transmitting end 12 through a transmission channel 16 . The transfer channel 16 can be located inside or outside the chip. The transmitting end 12 includes a test symbol generator 122 and a transmitting circuit 124 . Wherein, the test symbol generator 122 is used to generate a test symbol stream, the test symbol stream is composed of a test bit stream and at least one comparison bit stream, and the data content of the test bit stream and the comparison bit stream are exactly the same, but There is a relative delay of a fixed clock cycle between the two. The transmission circuit 124 is used for modulating the test symbol stream formed by combining the test bit stream and the comparison bit stream into a serial test signal, and then output the serial test signal to the receiving end 14 . The receiving end 14 includes a receiving circuit 142 and an error detector 144 , and the receiving circuit 142 is connected to the error detector 144 . In this embodiment, the receiving circuit 142 is used to restore the test symbol stream in the serial test signal into a restored test symbol stream, including a restored test bit stream corresponding to the test bit stream and a test bit stream corresponding to the control bit stream. A restore control bitstream. At the same time, the receiving circuit 142 also restores the recovery clock rclk. Then, after first compensating the relative delay of the test bit stream and the comparison bit stream by the error detector 144, then comparing whether an error code occurs between the restoration test bit stream and the restoration comparison bit stream, a test result (BIST) is obtained. result). If any error code is generated in the restoration test bit stream or the restoration comparison bit stream, the test result output by the error detector 144 will generate a pulse immediately to provide subsequent error processing defined by the designer.

請參考第2B圖,其為本發明具內建測試功能之串列傳輸系統10之一實施例之方塊圖,此實施例使用QPSK調變/解調變。具內建測試功能之串列傳輸系統10包括一傳送端12及一接收端14,傳送端12和接收端14可設在同一晶片上,亦可設在不同晶片上。接收端14通過一傳輸通道16與傳送端12連接。此傳輸通道16可設在晶片內或是晶片外。傳送端12包括一測試符號產生器122及一傳送電路124,其中,測試符號產生器122用以產生一測試符號流,測試符號流中的資料位元流data I及data Q分別做為測試位元流及對照位元流,且測試位元流data I及對照位元流data Q的資料內容一模一樣,但兩者間具有兩個時脈週期的相對延遲。傳送電路124用以將測試位元流及對照位元流所合併成之測試符號流以QPSK調變成一串列測試訊號後,輸出串列測試訊號到接收端14。接收端14包括一接收電路142及一錯誤偵測器144,接收電路142連接錯誤偵測器144。在本實施例中,接收電路142用以將串列測試訊號中的測試符號流還原成分別對應測試位元流data I及對照位元流data Q的還原測試位元流rdata I及還原對照位元流rdata Q,同時還原出回復時脈rclk。接著,再由錯誤偵測器144先補償還原測試位元流rdata I及還原對照位元流rdata Q間的兩個時脈週期的相對延遲,再比較補償相對延遲後之還原測試位元流rdata I及還原對照位元流rdata Q是否相同,得到一測試結果(BIST result)。若還原測試位元流rdata I或還原對照位元流rdata Q中有任一錯誤碼產生,則錯誤偵測器144輸出的測試結果會即時產生一脈衝,提供後續設計者所定義的錯誤處理功能處理。 Please refer to FIG. 2B, which is a block diagram of an embodiment of the serial transmission system 10 with built-in test function of the present invention. This embodiment uses QPSK modulation/demodulation. The serial transmission system 10 with built-in testing function includes a transmitting end 12 and a receiving end 14. The transmitting end 12 and the receiving end 14 can be set on the same chip or on different chips. The receiving end 14 is connected to the transmitting end 12 through a transmission channel 16 . The transfer channel 16 can be located inside or outside the chip. The transmitting end 12 includes a test symbol generator 122 and a transmission circuit 124, wherein the test symbol generator 122 is used to generate a test symbol stream, and the data bit streams data I and data Q in the test symbol stream are respectively used as test bits The data contents of the test bit stream data I and the control bit stream data Q are exactly the same, but there is a relative delay of two clock cycles between the two. The transmitting circuit 124 is used for converting the test symbol stream formed by combining the test bit stream and the comparison bit stream into a serial test signal by QPSK modulation, and then output the serial test signal to the receiving end 14 . The receiving end 14 includes a receiving circuit 142 and an error detector 144 , and the receiving circuit 142 is connected to the error detector 144 . In this embodiment, the receiving circuit 142 is used to restore the test symbol stream in the serial test signal into the restored test bit stream rdata I and the restored control bit corresponding to the test bit stream data I and the comparison bit stream data Q respectively. Yuan stream rdata Q and restore the recovery clock rclk at the same time. Next, the error detector 144 first compensates the relative delay of two clock cycles between the restoration test bit stream rdata I and the restoration comparison bit stream rdata Q , and then compares the restoration test bit stream rdata after the compensation for the relative delay Whether I and the reduction control bit stream rdata Q are the same, a test result (BIST result) is obtained. If any error code is generated in the restoration test bit stream rdata I or the restoration comparison bit stream rdata Q , the test result output by the error detector 144 will immediately generate a pulse to provide subsequent error handling functions defined by the designer. deal with.

在一實施例中,傳送電路124中包括一調變器(圖中未示),而接收電路142中則包括一解調變器(圖中未示)。解調變器可為一時脈資料恢復(Clock and Data Recovery, CDR)電路。In one embodiment, the transmitting circuit 124 includes a modulator (not shown in the figure), and the receiving circuit 142 includes a demodulator (not shown in the figure). The demodulator may be a Clock and Data Recovery (CDR) circuit.

本發明與先前技術最大的不同點在於,先前技術中,傳送端20僅會傳送測試符號流,而對照符號流則是在接收端20設置另一測試符號產生器所產生。因此,當還原測試符號流和對照符號流進行比對時,還原測試符號流由於經過了傳輸通道的傳送,發生訊號延遲。但對照符號流沒有經過傳輸通道,不會產生相同的延遲,將使得還原測試符號流和對照符號流難以對齊。而本發明將測試位元流和對照位元流合併成一測試符號流同時傳送,因此縱使發生訊號延遲,由於二者仍保持同樣的相對延遲,因此並非不可預測的時間偏移,相當容易將還原測試位元流和還原對照位元流對齊。The biggest difference between the present invention and the prior art is that in the prior art, the transmitting end 20 only transmits the test symbol stream, while the control symbol stream is generated by setting another test symbol generator at the receiving end 20 . Therefore, when the restored test symbol stream is compared with the reference symbol stream, the restored test symbol stream is transmitted through the transmission channel, and a signal delay occurs. However, the control symbol stream does not pass through the transmission channel, and the same delay will not be generated, which will make it difficult to align the restored test symbol stream and the control symbol stream. In the present invention, the test bit stream and the control bit stream are combined into a test symbol stream and transmitted simultaneously, so even if signal delay occurs, the two still maintain the same relative delay, so it is not an unpredictable time offset, and it is quite easy to restore Test bitstream and restore control bitstream alignment.

本發明另提供一實施例,在此實施例中,測試位元流及對照位元流之間具有固定的相對延遲週期。如第3圖之實施例所示,測試位元流data I領先對照位元流data Q兩個週期,因此,取測試位元流data I的第三個位元T[2]和對照位元流data Q的第一個位元G[0]合併成二位元的符號做為測試符號。。此實施例之設計重點在於,由於傳送端12同時傳送包含測試位元流及對照位元流的測試符號流,且其中一筆位元流有相對延遲,因此,若在資料傳送過程中遇到雜訊影響某一個時脈週期的測試符號,則當接收端14將串列測試訊號還原回還原測試位元流和還原對照位元流,並經錯誤偵測器144補償相對延遲週期後,兩者的錯誤位元不會發生在同一時脈週期。例如若T[3]發生錯誤,則並列的G[1]也會出錯,但位於不同週期的G[3]是正確的。因此當還原測試位元流rT[i]和還原對照位元流rG[i]對齊後,可知rT[3]和rG[3]其中之一產生錯誤。如此一來,錯誤偵測器144可比對出有錯誤碼產生,達到內建測試的功效。 The present invention also provides an embodiment. In this embodiment, there is a fixed relative delay period between the test bit stream and the control bit stream. As shown in the embodiment of Fig. 3, the test bit stream data I is ahead of the control bit stream data Q by two cycles, therefore, the third bit T[2] of the test bit stream data I and the control bit The first bit G[0] of the stream data Q is combined into a 2-bit symbol as a test symbol. . The key point of the design of this embodiment is that since the transmitting end 12 simultaneously transmits the test symbol streams including the test bit stream and the comparison bit stream, and one of the bit streams has a relative delay, therefore, if there is a clutter in the data transmission process If the signal affects the test symbols of a certain clock cycle, then when the receiving end 14 restores the serial test signal back to the restored test bit stream and the restored control bit stream, and after the error detector 144 compensates for the relative delay period, both The erroneous bits do not occur in the same clock cycle. For example, if an error occurs in T[3], the parallel G[1] will also make an error, but G[3] located in a different cycle is correct. Therefore, when the restoration test bit stream rT[i] is aligned with the restoration control bit stream rG[i], it can be seen that one of rT[3] and rG[3] generates an error. In this way, the error detector 144 can compare the generation of error codes to achieve the effect of built-in testing.

測試符號產生器產生具有相對延遲週期的測試位元流data I及對照位元流data Q的其中一種方法,舉例而言,是在測試符號產生器122中設置一偽隨機位元流(pseudo-random binary sequence, PRBS)產生器123,如第4圖所示。第4圖為偽隨機位元流產生器123的一個實施例。偽隨機位元流產生器123包括複數第一正反器1232,此實施例採用PRBS7產生器為例,第一正反器1232的數量為7個,循環輸出資料。選擇其中之二個第一正反器之輸出分別做為測試位元流data I及對照位元流data Q,測試位元流data I及對照位元流data Q的資料內容一模一樣但是有固定的相對延遲週期。在此實施例中,分別取第一個第一正反器的輸出data I和第三個第一正反器的輸出data Q做為對照位元流及測試位元流,使對照位元流比測試位元流延遲,此相對延遲週期為二個週期。傳送電路124中的調變器為QPSK調變器,調變後的訊號即為串列測試訊號。由於偽隨機位元流產生器123本質上是一種線性移位暫存器(LSFR)且所選擇的兩訊號間隔二個第一正反器1232,故可確定data I永遠領先data Q兩個時脈週期且兩者的資料序列完全相同。 One of the methods for the test symbol generator to generate the test bit stream data I and the comparison bit stream data Q with a relative delay period, for example, is to set a pseudo-random bit stream (pseudo- random binary sequence, PRBS) generator 123, as shown in Figure 4. FIG. 4 shows an embodiment of the pseudo-random bitstream generator 123 . The pseudo-random bit stream generator 123 includes a plurality of first flip-flops 1232. In this embodiment, a PRBS7 generator is used as an example. The number of first flip-flops 1232 is 7, and the data is output cyclically. Select the output of two of the first flip-flops as the test bit stream data I and the comparison bit stream data Q respectively. The data content of the test bit stream data I and the comparison bit stream data Q are exactly the same but have fixed relative delay period. In this embodiment, the output data I of the first first flip-flop and the output data Q of the third first flip-flop are respectively taken as the comparison bit stream and the test bit stream, so that the comparison bit stream Delayed from the test bit stream, the relative delay period is two periods. The modulator in the transmitting circuit 124 is a QPSK modulator, and the modulated signal is the serial test signal. Since the pseudo-random bit stream generator 123 is essentially a linear shift register (LSFR) and the two selected signals are separated by two first flip-flops 1232, it can be determined that data I always leads data Q by two hours The pulse cycle and the data sequence of the two are exactly the same.

若已存在一測試位元流,則第3圖中的測試符號產生器122也可以使用測試位元流通過很簡單的串接暫存器(圖中未示)以產生所需之具固定的相對延遲週期的對照位元流,而不使用偽隨機位元流產生器123。If there is already a test bit stream, the test symbol generator 122 in Fig. 3 can also use the test bit stream to generate the required fixed The comparison bitstream relative to the delay period without using the pseudo-random bitstream generator 123.

相對應的,錯誤偵測器144需要將還原測試位元流rdata I與延遲了相對延遲週期的還原對照位元流rdata Q對齊,因此須利用一延遲線(圖中未示)對測試位元流做補償性移位。如第5圖所示,錯誤偵測器144包括一延遲線1442及一互斥或閘1444,此延遲線1442係由二第二正反器所構成。二個第二正反器之間相差的時脈週期即為該相對延遲週期,用以將還原測試位元流rdata I延遲該相對延遲週期。由於在測試符號流產生時選擇了PRBS7的第1個和第3個第一正反器的輸出分別做為測試位元流及對照位元流,所以在接收電路將測試符號流還原後,只需要將還原測試位元流rdata I延遲二個時脈週期,即可將還原測試位元流rdata I及還原對照位元流rdata Q對齊,產生一延遲還原測試位元流。因此,延遲線1442的輸出與輸入之間也設計為相差二個時脈週期。如此一來,當還原測試位元流rdata I通過延遲線1442後,在無傳送錯誤狀況下,便可使還原對照位元流rdata Q及還原測試位元流之相同資料位元對齊。接著再將對齊後的還原測試位元流及還原對照位元流rdata Q傳送到互斥或閘1444,比對兩者是否相同,以得到測試結果。錯誤偵測器144的互斥或閘(XOR)1444亦可由反互斥或閘(XNOR)取代。此外,也能另外根據設計者的需求,額外加入累加器或其他電路,以處理此測試結果。 Correspondingly, the error detector 144 needs to align the restoration test bit stream rdata I with the restoration comparison bit stream rdata Q delayed by a relative delay period, so a delay line (not shown in the figure) must be used to align the test bit streams flow for compensatory shifting. As shown in FIG. 5, the error detector 144 includes a delay line 1442 and a mutually exclusive OR gate 1444, and the delay line 1442 is formed by two second flip-flops. The clock period difference between the two second flip-flops is the relative delay period, and is used to delay the restored test bit stream rdata I by the relative delay period. Since the output of the first flip-flop and the third flip-flop of PRBS7 were selected as the test bit stream and the control bit stream respectively when the test symbol stream was generated, after the receiving circuit restores the test symbol stream, only The restoration test bit stream rdata I needs to be delayed by two clock cycles, and then the restoration test bit stream rdata I and the restoration control bit stream rdata Q can be aligned to generate a delayed restoration test bit stream. Therefore, the output and input of the delay line 1442 are also designed to have a difference of two clock cycles. In this way, when the restoration test bit stream rdata I passes through the delay line 1442, the same data bits of the restoration comparison bit stream rdata Q and the restoration test bit stream can be aligned under the condition of no transmission error. Then, the aligned restored test bit stream and restored comparison bit stream rdata Q are sent to the exclusive OR gate 1444 to compare whether they are the same to obtain the test result. The exclusive OR gate (XOR) 1444 of the error detector 144 can also be replaced by a non-exclusive OR gate (XNOR). In addition, additional accumulators or other circuits can be added to process the test results according to the needs of designers.

本發明中,測試位元流及對照位元流的基本條件是,二者具有相同資料序列及固定的相對延遲週期,因此接收電路142在還原串列測試訊號中的測試位元流及對照位元流時,可同時還原出兩者的相對延遲週期。事實上,選擇PRBS7產生器第1至第6個第一正反器1232中的任二者的輸出都可以滿足此基本條件。In the present invention, the basic condition of the test bit stream and the comparison bit stream is that the two have the same data sequence and a fixed relative delay period, so the receiving circuit 142 restores the test bit stream and the comparison bit stream in the serial test signal. When meta-streaming, the relative delay period of the two can be restored at the same time. In fact, selecting any two outputs of the first to sixth first flip-flops 1232 of the PRBS7 generator can satisfy this basic condition.

此外,為了確保測試覆蓋率(test coverage)與測試品質,除了上述兩個基本條件外,所選擇用以組成測試符號流的測試位元流及對照位元流也須盡量滿足二個條件,包括條件一:測試符號流中,所有的符號(symbol)皆會出現且每一種符號出現的機率幾乎相同,以及條件二:各個符號之間轉換的次數也幾乎相同。如第6圖之星座圖所示,在實施例每個循環共2 7-1=127個符號中,四個符號00、01、11、10出現的次數幾乎相同,其中00出現31次,01、11、10皆出現32次,符合上述條件一。而00、01、11、10之間轉換型態的次數也相同,皆為16次,此外維持同一符號的次數除00為7次外,皆為8次,亦符合上述條件二。因此,當測試訊號經過QPSK調變時,將對照位元流延遲兩個時脈週期可達到最佳的測試效果。若傳送器中的調變器並非QPSK,則對照位元流可不延遲。 In addition, in order to ensure test coverage and test quality, in addition to the above two basic conditions, the test bit stream and control bit stream selected to form the test symbol stream must also meet two conditions as much as possible, including Condition 1: In the test symbol stream, all symbols (symbols) will appear and the probability of occurrence of each symbol is almost the same, and Condition 2: the number of transitions between symbols is also almost the same. As shown in the constellation diagram in Fig. 6, among the total 2 7 -1=127 symbols in each cycle of the embodiment, the four symbols 00, 01, 11, and 10 appear almost the same number of times, of which 00 appears 31 times, and 01 , 11, and 10 all appear 32 times, meeting the above-mentioned condition one. The number of conversions between 00, 01, 11, and 10 is also the same, 16 times. In addition, the number of times of maintaining the same symbol is 8 times except for 00 which is 7 times, which also meets the second condition above. Therefore, when the test signal is modulated by QPSK, the best test effect can be achieved by delaying the control bit stream by two clock cycles. If the modulator in the transmitter is not QPSK, then there is no delay in comparing the bit stream.

本發明可以應用於任何串列傳輸系統的內建測試上,例如PAM4以及QAM。以PAM4 為例,其測試符號流由兩個位元流所組成,故上述實施例可直接應用。再以Blue Tooth 2 所使用的16-QAM為例,其測試符號流可用四組彼此間有固定相對延遲週期的測試位元流構成,例如簡單地選擇偽隨機位元流產生器中四個正反器的輸出產生測試訊號。在接收端只需將所解出的四個還原位元流經適當級數的正反器延遲補償彼此間的固定相對延遲週期就可以進行比對,檢查是否有錯誤碼產生。或如第4圖實施例一樣取兩個正反器的輸出做為對照位元流及測試位元流,再以設計者自訂的編碼電路將其變為四位元的測試符號流。接著,接收端只需將所解出的還原測試符號流以對應的解碼電路還原出還原對照位元流及還原測試位元流,並以適當級數的正反器補償相對延遲週期,就可以進行比對,檢查是否有誤碼產生。The present invention can be applied to the built-in test of any serial transmission system, such as PAM4 and QAM. Taking PAM4 as an example, its test symbol stream is composed of two bit streams, so the above embodiments can be directly applied. Taking the 16-QAM used by Blue Tooth 2 as an example, its test symbol stream can be composed of four sets of test bit streams with fixed relative delay periods between them, for example, simply select four positive The output of the inverter generates a test signal. At the receiving end, it is only necessary to compare the decoded four restored bits through an appropriate number of flip-flops to compensate for the fixed relative delay periods between each other, and check whether there is an error code. Or take the outputs of the two flip-flops as the control bit stream and the test bit stream as in the embodiment in FIG. 4, and then convert it into a four-bit test symbol stream with a coding circuit customized by the designer. Then, the receiving end only needs to restore the restored test symbol stream to the corresponding decoding circuit to restore the restored control bit stream and the restored test bit stream, and use an appropriate number of flip-flops to compensate for the relative delay period. Compare and check whether there is any bit error.

本發明也可以應用於測試每符號單位元的串列傳輸系統。只需要穿插對照位元流與測試位元流產生一單一位元測試符號流,輸入具內建測試功能的待測串列傳輸系統即可。The present invention can also be applied to serial transmission systems for testing units per symbol. It is only necessary to intersperse the control bit stream and the test bit stream to generate a single bit test symbol stream, and input it into the serial transmission system under test with built-in test function.

如第7a圖至第c圖所示,其為測試符號產生器產生單位元測試符號流之實施例示意圖。每個測試位元流T[i]和對照位元流G[i]的第i位元都相同。第7a圖為將測試位元流T[i]和延遲兩個週期之對照位元流G[i-2]交錯合併成一單位元測試符號流。第7b圖中,測試位元流T[i] 的連續二個位元和延遲兩個週期之對照位元流G[i-2] 連續的二個位元交錯排列,合併成一單位元測試符號流。第7c圖中則是測試位元流T[i] 連續m個位元和延遲兩個週期之對照位元流G[i-2] 連續m個位元交錯排列,合併成一單位元測試符號流。此實施例適用於二相位偏移調變 (BPSK)、不歸零編碼(NRZ)、二頻率偏移調變(BFSK)等。As shown in Fig. 7a to Fig. c, it is a schematic diagram of an embodiment of the test symbol generator generating a unit test symbol stream. The ith bit of each test bitstream T[i] and control bitstream G[i] are the same. In Fig. 7a, the test bit stream T[i] and the reference bit stream G[i-2] delayed by two cycles are interleaved and merged into a unit test symbol stream. In Figure 7b, two consecutive bits of the test bit stream T[i] and two consecutive bits of the control bit stream G[i-2] delayed by two periods are interleaved and combined into a unit test symbol flow. In Figure 7c, the test bit stream T[i] has m consecutive bits and the control bit stream G[i-2] with two cycles of delay. The m consecutive bits are interleaved and merged into a unit test symbol stream . This embodiment is applicable to two-phase shift modulation (BPSK), non-return-to-zero coding (NRZ), two-frequency shift modulation (BFSK), etc.

第8a圖為產生第7a圖之單位元測試符號流之方塊圖,其中,測試符號產生器122的時脈頻率只有符號時脈CLK ref頻率的一半,且仍然輸出測試位元流T[i]和延遲兩個其時脈週期之對照位元流G[i-2],而測試符號產生器122中則包括一多工器125。多工器125每隔1/2符號時脈週期便從測試位元流T[i]和對照位元流G[i]中取一個位元,便可產生如第7a圖所示之單位元測試符號流,並送交傳送電路產生串列測試訊號。第8b圖為第8a圖之時序圖。 Figure 8a is a block diagram for generating the unit test symbol stream in Figure 7a, wherein the clock frequency of the test symbol generator 122 is only half of the frequency of the symbol clock CLK ref , and still outputs the test bit stream T[i] and the comparison bit stream G[i−2] delayed by two clock cycles, and the test symbol generator 122 includes a multiplexer 125 . The multiplexer 125 takes a bit from the test bit stream T[i] and the control bit stream G[i] every 1/2 symbol clock period, and can generate the unit cell as shown in Fig. 7a The test symbol stream is sent to the transmission circuit to generate a serial test signal. Figure 8b is the timing diagram of Figure 8a.

第9圖為測試符號產生器產生大於等於三位元的測試符號流之實施例示意圖。其中測試位元流data 1的資料為T[i],兩個對照位元流data 2、data 3的資料分別為G[i]、A[i],且T[i] 、 G[i]、與A[i]三位元流相同。在此實施例中,第一對照位元流data 2延遲二個時脈週期,第二對照位元流data 3延遲三個時脈週期。因此在第四個時脈週期可合併出測試符號流的第一個符號,其為由T[3]、G[1]、A[0]所組成的三位元訊號,可為000、001、010、011、100、101、110、111等八種符號其中之一。 FIG. 9 is a schematic diagram of an embodiment in which the test symbol generator generates a test symbol stream greater than or equal to three bits. The data of the test bit stream data 1 is T[i], the data of the two control bit streams data 2 and data 3 are G[i] and A[i] respectively, and T[i] and G[i] , same as A[i] three-bit stream. In this embodiment, the first comparison bit stream data 2 is delayed by two clock cycles, and the second comparison bit stream data 3 is delayed by three clock cycles. Therefore, the first symbol of the test symbol stream can be combined in the fourth clock cycle, which is a three-bit signal composed of T[3], G[1], A[0], which can be 000, 001 , 010, 011, 100, 101, 110, 111 etc. one of the eight symbols.

本發明具有以下優點: 1.    藉由將測試位元流與同一測試位元流延遲固定週期所產生之對照位元流兩者合成為一個測試符號流一起傳送,使接收端解調變後所還原的還原測試符號流中的還原測試位元流與還原對照位元流之間就不會產生不可預測的時間偏移,只需將所還原之還原測試符號流中之還原測試位元流延遲該固定週期後,再與還原對照位元流相互比較,即可知道是否有錯誤碼產生。如此便能大幅簡化對齊還原測試位元流與對照位元流所需的電路。 2.    所需電路極少,降低晶片成本。常見之BIST方法需要在待測串列傳輸系統的接收端內加裝對照位元流產生器與對齊還原測試位元流與對照位元流所需的電路,使晶片面積大幅上升,提高晶片成本,本發明則不需要在接收端設置測試符號產生器。 3.    傳送端之測試符號產生電路不需要與接收端位於同一個晶片內,故允許系統層級現場內建測試。 4.    能夠測試通道損失與接收端前端電路所造成的錯誤。若將測試符號產生器獨立於待測晶片之外,或利用回送(loopback),即可使測試符號流經過實際的傳輸環境,使測試條件設定更加完整、務實,測試結果也更可靠。 5.    全數位化。錯誤偵測器可由全數位電路構成,不需複製接收端內原有的類比解調電路,降低不匹配元件造成的影響,提高內建測試電路本身的穩健性(robustness)。 6.    未更動待測電路與環境。內建測試電路不影響待測串列傳輸系統的性能,因此可實現全速測試(at-speed tests),測試待測串列傳輸系統的實際性能。 The present invention has the following advantages: 1. By synthesizing the test bit stream and the control bit stream generated by the same test bit stream delayed by a fixed period into a test symbol stream and transmitting them together, the receiver demodulates and restores the restored test symbol stream There will be no unpredictable time offset between the restored test bit stream in the restored test symbol stream and the restored control bit stream, only the restored test bit stream in the restored restored test symbol stream is delayed by the fixed period, and then By comparing with the restored control bit stream, it is possible to know whether there is an error code. This greatly simplifies the circuitry required to align and restore the test bitstream and the control bitstream. 2. Very few circuits are required, reducing chip cost. The common BIST method needs to install a control bit stream generator and circuits required for aligning and restoring the test bit stream and the control bit stream in the receiving end of the serial transmission system to be tested, which greatly increases the chip area and increases the cost of the chip , the present invention does not need to set a test symbol generator at the receiving end. 3. The test symbol generation circuit at the transmitting end does not need to be located in the same chip as the receiving end, so it allows on-site built-in testing at the system level. 4. Able to test channel loss and errors caused by the front-end circuit at the receiving end. If the test symbol generator is independent from the chip to be tested, or loopback is used, the test symbol stream can pass through the actual transmission environment, making the test condition setting more complete and pragmatic, and the test result more reliable. 5. Full digitization. The error detector can be composed of all digital circuits, without duplicating the original analog demodulation circuit in the receiving end, reducing the influence caused by mismatched components, and improving the robustness of the built-in test circuit itself. 6. The circuit and environment under test are not changed. The built-in test circuit does not affect the performance of the serial transmission system under test, so at-speed tests can be realized to test the actual performance of the serial transmission system under test.

綜上所述,本發明所提供之具內建測試功能之串列傳輸系統係在傳送端產生具固定相對延遲週期之多個對照位元流及測試位元流,不增加任何硬體成本。而在接收端的錯誤偵測器僅需少數正反器與互斥或閘數位電路,所需面積極小,故具備低成本、低功耗與強健性的特色。此外,本發明容許接收端與傳送端不位在同一晶片,不僅能涵蓋傳送端的輸出驅動器(output driver)、傳輸通道、與接收端類比前端電路的響應,更允許系統層級現場測試原位(in-situ field tests)內建測試。因此,本發明在使用上相較其他串列傳輸系統的內建測試功能更為務實,除可以適用於更大規模的晶片量產之測試外,特別適合於測試需要高可靠度的系統,如車用電子、航空電子、衛星通訊系統等。To sum up, the serial transmission system with built-in test function provided by the present invention generates a plurality of comparison bit streams and test bit streams with fixed relative delay periods at the transmission end without increasing any hardware cost. The error detector at the receiving end only needs a few flip-flops and exclusive OR gate digital circuits, and the required area is very small, so it has the characteristics of low cost, low power consumption and robustness. In addition, the present invention allows the receiving end and the transmitting end to not be located on the same chip, not only covering the output driver (output driver) of the transmitting end, the transmission channel, and the response of the analog front-end circuit of the receiving end, but also allowing the system level to test the in-situ (in -situ field tests) built-in tests. Therefore, the present invention is more practical in use than the built-in test functions of other serial transmission systems. In addition to being applicable to the test of larger-scale chip mass production, it is especially suitable for testing systems that require high reliability, such as Automotive electronics, avionics, satellite communication systems, etc.

唯以上所述者,僅為本發明之較佳實施例而已,並非用來限定本發明實施之範圍。故即凡依本發明申請範圍所述之特徵及精神所為之均等變化或修飾,均應包括於本發明之申請專利範圍內。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the scope of the present invention. Therefore, all equivalent changes or modifications based on the features and spirit described in the scope of the application of the present invention shall be included in the scope of the patent application of the present invention.

10:具內建測試功能之串列傳輸系統 12:傳送端 122:測試符號產生器 123:偽隨機位元流產生器 1232:第一正反器 124:傳送電路 125:多工器 14:接收端 142:接收電路 144:錯誤偵測器 1442:延遲線 16:傳輸通道 22:傳送端 222:測試符號產生器 224:傳送電路 24:接收端 242:接收電路 244:測試符號產生器 246:錯誤偵測器 10: Serial transmission system with built-in test function 12:Transmitter 122: Test symbol generator 123: Pseudo-random bit stream generator 1232: The first flip-flop 124: transmission circuit 125: multiplexer 14: Receiver 142: Receiving circuit 144:Error detector 1442: delay line 16: Transmission channel 22: Transmitter 222: Test symbol generator 224: transmission circuit 24: Receiver 242: Receiving circuit 244: Test symbol generator 246: Error detector

第1圖為先前技術中內建測試功能之串列傳輸系統之方塊圖。 第2A圖為本發明具內建測試功能之串列傳輸系統之方塊圖。 第2B圖為本發明具內建測試功能之串列傳輸系統之一實施例之方塊圖。 第3圖為本發明合併測試位元流和對照位元流構成測試符號流之示意圖。 第4圖為本發明利用偽隨機位元流產生器產生測試位元流和對照位元流之一實施例之示意圖。 第5圖為本發明錯誤偵測器之一實施例之邏輯電路圖。 第6圖為應用本發明之系統及方法進行實施例測試時,測試符號產生器中資料轉態之狀態機圖(state machine diagram)。 第7a圖至第7c圖為測試符號產生器產生一位元測試符號流之實施例。 第8a圖為產生第7a圖之測試符號流之實施例方塊圖,第8b圖為第8a圖之時序圖。 第9圖為測試符號產生器產生大於三位元的測試符號流之實施例。 FIG. 1 is a block diagram of a serial transmission system with a built-in test function in the prior art. FIG. 2A is a block diagram of the serial transmission system with built-in test function of the present invention. FIG. 2B is a block diagram of an embodiment of the serial transmission system with built-in test function of the present invention. Fig. 3 is a schematic diagram of the present invention combining the test bit stream and the control bit stream to form a test symbol stream. FIG. 4 is a schematic diagram of an embodiment of the present invention using a pseudo-random bit stream generator to generate a test bit stream and a control bit stream. Fig. 5 is a logic circuit diagram of an embodiment of the error detector of the present invention. Fig. 6 is a state machine diagram of data transitions in the test symbol generator when the system and method of the present invention are used for the embodiment test. Figures 7a to 7c are examples of the test symbol generator generating a bit test symbol stream. Fig. 8a is a block diagram of an embodiment of generating the test symbol flow in Fig. 7a, and Fig. 8b is a timing diagram of Fig. 8a. FIG. 9 is an embodiment of a test symbol generator generating a test symbol stream larger than three bits.

10:具內建測試功能之串列傳輸系統 10: Serial transmission system with built-in test function

12:傳送端 12:Transmitter

122:測試符號產生器 122: Test symbol generator

124:傳送電路 124: transmission circuit

14:接收端 14: Receiver

142:接收電路 142: Receiving circuit

144:錯誤偵測器 144:Error detector

16:傳輸通道 16: Transmission channel

Claims (11)

一種具內建測試功能之串列傳輸系統,包括:一傳送端,包括:一測試符號產生器,產生一測試符號流,該測試符號流由一測試位元流及至少一對照位元流所組成,該測試位元流及該至少一對照位元流具有相同資料序列;以及一傳送電路,將該測試符號流調變成一串列測試訊號後輸出;以及一接收端,通過一傳輸通道與該傳送端訊號連接,接收該串列測試訊號,該接收端包括:一接收電路,將該串列測試訊號中之該測試符號流還原成對應於該測試位元流之一還原測試位元流及對應於該至少一對照位元流之至少一還原對照位元流;以及一錯誤偵測器,比較該還原測試位元流及該還原對照位元流是否有一錯誤碼產生,得到一測試結果。 A serial transmission system with a built-in test function, comprising: a transmitting end, including: a test symbol generator, which generates a test symbol stream, and the test symbol stream is formed by a test bit stream and at least one comparison bit stream Composition, the test bit stream and the at least one comparison bit stream have the same data sequence; and a transmission circuit, which modulates the test symbol stream into a serial test signal and outputs it; and a receiving end, through a transmission channel and The transmitting end is signal-connected to receive the serial test signal, and the receiving end includes: a receiving circuit for restoring the test symbol stream in the serial test signal into a restored test bit stream corresponding to the test bit stream and at least one restoration control bit stream corresponding to the at least one comparison bit stream; and an error detector for comparing whether an error code is generated between the restoration test bit stream and the restoration comparison bit stream to obtain a test result . 如請求項1所述之具內建測試功能之串列傳輸系統,其中該測試位元流及該至少一對照位元流具有固定的一相對延遲週期,該接收電路還原該還原測試位元流與該至少一還原對照位元流時,同時還原出該相對延遲週期。 The serial transmission system with built-in test function as described in Claim 1, wherein the test bit stream and the at least one control bit stream have a fixed relative delay period, and the receiving circuit restores the restored test bit stream When restoring the at least one comparison bit stream, the relative delay period is simultaneously restored. 如請求項2所述之具內建測試功能之串列傳輸系統,其中該測試符號產生器包括: 一偽隨機位元流(pseudo-random binary sequence,PRBS)產生器,用以產生該測試位元流及具有該相對延遲週期的該至少一對照位元流。 The serial transmission system with built-in test function as described in claim item 2, wherein the test symbol generator includes: A pseudo-random binary sequence (PRBS) generator is used to generate the test bit stream and the at least one control bit stream with the relative delay period. 如請求項3所述之具內建測試功能之串列傳輸系統,其中該偽隨機位元流產生器包括複數第一正反器,選擇其中之至少二個第一正反器之輸出分別做為該至少一對照位元流及該測試位元流,使該至少一對照位元流比該測試位元流延遲該相對延遲週期。 The serial transmission system with built-in test function as described in claim 3, wherein the pseudo-random bit stream generator includes a plurality of first flip-flops, and the outputs of at least two of the first flip-flops are selected as For the at least one control bitstream and the test bitstream, delaying the at least one control bitstream relative to the test bitstream by the relative delay period. 如請求項4所述之具內建測試功能之串列傳輸系統,其中該二第一正反器之輸出所組成的該測試符號流中,所有的符號(symbol)皆會出現,且每一種符號出現的機率幾乎相同,各個符號之間轉換的次數也幾乎相同。 As the serial transmission system with built-in test function described in claim 4, in the test symbol stream formed by the output of the two first flip-flops, all symbols (symbol) will appear, and each The symbols appear almost equally often, and the number of transitions between each symbol is almost the same. 如請求項4所述之具內建測試功能之串列傳輸系統,其中該錯誤偵測器包括一延遲線,用以將該還原測試位元流延遲該相對延遲週期,產生一延遲還原測試位元流,該延遲還原測試位元流與該至少一還原對照位元流在無錯誤狀況下之相同資料位元一一對齊。 The serial transmission system with built-in test function as described in claim item 4, wherein the error detector includes a delay line for delaying the recovery test bit stream by the relative delay period to generate a delayed recovery test bit In the bit stream, the delayed recovery test bit stream is aligned one by one with the same data bits of the at least one recovery control bit stream under error-free conditions. 如請求項1或6所述之具內建測試功能之串列傳輸系統,其中該錯誤偵測器更包括一互斥或閘(XOR gate),接收該至少一還原對照位元流及該延遲還原測試位元流並進行比對,得到該測試結果。 The serial transmission system with built-in test function as described in claim 1 or 6, wherein the error detector further includes an exclusive OR gate (XOR gate), receiving the at least one restoration control bit stream and the delay The test bit stream is restored and compared to obtain the test result. 如請求項1所述之具內建測試功能之串列傳輸系統,其中該傳送端及該接收端位於不同之測試晶片中。 The serial transmission system with built-in test function as described in claim 1, wherein the transmitting end and the receiving end are located in different test chips. 如請求項1所述之具內建測試功能之串列傳輸系統,其中該測試符號產生器產生之該測試符號流的符號為單位元時,該至少一對照 位元流之數量為一組,該測試符號流係由該測試位元流和該組對照位元流以交錯合併的方式產生。 The serial transmission system with built-in test function as described in claim item 1, when the symbols of the test symbol stream generated by the test symbol generator are units, the at least one comparison The number of bit streams is one group, and the test symbol stream is generated by interleaving and merging the test bit stream and the set of control bit streams. 如請求項9所述之具內建測試功能之串列傳輸系統,其中該測試符號產生器中包括一多工器,用以將該測試位元流和該組對照位元流交錯合併以產生單位元之該測試符號流。 The serial transmission system with built-in test function as described in claim item 9, wherein the test symbol generator includes a multiplexer for interleaving and combining the test bit stream and the set of comparison bit streams to generate Unity of the test symbol stream. 如請求項1所述之具內建測試功能之串列傳輸系統,其中該測試符號產生器產生之該測試符號流的符號為多位元符號,且每一該多位元符號的位元數大於或等於三位元時,該至少一對照位元流之數量為至少二組,該測試符號流係由該測試位元流和該至少二組對照位元流所組成。 The serial transmission system with built-in test function as described in claim 1, wherein the symbols of the test symbol stream produced by the test symbol generator are multi-bit symbols, and the number of bits of each multi-bit symbol When it is greater than or equal to three bits, the quantity of the at least one comparison bit stream is at least two sets, and the test symbol stream is composed of the test bit stream and the at least two sets of comparison bit streams.
TW110132821A 2021-09-03 2021-09-03 Serial link system with an embedded test function TWI795901B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW110132821A TWI795901B (en) 2021-09-03 2021-09-03 Serial link system with an embedded test function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW110132821A TWI795901B (en) 2021-09-03 2021-09-03 Serial link system with an embedded test function

Publications (2)

Publication Number Publication Date
TWI795901B true TWI795901B (en) 2023-03-11
TW202311955A TW202311955A (en) 2023-03-16

Family

ID=86690559

Family Applications (1)

Application Number Title Priority Date Filing Date
TW110132821A TWI795901B (en) 2021-09-03 2021-09-03 Serial link system with an embedded test function

Country Status (1)

Country Link
TW (1) TWI795901B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030189903A1 (en) * 2002-04-09 2003-10-09 International Business Machines Corporation System and method for sequential testing of high speed serial link core
US20050193290A1 (en) * 2004-02-25 2005-09-01 Cho James B. Built-in self test method and apparatus for jitter transfer, jitter tolerance, and FIFO data buffer
TW201220041A (en) * 2010-11-08 2012-05-16 Moxa Inc Active monitoring system for serial monitoring device and method thereof
TWI444021B (en) * 2007-09-17 2014-07-01 Htc Corp Method for decrypting serial transmission signal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030189903A1 (en) * 2002-04-09 2003-10-09 International Business Machines Corporation System and method for sequential testing of high speed serial link core
US20050193290A1 (en) * 2004-02-25 2005-09-01 Cho James B. Built-in self test method and apparatus for jitter transfer, jitter tolerance, and FIFO data buffer
TWI444021B (en) * 2007-09-17 2014-07-01 Htc Corp Method for decrypting serial transmission signal
TW201220041A (en) * 2010-11-08 2012-05-16 Moxa Inc Active monitoring system for serial monitoring device and method thereof

Also Published As

Publication number Publication date
TW202311955A (en) 2023-03-16

Similar Documents

Publication Publication Date Title
US7346819B2 (en) Through-core self-test with multiple loopbacks
US6201829B1 (en) Serial/parallel GHZ transceiver with pseudo-random built in self test pattern generator
US8050317B2 (en) Receiver with equalizer and method of operation
US6425107B1 (en) Data encoder/decoder for a high speed serial link
US8005130B2 (en) Transmitter and receiver using forward clock overlaying link information
US9094181B2 (en) Communication system, data transmitter, and data receiver capable of detecting incorrect receipt of data
CN101366181B (en) High speed transmission system
US7174484B2 (en) Data transmission system
JPS5864850A (en) High speed deciding device for end of binary data sequence
US10063305B2 (en) Communications link performance analyzer that accommodates forward error correction
US20050078018A1 (en) Dual phase pulse modulation decoder circuit
US7257169B2 (en) Deserializer
US20140355658A1 (en) Modal PAM2/PAM4 Divide By N (Div-N) Automatic Correlation Engine (ACE) For A Receiver
TWI795901B (en) Serial link system with an embedded test function
US7251304B2 (en) Bit synchronizing circuit configured to obviate errors from meta-stability
US20030110434A1 (en) Serial communications system and method
US20050259772A1 (en) Circuit arrangement and method to provide error detection for multi-level analog signals, including 3-level pulse amplitude modulation (PAM-3) signals
US6263465B1 (en) Error detection and correction in systems receiving NRZ signals from transmission of RZ signals
US7894562B2 (en) Data message sync pattern
US7058881B2 (en) Distributed 4-bits diagonal interleaved parity (DIP4) checker
US20220014404A1 (en) Phase Modulated Data Link for Low-Swing Wireline Applications
US4285062A (en) Digital multi-level multi-phase modulation communication system
US5510786A (en) CMI encoder circuit
TWI835597B (en) Falling-edge modulation signal receiver and falling-edge modulation signal sampling method
US7305023B2 (en) Receivers for cycle encoded signals