TW201633728A - Communication system and method - Google Patents

Communication system and method Download PDF

Info

Publication number
TW201633728A
TW201633728A TW104135454A TW104135454A TW201633728A TW 201633728 A TW201633728 A TW 201633728A TW 104135454 A TW104135454 A TW 104135454A TW 104135454 A TW104135454 A TW 104135454A TW 201633728 A TW201633728 A TW 201633728A
Authority
TW
Taiwan
Prior art keywords
bit
stream
ternary
mapping
value
Prior art date
Application number
TW104135454A
Other languages
Chinese (zh)
Other versions
TWI641238B (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 CN201610096099.9A priority Critical patent/CN105978658B/en
Priority to US15/060,617 priority patent/US9680673B2/en
Priority to EP16158940.3A priority patent/EP3068089B1/en
Publication of TW201633728A publication Critical patent/TW201633728A/en
Application granted granted Critical
Publication of TWI641238B publication Critical patent/TWI641238B/en

Links

Abstract

A communication system includes a packet stream unit, a mapping unit, and a transmission unit. The packet stream unit is configured to receive a 4-bit packet stream and convert the 4-bit packet stream to a 6-bit packet stream. The mapping unit is configured to map the 6-bit packet stream to multiple ternary digit streams and map at least one idle symbol to the ternary digit streams according to at least one predetermined digit. The transmission unit is configured to transmit the ternary digit streams to a remote communication device via a cable.

Description

通訊系統與方法 Communication system and method

本揭示內容是有關於一種通訊系統與方法,特別是有關於一種用纜線傳輸資料的一種通訊系統與方法。 The present disclosure relates to a communication system and method, and more particularly to a communication system and method for transmitting data by cable.

電機電子工程師學會(Institute of Electrical and Electronics Engineers,IEEE)為提升網路發展,針對不同速率以及不同媒介的網路傳輸訂定標準規格,在無數研究心血的投注下,有線電纜的傳輸速度已高達十億位元每秒(Gbps)。 In order to improve the development of the network, the Institute of Electrical and Electronics Engineers (IEEE) sets standard specifications for network transmission at different rates and different media. Under the innumerable research efforts, the transmission speed of cable cables has been high. One billion bits per second (Gbps).

在網路傳輸架構中,線路編碼(line coding)為有線乙太網路之物理層(physical layer,PHY)以及資料鏈結層(data link layer)中之重要技術,原始資料數據經過線路編碼後始透過纜線傳送,另外,線路編碼亦可針對傳輸媒介等特性設計,對於網路傳輸品質十分關鍵。 In the network transmission architecture, line coding is an important technology in the physical layer (PHY) of the wired Ethernet network and the data link layer. The original data is encoded by the line. It is transmitted through the cable. In addition, the line code can also be designed for the characteristics of the transmission medium, which is very important for the network transmission quality.

為因應有線網路之通訊需求,本揭示內容提供改善線路編碼之通訊系統與方法。本揭示內容之一態樣為一種通訊系統,通訊系統包含封包流轉換單元、映射單元以及 傳輸單元。封包流轉換單元用以接收四位元封包流並轉換四位元封包流為六位元封包流。映射單元用以將六位元封包流映射至多個三進制位元流,並根據六位元封包流中閒符號(IDLE symbols)的至少一特定位元,映射閒符號至三進制位元流。傳輸單元用以將三進制位元流透過一纜線傳送至遠端通訊裝置。 In response to the communication needs of wired networks, the present disclosure provides communication systems and methods for improving line coding. One aspect of the disclosure is a communication system including a packet stream conversion unit, a mapping unit, and Transmission unit. The packet stream conversion unit is configured to receive the four-bit packet stream and convert the four-bit packet stream into a six-bit packet stream. The mapping unit is configured to map the six-bit packet stream to the plurality of ternary bit streams, and map the idle symbols to the ternary bits according to at least one specific bit of the IDLE symbols in the six-bit packet stream. flow. The transmission unit is configured to transmit the stream of the ternary bit through a cable to the remote communication device.

本揭示內容之一態樣為一種通訊方法,包含下列步驟:轉換一四位元封包流為一六位元封包流;將六位元封包流映射至多個三進制位元流,並根據六位元封包流中至少一閒符號中的至少一特定位元,映射閒符號至三進制位元流;將三進制位元流透過一纜線傳送至一遠端通訊裝置。 One aspect of the disclosure is a communication method, comprising the steps of: converting a four-bit packet stream into a six-bit packet stream; mapping the six-bit packet stream to a plurality of ternary bit streams, and according to six At least one specific bit of at least one idle symbol in the bit stream stream, mapping the idle symbol to the ternary bit stream; transmitting the ternary bit stream to a remote communication device through a cable.

上述之通訊系統與通訊方法能改善接收方之基準線漂移(baseline wander)之現象,使有線網路通訊之錯誤率下降,並提高傳輸效率。 The above communication system and communication method can improve the baseline wander phenomenon of the receiver, reduce the error rate of the wired network communication, and improve the transmission efficiency.

100‧‧‧通訊系統 100‧‧‧Communication system

110‧‧‧封包流轉換單元 110‧‧‧ Packet Flow Conversion Unit

112‧‧‧位元數轉換單元 112‧‧‧ bit-value conversion unit

114‧‧‧資料攪亂器 114‧‧‧Data scrambler

116‧‧‧側流攪亂器 116‧‧‧Side flow disrupter

120‧‧‧映射單元 120‧‧‧ mapping unit

130‧‧‧傳輸單元 130‧‧‧Transportation unit

200‧‧‧通訊方法 200‧‧‧Communication method

1162‧‧‧延時器 1162‧‧‧Timer

1164‧‧‧加法器 1164‧‧‧Adder

S210~S240‧‧‧步驟 S210~S240‧‧‧Steps

第1A圖係依照本揭示內容實施例繪示一種通訊系統的方塊示意圖;第1B圖係依照本揭示內容實施例繪示之側流攪亂器的方塊示意圖;以及第2圖依照本揭示內容實施例繪示之一種通訊方法的流程圖。 1A is a block diagram showing a communication system according to an embodiment of the present disclosure; FIG. 1B is a block diagram showing a side stream scrambler according to an embodiment of the present disclosure; and FIG. 2 is a block diagram according to an embodiment of the present disclosure. A flow chart showing a communication method.

第1A圖係依照本揭示內容實施例繪示一種通訊系統的方塊示意圖。通訊系統100主要包含開放系統互連模型(open system interconnection reference model)中物理層(PHY)的部分,物理層由資料鏈結層(data link layer)中的介質存取控制(mediaaccess control)部分接收媒體獨立介面(media independent interface)資料,並對其進行線路編碼(line encoding)而產生線路碼(line code),並透過纜線將所產生之線路碼傳送至遠端通訊裝置(未繪示於圖中)。為提升遠端通訊裝置解讀線路碼之正確率,所產生線路碼中應盡量避免有多個連續的相同邏輯準位,以免遠端通訊裝置對線路碼的位元長度解析發生錯誤。以下將詳細對通訊系統100所包含之元件與各元件功能做詳細的介紹。 FIG. 1A is a block diagram showing a communication system according to an embodiment of the disclosure. The communication system 100 mainly includes a part of a physical layer (PHY) in an open system interconnection reference model, and the physical layer is received by a medium access control part in a data link layer. Media independent interface data, and line encoding the line code to generate the line code and transmit the generated line code to the remote communication device through the cable (not shown in In the picture). In order to improve the correct rate of the line code of the remote communication device, a plurality of consecutive identical logic levels should be avoided in the generated line code, so as to prevent the remote communication device from misinterpreting the bit length of the line code. The components and functions of the components included in the communication system 100 will be described in detail below.

通訊系統100包含封包流轉換單元110、映射單元120以及傳輸單元130。封包流轉換單元110用以接收四位元封包流並轉換四位元封包流為六位元封包流。映射單元120用以將六位元封包流映射至多個三進制位元流,並根據六位元封包流中閒符號(IDLE symbols)的至少一特定位元,映射閒符號至三進制位元流。傳輸單元130用以將三進制位元流透過一纜線傳送至遠端通訊裝置。封包流轉換單元110、映射單元120以及傳輸單元130包括恰當的邏輯、電路和/或編碼,以實現上述之功能。在一些實施例中,上述三進制位元包含-1、0、1等三種位元符號。 The communication system 100 includes a packet stream conversion unit 110, a mapping unit 120, and a transmission unit 130. The packet stream conversion unit 110 is configured to receive the four-bit packet stream and convert the four-bit packet stream into a six-bit packet stream. The mapping unit 120 is configured to map the six-bit packet stream to the plurality of ternary bit streams, and map the idle symbols to the ternary bits according to at least one specific bit of the IDLE symbols in the six-bit packet stream. Yuan stream. The transmission unit 130 is configured to transmit the ternary bit stream to the remote communication device through a cable. The packet stream conversion unit 110, the mapping unit 120, and the transmission unit 130 include appropriate logic, circuitry, and/or coding to implement the functions described above. In some embodiments, the above-described ternary bit contains three bit symbols of -1, 0, 1, and the like.

本揭示內容之映射單元120映射六位元封包流至三進制位元流時,多個三進制位元流中各三進制位元可能數值之組合數量較六位元封包流中每六位元中所有二進位元可能數值組合的數量大三個以上,因此,映射單元120在映射六位元封包流之閒符號至三進制位元流時,對於閒符號所映射到的三進制位元值組合有更多彈性,能選用降低三進制位元流中有連續多個相同的非零邏輯準位之三進制數值組合。亦即,通訊系統100能夠降低基準線飄移(baseline wander)現象,進一步提升了遠端通訊裝置解讀線路碼之成功率,達到更佳的通訊品質。 When the mapping unit 120 of the present disclosure maps a six-bit packet stream to a ternary bit stream, the number of combinations of possible ternary bits in the plurality of ternary bit streams is larger than that in the hexadecimal packet stream. The number of possible binary combinations of all the binary bits in the six bits is three or more. Therefore, when the mapping unit 120 maps the idle symbols of the six-bit packet stream to the ternary bit stream, the three mapped to the idle symbol are The combination of binary bit values has more flexibility, and it is possible to use a combination of ternary values that reduce the number of consecutive non-zero logical levels in a ternary bit stream. That is, the communication system 100 can reduce the baseline wander phenomenon, further improving the success rate of the remote communication device to interpret the line code, and achieving better communication quality.

封包流轉換單元110包含位元數轉換單元112、資料攪亂器(data scrambler)114以及側流攪亂器(side stream scrambler)116。位元數轉換單元112包括恰當的邏輯、電路和/或編碼,用以自媒體獨立介面(未繪示於第1A圖中)接收四位元封包流MII[3:0],並將其轉為六位元資料流6b_stream[5:0]。 The packet stream conversion unit 110 includes a bit number conversion unit 112, a data scrambler 114, and a side stream scrambler 116. The bit number conversion unit 112 includes appropriate logic, circuitry, and/or code for receiving the four-bit packet stream MII[3:0] from the media independent interface (not shown in FIG. 1A) and transferring it. It is a six-bit data stream 6b_stream[5:0].

於一實施例中,位元數轉換單元112將四位元封包流MII[3:0]直接以補零(padding)方式轉為六位元資料流6b_stream[5:0]。於另一實施例中,封包流轉換單元110中的位元數轉換單元112將四位元封包流MII[3:0]轉換為三位元封包流(4b3b),再以先進先出方式將三位元封包流轉換為六位元資料流6b_stream[5:0]。 In one embodiment, the bit number conversion unit 112 converts the four-bit packet stream MII[3:0] directly into a six-bit data stream 6b_stream[5:0] in a padding manner. In another embodiment, the bit number conversion unit 112 in the packet stream conversion unit 110 converts the four-bit packet stream MII[3:0] into a three-bit packet stream (4b3b), and then in a first-in-first-out manner. The three-bit packet stream is converted to a six-bit data stream 6b_stream[5:0].

資料攪亂器114以及側流攪亂器116包括恰當的邏輯、電路和/或編碼,用以將二進制的六位元資料流 6b_stream[5:0]中零與一的數量打亂,使經擾亂過的六位元受擾資料流Sdn[5:0]中零與一的數量幾乎相同,以讓信號具有隨機性,加快接收端的遠端通訊裝置取出所接收信號中時脈頻率的速度。資料攪亂器114以及側流攪亂器116在擾亂六位元資料流6b_stream[5:0]時,側流攪亂器116使用攪亂器多項式(scrambler polynomial)來產生側擾值Scrn[5:0],攪亂器多項式之次數越高,則經擾亂過的六位元受擾資料流Sdn[5:0]中隨機程度也越高。 The data shuffler 114 and the side stream shuffler 116 include appropriate logic, circuitry, and/or code to scramble the number of zeros and ones in the binary six-bit data stream 6b_stream[5:0], causing the scrambling The number of zeros and ones in the six-bit victim data stream Sd n [5:0] is almost the same, so that the signal is random, and the speed of the clock frequency in the received signal is accelerated by the remote communication device at the receiving end. Data scrambler 114 and the side stream scrambler 116 scrambling a data stream six yuan 6b_stream [5: 0], the side stream scrambler 116 uses scrambler polynomial (scrambler polynomial) to generate a scramble value Scr n-side [5: 0] The higher the number of scrambler polynomials, the higher the degree of randomness in the disturbed six-bit victim data stream Sd n [5:0].

於一實施例中,側流攪亂器116所使用攪亂器多項式為gM(x)=1+x13+x33。於另一實施例中,側流攪亂器116所使用攪亂器多項式為gS(x)=1+x20+x33。第1B圖係依照本揭示內容實施例繪示之側流攪亂器116的方塊示意圖,其中側流攪亂器116包含延時器1162和加法器1164,第1B圖上半部用於根據攪亂器多項式gM(x)=1+x13+x33產生側擾值Scrn[5:0],第1B圖下半部用於根據攪亂器多項式gS(x)=1+x20+x33產生側擾值Scrn[5:0]。 In one embodiment, the scrambler polynomial used by the sidestream scrambler 116 is g M (x) = 1 + x 13 + x 33 . In another embodiment, the scrambler polynomial used by the side stream scrambler 116 is g S (x) = 1 + x 20 + x 33 . 1B is a block diagram of a sidestream scrambler 116 in accordance with an embodiment of the present disclosure, wherein the side stream scrambler 116 includes a delay 1162 and an adder 1164, and the upper half of the 1B is used for the scrambler polynomial g M (x) = 1 + x 13 + x 33 produces the side scrambling value Scr n [5:0], and the lower half of the 1B graph is used to generate according to the scrambler polynomial g S (x) = 1 + x 20 + x 33 side scrambling values Scr n [5: 0].

資料攪亂器114接收來自側流攪亂器116之側擾值Scrn[5:0]與六位元資料流6b_stream[5:0]並對其加以處理,以產生六位元受擾資料流Sdn[5:0]。資料攪亂器114首先使用算式g(x)=x3^x8以及側擾值Scrn[5:0]中的Scrn[0]以及Scr(n-1)[0]來產生第一受擾中間值流Syn[2:0],其算式如下:Syn[0]=Scrn[0] The data shuffler 114 receives the side-scrambling value Scr n [5:0] from the side stream scrambler 116 and the six-bit data stream 6b_stream[5:0] and processes it to generate a six-bit victim data stream Sd. n [5:0]. The data shuffler 114 first generates the first subject using the equation g(x)=x 3 ^x 8 and Scr n [0] and Scr (n-1) [0] in the side scrambling value Scr n [5:0]. The intermediate value stream Sy n [2:0] is calculated as follows: Sy n [0]=Scr n [0]

Syn[1]=g(Scrn[0])=Scrn[3]^Scrn[8] Sy n [1]=g(Scr n [0])=Scr n [3]^Scr n [8]

Syn[2]=g2(Scrn[o])=Scrn[6]^Scrn[16] Sy n [2]=g 2 (Scr n [o])=Scr n [6]^Scr n [16]

將上述三式全部的下標n替換成(n-1),則可得到Sy(n-1)[2:0]。 By replacing all subscripts n of the above three equations with (n-1), Sy (n-1) [2:0] can be obtained.

資料攪亂器114在產生第一受擾中間值流Syn[2:0]後,再利用第一受擾中間值流Syn[2:0]與資料攪亂器114所接收的傳送模式信號tx_mode決定第二受擾中間值流Scn[5:0],算式如下所示: After generating the first disturbed intermediate value stream Sy n [2:0], the data scrambler 114 utilizes the first disturbed intermediate value stream Sy n [2:0] and the transmission mode signal tx_mode received by the data shuffler 114. The second disturbed intermediate value stream Sc n [5:0] is determined, and the equation is as follows:

資料攪亂器114在產生第二受擾中間值流Scn[5:0]後,再利用第二受擾中間值流Scn[5:0]與資料攪亂器114所接收的傳送致能信號tx_enable以及本地接收器狀態loc_rcvr_status決定六位元受擾資料流Sdn[5:0],算式如下所示: After generating the second disturbed intermediate value stream Scn[5:0], the data scrambler 114 uses the second disturbed intermediate value stream Sc n [5:0] and the data enable signal tx_enable received by the data shuffler 114. And the local receiver state loc_rcvr_status determines the six-bit victim data stream Sd n [5:0], as shown below:

上述之六位元資料流6b_stream[5:0]、第二受擾中間值流Scn[5:0]以及六位元受擾資料流Sdn[5:0]中皆以6個二進制位元為單位,因此均屬於六位元封包流。另外,六位元資料流6b_stream[5:0]、第二受擾中間值流Scn[5:0]、六位元受擾資料流Sdn[5:0]以及傳送致能信號tx_enable均為時序信號,以n表示最新信號,而括弧中之數字(如n-6,n-1)表示與最新信號的時間差。 The above six-bit data stream 6b_stream[5:0], the second victim intermediate value stream Sc n [5:0], and the six-bit victim data stream Sd n [5:0] all have 6 binary bits. The yuan is a unit, so they all belong to the six-bit packet stream. In addition, the six-bit data stream 6b_stream[5:0], the second disturbed intermediate value stream Sc n [5:0], the six-bit victim data stream Sd n [5:0], and the transmission enable signal tx_enable For the timing signal, the latest signal is represented by n, and the number in parentheses (such as n-6, n-1) represents the time difference from the latest signal.

封包流轉換單元110輸出被擾亂與隨機化過之六位元受擾資料流Sdn[5:0],通訊系統100中映射單元120接收六位元受擾資料流Sdn[5:0],且六位元受擾資料流Sdn[5:0]中包含至少一閒符號(IDLE symbol),每一閒符號包含6個二進制位元,映射單元120對六位元受擾資料流Sdn[5:0]作進一步之處理,將其映射至多個三進制位元流,以透過纜線將六位元受擾資料流Sdn[5:0]傳送至遠端通訊裝置。 The packet stream conversion unit 110 outputs the scrambled and randomized six-bit victim data stream Sd n [5:0], and the mapping unit 120 in the communication system 100 receives the six-bit victim data stream Sd n [5:0] And the six-bit victim data stream Sd n [5:0] includes at least one IDLE symbol, each idle symbol contains 6 binary bits, and the mapping unit 120 pairs the six-bit victim data stream Sd n [5:0] for further processing, mapping it to a plurality of ternary bit streams to transmit the six-bit victim data stream Sd n [5:0] to the remote communication device via the cable.

於一實施例中,映射單元120映射六位元受擾 資料流Sdn[5:0]中資料符號(data symbol)至四個三進制位元流(6B4T),其對照表如表格1。 In an embodiment, the mapping unit 120 maps the data symbols in the six-bit victim data stream Sd n [5:0] to the four ternary bit streams (6B4T), and the comparison table is as shown in Table 1. .

映射單元120在映射閒符號至三進制位元流時,根據閒符號的特定位元決定映射至三進制位元流之三進制數值。於一實施例中,映射單元120映射閒符號至三進制位元流時依據的特定位元包含最低有效位元(least significant bit),亦即,映射單元120根據最低有效位元之二進位值,決定三進制位元流中第一位元流T1之三進位值。 When mapping the idle symbol to the ternary bit stream, the mapping unit 120 determines the ternary value mapped to the ternary bit stream according to the specific bit of the idle symbol. In an embodiment, the mapping unit 120 maps the idle symbol to the ternary bit stream according to a specific bit, including a least significant bit, that is, the mapping unit 120 is based on the least significant bit of the least significant bit. The value determines the triple value of the first bit stream T1 in the ternary bit stream.

具體而言,於另一實施例中,在最低有效位元 為零時,映射單元120決定第一位元流T1之三進位值為零,當最低有效位元為非零時,映射單元決定第一位元流T1之三進位值為非零(1或-1)。透過上述編碼規則,接收端的遠端通訊裝置鎖定所接收線路碼內時脈之效率與正確率均會上升。 Specifically, in another embodiment, in the least significant bit When it is zero, the mapping unit 120 determines that the third bit value of the first bit stream T1 is zero, and when the least significant bit is non-zero, the mapping unit determines that the third bit value of the first bit stream T1 is non-zero (1 or -1). Through the above coding rule, the efficiency and the correct rate of the clock in the received line code of the remote communication device at the receiving end will increase.

在又一實施例中,映射單元120映射閒符號至三進制位元流時依據的特定位元包含第一中間位元與最大有效位元(most significant bit),映射單元120用以根據第一中間位元與最大有效位元之二進位值,決定三進制位元流中之第二位元流T2之三進位值,具體而言,映射單元120使用六位元受擾資料流Sdn[5:0]中的Sdn[3]作為第一中間位元,當第一中間位元和最大有效位元同時為零時,第二位元流T2之三進位值為零,否則第二位元流T2之三進位值為非零。 In a further embodiment, the mapping unit 120 maps the idle symbol to the ternary bit stream according to the specific bit element including the first intermediate bit and the most significant bit, and the mapping unit 120 is configured to use A binary value of the intermediate bit and the most significant bit determines a ternary value of the second bit stream T2 in the ternary bit stream. Specifically, the mapping unit 120 uses the hexadecimal victim stream Sd Sd n [3] in n [5:0] is used as the first intermediate bit. When the first intermediate bit and the most significant bit are simultaneously zero, the third bit value of the second bit stream T2 is zero, otherwise The third bit value of the second bit stream T2 is non-zero.

在又另一實施例中,映射單元120映射閒符號至三進制位元流時依據的特定位元包含第一中間位元與第二中間位元,映射單元120用以根據第一中間位元與第二中間位元之二進位值,決定三進制位元流中之第三位元流T3之三進位值,具體而言,映射單元120使用六位元受擾資料流Sdn[5:0]中的Sdn[3]作為第一中間位元,並使用六位元受擾資料流Sdn[5:0]中的Sdn[4]作為第二中間位元,當第一中間位元和第二中間位元同時為1時,第三位元流T3之三進位值為零,否則第三位元流T3之三進位值為非零。 In still another embodiment, the mapping unit 120 maps the idle symbol to the ternary bit stream according to the specific bit element including the first intermediate bit and the second intermediate bit, and the mapping unit 120 is configured to use the first intermediate bit according to the first intermediate bit. The binary value of the second intermediate bit and the second intermediate bit determine the triple value of the third bit stream T3 in the ternary bit stream. Specifically, the mapping unit 120 uses the six-bit victim data stream Sd n [ Sd n [3] in 5:0] as the first intermediate bit, and uses Sd n [4] in the six-bit victim data stream Sd n [5:0] as the second intermediate bit, when the first When an intermediate bit and a second intermediate bit are simultaneously 1, the third bit value of the third bit stream T3 is zero, otherwise the third bit value of the third bit stream T3 is non-zero.

於一特定實施例中,映射單元120結合上述所 有編碼規則以將二進制的六位元封包流中的閒符號(IDLE symbol)映射至四個三進制位元流(6B4T),其對照表如表格2。 In a particular embodiment, mapping unit 120 incorporates the above There are encoding rules to map the IDLE symbol in the binary six-bit packet stream to four ternary bit streams (6B4T), as shown in Table 2.

表格1及表格2中,第一位元流T1~第四位元流T4之編號,係用以區分不同的三進制位元,並非用以限制其順序。亦即表格1及表格2中,T1~T4的欄位可以互相交換。 In Table 1 and Table 2, the numbers of the first bit stream T1 to the fourth bit stream T4 are used to distinguish different three-dimensional bits, and are not used to limit the order. In Tables 1 and 2, the fields T1~T4 can be exchanged.

傳統線路編碼多將自媒體獨立介面接收之四位元封包流轉為三位元封包流,並直接將三位元封包流映射至 兩個三進制位元流,但兩個三進制位元之所有數值可能組合數量(3的2次方)僅較三位元封包流中之三個二進制位元之所有數值可能組合數量(2的3次方)多出一個,使得映射時三進制位元之數值組合之選擇有限,使得傳統線路編碼電路欲在三進制位元流中增加符號(如用於標示的定界符)時,沒有足夠的數值組合可選擇,造成所產生三進制位元流中出現連續多個相同的非零三進制值,進而導致嚴重基準線飄移現象。 The traditional line coding mostly converts the four-bit packet received from the media independent interface into a three-bit packet stream, and directly maps the three-bit packet stream to Two ternary bit streams, but all the values of the two ternary bits may be combined (3 to the power of 2) only the combined number of all the values of the three binary bits in the tributary stream (2 to the power of 3) one more, so that the choice of the value combination of the ternary bit in the mapping is limited, so that the traditional line coding circuit wants to add symbols in the ternary bit stream (such as delimitation for labeling) When there is not enough value combination, there are consecutive multiple non-zero ternary values in the generated ternary bit stream, which leads to severe baseline drift.

另一方面,由上述之對照表格1與表格2可知,將二進制的六位元封包流轉為四個三進制位元流時,所有可能的六位元二進制數值組合數量為64個(2的6次方),而所有可能的四位元三進制數值組合數量為81個(3的4次方),因此,還剩下17個三進制位元數值組合,但其中{0,0,0,0},{1,1,1,1}以及{-1,-1,-1,-1}中有連續四個相同的三進制值,會造成基準線漂移的問題,因此映射單元120不予使用,剔除上述組合後,剩下14種組合用來作於置於不同封包(packet)之間的定界符(delimiter)。定界符可為起始定界符(start stream delimiter,SSD)、結束定界符(end stream delimiter,ESD)或錯誤結束定界符(error end stream delimiter,ERR_ESD),第一個用於標示封包的起始,第二個用於標示封包的結束,第三個則是用於標示封包的結束並提示異常狀況之發生。 On the other hand, from the above comparison table 1 and table 2, when the binary hexadecimal packet is streamed into four ternary bit streams, the number of all possible hexadecimal binary values is 64 (2). 6th power), and the number of all possible quaternion ternary values is 81 (3 to the 4th power), so there are still 17 ternary digit combinations, but {0,0 , 0,0}, {1,1,1,1} and {-1,-1,-1,-1} have four consecutive ternary values, which causes the problem of baseline drift, so The mapping unit 120 is not used, and after the above combination is eliminated, the remaining 14 combinations are used for delimiters placed between different packets. The delimiter can be a start stream delimiter (SSD), an end stream delimiter (ESD), or an error end stream delimiter (ERR_ESD). The first one is used to indicate The beginning of the packet, the second is used to indicate the end of the packet, and the third is used to indicate the end of the packet and to indicate the occurrence of an abnormal condition.

於一實施例中,映射單元120於三進制位元流中加入定界符,且定界符中所包含連續三個非零三進位值不 完全相同,亦即,定界符中不會包含連續三個相同的非零三進位值。因此,根據表2之內容,所有四位元三進位值組合扣除映射閒符號已使用的組合,再扣除連續四個相同三進位值之三進位值組合後,其中{0,1,1,1}和{-1,1,1,1}均有三個連續的1或-1,映射單元120不將上述組合作為定界符。具體而言,於其中一些實施例中,映射單元120使用連續的{1,1,0,0},{1,1,0,0}作為起始定界符,而使用連續的{-1,-1,0,0},{-1,-1,0,0}作為結束定界符,另外使用連續的{1,-1,0,0},{1,-1,0,0}作為錯誤結束定界符。如此一來,可避免接收端遠端通訊裝置發生基準線漂移的問題,成功解讀所傳送之線路碼。 In an embodiment, the mapping unit 120 adds a delimiter to the ternary bit stream, and the consecutive three non-zero triad values included in the delimiter are not It is identical, that is, the delimiter does not contain three consecutive non-zero triad values. Therefore, according to the contents of Table 2, all the four-bit triple-digit value combinations are deducted from the combination already used for mapping the idle symbols, and then deducted from the combination of three consecutive value values of the same three-digit value, where {0, 1, 1, 1 } and {-1, 1, 1, 1} each have three consecutive 1's or -1s, and the mapping unit 120 does not use the above combination as a delimiter. In particular, in some of these embodiments, mapping unit 120 uses consecutive {1, 1, 0, 0}, {1, 1, 0, 0} as the starting delimiter, and uses consecutive {-1 , -1,0,0}, {-1,-1,0,0} as the end delimiter, in addition to using consecutive {1,-1,0,0}, {1,-1,0,0 } End the delimiter as an error. In this way, the problem of the baseline drift of the remote communication device at the receiving end can be avoided, and the transmitted line code can be successfully interpreted.

在又一實施例中,傳輸單元130自映射單元120接收已編碼完成的三進制位元流T[3:0](代表T1,T2,T3,T4所組成之三進制位元流),並以PAM-3編碼方式透過纜線將三進制位元流T[3:0]傳送至遠端通訊裝置。於一實施例中,纜線為一對雙絞線,而傳輸單元130將三進制位元流T[3:0]依照{T1,T2,T3,T4}或{T4,T3,T2,T1}的順序排列,透過該雙絞線傳送至遠端通訊裝置。於另一實施例中,纜線為4對雙絞線,傳輸單元130透過每一雙絞線分別傳送三進制位元流T[3:0]中之一者。 In still another embodiment, the transmission unit 130 receives the encoded ternary bit stream T[3:0] from the mapping unit 120 (representing a ternary bit stream composed of T1, T2, T3, and T4) The ternary bit stream T[3:0] is transmitted to the remote communication device via the cable in a PAM-3 encoding manner. In one embodiment, the cable is a pair of twisted pairs, and the transmission unit 130 divides the ternary bit stream T[3:0] according to {T1, T2, T3, T4} or {T4, T3, T2, The order of T1} is transmitted through the twisted pair to the remote communication device. In another embodiment, the cable is a 4-pair twisted pair, and the transmission unit 130 transmits one of the ternary bit streams T[3:0] through each twisted pair.

透過先將四位元封包流轉為六位元封包流,再將六位元封包流轉為三進制位元流之作法,通訊系統100於映射六位元封包流至三進制位元流時有較高的彈性,因此可避免所傳送線路碼中有連續相同之位元值,大大改善了基準 線飄移的現象,更提升了遠端通訊裝置解讀線路碼之成功率,另外,通訊系統100中的映射單元120更透過編碼規則,使接收端之遠端通訊裝置快速有效率地取得所傳送線路碼中的時脈資訊,進一步達到更佳的通訊品質。實驗數據亦顯示就傳輸資料的功率頻譜密度(power spectral density)而言,採用本揭示內容之技術方案較傳統將三位元二進制轉為二位元三進制的表現更佳。 By first streaming the four-bit packet to a six-bit packet stream and then converting the six-bit packet to a ternary bit stream, the communication system 100 maps the six-bit packet stream to the ternary bit stream. It has higher flexibility, so it can avoid the continuous same bit value in the transmitted line code, which greatly improves the benchmark. The phenomenon of line drifting further enhances the success rate of the remote communication device to interpret the line code. In addition, the mapping unit 120 in the communication system 100 further transmits the transmission line by using the coding rule to enable the remote communication device at the receiving end to quickly and efficiently obtain the transmission line. The clock information in the code further achieves better communication quality. The experimental data also shows that in terms of the power spectral density of the transmitted data, the technical solution of the present disclosure performs better than the conventional conversion of the three-bit binary to the binary ternary.

第2圖依照本揭示內容實施例繪示之一種通訊方法的流程圖。雖然流程圖中對於通訊方法200係以特定順序的步驟來做描述,然此並不限制本發明所提及步驟的前後順序。為了方便及清楚說明,以第1A圖所示的通訊系統100執行通訊方法200為例來進行闡述,但並不以此為限。 FIG. 2 is a flow chart of a communication method according to an embodiment of the disclosure. Although the communication method 200 is described in the flowchart in a particular order, the order of the steps referred to in the present invention is not limited. For the sake of convenience and clarity, the communication system 100 shown in FIG. 1A is described as an example, but is not limited thereto.

首先,通訊系統100由媒體獨立介面接收一四位元封包流,並將四位元封包流轉換為六位元封包流(S210步驟)。 First, the communication system 100 receives a four-bit packet stream from the media independent interface and converts the four-bit packet stream into a six-bit packet stream (step S210).

通訊系統100將所得六位元封包流映射至多個三進制位元流,並根據六位元封包流中至少一閒符號中的至少一特定位元,映射閒符號至三進制位元流(S220步驟)。於一實施例中,通訊系統100進行映射時所使用之特定位元包含最低有效位元,通訊系統100根據閒符號中最低有效位元決定三進制位元流中一第一位元流之三進位值。具體而言,當最低有效位元為零時,通訊系統100決定第一位元流之三進位值為零,當最低有效位元為非零時,通訊系統100決定第一位元流之三進位值為非零。 The communication system 100 maps the obtained six-bit packet stream to a plurality of ternary bit streams, and maps the idle symbols to the ternary bit stream according to at least one specific bit in at least one of the six-bit packet streams. (Step S220). In an embodiment, the specific bit used by the communication system 100 for mapping includes the least significant bit, and the communication system 100 determines a first bit stream in the ternary bit stream according to the least significant bit in the idle symbol. The triple value. Specifically, when the least significant bit is zero, the communication system 100 determines that the third bit value of the first bit stream is zero, and when the least significant bit is non-zero, the communication system 100 determines the third bit stream. The carry value is non-zero.

於其他實施例中,通訊系統100進行映射時所使用之特定位元包含第一中間位元和最大有效位元,通訊系統100根據閒符號中第一中間位元和最高有效位元決定三進制位元流中一第二位元流之三進位值。於另一些實施例中,通訊系統100進行映射時所使用之特定位元包含第一中間位元和第二中間位元,通訊系統100根據閒符號中第一中間位元和第二中間位元決定三進制位元流中一第三位元流之三進位值。 In other embodiments, the specific bit used by the communication system 100 for mapping includes the first intermediate bit and the most significant bit, and the communication system 100 determines the three-in-one according to the first intermediate bit and the most significant bit in the idle symbol. The triple value of a second bit stream in the bit stream. In other embodiments, the particular bit used by the communication system 100 to map includes a first intermediate bit and a second intermediate bit, and the communication system 100 is based on the first intermediate bit and the second intermediate bit in the idle symbol. Determines the triple value of a third bit stream in the ternary bit stream.

透過使用通訊方法200,通訊系統100將六位元封包流中的資料符號和閒符號均映射至三進制位元流,且於一實施例中,三進制位元流之數量為四個,四位元三進制數值組合數量(3的4次方)高於六位元二進制數值組合數量(2的6次方),增加映射至四位元三進制數值之選擇,提供映射六位元封包流至三進制位元流之彈性。 By using the communication method 200, the communication system 100 maps the data symbols and the idle symbols in the six-bit packet stream to the ternary bit stream, and in one embodiment, the number of ternary bit streams is four. , the number of quaternion ternary value combinations (3 to the power of 4) is higher than the number of hexadecimal binary values combined (2 to the 6th power), increasing the mapping to the quaternion ternary value selection, providing a map of six The bit stream flows to the elasticity of the ternary bit stream.

通訊系統100在三進制位元流中加入定界符(S230步驟),選用剩餘之三進制位元數值組合不包含三個相同的連續非零三進位值,亦即,通訊系統100所加入之定界符之任三個連續非零三進位值,均不會完全相同。如此一來,可增進基準線漂移之表現,提升資料傳輸正確率。 The communication system 100 adds a delimiter to the ternary bit stream (step S230), and selects the remaining ternary bit value combination to include three identical consecutive non-zero ternary values, that is, the communication system 100 Any three consecutive non-zero triad values of the delimiter added will not be identical. In this way, the performance of the baseline drift can be improved, and the data transmission accuracy rate can be improved.

通訊系統100將六位元封包流映射至三進制位元流後,將三進制位元流透過纜線傳送至遠端通訊裝置(S240步驟)。於一實施例中,通訊系統100使用PAM-3編碼方式傳送三進制位元流。 After the communication system 100 maps the six-bit packet stream to the ternary bit stream, the ternary bit stream is transmitted to the remote communication device via the cable (step S240). In one embodiment, communication system 100 transmits a ternary bit stream using PAM-3 encoding.

上述各步驟之實施細節已如前述,此處不再贅 述。 The implementation details of the above steps are as described above, and are no longer here. Said.

本揭示內容所描述通訊系統與通訊方法能改善接收端遠端通訊裝置所經歷之基準線漂移現象,另外,本揭示內容描述之編碼規則包括將六位元封包流轉換為至少四個的三進制位元流以及根據六位元封包流之特定位元決定三進制位元流之三進位值,採用上述編碼規則後,遠端通訊裝置能夠有效率地鎖定線路碼中之時脈資訊,並正確解讀線路碼,使有線網路通訊之錯誤率下降,並提高傳輸效率。 The communication system and communication method described in the present disclosure can improve the baseline drift phenomenon experienced by the remote communication device at the receiving end. In addition, the encoding rules described in the present disclosure include converting the six-bit packet stream into at least four three-inputs. The bit stream and the ternary value of the ternary bit stream are determined according to the specific bit of the hexadecimal packet stream. After the above coding rule, the remote communication device can efficiently lock the clock information in the line code. And correctly interpret the line code, so that the error rate of wired network communication is reduced, and the transmission efficiency is improved.

100‧‧‧通訊系統 100‧‧‧Communication system

110‧‧‧封包流轉換單元 110‧‧‧ Packet Flow Conversion Unit

112‧‧‧位元數轉換單元 112‧‧‧ bit-value conversion unit

114‧‧‧資料攪亂器 114‧‧‧Data scrambler

116‧‧‧側流攪亂器 116‧‧‧Side flow disrupter

120‧‧‧映射單元 120‧‧‧ mapping unit

130‧‧‧傳輸單元 130‧‧‧Transportation unit

Claims (10)

一種通訊系統,包含:一封包流轉換單元,用以接收一四位元封包流並轉換該四位元封包流為一六位元封包流;一映射單元,用以將該六位元封包流映射至複數個三進制位元流,並根據該六位元封包流中至少一閒符號(IDLE symbols)中的至少一特定位元,映射該至少一閒符號至該些三進制位元流;以及一傳輸單元,用以將該些三進制位元流透過一纜線傳送至一遠端通訊裝置。 A communication system includes: a packet stream conversion unit configured to receive a four-bit packet stream and convert the four-bit packet stream into a six-bit packet stream; and a mapping unit to stream the six-bit packet Mapping to a plurality of ternary bit streams, and mapping the at least one idle symbol to the ternary bits according to at least one specific bit in at least one IDLE symbols in the six-bit packet stream And a transmission unit for transmitting the ternary bit streams to a remote communication device through a cable. 如第1項所述之通訊系統,其中該至少一特定位元包含一最低有效位元,該映射單元用以根據該最低有效位元之二進位值,決定該些三進制位元流中一第一位元流之三進位值。 The communication system of claim 1, wherein the at least one specific bit comprises a least significant bit, and the mapping unit is configured to determine the ternary bit stream according to the binary value of the least significant bit A three-bit value of the first bit stream. 如第1項所述之通訊系統,其中該至少一特定位元包含一第一中間位元與一最大有效位元,該映射單元用以根據該第一中間位元與該最大有效位元之二進位值,決定該些三進制位元流中之一第二位元流之三進位值。 The communication system of claim 1, wherein the at least one specific bit comprises a first intermediate bit and a most significant bit, and the mapping unit is configured to use the first intermediate bit and the most significant bit The binary value determines the triple value of one of the second bit streams in the ternary bit stream. 如第1項所述之通訊系統,其中該至少一特定位元包含一第一中間位元與一第二中間位元,該映射單元用以根據該第一中間位元與該第二中間位元之二進位值,決定該些三進制位元流中之一第三位元流之三進位值。 The communication system of claim 1, wherein the at least one specific bit comprises a first intermediate bit and a second intermediate bit, the mapping unit configured to use the first intermediate bit and the second intermediate bit The binary carry value determines the triple value of one of the third bit streams in the ternary bit stream. 如第1項所述之通訊系統,其中該映射單元於該些三進制位元流中加入至少一定界符,且該至少一定界符中連續三個非零三進位值不完全相同。 The communication system of claim 1, wherein the mapping unit adds at least a delimiter to the ternary bit streams, and the consecutive three non-zero ternary values of the at least one delimiter are not identical. 一種通訊方法,包含:轉換一四位元封包流為一六位元封包流;將該六位元封包流映射至複數個三進制位元流,並根據該六位元封包流中至少一閒符號(IDLE symbols)中的至少一特定位元,映射該至少一閒符號至該些三進制位元流;以及將該些三進制位元流透過一纜線傳送至一遠端通訊裝置。 A communication method includes: converting a four-bit packet stream into a six-bit packet stream; mapping the six-bit packet stream to a plurality of ternary bit streams, and according to at least one of the six-bit packet streams At least one specific bit in the IDLE symbols, mapping the at least one idle symbol to the ternary bit streams; and transmitting the ternary bit streams to a remote communication through a cable Device. 如第6項所述之通訊方法,其中根據該至少一特定位元映射該至少一閒符號至該些三進制位元流之步驟包含:根據一最低有效位元之二進位值,決定該些三進制位元流中一第一位元流之三進位值,其中該至少一特定位元包含該最低有效位元。 The communication method of claim 6, wherein the step of mapping the at least one idle symbol to the ternary bit stream according to the at least one specific bit comprises: determining the value according to a binary value of a least significant bit A triple value of a first bit stream in the ternary bit stream, wherein the at least one specific bit bit comprises the least significant bit. 如第6項所述之通訊方法,其中根據該至少一特定位元映射該至少一閒符號至該些三進制位元流之步驟包含:根據一第一中間位元與一最大有效位元之二進位值,決定該些三進制位元流中之一第二位元流之三進位值,其中該至少一特定位元包含該第一中間位元與該最大有效位元。 The communication method of claim 6, wherein the mapping the at least one idle symbol to the ternary bit stream according to the at least one specific bit comprises: according to a first intermediate bit and a most significant bit The binary value determines a triple value of the second bit stream of the ternary bit stream, wherein the at least one specific bit includes the first intermediate bit and the most significant bit. 如第6項所述之通訊方法,其中根據該至少一特定位元映射該至少一閒符號至該些三進制位元流之步驟包含:根據一第一中間位元與一第二中間位元之二進位值, 決定該些三進制位元流中之一第三位元流之三進位值,其中該至少一特定位元包含該第一中間位元與該第二中間位元。 The communication method of claim 6, wherein the mapping the at least one idle symbol to the ternary bit stream according to the at least one specific bit comprises: according to a first intermediate bit and a second middle bit The binary value of the yuan, Determining a triplet value of one of the third bitstreams of the ternary bitstream, wherein the at least one particular bit comprises the first intermediate bit and the second intermediate bit. 如第6項所述之通訊方法,更包含:於該些三進制位元流中加入至少一定界符,且該至少一定界符中連續三個非零三進位值不完全相同。 The communication method according to Item 6, further comprising: adding at least a certain delimiter to the ternary bit stream, and the consecutive three non-zero triad values in the at least one delimiter are not completely the same.
TW104135454A 2015-03-11 2015-10-28 Communication system and method TWI641238B (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
CN201610096099.9A CN105978658B (en) 2015-03-11 2016-02-22 Communication system and method
US15/060,617 US9680673B2 (en) 2015-03-11 2016-03-04 Communication system and method
EP16158940.3A EP3068089B1 (en) 2015-03-11 2016-03-07 Communication system and method

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
US201562131254P 2015-03-11 2015-03-11
US62/131,254 2015-03-11

Publications (2)

Publication Number Publication Date
TW201633728A true TW201633728A (en) 2016-09-16
TWI641238B TWI641238B (en) 2018-11-11

Family

ID=57443315

Family Applications (1)

Application Number Title Priority Date Filing Date
TW104135454A TWI641238B (en) 2015-03-11 2015-10-28 Communication system and method

Country Status (1)

Country Link
TW (1) TWI641238B (en)

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7835389B2 (en) * 2006-09-20 2010-11-16 Broadcom Corporation Method and system for an extended range Ethernet line code using 4B/3B mapping
US7990292B2 (en) * 2008-03-11 2011-08-02 Vasco Data Security, Inc. Method for transmission of a digital message from a display to a handheld receiver

Also Published As

Publication number Publication date
TWI641238B (en) 2018-11-11

Similar Documents

Publication Publication Date Title
US9942064B2 (en) Data processing method and apparatus
US11025364B2 (en) Robust line coding scheme for communication under severe external noises
US9954644B2 (en) Ethernet data processing method, physical layer chip and Ethernet equipment
TW200833033A (en) Method and system for an extended range Ethernet line code
KR102655517B1 (en) Scrambling of payload and preamble by synchronous and self-synchronous scrambling in 10SPE
JP6514333B2 (en) Transmitter, DP source device, receiver and DP sink device
RU2627112C2 (en) Method, system and communication device for optical network system
US20120237032A1 (en) Two-stage block synchronization and scrambling
US7570591B2 (en) Method and apparatus for negotiating link speed and configuration
EP1351462A1 (en) Error Correcting 8B/10B Transmission System
EP3565201A1 (en) Wired communications device and method for operating a wired communications device
US9548864B2 (en) Device and method for encoding bits to symbols for a communication system
US10148284B2 (en) Apparatus and method for wired data communication
US11108842B2 (en) Wired communications device and method for operating a wired communications device
CN109698728A (en) Interconnection method, the service of connection devices and the storage medium of Interlaken interface and FlexE IMP
TWI641238B (en) Communication system and method
CN105978658B (en) Communication system and method
CN112543080A (en) Method and device for detecting error rate
JP3637289B2 (en) Method for encoding a multi-bit data word
Epperly et al. Galvanically Isolated SpaceWire
TWI433513B (en) System and method for generating test patterns of baseline wander