TWI411260B - Receiver with capability of correcting error - Google Patents
Receiver with capability of correcting error Download PDFInfo
- Publication number
- TWI411260B TWI411260B TW99121631A TW99121631A TWI411260B TW I411260 B TWI411260 B TW I411260B TW 99121631 A TW99121631 A TW 99121631A TW 99121631 A TW99121631 A TW 99121631A TW I411260 B TWI411260 B TW I411260B
- Authority
- TW
- Taiwan
- Prior art keywords
- data
- bit
- code
- soft
- receiver
- Prior art date
Links
- 238000011084 recovery Methods 0.000 claims abstract description 15
- 238000012937 correction Methods 0.000 claims description 29
- 230000000739 chaotic effect Effects 0.000 claims description 10
- 238000006243 chemical reaction Methods 0.000 claims description 10
- 230000002159 abnormal effect Effects 0.000 claims description 9
- 238000012790 confirmation Methods 0.000 claims description 2
- 238000001514 detection method Methods 0.000 claims 2
- 238000013507 mapping Methods 0.000 claims 2
- 230000007717 exclusion Effects 0.000 claims 1
- 238000010586 diagram Methods 0.000 description 17
- 230000005856 abnormality Effects 0.000 description 4
- 238000000034 method Methods 0.000 description 3
- 238000007796 conventional method Methods 0.000 description 2
- 230000002441 reversible effect Effects 0.000 description 2
- 230000000052 comparative effect Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Landscapes
- Detection And Prevention Of Errors In Transmission (AREA)
Abstract
Description
本發明係有關一種電腦網路,特別是關於一種具錯誤更正能力之快速乙太網路(fast Ethernet)接收器。 The present invention relates to a computer network, and more particularly to a fast Ethernet receiver with error correction capability.
乙太網路(Ethernet)為一種基於封包的電腦網路,普遍用以建構區域網路。快速乙太網路(fast Ethernet)或稱為100BASE-TX的額定資料傳送速率每秒可達100百萬位元。 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.
快速乙太網路或100BASE-TX規範於IEEE 802.3,當操作於段長為100公尺的類別5(CAT5)之非屏蔽雙絞線(unshielded twisted-pair,UTP),其符號速率(symbol rate)可達125百萬赫茲(Hz)。根據規範,快速乙太網路不需額外順向錯誤控制碼(ECC),即可達到小於10-9的位元錯誤率(BER)。然而,因為線路老舊、多段連接、段長大於規範長度、纜線類別小於CAT5或非理想參數,例如信號抖動(jitter)、回波損耗(return loss)或上升/下降時間,使得實際的快速乙太網路經常無法達到規範的位元錯誤率(BER)。 Fast Ethernet or 100BASE-TX specification in IEEE 802.3, when operating on an unshielded twisted-pair (UTP) of Category 5 (CAT5) with a segment length of 100 meters, its symbol rate (symbol rate) ) up to 125 megahertz (Hz). According to the specification, Fast Ethernet can achieve a bit error rate (BER) of less than 10 -9 without the need for an additional error control code (ECC). However, because the line is old, the multi-segment connection, the segment length is greater than the gauge length, the cable category is less than CAT5 or non-ideal parameters, such as signal jitter, return loss or rise/fall time, making the actual fast Ethernet often fails to meet the standard bit error rate (BER).
鑑於傳統快速乙太網路接收器經常無法提供規範的效能, 因此亟需提出一種新穎的快速乙太網路接收器,使其具有更正錯誤的能力但又不需額外使用順向錯誤控制碼(ECC)。 Given that traditional fast Ethernet receivers often fail to provide specification performance, Therefore, there is a need to propose a novel fast Ethernet receiver that has the ability to correct errors without the need for an additional forward error control code (ECC).
鑑於上述,本發明實施例的目的之一在於提供一種區域網路,其內接收器(inner receiver)可更正一位元錯誤,其外接收器(outer receiver)可更正二位元錯誤。 In view of the above, one of the objects of embodiments of the present invention is to provide a regional network in which an inner receiver can correct a one-bit error, and an outer receiver can correct a two-bit error.
根據本發明實施例,揭露一種具錯誤更正能力之接收器。本發明之接收器包含一信號處理器,根據接收器之輸入信號以產生等化信號;一軟性切片器,根據等化信號以產生量化資料及相應軟性資料;一具錯誤復原之解碼器可根據量化資料以產生解碼量化資料,且根據軟性資料以產生軟性序列,其中該具錯誤復原之解碼器可更正量化資料的一位元;一去混亂器,用以根據解碼之量化資料及軟性序列,產生去混亂資料位元;一具碼更正之序列至並列(S/P)轉換器,根據去混亂資料位元以產生並列資料,其中該具碼更正之S/P轉換器可更正去混亂資料位元的二位元;以及一碼群組對準有限狀態機,可偵測並列資料的碼邊界及封包邊界,以產生碼資料。 According to an embodiment of the invention, a receiver with error correction capability is disclosed. The receiver of the present invention comprises a signal processor for generating an equalized signal according to an input signal of the receiver; a soft slicer for generating quantized data and corresponding soft data according to the equalized signal; a decoder with error recovery can be Quantizing the data to generate decoded quantized data, and generating a soft sequence according to the soft data, wherein the decoder with error recovery can correct one bit of the quantized data; and a chaos device for decoding the quantized data and the soft sequence, Generating a chaotic data bit; a code-corrected sequence-to-parallel (S/P) converter that generates parallel data according to the chaotic data bit, wherein the code-corrected S/P converter can correct the chaotic data The two bits of the bit; and a code group aligned with the finite state machine can detect the code boundary and the packet boundary of the parallel data to generate the code data.
100‧‧‧接收器 100‧‧‧ Receiver
110‧‧‧媒體相關介面(MDI)接收信號處理器 110‧‧‧Media related interface (MDI) receive signal processor
1100‧‧‧自動增益控制器(AGC) 1100‧‧‧Automatic Gain Controller (AGC)
1102‧‧‧通道等化器(EQ) 1102‧‧‧Channel Equalizer (EQ)
1104‧‧‧符號時序復原(STR)單元 1104‧‧‧ Symbol Timing Recovery (STR) Unit
1106‧‧‧基準線漫遊補償器(BLWC) 1106‧‧‧Baseline Roaming Compensator (BLWC)
120‧‧‧軟性切片器 120‧‧‧Soft slicer
1200‧‧‧三階量化器 1200‧‧‧ third-order quantizer
1202‧‧‧M階量化器 1202‧‧‧M-order quantizer
130‧‧‧具錯誤復原之多階傳送-3(MLT3)解碼器 130‧‧‧Multi-level transmission-3 (MLT3) decoder with error recovery
131-132‧‧‧步驟 131-132‧‧‧Steps
1300‧‧‧無效MLT3轉換更正器 1300‧‧‧ Invalid MLT3 Conversion Corrector
1302‧‧‧MLT3解碼單元 1302‧‧‧MLT3 decoding unit
1304‧‧‧第一正反器(FF) 1304‧‧‧First Reversible (FF)
1306‧‧‧第二正反器(FF) 1306‧‧‧second flip-flop (FF)
140‧‧‧去混亂器 140‧‧‧Go to chaos
1400‧‧‧鎖定擷取單元 1400‧‧‧Lock capture unit
1402‧‧‧線性迴授移位暫存器(LFSR) 1402‧‧‧Linear Feedback Shift Register (LFSR)
1404‧‧‧互斥或邏輯閘 1404‧‧‧Exclusive or logic gate
150‧‧‧具碼更正之序列至並列(S/P)轉換器 150‧‧‧Code Corrected Sequence to Parallel (S/P) Converter
151-162‧‧‧步驟 151-162‧‧‧Steps
1500‧‧‧毀壞碼群組更正器 1500‧‧‧Damaged Code Group Corrector
1502‧‧‧第一正反器(FF) 1502‧‧‧First Reversible (FF)
1504‧‧‧第二正反器(FF) 1504‧‧‧second flip-flop (FF)
160‧‧‧五位元(5B)碼群組對準有限狀態機 160‧‧‧5-bit (5B) code group alignment finite state machine
170‧‧‧五位元至四位元(5B/4B)解碼器 170‧‧‧5-bit to 4-bit (5B/4B) decoder
180‧‧‧媒體無關介面(MII) 180‧‧‧Media Independent Interface (MII)
MDI_RX_P‧‧‧差分信號 MDI_RX_P‧‧‧Differential signal
MDI_RX_N‧‧‧差分信號 MDI_RX_N‧‧‧Differential signal
RX_MDI‧‧‧等化信號 RX_MDI‧‧‧ Equalization signal
RX_CLK‧‧‧復原時脈 RX_CLK‧‧‧Restoration clock
RX_MLT3MLT3‧‧‧資料 RX_MLT3MLT3‧‧‧Information
RX_S0‧‧‧軟性資料 RX_S0‧‧‧Soft information
RX_NRZI‧‧‧解碼MLT3資料 RX_NRZI‧‧‧ Decode MLT3 data
RX_S1‧‧‧軟性序列 RX_S1‧‧‧soft sequence
RX_1B‧‧‧去混亂資料位元 RX_1B‧‧‧Go to chaotic data bits
RX_S2‧‧‧軟性序列 RX_S2‧‧‧soft sequence
RX_5B‧‧‧五位元資料 RX_5B‧‧‧ five-digit data
RX_FSM‧‧‧狀態 RX_FSM‧‧‧ Status
RX_IND‧‧‧指示器 RX_IND‧‧‧ indicator
RX_15B‧‧‧並列資料 RX_15B‧‧‧Parallel data
RX_4B‧‧‧解碼四位元資料 RX_4B‧‧‧ decoding four-bit data
RX_DV‧‧‧封包信號 RX_DV‧‧‧ packet signal
RX_ER‧‧‧錯誤信號 RX_ER‧‧‧ error signal
RXD‧‧‧封包資料 RXD‧‧‧Package Information
第一圖顯示本發明實施例之快速乙太網路接收器的方塊圖。 The first figure shows a block diagram of a fast Ethernet receiver in accordance with an embodiment of the present invention.
第二圖顯示MDI RX信號處理器的細部方塊圖。 The second figure shows a detailed block diagram of the MDI RX signal processor.
第三圖顯示本發明實施例之軟性切片器的細部方塊圖。 The third figure shows a detailed block diagram of a soft slicer in accordance with an embodiment of the present invention.
第四A圖顯示本發明實施例中具錯誤復原之MLT3解碼器的細部方塊圖。 Figure 4A shows a detailed block diagram of an MLT3 decoder with error recovery in an embodiment of the present invention.
第四B圖顯示簡化之MLT3解碼器。 Figure 4B shows a simplified MLT3 decoder.
第五圖顯示使用無效MLT3轉換更正器以更正無效MLT3轉換之流程圖。 The fifth figure shows a flow chart for using the invalid MLT3 conversion corrector to correct the invalid MLT3 conversion.
第六圖顯示去混亂器的細部方塊圖。 The sixth diagram shows a detailed block diagram of the chaos.
第七圖例示一封包,其依序包含有I碼、J碼、K碼、封包資料主體、T碼及R碼。 The seventh figure illustrates a packet, which includes an I code, a J code, a K code, a packet data body, a T code, and an R code.
第八圖顯示本發明實施例中具碼更正之S/P轉換器的細部方塊圖。 The eighth figure shows a detailed block diagram of an S/P converter with code correction in the embodiment of the present invention.
第九圖顯示毀壞碼群組更正器於更正毀壞碼群組的流程圖。 The ninth figure shows a flow chart of the corrupted code group corrector to correct the corrupted code group.
第十A圖例示傳送器的4B/5B編碼器之查表(LUT_4B5B)。 Figure 10A illustrates a look-up table (LUT_4B5B) of the 4B/5B encoder of the transmitter.
第十B圖例示5B/4B解碼器的逆查表(LUT_5B4B),其將五位元資料逆向映射至四位元資料。 The tenth B diagram illustrates a lookup table (LUT_5B4B) of the 5B/4B decoder that inversely maps five-bit data to four-bit data.
第一圖顯示本發明實施例之快速乙太網路接收器100的方塊圖。快速乙太網路的規範細節可參考IEEE 802.3,特別是2000年版本的IEEE 802.3條款(Clause)24。雖然本實施例以100BASE-TX或快速乙太網路作為例示,然而也適用於其他區域網路,例如十億位元(gigabit)乙太網路。再者,以下所述實施例之實施可使用硬體、軟體、韌體、數位信號處理器、特殊應用積體電路或其組合。 The first figure shows a block diagram of a fast Ethernet receiver 100 in accordance with an embodiment of the present invention. Details of the specification of the Fast Ethernet can be found in IEEE 802.3, in particular the IEEE 802.3 clause (Clause) 24 of the 2000 version. Although this embodiment is exemplified by 100BASE-TX or Fast Ethernet, it is also applicable to other regional networks, such as a gigabit Ethernet. Furthermore, embodiments of the embodiments described below may be implemented using hardware, software, firmware, digital signal processors, special application integrated circuits, or combinations thereof.
接收器100可分為二部分:內接收器及外接收器。內接收器包含媒體相關介面(MDI)接收(RX)信號處理器110、軟性切片器(soft slicer)120、具錯誤復原之多階傳送-3(MLT3)解碼器130。外接收器包含去混亂器(de-scrambler)140、具碼更正之序列至並列 (S/P)轉換器150、五位元(5B)碼群組對準有限狀態機(code group alignment finite state machine)160、五位元至四位元(5B/4B)解碼器170及媒體無關介面(MII)180。 The receiver 100 can be divided into two parts: an inner receiver and an outer receiver. The inner receiver includes a media related interface (MDI) receive (RX) signal processor 110, a soft slicer 120, and a multi-step transfer-3 (MLT3) decoder 130 with error recovery. The outer receiver includes a de-scrambler 140, a sequence of code corrections to the juxtaposition (S/P) converter 150, five-bit (5B) code group alignment finite state machine 160, five-bit to four-bit (5B/4B) decoder 170 and media Irrelevant interface (MII) 180.
MDI RX信號處理器110於MDI介面處接收差分信號MDI_RX_P及MDI_RX_N。MDI RX信號處理器110可以是一數位信號處理器(DSP),但不限於此。第二圖顯示MDI RX信號處理器110的細部方塊圖。其中,差分信號MDI_RX_P及MDI_RX_N藉由自動增益控制器(AGC)1100而放大。自動增益控制器(AGC)1100的輸出受到通道等化器(EQ)1102的等化,以產生等化信號RX_MDI。自動增益控制器(AGC)1100的輸出還受到符號時序復原(STR)單元1104的處理,以得到復原時脈RX_CLK。基準線漫遊補償器(baseline wander compensator,BLWC)1106係根據等化信號RX_MDI及來自軟性切片器120的MLT3資料RX_MLT3,以更正基準線漫遊。 The MDI RX signal processor 110 receives the differential signals MDI_RX_P and MDI_RX_N at the MDI interface. The MDI RX signal processor 110 may be a digital signal processor (DSP), but is not limited thereto. The second figure shows a detailed block diagram of the MDI RX signal processor 110. The differential signals MDI_RX_P and MDI_RX_N are amplified by an automatic gain controller (AGC) 1100. The output of the automatic gain controller (AGC) 1100 is equalized by the channel equalizer (EQ) 1102 to produce an equalized signal RX_MDI. The output of the automatic gain controller (AGC) 1100 is also processed by the symbol timing recovery (STR) unit 1104 to obtain the restored clock RX_CLK. A baseline wander compensator (BLWC) 1106 is used to correct the baseline roaming based on the equalization signal RX_MDI and the MLT3 data RX_MLT3 from the soft slicer 120.
第三圖顯示本發明一實施例之軟性切片器120的細部方塊圖。在本實施例中,軟性切片器120包含三階量化器1200及多階(或M階)量化器1202。三階量化器1200可將等化信號RX_MDI映射至+1、0和-1三階的其中之一,以產生三階量化資料或MLT3資料RX_MLT3。其中,每一等化信號RX_MDI係由RX_MLT3的二位元來表示。另一方面,M階量化器1202可將等化信號RX_MDI映射至多階的其中之一,因而產生軟性資料RX_S0。其中,較靠近+1、0中央或者0、-1中央的等化信號RX_MDI被映射至較小的量化資料或軟性資料RX_S0,表示該信號具較低可靠度。相反的,較靠近+1、0或-1的等化信號RX_MDI則被映射至較大的量化資料或軟性資料RX_S0,表示該 信號具較高可靠度。每一等化信號RX_MDI係由RX_S0的m(=log2(M))位元來表示。 The third figure shows a detailed block diagram of a soft slicer 120 in accordance with an embodiment of the present invention. In the present embodiment, the soft slicer 120 includes a third-order quantizer 1200 and a multi-order (or M-order) quantizer 1202. The third-order quantizer 1200 may map the equalized signal RX_MDI to one of +1, 0, and -1 third order to generate third-order quantized data or MLT3 data RX_MLT3. Wherein, each equalization signal RX_MDI is represented by two bits of RX_MLT3. On the other hand, the M-th order quantizer 1202 can map the equalization signal RX_MDI to one of the multi-orders, thus generating the soft data RX_S0. Among them, the equalization signal RX_MDI closer to the center of +1, 0 or 0, -1 is mapped to the smaller quantized data or soft data RX_S0, indicating that the signal has lower reliability. Conversely, the equalization signal RX_MDI closer to +1, 0 or -1 is mapped to a larger quantized data or soft data RX_S0, indicating that the signal has higher reliability. Each equalization signal RX_MDI is represented by m (= log 2 (M)) bits of RX_S0.
第四A圖顯示本發明一實施例中具錯誤復原之MLT3解碼器130的細部方塊圖。MLT3解碼器130除了包含MLT3解碼單元1302,還包含n-1個串聯之第一正反器(FF)1304,用以儲存MLT3資料RX_MLT3之序列;且包含n-1個串聯之第二正反器(FF)1306,用以儲存軟性資料RX_S0之序列。MLT3解碼單元1302輸出解碼之MLT3資料RX_NRZI,而串聯之第二正反器(FF)1306則輸出軟性序列RX_S1。第四B圖顯示簡化之MLT3解碼器130,其中設定n=2且m=3,其中m=log(M),M為M階量化器1202(第三圖)的總階數。MLT3解碼器130更包含無效MLT3轉換更正器(invalid-MLT3-transition corrector)1300,用以更正MLT3資料RX_MLT3的一個位元。 Figure 4A shows a detailed block diagram of an MLT3 decoder 130 with error recovery in accordance with one embodiment of the present invention. The MLT3 decoder 130 includes, in addition to the MLT3 decoding unit 1302, n-1 serially connected first flip-flops (FF) 1304 for storing the sequence of the MLT3 data RX_MLT3; and includes n-1 serial second positive and negative The device (FF) 1306 is configured to store the sequence of the soft data RX_S0. The MLT3 decoding unit 1302 outputs the decoded MLT3 data RX_NRZI, and the connected second flip-flop (FF) 1306 outputs the soft sequence RX_S1. Figure 4B shows a simplified MLT3 decoder 130 in which n = 2 and m = 3 are set, where m = log(M) and M is the total order of the M-th order quantizer 1202 (third map). The MLT3 decoder 130 further includes an invalid-MLT3-transition corrector 1300 for correcting one bit of the MLT3 data RX_MLT3.
無效MLT3轉換更正器1300根據MLT3資料RX_MLT3之序列及軟性資料RX_S0之序列,主要執行以下二步驟以更正錯誤:(1)於步驟131中偵測含有無效MLT3轉換的錯誤事件,及(2)於步驟132中決定錯誤位置,如第五圖所示。來自發送器的MLT3編碼器(未顯示於圖式)之有效MLT3會循環於”0”、”+1”、”0”、”-1”。對於第四B圖之無效MLT3轉換更正器1300,其會尋找以下的事件:以”+1”或”-1”開頭的二相鄰MLT3資料RX_MLT3,其和為0。換句話說,步驟131係偵測序列{+1 -1}或{-1 +1}為錯誤事件。當偵測到錯誤事件後,其中一個MLT3資料RX_MLT3即被更正。在本實施例中,具最 小軟性資料RX_S0的MLT3資料RX_MLT3被視為錯誤位元。 The invalid MLT3 conversion corrector 1300 mainly performs the following two steps to correct the error according to the sequence of the MLT3 data RX_MLT3 and the sequence of the soft data RX_S0: (1) detecting the error event containing the invalid MLT3 conversion in step 131, and (2) The error location is determined in step 132 as shown in the fifth figure. The valid MLT3 of the MLT3 encoder (not shown in the figure) from the transmitter will cycle through "0", "+1", "0", "-1". For the invalid MLT3 conversion corrector 1300 of Figure 4B, it will look for the following event: two adjacent MLT3 data RX_MLT3 beginning with "+1" or "-1" with a sum of zero. In other words, step 131 detects that the sequence {+1 -1} or {-1 +1} is an error event. When an error event is detected, one of the MLT3 data RX_MLT3 is corrected. In this embodiment, the most The MLT3 data RX_MLT3 of the small soft data RX_S0 is regarded as an error bit.
對於第四A圖之MLT3解碼器130,其無效MLT3轉換更正器1300會尋找以下的事件:多個MLT3資料RX_MLT3,其累加和為+2或-2。換句話說,步驟131係偵測序列{+1 0…0 +1}或{-1 0…0 +1}為錯誤事件。在偵測到錯誤之前,具累加和為0的序列則予以忽略。當偵測到錯誤事件後,MLT3資料RX_MLT3之二個”+1”或”-1”的其中之一即被更正。在本實施例中,具最小軟性資料RX_S0的MLT3資料RX_MLT3被視為錯誤位元。 For the MLT3 decoder 130 of Figure 4A, its invalid MLT3 conversion corrector 1300 will look for the following events: multiple MLT3 data RX_MLT3 whose summation is +2 or -2. In other words, step 131 detects the sequence {+1 0...0 +1} or {-1 0...0 +1} as an error event. Sequences with an accumulated sum of 0 are ignored until an error is detected. When an error event is detected, one of the two "+1" or "-1" of the MLT3 data RX_MLT3 is corrected. In the present embodiment, the MLT3 data RX_MLT3 with the minimum soft data RX_S0 is regarded as an error bit.
去混亂器140針對MLT3解碼器130所輸出的解碼MLT3資料RX_NRZI進行去混亂(de-scramble),因而產生去混亂資料位元RX_1B。第六圖顯示去混亂器140的細部方塊圖。其中,鎖定擷取單元1400根據解碼MLT3資料RX_NRZI以產生一種子(seed)。種子受到線性迴授移位暫存器(linear feedback shift register,LFSR)1402的運算。接著,解碼MLT3資料RX_NRZI和線性迴授移位暫存器(LFSR)1402的輸出饋至互斥或邏輯閘1404,以產生去混亂資料位元RX_1B。於此同時,軟性序列RX_S1未經去混亂器140的運算而直接輸出成為軟性序列RX_S2。 The scrambler 140 de-scrambles the decoded MLT3 data RX_NRZI output by the MLT3 decoder 130, thereby generating a de-scrambled data bit RX_1B. The sixth diagram shows a detailed block diagram of the chaos device 140. The lock capture unit 1400 generates a seed according to the decoded MLT3 data RX_NRZI. The seed is subjected to a linear feedback shift register (LFSR) 1402. Next, the outputs of the decoded MLT3 data RX_NRZI and linear feedback shift register (LFSR) 1402 are fed to a mutex or logic gate 1404 to produce a de-scrambled data bit RX_1B. At the same time, the soft sequence RX_S1 is directly output as the soft sequence RX_S2 without the operation of the scrambler 140.
5B碼群組對準有限狀態機160主要執行以下二功能:偵測五位元邊界及偵測封包邊界。第七圖例示一封包,其依序包含有I碼、J碼、K碼、封包資料主體、T碼及R碼,每一個碼包含五位元。五位元邊界可根據I碼及J碼來偵測。封包邊界則可根據其他碼來偵測。藉此,5B碼群組對準有限狀態機160產生五位元資料RX_5B。此外,5B碼群組對準有限狀態機160還提供狀態RX_FSM及指示 器RX_IND給S/P轉換器150及媒體無關介面(MII)180。 The 5B code group alignment finite state machine 160 mainly performs the following two functions: detecting a five-bit boundary and detecting a packet boundary. The seventh figure illustrates a packet, which includes an I code, a J code, a K code, a packet data body, a T code, and an R code, each of which contains five bits. The five-bit boundary can be detected based on the I code and the J code. The packet boundary can be detected based on other codes. Thereby, the 5B code group is aligned with the finite state machine 160 to generate the five-bit data RX_5B. In addition, the 5B code group alignment finite state machine 160 also provides status RX_FSM and indications. The RX_IND is supplied to the S/P converter 150 and the media independent interface (MII) 180.
第八圖顯示本發明實施例中具碼更正之S/P轉換器150的細部方塊圖。S/P轉換器150包含多個(例如20個)串聯之第一正反器(FF)1502,用以儲存去混亂資料位元RX_1B之序列,且包含多個(例如15個)串聯之第二正反器(FF)1504,用以儲存軟性序列RX_S2。串聯之第一正反器(FF)1502輸出並列資料RX_15B。S/P轉換器150還包含錯誤碼群組更正器(corrupted-code-group corrector)1500,用以更正去混亂資料位元RX_1B的二位元。 The eighth figure shows a detailed block diagram of the S/P converter 150 with code correction in the embodiment of the present invention. The S/P converter 150 includes a plurality (eg, 20) of series connected first flip-flops (FF) 1502 for storing a sequence of de-scrambled data bits RX_1B and including a plurality (eg, 15) of series-connected A second flip-flop (FF) 1504 is used to store the soft sequence RX_S2. The first flip-flop (FF) 1502 in series outputs the parallel data RX_15B. The S/P converter 150 also includes a corrupted-code-group corrector 1500 for correcting the two bits of the chaotic data bit RX_1B.
第九圖顯示毀壞碼群組更正器1500於更正毀壞碼群組的流程圖。在本實施例中,毀壞碼群組更正器1500根據5B碼群組對準有限狀態機160的狀態,特別是指示器RX_IND及狀態RX_FSM,以執行錯誤更正。一開始,於步驟151,決定指示器RX_IND是否為邏輯真(TRUE)。邏輯真的指示器RX_IND表示5B碼群組對準有限狀態機160的目前狀態在五位元邊界。若為真,則進入步驟152。於步驟152,決定5B碼群組對準有限狀態機160是否處於閒置(IDLE)狀態,亦即,相應於封包(第七圖)的開始。如果為閒置,則進入步驟153。 The ninth diagram shows a flow chart of the corrupted code group corrector 1500 to correct the corrupted code group. In the present embodiment, the corrupted code group corrector 1500 aligns the state of the finite state machine 160, in particular the indicator RX_IND and the state RX_FSM, according to the 5B code group to perform error correction. Initially, in step 151, it is determined whether the indicator RX_IND is logically true (TRUE). The logically true indicator RX_IND indicates that the 5B code group is aligned with the current state of the finite state machine 160 at the five-bit boundary. If true, proceed to step 152. At step 152, it is determined whether the 5B code group alignment finite state machine 160 is in an idle (IDLE) state, that is, corresponding to the beginning of the packet (seventh figure). If it is idle, it proceeds to step 153.
於步驟153,偵測相應於並列資料RX_15B的前二個五位元資料,亦即I2[14:5],是否有異常。於正常情形下,前二個五位元資料I2[14:5]應該為I+I碼或I+J碼,否則即表示有異常出現。於步驟153,錯誤碼群組更正器1500偵測以下其中一個異常情形:(a)I碼之後非為I碼或J碼,(b)J碼之前非為I碼。當偵測到異常時,則更正二 錯誤位元,其細節將於後面詳述。在更正之前,於步驟154,指定一值給索引i,用以指到I2[15:0]的開頭位元位置。於步驟154,如果為異常情形,則索引i被指定為10,否則,指定為15。 In step 153, the first two five-bit data corresponding to the parallel data RX_15B, that is, I2[14:5], is detected. Under normal circumstances, the first two five-bit data I2[14:5] should be I+I code or I+J code, otherwise it will indicate an abnormality. In step 153, the error code group corrector 1500 detects one of the following abnormalities: (a) the I code is not an I code or a J code, and the (b) J code is not an I code. Corrected when an abnormality was detected The error bit, the details of which will be detailed later. Before the correction, in step 154, a value is assigned to the index i to refer to the beginning bit position of I2[15:0]. In step 154, if it is an abnormal situation, index i is designated as 10, otherwise, it is designated as 15.
當5B碼群組對準有限狀態機160根據步驟152決定為非閒置狀態,則進入步驟155,以決定是否為K碼確認(CONFIRM K)狀態,亦即檢查K碼的狀態。如果為K碼確認狀態,則進入步驟156。於步驟156,決定第二個五位元資料I2[9:5]是否為K碼。如果非為K碼,則為異常情形,並指定索引i為10,並接著進行錯誤更正。 When the 5B code group alignment finite state machine 160 determines to be in the non-idle state according to step 152, it proceeds to step 155 to determine whether it is the K code confirmation (CONFIRM K) state, that is, the state of the K code is checked. If the status is confirmed for the K code, the process proceeds to step 156. In step 156, it is determined whether the second five-bit data I2[9:5] is a K code. If it is not a K code, it is an abnormal situation, and the index i is specified to be 10, and then error correction is performed.
當5B碼群組對準有限狀態機160根據步驟155決定非為K碼確認狀態,則於步驟158中進一步決定是否為以下狀態之一:(1)資料主體狀態(DATA),(2)K碼開始狀態(START_OF_STREAM_K),及(3)資料錯誤狀態(DATA_ERROR)。步驟158之決定主要係相關於封包的結束或資料主體。如果決定為上述任一狀態,則進入步驟159。 When the 5B code group alignment finite state machine 160 determines the non-K code acknowledgment state according to step 155, it further determines in step 158 whether it is one of the following states: (1) data body state (DATA), (2) K Code start status (START_OF_STREAM_K), and (3) data error status (DATA_ERROR). The decision of step 158 is primarily related to the end of the packet or the body of the data. If it is determined to be in any of the above states, the process proceeds to step 159.
於步驟159,決定相應於並列資料RX_15B的資料位元I2[14:0],以偵測封包結束或資料主體的異常情形。其中,關於封包的結束,於正常情形下,前二個五位元資料I2[14:5]應該為T+R碼。關於資料主體,於正常情形下,第一個五位元資料I2[14:10]應該為有效五位元碼。於步驟159,毀壞碼群組更正器1500偵測以下其中一個異常情形:(A)T碼之後非為R碼,(B)R碼之前非為T碼,(C)第一個五位元資料I2[14:10]非為有效五位元碼。當偵測到異常情形時,則更正二位元錯誤。在更正之前,於步驟160,如果為正常情形(A),則索引i被指定為10,否則,指定為15。 In step 159, the data bit I2[14:0] corresponding to the parallel data RX_15B is determined to detect the end of the packet or the abnormality of the data subject. Among them, regarding the end of the packet, under the normal situation, the first two five-bit data I2[14:5] should be the T+R code. Regarding the data subject, under normal circumstances, the first five-bit data I2[14:10] should be a valid five-digit code. In step 159, the corrupted code group corrector 1500 detects one of the following abnormal conditions: (A) the R code is not the R code, the (B) R code is not the T code, and (C) the first five bits. The data I2[14:10] is not a valid five-digit code. Corrects a two-bit error when an abnormal condition is detected. Before the correction, in step 160, if it is a normal situation (A), the index i is designated as 10, otherwise, it is designated as 15.
根據上述步驟,當偵測到異常情形時,於步驟161,比較始於第i位元的六個位元I2[i:i-5]之軟性序列RX_S2。接著,將最小軟性資料的相應索引指定至Err_Idx1,用以表示須作更正的位置。最後,於步驟162,將Err-Idx1所指位元及接續(Err_Idx1-1)所指位元予以更正。上述步驟中,之所以更正最小軟性資料的相應位元之後續一個位元,其原因在於MLT3係屬於一種差分編碼,其錯誤會接續發生。 According to the above steps, when an abnormal situation is detected, in step 161, the soft sequence RX_S2 of the six bits I2[i:i-5] starting from the i-th bit is compared. Next, the corresponding index of the minimum soft data is assigned to Err_Idx1 to indicate the position to be corrected. Finally, in step 162, the bit indicated by Err-Idx1 and the bit indicated by the connection (Err_Idx1-1) are corrected. In the above steps, the reason for correcting the subsequent one bit of the corresponding bit of the minimum soft data is that the MLT3 belongs to a differential encoding, and the error will continue to occur.
5B/4B解碼器170將五位元資料RX_5B予以解碼,使其成為解碼四位元資料RX_4B。可使用查表(LUT)方式,用以將五位元資料映射至四位元資料。第十A圖例示傳送器(未顯示於圖式)的4B/5B編碼器之查表(LUT_4B5B)。第十B圖例示5B/4B解碼器170的逆查表(LUT_5B4B),其將五位元資料逆向映射至四位元資料。其中,逆查表(LUT_5B4B)輸出的最低四位元相應於查表(LUT_4B5B)的四位元輸入,而逆查表(LUT_5B4B)的一些輸出則為無效的,其標示為”11111”。 The 5B/4B decoder 170 decodes the five-bit data RX_5B to become the decoded four-bit data RX_4B. A look-up table (LUT) method can be used to map five-bit data to four-bit data. Fig. 10A illustrates a look-up table (LUT_4B5B) of the 4B/5B encoder of the transmitter (not shown). The tenth B diagram illustrates a lookup table (LUT_5B4B) of the 5B/4B decoder 170, which inversely maps five-bit data to four-bit data. Among them, the lowest four bits outputted by the inverse lookup table (LUT_5B4B) correspond to the four-bit input of the lookup table (LUT_4B5B), while some outputs of the inverse lookup table (LUT_5B4B) are invalid, which is marked as "11111".
媒體無關介面(MII)180接收解碼四位元資料RX_4B、狀態RX_FSM及指示器RX_IND,因而產生封包信號RX_DV、錯誤信號RX_ER及封包資料RXD,並傳送至下一層,例如媒體存取控制(media access control,MAC)層。 The Media Independent Interface (MII) 180 receives the decoded four-bit data RX_4B, the state RX_FSM, and the indicator RX_IND, thereby generating a packet signal RX_DV, an error signal RX_ER, and a packet data RXD, and transmits it to the next layer, such as media access control (media access). Control, MAC) layer.
下表一比較本實施例和傳統方法的效能,例如位元錯誤率(BER)、封包錯誤率(packet error rate,PER)及封包丟失率(packet loss rate,PLR)。根據比較觀察,本實施例的效能至少優於傳統方法有二倍之多。 Table 1 compares the performance of this embodiment and the conventional method, such as bit error rate (BER), packet error rate (PER), and packet loss rate (PLR). According to comparative observation, the performance of this embodiment is at least twice as high as that of the conventional method.
以上所述僅為本發明之較佳實施例而已,並非用以限定本發明之申請專利範圍;凡其它未脫離發明所揭示之精神下所完成之等效 改變或修飾,均應包含在下述之申請專利範圍內。 The above is only the preferred embodiment of the present invention, and is not intended to limit the scope of the claims of the present invention; Changes or modifications are intended to be included in the scope of the claims below.
100‧‧‧接收器 100‧‧‧ Receiver
110‧‧‧媒體相關介面(MDI)接收信號處理器 110‧‧‧Media related interface (MDI) receive signal processor
120‧‧‧軟性切片器 120‧‧‧Soft slicer
130‧‧‧具錯誤復原之多階傳送-3(MLT3)解碼器 130‧‧‧Multi-level transmission-3 (MLT3) decoder with error recovery
140‧‧‧去混亂器 140‧‧‧Go to chaos
150‧‧‧具碼更正之序列至並列(S/P)轉換器 150‧‧‧Code Corrected Sequence to Parallel (S/P) Converter
160‧‧‧五位元(5B)碼群組對準有限狀態機 160‧‧‧5-bit (5B) code group alignment finite state machine
170‧‧‧五位元至四位元(5B/4B)解碼器 170‧‧‧5-bit to 4-bit (5B/4B) decoder
180‧‧‧媒體無關介面(MII) 180‧‧‧Media Independent Interface (MII)
MDI_RX_P‧‧‧差分信號 MDI_RX_P‧‧‧Differential signal
MDI_RX_N‧‧‧差分信號 MDI_RX_N‧‧‧Differential signal
RX_MDI‧‧‧等化信號 RX_MDI‧‧‧ Equalization signal
RX_CLK‧‧‧復原時脈 RX_CLK‧‧‧Restoration clock
RX_MLT3MLT3‧‧‧資料 RX_MLT3MLT3‧‧‧Information
RX_S0‧‧‧軟性資料 RX_S0‧‧‧Soft information
RX_NRZI‧‧‧解碼MLT3資料 RX_NRZI‧‧‧ Decode MLT3 data
RX_S1‧‧‧軟性序列 RX_S1‧‧‧soft sequence
RX_1B‧‧‧去混亂資料位元 RX_1B‧‧‧Go to chaotic data bits
RX_S2‧‧‧軟性序列 RX_S2‧‧‧soft sequence
RX_5B‧‧‧五位元資料 RX_5B‧‧‧ five-digit data
RX_FSM‧‧‧狀態 RX_FSM‧‧‧ Status
RX_IND‧‧‧指示器 RX_IND‧‧‧ indicator
RX_15B‧‧‧並列資料 RX_15B‧‧‧Parallel data
RX_4B‧‧‧解碼四位元資料 RX_4B‧‧‧ decoding four-bit data
RX_DV‧‧‧封包信號 RX_DV‧‧‧ packet signal
RX_ER‧‧‧錯誤信號 RX_ER‧‧‧ error signal
RXD‧‧‧封包資料 RXD‧‧‧Package Information
Claims (18)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| TW99121631A TWI411260B (en) | 2010-07-01 | 2010-07-01 | Receiver with capability of correcting error |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| TW99121631A TWI411260B (en) | 2010-07-01 | 2010-07-01 | Receiver with capability of correcting error |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| TW201203931A TW201203931A (en) | 2012-01-16 |
| TWI411260B true TWI411260B (en) | 2013-10-01 |
Family
ID=46756479
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| TW99121631A TWI411260B (en) | 2010-07-01 | 2010-07-01 | Receiver with capability of correcting error |
Country Status (1)
| Country | Link |
|---|---|
| TW (1) | TWI411260B (en) |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7035326B1 (en) * | 2001-02-09 | 2006-04-25 | Ikanos Communication, Inc. | Method and apparatus for initializing modem communications |
| TWI271971B (en) * | 2002-11-25 | 2007-01-21 | Ali Corp | Digital receiver capable of processing modulated signals at various data rates |
| US7167215B2 (en) * | 2001-04-16 | 2007-01-23 | Thomson Licensing | Gain control for a high definition television demodulator |
| US20080212715A1 (en) * | 2006-10-06 | 2008-09-04 | Yuan-Shuo Chang | Method and apparatus for baseline wander compensation in Ethernet application |
-
2010
- 2010-07-01 TW TW99121631A patent/TWI411260B/en not_active IP Right Cessation
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7035326B1 (en) * | 2001-02-09 | 2006-04-25 | Ikanos Communication, Inc. | Method and apparatus for initializing modem communications |
| US7167215B2 (en) * | 2001-04-16 | 2007-01-23 | Thomson Licensing | Gain control for a high definition television demodulator |
| TWI271971B (en) * | 2002-11-25 | 2007-01-21 | Ali Corp | Digital receiver capable of processing modulated signals at various data rates |
| US20080212715A1 (en) * | 2006-10-06 | 2008-09-04 | Yuan-Shuo Chang | Method and apparatus for baseline wander compensation in Ethernet application |
Also Published As
| Publication number | Publication date |
|---|---|
| TW201203931A (en) | 2012-01-16 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| FI114515B (en) | Method and apparatus for optimizing a decoder | |
| US7076724B2 (en) | System and method for forward error correction | |
| US8407563B2 (en) | Low-complexity soft-decision decoding of error-correction codes | |
| JP5233165B2 (en) | Data transmission device | |
| CN101366183A (en) | Method and apparatus for error management | |
| CN1625859A (en) | Forward error correction coding in Ethernet networks | |
| US10333559B2 (en) | Hybrid decoding method and gigabit Ethernet receiver using the same | |
| US9419651B2 (en) | Non-polynomial processing unit for soft-decision error correction coding | |
| CN105144650B (en) | Enhanced decoding for QAM data-signals and de-mapping method and device | |
| US20120170678A1 (en) | Methods and apparatus for trellis-based modulation encoding | |
| US9136869B2 (en) | High-rate reverse-order run-length-limited code | |
| US6995694B1 (en) | Methods, software, circuits and systems for coding information | |
| CN102025449B (en) | A kind of method of synchronization of data code blocks and device | |
| EP1517450A1 (en) | Error correction on M-BIT encoded links | |
| CN1653769A (en) | Alignment and anti-skew apparatus, systems and methods | |
| US8281208B2 (en) | Receiver with capability of correcting error | |
| WO2019205901A1 (en) | Error correction method and error correction device | |
| TWI411260B (en) | Receiver with capability of correcting error | |
| US8438443B2 (en) | Pattern-dependent error correction method and system | |
| US8281207B2 (en) | Data transmission equipment and generating method for transmission code | |
| US10355818B1 (en) | Method and apparatus for codeword boundary detection for a scrambled reed solomon code bitstream | |
| JPH06334697A (en) | Error detection method | |
| CN101674155A (en) | digital communication device and decoding method | |
| JP5900850B2 (en) | Transmission / reception device for digital communication transmission line code, transmission / reception method for digital communication transmission line code, and method for generating code used in this transmission / reception device or transmission / reception method | |
| CN102340393B (en) | Receiver with Error Correction Capability |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| MM4A | Annulment or lapse of patent due to non-payment of fees |