TWI433513B - System and method for generating test patterns of baseline wander - Google Patents

System and method for generating test patterns of baseline wander Download PDF

Info

Publication number
TWI433513B
TWI433513B TW99117497A TW99117497A TWI433513B TW I433513 B TWI433513 B TW I433513B TW 99117497 A TW99117497 A TW 99117497A TW 99117497 A TW99117497 A TW 99117497A TW I433513 B TWI433513 B TW I433513B
Authority
TW
Taiwan
Prior art keywords
test pattern
generating
bit
baseline
roaming
Prior art date
Application number
TW99117497A
Other languages
Chinese (zh)
Other versions
TW201145917A (en
Inventor
Tien Ju Tsai
Original Assignee
Himax Media Solutions Inc
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 Himax Media Solutions Inc filed Critical Himax Media Solutions Inc
Priority to TW99117497A priority Critical patent/TWI433513B/en
Publication of TW201145917A publication Critical patent/TW201145917A/en
Application granted granted Critical
Publication of TWI433513B publication Critical patent/TWI433513B/en

Links

Landscapes

  • Maintenance And Management Of Digital Transmission (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Description

基準線漫遊之測試型樣的產生系統及方法System and method for generating test pattern of baseline roaming

本發明係有關電腦網路,特別是關於一種基準線漫遊(baseline wander)之最壞情況測試型樣(worst-case test pattern)的產生方法及系統。The present invention relates to computer networks, and more particularly to a method and system for generating a worst-case test pattern for a baseline wander.

乙太網路(Ethernet)為一種基於封包的電腦網路,普遍用以建構區域網路。快速乙太網路(fast Ethernet)或稱為100BASE-TX的額定資料傳送速率每秒可達100百萬位元。如第一圖所示之快速乙太網路,資料經由變壓器1A、1B和非屏蔽雙絞線(unshielded twisted-pair, UTP)2而傳送於發射器3和接收器4之間。然而,變壓器3形同一高通濾波器,其會衰減或阻擋傳送信號的直流成分,因而造成基準線漫遊(baseline wander)效應。第二A圖及第二B圖分別例示位於發射端之變壓器1A及接收端之變壓器1B的信號波形。觀察圖式後可得知,位於接收端之信號波形的基準線受到基準線漫遊效應的影響。即使於發射器使用混亂器(scrambler)以分散功率頻譜,仍無法有效解決基準線漫遊問題。當傳送封包與混亂器的輸出具有某種程度的相關性(correlation)時,通常會產生基準線漫遊。Ethernet is a packet-based computer network that is commonly used to construct regional networks. Fast Ethernet or 100BASE-TX has a nominal data transfer rate of up to 100 megabits per second. As shown in the first diagram of the fast Ethernet, data is transmitted between the transmitter 3 and the receiver 4 via transformers 1A, 1B and unshielded twisted-pair (UTP) 2. However, the transformer 3 is shaped like a high pass filter that attenuates or blocks the DC component of the transmitted signal, thereby causing a baseline wander effect. The second A diagram and the second B diagram illustrate signal waveforms of the transformer 1A at the transmitting end and the transformer 1B at the receiving end, respectively. After observing the pattern, it can be known that the reference line of the signal waveform at the receiving end is affected by the baseline roaming effect. Even if the transmitter uses a scrambler to spread the power spectrum, the baseline roaming problem cannot be effectively solved. Baseline roaming typically occurs when the transport packet has some degree of correlation with the output of the chaos.



為了能客觀地測試接收器對於基準線效應的效能,美國國家標準協會於ANSI 263-1995 附件(Annex)A.2中規範一種最壞情況測試型樣,一般稱為殺手(killer)封包。第三圖顯示使用殺手封包的實施態樣。規範之殺手封包先預存於記憶體裝置,例如唯讀記憶體(ROM)30,其大小至少為2047半位元組(nibble)。根據規範,殺手封包產生器31必須等待發射器32之混亂器狀態符合一預設狀態(Scram_State)0x79D。於偵測到預設狀態後,殺手封包產生器31存取唯讀記憶體30以得到規範定義之殺手封包,並將其傳送至發射器32。


In order to objectively test the receiver's performance against the baseline effect, the American National Standards Institute specifies a worst-case test pattern in ANSI 263-1995 Annex (Annex) A.2, commonly referred to as a killer package. The third figure shows an implementation of the use of a killer packet. The canonical killer packet is pre-stored in a memory device, such as read only memory (ROM) 30, which is at least 2047 nibble in size. According to the specification, the killer packet generator 31 must wait for the chaotic state of the transmitter 32 to conform to a preset state (Scram_State) 0x79D. After detecting the preset state, the killer packet generator 31 accesses the read-only memory 30 to obtain the killer packet defined by the specification and transmits it to the transmitter 32.



由於傳送殺手封包的傳統系統需要使用記憶體裝置,例如唯讀記憶體30,以預存殺手封包,此將造成成本、功率消耗及電路面積的增加。再者,殺手封包產生器31必須等到預設狀態0x79D之後才能傳送殺手封包,因而造成時間的閒置,其可達82微秒之長。


Since conventional systems that transmit killer packets require the use of memory devices, such as read-only memory 30, to pre-store killer packets, this will result in increased cost, power consumption, and circuit area. Moreover, the killer packet generator 31 must wait until the preset state 0x79D to transmit the killer packet, thus causing the time to be idle, which can be as long as 82 microseconds.



鑑於傳統系統無法有效解決基準線漫遊效應,因此亟需提出一種新穎機制,用以有效地及經濟地產生基準線漫遊之最壞情況測試型樣。


In view of the inability of traditional systems to effectively address baseline roaming effects, a novel mechanism is needed to effectively and economically generate worst-case test patterns for baseline roaming.

本發明實施例的目的之一在於提出一種基準線漫遊之測試型樣的產生系統及方法,其能即時產生測試型樣而不需使用記憶體裝置以儲存測試型樣,因而不需閒置時間(latency)。One of the objects of the embodiments of the present invention is to provide a system and method for generating a test pattern of reference line roaming, which can instantly generate a test pattern without using a memory device to store a test pattern, and thus does not require idle time ( Latency).



根據本發明實施例所揭露之基準線漫遊測試型樣的產生系統,混亂器產生混亂器位元,而多階編碼器於多個狀態當中循環輸出。測試封包產生器根據混亂器的狀態和多階編碼器的狀態,以產生測試型樣。


According to the generation system of the reference line roaming test pattern disclosed in the embodiment of the present invention, the chaos device generates a chaotic bit, and the multi-level encoder cyclically outputs the plurality of states. The test packet generator generates a test pattern based on the state of the chaos and the state of the multi-level encoder.



根據本發明另一實施例所揭露之基準線漫遊測試型樣的產生方法,首先決定多階編碼器之循環輸出所需的步級,用以達到一預期位準。接著,根據決定步級和混亂器之狀態,以產生測試型樣。


According to another embodiment of the present invention, a method for generating a baseline roaming test pattern first determines a step required for a cyclic output of a multi-stage encoder to achieve an expected level. Next, the test pattern is generated according to the state of the decision step and the chaos.

第四圖方塊圖顯示本發明實施例之基準線漫遊之測試型樣,特別是最壞情況測試型樣,的傳送系統。雖然本實施例以100BASE-TX或快速乙太網路(fast Ethernet)作為例示,然而本發明也可適用於其他區域網路,例如高速(gigabit)乙太網路,甚至無線區域網路。The block diagram of the fourth figure shows a test system for the reference line roaming of the embodiment of the present invention, particularly a worst case test type. Although the present embodiment is exemplified by 100BASE-TX or fast Ethernet, the present invention is also applicable to other local area networks, such as a gigabit Ethernet network or even a wireless local area network.



根據本實施例特徵之一,測試封包產生器10經由資料線TXD產生基準線漫遊之最壞情況封包,或稱為殺手封包。在本實施例中,每一封包包含一半位元組,或四位元,其受控於致能信號TX_EN。一般來說,測試封包產生器10係根據發射器12之混亂器124狀態Scram_State及多階傳輸(例如三階傳輸,multi-level transmit-3, MLT3)編碼器126狀態MLT3_State以產生最壞情況封包。再者,測試封包產生器10接收請求信號KP_Xmit_Req以啟動測試封包產生器10,並接收預期信號KP_Xmit_Lvl以指示基準線漫遊的預期直流。在本實施例中,預期信號KP_Xmit_Lvl指示以下直流之一:”+1”、”0”、”-1”。例如,當預期信號KP_Xmit_Lvl指示直流”+1”時,則MLT3編碼器126的輸出位準MLT3_Lvl將會趨向位準”+1”。在其他實施例中,基準線漫遊的預期直流可以預先定義於測試封包產生器10,因而可以省略預期信號KP_Xmit_Lvl的使用。關於最壞情況封包的產生,將於以下篇幅詳細說明。


According to one of the features of the embodiment, the test packet generator 10 generates a worst case packet of the baseline roaming, or a killer packet, via the data line TXD. In this embodiment, each packet contains half a byte, or four bits, which is controlled by the enable signal TX_EN. In general, the test packet generator 10 generates a worst case packet based on the chaos 124 state Scram_State of the transmitter 12 and the multi-level transmission (eg, multi-level transmit-3, MLT3) encoder 126 state MLT3_State. . Furthermore, the test packet generator 10 receives the request signal KP_Xmit_Req to start the test packet generator 10 and receives the expected signal KP_Xmit_Lvl to indicate the expected DC of the baseline roam. In the present embodiment, the expected signal KP_Xmit_Lv1 indicates one of the following DCs: "+1", "0", "-1". For example, when the expected signal KP_Xmit_Lv1 indicates DC "+1", then the output level MLT3_Lvl of the MLT3 encoder 126 will tend to level "+1". In other embodiments, the expected DC of the baseline roaming may be predefined in the test packet generator 10 so that the use of the expected signal KP_Xmit_Lvl may be omitted. The generation of the worst case packet will be described in detail in the following pages.



對於每一產生之半位元組(nibble)封包,首先以四位元/五位元(4B/5B)編碼器120進行線編碼(line-code),其將四位元群組映射至五位元群組。每一經編碼之群組所多出的一位元,可提供給接收器作為時脈過渡之用。四位元資料映射至五位元資料可藉由查表(LUT)來執行。第五A圖例示4B/5B編碼器120的查表LUT_4B5B。第五B圖則例示4B/5B解碼器之逆查表LUT_5B4B,其將五位元資料逆轉換為四位元資料。值得注意的是,逆查表LUT_5B4B之輸出的最低四位元相應於查表LUT_4B5B的輸入,且逆查表LUT_5B4B的一些輸出係為無效的,其記為”11111”。


For each generated nibble packet, a line-code is first performed with a four-bit/five-bit (4B/5B) encoder 120, which maps the four-bit group to five Bit group. One extra element of each encoded group can be provided to the receiver for clock transition. The mapping of four-bit data to five-bit data can be performed by a look-up table (LUT). The fifth A diagram illustrates the lookup table LUT_4B5B of the 4B/5B encoder 120. The fifth B diagram illustrates a lookup table LUT_5B4B of the 4B/5B decoder, which inversely converts the five-bit data into four-bit data. It is worth noting that the lowest four bits of the output of the lookup table LUT_5B4B correspond to the input of the lookup table LUT_4B5B, and some of the output of the lookup table LUT_5B4B is invalid, which is denoted as "11111".



發射器12還包含混亂器124或隨機產生器,其產生隨機序列或混亂位元Scram_Bit,用以分散傳送資料的功率頻譜。第六圖例示一混亂器124,其包含十一個延遲元件1240,因此總共具有2047(=211 -1)種混亂狀態Scram_State。


Transmitter 12 also includes a chaser 124 or a random generator that generates a random sequence or chaotic bit Scram_Bit for distributing the power spectrum of the transmitted data. The sixth diagram illustrates a chaser 124 that includes eleven delay elements 1240, thus having a total of 2047 (= 2 11 -1) chaotic states Scram_State.



接著,經編碼之五位元(5B)資料藉由並列至串列(P/S)轉換器122,從並列形式轉換為串列形式。接著,自P/S轉換器122輸出之串列位元流和混亂位元Scram_Bit由邏輯互斥或(XOR)閘125處理。邏輯互斥或(XOR)閘125的輸出MLT3_In則作為MLT3編碼器126的輸入。在本實施例中,MLT3編碼器126的輸出MLT3_Lvl依以下順序循環輸出:”+0”(狀態0)、”+1”(狀態1)、”+0”(狀態2)、”-1”(狀態3)。當輸入MLT3_In為”1”時,則輸出MLT3_Lvl進入下一狀態;當輸入MLT3_In為”0”時,則輸出MLT3_Lvl停留於原狀態。


The encoded five-bit (5B) data is then converted from a side-by-side format to a serial form by juxtaposed to a serial (P/S) converter 122. Next, the serial bit stream and the chaotic bit Scram_Bit output from the P/S converter 122 are processed by a logical exclusive OR (XOR) gate 125. The output MLT3_In of the logical exclusive OR (XOR) gate 125 is then the input to the MLT3 encoder 126. In the present embodiment, the output MLT3_Lvl of the MLT3 encoder 126 is cyclically output in the following order: "+0" (state 0), "+1" (state 1), "+0" (state 2), "-1" (state 3). When the input MLT3_In is "1", the output MLT3_Lv1 enters the next state; when the input MLT3_In is "0", the output MLT3_Lvl stays in the original state.



接下來,MLT3編碼器126的輸出MLT3_Lvl藉由數位至類比(D/A)轉換器127,從數位形式轉換為類比形式。接著,D/A轉換器127所輸出之類比資料信號的波形藉由整形濾波器128將其平滑化。最後,資料信號藉由線驅動器(line driver)129予以驅動,而經驅動之輸出MDI_TX則經由非屏蔽雙絞線(UTP)纜線傳送至接收器。熟悉該技術者可修飾、取代或新增上述發射器12的各組成電路。


Next, the output MLT3_Lvl of the MLT3 encoder 126 is converted from a digital form to an analog form by a digital to analog (D/A) converter 127. Next, the waveform of the analog data signal output from the D/A converter 127 is smoothed by the shaping filter 128. Finally, the data signal is driven by a line driver 129, and the driven output MDI_TX is transmitted to the receiver via an unshielded twisted pair (UTP) cable. Those skilled in the art can modify, replace or add to the various constituent circuits of the above-described transmitter 12.



第八A圖流程圖顯示本發明實施例之最壞情況封包或殺手封包的產生方法。第八B圖則例示第八A圖的詳細流程圖。該方法之實施可使用硬體、軟體、韌體、數位信號處理器、特定應用積體電路(ASIC)或上述之組合。首先,於步驟81接收請求信號KP_Xmit_Req後,測試封包產生器10(第四圖)於步驟82依序產生前序(preamble)及訊框開始定義符號(start-of-frame delimiter, SFD),並經由資料線TXD傳送至發射器12的4B/5B編碼器120。接著,於步驟83,測試封包產生器10接收預期信號KP_Xmit_Lvl,其指示基準線漫遊的預期直流。如前所述,本實施例之預期信號KP_Xmit_Lvl指示下列直流之一:”+1”、”0”、”-1”。


The flowchart of FIG. 8A shows a method for generating a worst case packet or a killer packet according to an embodiment of the present invention. The eighth diagram B illustrates a detailed flowchart of the eighth diagram A. The method can be implemented using a hardware, a software, a firmware, a digital signal processor, an application specific integrated circuit (ASIC), or a combination thereof. First, after receiving the request signal KP_Xmit_Req in step 81, the test packet generator 10 (fourth figure) sequentially generates a preamble and a start-of-frame delimiter (SFD) in step 82, and The 4B/5B encoder 120 is transmitted to the transmitter 12 via the data line TXD. Next, in step 83, the test packet generator 10 receives the expected signal KP_Xmit_Lvl indicating the expected DC of the baseline roam. As described above, the expected signal KP_Xmit_Lvl of the present embodiment indicates one of the following DCs: "+1", "0", "-1".



接下來,於步驟84,測試封包產生器10決定MLT3編碼器126的輸出MLT3_Lvl欲循環到達預期位準所需之步級。例如,如果預期位準為”+1”且目前MLT3編碼器狀態MLT3_State為”3”,則需要2步級使得MLT3編碼器126的輸出MLT3_Lvl可達到預期位準”+1”。於例示流程圖(第八B圖)中,使用變數One_Val以記錄所需步級。


Next, at step 84, the test packet generator 10 determines the step required by the output MLT3_Lv1 of the MLT3 encoder 126 to cycle to the expected level. For example, if the expected level is "+1" and the current MLT3 encoder state MLT3_State is "3", then 2 steps are required such that the output MLT3_Lvl of the MLT3 encoder 126 can reach the expected level "+1". In the illustrated flow chart (Fig. 8B), the variable One_Val is used to record the required step.



接著,於步驟85,測試封包產生器10即時產生最壞情況封包。該最壞情況封包的產生將於後續配合第九A圖或第九B圖作詳細說明。最壞情況封包會持續產生,直到請求信號KP_Xmit_Req不再主動為止。於完成最壞情況封包的產生後,於步驟87加入檢查總和(checksum),例如訊框檢查序列(frame check sequence, FCS)。


Next, in step 85, the test packet generator 10 immediately generates a worst case packet. The generation of the worst case packet will be described in detail later in conjunction with Figure 9A or Figure IX. The worst case packet will continue to be generated until the request signal KP_Xmit_Req is no longer active. After the generation of the worst case packet is completed, a checksum is added in step 87, such as a frame check sequence (FCS).



第九A圖顯示本發明實施例之最壞情況封包的產生(亦即第八A圖或第八B圖的步驟85)流程圖。第九B圖例示第九A圖的詳細流程圖。首先,於步驟851,混亂器狀態Scram_State藉由逆查表LUT_5B4B,進行逆向映射以得到四位元碼Code_4B。在本實施例中,十位元之混亂器狀態Scram_State被分為兩個五位元混亂器狀態,亦即高混亂器狀態Scram_M及低混亂器狀態Scram_L,將其逆映射可獲得兩個四位元碼。該兩個四位元碼根據以下步驟進行處理。在本實施例中雖然一次處理一個四位元碼,然而,在其他實施例中,也可一次處理兩個(或以上)四位元碼。


Figure 9A shows a flow chart for the generation of a worst case packet (i.e., step 85 of Figure 8A or Figure 8B) of an embodiment of the present invention. The ninth B diagram illustrates a detailed flowchart of the ninth A diagram. First, in step 851, the chaos state Scram_State is inversely mapped by the lookup table LUT_5B4B to obtain a four-bit code Code_4B. In this embodiment, the tensor chaotic state Scram_State is divided into two five-bit chaotic states, that is, a high chaos state Scram_M and a low chaos state Scram_L, which are inversely mapped to obtain two four bits. Yuan code. The two four-bit codes are processed according to the following steps. Although one four-bit code is processed at a time in the present embodiment, in other embodiments, two (or more) four-bit codes may be processed at one time.



接著,於步驟852,如果映射之四位元碼Code_4B為有效,且目前輸出位準MLT3_Lvl為基準線漫遊之預期位準,則將四位元碼Code_4B傳送至發射器12。否則,於步驟853,測試封包產生器10決定出四位元碼,其相應之五位元碼Code_5B符合以下條件:(1)位元”1”的數目TMP_Cnt等於步驟84(第八圖)所決定之步級;(2)前導位元”1”和最後位元”1”的距離TMP_Dist愈小愈好。換句話說,從多個候選者中決定出一個具最小距離TMP_Dist的五位元碼Code_5B。第十A圖例示一五位元碼Code_5B,其位元”1”位於位元0、2及3;亦即,TMP_Cnt=3。再者,前導位元”1”和最後位元”1”之距離TMP_Dist為3,亦即,TMP_Dist=3。第十B圖例示另一五位元碼Code_5B,其位元”1”位於位元2及4;亦即,TMP_Cnt=2。再者,前導位元”1”和最後位元”1”之距離TMP_Dist為2,亦即,TMP_Dist=2。根據步驟853之決定,MLT3編碼器126的輸出MLT3_Lvl將可於盡量短的時間內,循環輸出以達到基準線漫遊的預期位準。


Next, in step 852, if the mapped four-bit code Code_4B is valid and the current output level MLT3_Lvl is the expected level of the baseline roaming, the four-bit code Code_4B is transmitted to the transmitter 12. Otherwise, in step 853, the test packet generator 10 determines a four-bit code, and the corresponding five-bit code Code_5B meets the following conditions: (1) the number of bits "1" TMP_Cnt is equal to step 84 (eighth) The step of decision; (2) The smaller the distance TMP_Dist of the leading bit "1" and the last bit "1" is, the better. In other words, a five-digit code Code_5B having a minimum distance TMP_Dist is determined from a plurality of candidates. The tenth A diagram illustrates a five-digit code Code_5B whose bit "1" is located in bits 0, 2, and 3; that is, TMP_Cnt = 3. Furthermore, the distance TMP_Dist of the leading bit "1" and the last bit "1" is 3, that is, TMP_Dist=3. The tenth B diagram illustrates another five-bit code Code_5B whose bit "1" is located in bits 2 and 4; that is, TMP_Cnt = 2. Furthermore, the distance TMP_Dist of the leading bit "1" and the last bit "1" is 2, that is, TMP_Dist=2. According to the decision of step 853, the output MLT3_Lvl of the MLT3 encoder 126 will be cycled out in the shortest possible time to reach the expected level of baseline roaming.



表一例示根據第九B圖之流程所產生的最壞情況序列,表二則為ANSI 263-1995 Annex A.2所規範之測試型樣。根據本實施例所產生之序列和規範所定義之序列,兩者的相似度為88.52%,相異處則以括弧標示出來。本實施例所產生序列,其68.52%為基準線漫遊的預期位準;然而規範所定義之序列,僅有少於66.68%的預期位準。


The table exemplifies the worst-case sequence generated according to the flow of Figure IB, and Table 2 shows the test pattern specified in ANSI 263-1995 Annex A.2. According to the sequence generated by the embodiment and the sequence defined by the specification, the similarity between the two is 88.52%, and the difference is indicated by brackets. The sequence generated in this embodiment, 68.52% of which is the expected level of baseline roaming; however, the sequence defined by the specification has only less than 66.68% of the expected level.


                       表一
069C61DB4312B178134(1F)2F81F624(51)5
4C(92)1EB13F036B4E6B15AB0F83E4A17(6
1)D5569BA2A6BCFE5A773(91)A56F519FA4
…………………………………………………………
…………………………………………………………
711(E7)03A1C9A711D(E8)41E825805957F1
BC3EAB4F02A94B5361BB43(72)7E3BE5A0

Table I
069C61DB4312B178134(1F)2F81F624(51)5
4C(92)1EB13F036B4E6B15AB0F83E4A17(6
1) D5569BA2A6BCFE5A773(91)A56F519FA4
............................................................
............................................................
711(E7)03A1C9A711D(E8)41E825805957F1
BC3EAB4F02A94B5361BB43(72)7E3BE5A0



                       表二
069C61DB4312B178134(71)2F81F624(13)5
4C(BE)1EB13F036B4E6B15AB0F83E4A17(1
3)D5569BA2A6BCFE5A773(B3)A56F519FA4
…………………………………………………………
…………………………………………………………
711(29)03A1C9A711D(2C)41E825805957F1
BC3EAB4F02A94B5361BB43(5E)7E3BE5A0


Table II
069C61DB4312B178134(71)2F81F624(13)5
4C(BE)1EB13F036B4E6B15AB0F83E4A17(1
3) D5569BA2A6BCFE5A773(B3)A56F519FA4
............................................................
............................................................
711(29)03A1C9A711D(2C)41E825805957F1
BC3EAB4F02A94B5361BB43(5E)7E3BE5A0



經比較規範定義之0x71與本實施例所產生之0x1F,可得知本實施例所產生序列優於規範所定義之序列,如第十一圖所示。其中,規範定義之0x71與混亂器狀態Scram_State進行邏輯互斥或(XOR)運算,以產生”00111_01000”,作為MLT3輸入MLT3_In;本實施例所產生之0x1F與混亂器狀態Scram_State進行邏輯互斥或(XOR)運算,以產生”00001_11100”,作為MLT3輸入MLT3_In。由觀察得知,規範定義之碼字需要四個週期,亦即T1,才能達到預期位準”+1”;而本實施例則僅要三個週期,亦即T2,即能達到預期位準”+1”。


By comparing 0x71 defined by the specification with 0x1F generated by this embodiment, it can be known that the sequence generated by this embodiment is superior to the sequence defined by the specification, as shown in FIG. Wherein, the specification definition 0x71 and the chaotic state Scram_State perform a logical exclusive or (XOR) operation to generate "00111_01000" as the MLT3 input MLT3_In; the 0x1F generated in this embodiment is logically mutually exclusive with the chaotic state Scram_State or ( XOR) operation to generate "00001_11100" as MLT3 input MLT3_In. It can be observed that the codeword defined by the specification requires four cycles, that is, T1, to reach the expected level "+1"; in this embodiment, only three cycles, that is, T2, can reach the expected level. "+1".



根據上述,本發明實施例不需要記憶體裝置,例如唯讀記憶體(ROM),以儲存規範定義之測試型樣。本實施例係以即時方式產生測試型樣。此外,本實施例不需等待混亂器到達預定狀態。再者,本實施例所產生的測試型樣優於ANSI 263-1995 Annex A.2所規範之測試型樣。


In accordance with the above, embodiments of the present invention do not require a memory device, such as a read only memory (ROM), to store test patterns defined by the specification. This embodiment produces a test pattern in an instant manner. Furthermore, this embodiment does not need to wait for the chaos to reach a predetermined state. Furthermore, the test pattern produced by this embodiment is superior to the test pattern specified in ANSI 263-1995 Annex A.2.



以上所述僅為本發明之較佳實施例而已,並非用以限定本發明之申請專利範圍;凡其它未脫離發明所揭示之精神下所完成之等效改變或修飾,均應包含在下述之申請專利範圍內。


The above description is only the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention; all other equivalent changes or modifications which are not departing from the spirit of the invention should be included in the following Within the scope of the patent application.

1A‧‧‧變壓器
1B‧‧‧變壓器
2‧‧‧非屏蔽雙絞線
3‧‧‧發射器
4‧‧‧接收器
10‧‧‧測試封包產生器
12‧‧‧發射器
120‧‧‧四位元/五位元(4B/5B)編碼器
122‧‧‧並列至串列(P/S)轉換器
124‧‧‧混亂器
1240‧‧‧延遲元件
125‧‧‧邏輯互斥或(XOR)閘
126‧‧‧三階傳輸(MLT3)編碼器
127‧‧‧數位至類比(D/A)轉換器
128‧‧‧整形濾波器
129‧‧‧線驅動器
30‧‧‧唯讀記憶體
31‧‧‧殺手封包產生器
32‧‧‧發射器
81-87‧‧‧步驟
851-853‧‧‧步驟
KP_Xmit_Req‧‧‧請求信號
KP_Xmit_Lvl‧‧‧預期信號
TX_EN‧‧‧致能信號
TXD‧‧‧資料線
Scram_State‧‧‧混亂器狀態
Scram_Bit‧‧‧混亂位元
MLT3_State‧‧‧三階傳輸(MLT3)編碼器狀態
MLT3_In‧‧‧(MLT3編碼器)輸入
MLT3_Lvl‧‧‧(MLT3編碼器)輸出
MDI_TX‧‧‧驅動輸出
1A‧‧‧Transformer
1B‧‧‧Transformer
2‧‧‧Unshielded twisted pair
3‧‧‧transmitter
4‧‧‧ Receiver
10‧‧‧Test Packet Generator
12‧‧‧transmitter
120‧‧‧4-bit/5-bit (4B/5B) encoder
122‧‧‧Parallel to serial (P/S) converter
124‧‧‧ chaos
1240‧‧‧ delay element
125‧‧‧Logical exclusive or (XOR) gate
126‧‧‧ third-order transmission (MLT3) encoder
127‧‧‧Digital to Analog (D/A) Converter
128‧‧‧Shaping filter
129‧‧‧Line driver
30‧‧‧Read-only memory
31‧‧‧ killer packet generator
32‧‧‧transmitters
81-87‧‧‧Steps
851-853‧‧‧Steps
KP_Xmit_Req‧‧‧ request signal
KP_Xmit_Lvl‧‧‧ Expected signal
TX_EN‧‧‧Enable signal
TXD‧‧‧ data line
Scram_State‧‧‧ chaos state
Scram_Bit‧‧‧ chaotic bits
MLT3_State‧‧‧ third-order transmission (MLT3) encoder status
MLT3_In‧‧‧ (MLT3 encoder) input
MLT3_Lvl‧‧‧ (MLT3 encoder) output
MDI_TX‧‧‧ drive output

第一圖顯示快速乙太網路。
第二A圖及第二B圖分別例示位於發射端之變壓器及接收端之變壓器的信號波形。
第三圖顯示傳送殺手封包的傳統系統。
第四圖方塊圖顯示本發明實施例之基準線漫遊之測試型樣,特別是最壞情況測試型樣,的傳送系統。
第五A圖例示4B/5B編碼器的查表LUT_4B5B。
第五B圖例示4B/5B解碼器之逆查表LUT_5B4B。
第六圖例示混亂器。
第七圖顯示MLT3編碼器的流程圖。
第八A圖流程圖顯示本發明實施例之最壞情況封包或殺手封包的產生方法。
第八B圖例示第八A圖的詳細流程圖。
第九A圖顯示本發明實施例之最壞情況封包的產生流程圖。
第九B圖例示第九A圖的詳細流程圖。
第十A圖例示一五位元碼。
第十B圖例示另一五位元碼。
第十一圖比較規範定義碼字與本實施例所產生碼字。
The first picture shows the fast Ethernet.
The second A diagram and the second B diagram respectively illustrate signal waveforms of the transformers at the transmitting end and the transformers at the receiving end.
The third figure shows a traditional system for transmitting killer packets.
The block diagram of the fourth figure shows a test system for the reference line roaming of the embodiment of the present invention, particularly a worst case test type.
The fifth A diagram illustrates the lookup table LUT_4B5B of the 4B/5B encoder.
The fifth B diagram illustrates the lookup table LUT_5B4B of the 4B/5B decoder.
The sixth figure illustrates the chaos.
The seventh diagram shows the flow chart of the MLT3 encoder.
The flowchart of FIG. 8A shows a method for generating a worst case packet or a killer packet according to an embodiment of the present invention.
Figure 8B illustrates a detailed flow chart of Figure 8A.
Figure 9A shows a flow chart for generating a worst case packet in accordance with an embodiment of the present invention.
The ninth B diagram illustrates a detailed flowchart of the ninth A diagram.
Figure 10A illustrates a five-digit code.
Figure 10B illustrates another five-bit code.
The eleventh figure compares the specification definition codeword with the codeword generated by this embodiment.

10‧‧‧測試封包產生器 10‧‧‧Test Packet Generator

12‧‧‧發射器 12‧‧‧transmitter

120‧‧‧四位元/五位元(4B/5B)編碼器 120‧‧‧4-bit/5-bit (4B/5B) encoder

122‧‧‧並列至串列(P/S)轉換器 122‧‧‧Parallel to serial (P/S) converter

124‧‧‧混亂器 124‧‧‧ chaos

125‧‧‧邏輯互斥或(XOR)閘 125‧‧‧Logical exclusive or (XOR) gate

126‧‧‧三階傳輸(MLT3)編碼器 126‧‧‧ third-order transmission (MLT3) encoder

127‧‧‧數位至類比(D/A)轉換器 127‧‧‧Digital to Analog (D/A) Converter

128‧‧‧整形濾波器 128‧‧‧Shaping filter

129‧‧‧線驅動器 129‧‧‧Line driver

KP_Xmit_Req‧‧‧請求信號 KP_Xmit_Req‧‧‧ request signal

KP_Xmit_Lvl‧‧‧預期信號 KP_Xmit_Lvl‧‧‧ Expected signal

TX_EN‧‧‧致能信號 TX_EN‧‧‧Enable signal

TXD‧‧‧資料線 TXD‧‧‧ data line

Scram_State‧‧‧混亂器狀態 Scram_State‧‧‧ chaos state

Scram_Bit‧‧‧混亂器位元 Scram_Bit‧‧‧ chaotic bit

MLT3_State‧‧‧三階傳輸(MLT3)編碼器狀態 MLT3_State‧‧‧ third-order transmission (MLT3) encoder status

MLT3_In‧‧‧(MLT3編碼器)輸入 MLT3_In‧‧‧ (MLT3 encoder) input

MLT3_Lvl‧‧‧(MLT3編碼器)輸出 MLT3_Lvl‧‧‧ (MLT3 encoder) output

MDI_TX‧‧‧驅動輸出 MDI_TX‧‧‧ drive output

Claims (22)

一種基準線漫遊之測試型樣的產生系統,包含:
   一混亂器,用以產生混亂器位元;
   一多階編碼器,其在複數個狀態當中循環輸出;及
   一測試封包產生器,其根據該混亂器的狀態和該多階編碼器的狀態,以產生該測試型樣。
A system for generating a test pattern of baseline roaming, comprising:
a chaos device for generating a chaotic bit;
A multi-level encoder that cyclically outputs among a plurality of states; and a test packet generator that generates the test pattern based on the state of the chaos and the state of the multi-level encoder.
如申請專利範圍第1項所述基準線漫遊之測試型樣的產生系統,其中上述之測試封包產生器接收一請求信號,以啟動該測試封包產生器。The system for generating a test pattern of a baseline roaming according to claim 1, wherein the test packet generator receives a request signal to activate the test packet generator. 如申請專利範圍第1項所述基準線漫遊之測試型樣的產生系統,其中上述之測試封包產生器接收一預期信號,其指示該基準線漫遊的預期直流,使得該多階編碼器的輸出位準趨向該預期直流。The system for generating a test pattern of a baseline roaming according to claim 1, wherein the test packet generator receives an expected signal indicating an expected DC of the baseline roaming, so that the output of the multi-level encoder The level tends to the expected DC. 如申請專利範圍第1項所述基準線漫遊之測試型樣的產生系統,更包含一四位元/五位元(4B/5B)編碼器,其接收該測試型樣,並將四位元群組映射至五位元群組,用以產生經編碼之五位元資料。The system for generating a test pattern of the baseline roaming according to claim 1 of the patent application further includes a four-bit/five-bit (4B/5B) encoder that receives the test pattern and uses four bits. The group is mapped to a five-bit group to generate encoded five-bit data. 如申請專利範圍第4項所述基準線漫遊之測試型樣的產生系統,其中上述之4B/5B編碼器包含一查表,用以將四位元群組映射至五位元群組。The system for generating a test pattern of baseline roaming according to claim 4, wherein the 4B/5B encoder includes a lookup table for mapping a four-bit group to a five-bit group. 如申請專利範圍第4項所述基準線漫遊之測試型樣的產生系統,更包含一並列至串列(P/S)轉換器,用以將該經編碼之五位元資料,從並列形式轉換為串列形式,藉以產生一串列位元流。The system for generating a test pattern of reference line roaming according to claim 4 of the patent application, further comprising a parallel-to-serial (P/S) converter for juxtaposing the encoded five-bit data Converted to a serial form to generate a list of bitstreams. 如申請專利範圍第6項所述基準線漫遊之測試型樣的產生系統,更包含一邏輯閘,用以對該串列資料流和該混亂器位元進行邏輯運算,藉以產生一輸出至該多階編碼器,以循環該多階編碼器之狀態。The system for generating a test pattern of the reference line roaming according to claim 6 further includes a logic gate for performing a logic operation on the serial data stream and the chaotic bit to generate an output to the A multi-level encoder to cycle the state of the multi-level encoder. 如申請專利範圍第7項所述基準線漫遊之測試型樣的產生系統,其中上述之邏輯閘包含一互斥或(XOR)閘。A system for generating a test pattern of reference line roaming as set forth in claim 7 wherein said logic gate comprises a mutually exclusive or (XOR) gate. 如申請專利範圍第7項所述基準線漫遊之測試型樣的產生系統,更包含一數位至類比(D/A)轉換器,用以將該多階編碼器之輸出,從數位形式轉換為類比形式,藉以產生一類比資料信號。The system for generating a test pattern of reference line roaming according to claim 7 of the patent application further includes a digital to analog (D/A) converter for converting the output of the multi-level encoder from a digital form to a digital form An analogy form to generate an analog data signal. 如申請專利範圍第9項所述基準線漫遊之測試型樣的產生系統,更包含:
   一整形濾波器,用以平滑化該類比資料信號;及
   一線驅動器,用以驅動該平滑化類比資料信號。
The production system for the test pattern of the baseline roaming mentioned in claim 9 of the patent application further includes:
a shaping filter for smoothing the analog data signal; and a line driver for driving the smoothing analog data signal.
一種基準線漫遊之測試型樣的產生方法,包含:
   決定一多階編碼器之循環輸出所需的步級,用以達到一預期位準;及
   根據該決定步級和一混亂器之狀態,以產生該測試型樣。
A method for generating a test pattern of baseline roaming, comprising:
Determining the steps required for the cyclic output of a multi-stage encoder to achieve an expected level; and generating the test pattern based on the decision step and the state of a chaos.
如申請專利範圍第11項所述基準線漫遊之測試型樣的產生方法,於產生該測試型樣之前,更包含一步驟,接收一請求信號,以啟動該測試型樣之產生。The method for generating a test pattern for reference line roaming according to claim 11 of the patent application, before generating the test pattern, further comprises a step of receiving a request signal to initiate generation of the test pattern. 如申請專利範圍第12項所述基準線漫遊之測試型樣的產生方法,於產生該測試型樣之前,更包含一步驟,以產生一前序(preamble)及一訊框開始定義符號(SFD)。The method for generating a test pattern for reference line roaming according to claim 12, further comprising a step to generate a preamble and a frame start definition symbol (SFD) before generating the test pattern. ). 如申請專利範圍第13項所述基準線漫遊之測試型樣的產生方法,更包含一步驟,接收一預期訊號,以指示該預期位準。The method for generating a test pattern for baseline roaming according to claim 13 of the patent application scope further includes a step of receiving an expected signal to indicate the expected level. 如申請專利範圍第14項所述基準線漫遊之測試型樣的產生方法,於產生該測試型樣之後,更包含一步驟,以加入檢查總和(checksum)。The method for generating a test pattern for reference line roaming according to claim 14 of the patent application, after generating the test pattern, further comprises a step to add a checksum. 如申請專利範圍第11項所述基準線漫遊之測試型樣的產生方法,更包含一步驟,以接收該測試型樣並將四位元群組映射至五位元群組,藉以產生經編碼之五位元資料。The method for generating a test pattern of baseline roaming according to claim 11 further includes a step of receiving the test pattern and mapping the four-bit group to a five-bit group to generate an encoded code. Five-digit data. 如申請專利範圍第16項所述基準線漫遊之測試型樣的產生方法,其中上述產生測試型樣之步驟包含:
   將該混亂器狀態,從五位元資料逆向映射至四位元碼;
   如果該四位元碼為有效且該多階編碼器輸出為該預期位準,則傳送該四位元碼作為該測試型樣;及
   如果該四位元碼為無效或該多階編碼器輸出非為該預期位準,則決定另一四位元碼作為該測試型樣,其相應五位元碼符合以下條件:(1)位元”1”的數目等於所需步級,(2)前導”1”與最後”1”之距離愈小愈好。
The method for generating a test pattern of reference line roaming according to claim 16 of the patent application, wherein the step of generating the test pattern comprises:
Reversing the chaotic state from five-bit data to a four-bit code;
If the four-bit code is valid and the multi-level encoder output is the expected level, transmitting the four-bit code as the test pattern; and if the four-bit code is invalid or the multi-level encoder output If the expected level is not the same, then another four-digit code is determined as the test pattern, and the corresponding five-digit code meets the following conditions: (1) the number of bits "1" is equal to the required step, (2) The smaller the distance between the leading "1" and the last "1", the better.
如申請專利範圍第16項所述基準線漫遊之測試型樣的產生方法,更包含一步驟,將該編碼五位元資料從並列形式轉換為串列形式,藉以產生一串列位元流。The method for generating a test pattern of baseline roaming according to claim 16 of the patent application further includes a step of converting the coded five-bit data from a parallel form to a serial form to generate a serialized bit stream. 如申請專利範圍第18項所述基準線漫遊之測試型樣的產生方法,更包含一步驟,對該串列位元流及該混亂器之混亂位元進行邏輯運算,藉以產生一輸出至該多階編碼器,以循環該多階編碼器之狀態。The method for generating a test pattern of the reference line roaming according to claim 18, further comprising a step of performing a logic operation on the serial bit stream and the chaotic bit of the chaos to generate an output to the A multi-level encoder to cycle the state of the multi-level encoder. 如申請專利範圍第19項所述基準線漫遊之測試型樣的產生方法,係對該串列位元流及該混亂器之混亂位元進行邏輯互斥或(XOR)運算。The method for generating a test pattern of reference line roaming according to claim 19 is to perform a logical exclusive or (XOR) operation on the serial bit stream and the chaotic bit of the chaos. 如申請專利範圍第19項所述基準線漫遊之測試型樣的產生方法,更包含一步驟,將該多階編碼器之輸出從數位形式轉換為類比形式,藉以產生一類比資料信號。The method for generating a test pattern of reference line roaming according to claim 19 of the patent application further includes a step of converting the output of the multi-level encoder from a digital form to an analog form to generate an analog data signal. 如申請專利範圍第21項所述基準線漫遊之測試型樣的產生方法,更包含以下步驟:
   平滑化該類比資料信號;及
   驅動該平滑化類比資料信號。
The method for generating the test pattern of the baseline roaming described in claim 21 of the patent application further includes the following steps:
Smoothing the analog data signal; and driving the smoothing analog data signal.
TW99117497A 2010-06-01 2010-06-01 System and method for generating test patterns of baseline wander TWI433513B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW99117497A TWI433513B (en) 2010-06-01 2010-06-01 System and method for generating test patterns of baseline wander

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW99117497A TWI433513B (en) 2010-06-01 2010-06-01 System and method for generating test patterns of baseline wander

Publications (2)

Publication Number Publication Date
TW201145917A TW201145917A (en) 2011-12-16
TWI433513B true TWI433513B (en) 2014-04-01

Family

ID=46766044

Family Applications (1)

Application Number Title Priority Date Filing Date
TW99117497A TWI433513B (en) 2010-06-01 2010-06-01 System and method for generating test patterns of baseline wander

Country Status (1)

Country Link
TW (1) TWI433513B (en)

Also Published As

Publication number Publication date
TW201145917A (en) 2011-12-16

Similar Documents

Publication Publication Date Title
CA2908681C (en) Link training and training frame for 100gbps ethernet
US7187307B1 (en) Method and system for encapsulation of multiple levels of communication protocol functionality within line codes
EP2634983B1 (en) Data transmission apparatus, data transmission system and data transmission method
US10123280B2 (en) Dynamic power control in a transmission link
CN104426631A (en) Method and device for processing data
US6088827A (en) 1000BASE-T packetized trellis coder
WO2007047733A1 (en) 64b/66b CODING APPARATUS AND METHOD
CN106664264A (en) Data link power reduction technique using bipolar pulse amplitude modulation
JP2014068345A (en) Method for rapid pma alignment in 100gbase-kp4
JP5609930B2 (en) Transceiver
EP2899914B1 (en) Upstream forward error correction codeword filling
Poulton et al. Multiwire differential signaling
US11115141B2 (en) Wired communications device and method for operating a wired communications device
CN109428690B (en) Ethernet connection method and Ethernet device
US9548864B2 (en) Device and method for encoding bits to symbols for a communication system
WO2008060598A2 (en) 10gbase-t link speed arbitration for 30m transceivers
US5881074A (en) 1000base-t packetized trellis coder
US11108842B2 (en) Wired communications device and method for operating a wired communications device
WO2022062946A1 (en) Data coding method, data decoding method, and communication device
TWI433513B (en) System and method for generating test patterns of baseline wander
KR20140078707A (en) Apparatus and method for coding data based on phasor disparity
US9678915B2 (en) Serial communication control circuit
Sinha A new energy efficient MAC protocol based on redundant radix for wireless networks
WO2011144051A2 (en) Data transmission method, optical line terminal and system
US20110235738A1 (en) System and method for generating test patterns of baseline wander

Legal Events

Date Code Title Description
MM4A Annulment or lapse of patent due to non-payment of fees