Serial data receiving device and serial data receiving method
By utilizing the boundary detection and calibration technology of the beginning and ending codes in 8B10B serial communication, the problem of the impact of bit errors on non-error packets is solved, and the accuracy and reliability of data reception are improved.
Patent Information
- Application Number
- CN202310936531.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2023-03-24
- Filing Date
- 2023-07-28
- Publication Date
- 2024-09-24
AI Technical Summary
In 8B10B serial communication, bit errors will affect non-error packets, leading to misjudgments and data loss. It is difficult to effectively isolate the impact of errors with existing technology.
By detecting and adjusting bit boundaries, the continuous arrangement of the beginning code and the end code is used to determine the data boundary to avoid the misjudgment propagation of bit errors. The method of combining the calibration part and the detection part is used to ensure accurate data decoding.
It effectively reduces the impact of bit errors on non-error packets, avoids unnecessary frame discarding, and improves the accuracy and reliability of data reception.
Smart Images

Figure CN118694477A
Abstract
Description
[0001] This application claims priority based on Japanese Patent Application No. 2023-048775 (filing date: March 24, 2023), and the present application incorporates the entire contents of the basic application by reference. Technical Field
[0002] The present invention relates to a serial data receiving device and a serial data receiving method for receiving serial data sent in packets. Background Art
[0003] Conventionally, a serial communication method for continuously transmitting and receiving data bit by bit has been widely used. In high-speed serial communication, an 8B10B method for converting 8-bit data into a 10-bit code (also called a symbol) and transmitting the code is becoming popular.
[0004] In the 8B10B method, when converting 8-bit data into a 10-bit code, the run length is limited in such a way that the difference between the number of "1" and "0" in the data is always within + / -1, and the bit values "0" and "1" are not continuous for more than 5 bits. This can suppress the low-frequency components contained in the serial signal and reduce the inter-signal interference (ISI: Inter Symbol Interference) jitter. Furthermore, in the 8B10B method, the maximum toggle frequency of "0" and "1" repeated multiple times alternately is not continuous across the code. This also suppresses the high-frequency components contained in the serial signal.
[0005] In addition, when a packet consisting of a plurality of word data is transmitted from a serial data transmission device and received by a serial data reception device, a bit error may occur due to the influence of noise, etc. The serial data reception device detects the occurrence of a bit error by using an error detection method such as CRC (Cyclic Redundancy Check). And, when a bit error is detected, the serial data reception device sends a packet retransmission request to the serial data transmission device.
[0006] However, depending on the bit error that has occurred, the influence of the bit error may affect packets other than the packet in which the bit error has occurred. Summary of the invention
[0007] An object of the present invention is to provide a serial data receiving device and a serial data receiving method which can reduce the influence of a bit error on packets other than the packet where the bit error occurs.
[0008] The serial data receiving device of the technical solution comprises: a detection unit, which detects a specific bit arrangement from the bit arrangement of parallel data of 3 words converted from serial data and not adjusted and calibrated, in which an idle code of a word indicating no data code or an end code of a word indicating the end of a packet and a start code of a word indicating the beginning of the packet are continuous in sequence; and a calibration unit, which adjusts the calibration of the word data based on the bit boundary of the detected above-mentioned specific bit arrangement. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] Figure 1 It is a block diagram showing the structure of a serial data receiving device according to a comparative example.
[0010] Figure 2 The first embodiment and the comparative example are diagrams showing a general configuration example of a packet of the 8B10B format.
[0011] Figure 3 The first embodiment and the comparative example are diagrams showing an example in which an idle code indicating no data is transmitted when there is no data to be transmitted in the 8B10B system.
[0012] Figure 4 This is a diagram showing a partial example of a data code table used in the 8B10B method in relation to the first embodiment and the comparative example.
[0013] Figure 5 This is a table showing an example of a control code table used in the 8B10B method in relation to the first embodiment and the comparative example.
[0014] Figure 6 The first embodiment and the comparative example are diagrams showing a start code indicating the start of a packet and two data codes as an example arranged in an array in the 8B10B method.
[0015] Figure 7 Regarding the first embodiment and the comparative example, Figure 6 The diagram shows an example in which, when two data codes are transmitted successively, if a bit error occurs, the same bit arrangement as the leading code is generated.
[0016] Figure 8 The diagrams show examples of discarding frames in which bit errors occur when bit errors occur in packets in relation to the first embodiment and the comparative example.
[0017] Fig. 9 The comparative example is a diagram showing an example in which, when a bit error occurs in a certain packet and a bit arrangement identical to the head code occurs, not only the frame in which the bit error occurs is discarded but also the next frame is discarded.
[0018] Fig.10 This is a block diagram showing the configuration of a serial data receiving device according to the first embodiment.
[0019] Fig.11 The diagram of the first embodiment shows an example in which, even if a bit sequence identical to a head code is generated due to a bit error, the next frame of the frame in which the bit error occurred is not discarded.
[0020] Fig.12 This is a block diagram showing the configuration of a serial data receiving device according to a modified example of the first embodiment. DETAILED DESCRIPTION
[0021] Hereinafter, comparative examples and embodiments will be described with reference to the drawings. Figure 1 It is a block diagram showing the structure of a serial data receiving device according to a comparative example.
[0022] The serial data receiving device is a receiver that receives serial data transmitted from a serial data transmitting device (transmitter) via a communication path in a serial communication system. In addition, an example of a serial communication system using the 8B10B method is described below.
[0023] The serial data receiving device of the comparative example includes a serial / parallel conversion unit 1, a start code detection unit 2, a calibration unit 3, a 10B8B decoder 4, a counter 5, a buffer 6, and a resend processing unit 7.
[0024] The serial / parallel conversion unit 1 receives serial data DATA, converts the serial data DATA into parallel data of a first bit width (10 bits in the 8B10B method), and transmits the parallel data as one-word data.
[0025] Specifically, the serial / parallel converter 1 receives serial data DATA and a clock CLK. The serial / parallel converter 1 converts the 10-bit serial data DATA sequentially received in synchronization with the clock CLK into parallel data [9:0] and transmits the parallel data.
[0026] In addition, [9:0] indicates 10-bit data from bit 0 to bit 9. In addition, 10-bit or 8-bit data transferred as parallel data in the serial data receiving device is appropriately referred to as word data.
[0027] The serial / parallel converter 1 simply converts the input serial data DATA into parallel data [9:0] every 10 bits. Therefore, the parallel data [9:0] usually spans two words of data transmitted by the serial data transmitter and needs to be processed by the calibration unit 3 at the subsequent stage.
[0028] The start code detection unit 2 (second detection unit) stores two consecutive words of 10-bit word data received from the serial / parallel conversion unit 1. The start code detection unit 2 searches for a start code K28.5 (one of the control codes (K code)) corresponding to the first word of the packet pkt from the bit arrangement of the stored two words of data (refer to Figure 5 ) consistent 10-bit bit arrangement.
[0029] If the search results in the detection of a bit arrangement that matches the start code K28.5, the start code detection unit 2 sends a boundary indication signal Sig1 indicating a calibrated bit boundary (word boundary). The boundary indication signal Sig1 includes information indicating how many bits are required to shift the 10-bit boundary of the word data received from the serial / parallel conversion unit 1 to obtain correct word data.
[0030] The calibration unit 3 holds the 10-bit word data received from the serial / parallel conversion unit 1 for two consecutive words. The calibration unit 3 sends the parallel data received from the serial / parallel conversion unit 1 as it is until it receives the boundary indication signal Sig1 from the start code detection unit 2. When the calibration unit 3 receives the boundary indication signal Sig1 from the start code detection unit 2, it sets a correct 10-bit boundary in the bit arrangement of the two consecutive words of data held, adjusts the calibration, and sends the one-word data after the calibration to the 10B8B decoder 4.
[0031] Furthermore, after receiving the boundary indication signal Sig1 , the calibration unit 3 transmits the timing signal Sig3 to the counter 5 every time one word of data after the calibration is adjusted is transmitted.
[0032] 10B8B decoder 4 (8B10B decoder) Figure 4 The data code (D code) table shown in Figure 5 The control code table shown decodes one word of data of the first bit width (10 bits in the 8B10B method) received from the calibration unit 3 into one word of data of the second bit width (8 bits in the 8B10B method) narrower than the first bit width. In addition, the data code table and the control code table are collectively referred to as a code table.
[0033] Figure 2 The first embodiment and the comparative example are diagrams showing a general configuration example of a packet of the 8B10B format. Figure 5 This is a table showing an example of a control code table used in the 8B10B method in relation to the first embodiment and the comparative example.
[0034] like Figure 2 and Figure 5As shown, in the 8B10B method, the start code K28.5, which is a 1-word control code indicating the start of the packet pkt, is called "Comma". In addition, the end code K29.7, which is a 1-word control code indicating the end of the packet pkt, is called "END".
[0035] A packet pkt starts with a start code K28.5 (Comma) and ends with an end code K29.7 (END). Data codes (D**.*) are arranged in the portion sandwiched between the start code K28.5 and the end code K29.7 (D**.* is any one of D0.0 to D31.7 as described below). It is assumed that the number of words of the data code arranged in a packet pkt other than the start code K28.5 and the end code K29.7 is a fixed length of N. In this case, the fixed length of a packet pkt including the start code K28.5 and the end code K29.7 is (N+2) words.
[0036] The counter 5 receives the timing signal Sig3 from the calibration unit 3. The counter 5 counts up the number of timing signals Sig3 received after the 10-bit boundary is set by the calibration unit 3. When the counted value of the counter 5 reaches the number of words N of the data code sandwiched by the start code K28.5 and the end code K29.7, the counter 5 sends a packet completion signal Sig4 indicating that the end (end) of the packet pkt has been reached to the buffer 6. In addition, when the calibration unit 3 receives the boundary indication signal Sig1 based on the start code K28.5 and resets the 10-bit boundary, the counter 5 is reset.
[0037] The buffer 6 sequentially stores the 8-bit word data transmitted from the 10B8B decoder 4 and holds at least one frame of data corresponding to one packet pkt.
[0038] The buffer 6 includes a CRC unit 6a (error detection unit). When receiving the packet completion signal Sig4 from the counter 5, the CRC unit 6a performs a CRC (Cyclic Redundancy Check) on the data codes (D**.*) in one frame stored in the buffer 6 except for the start code K28.5 and the end code K29.7, and detects a bit error. When the CRC unit 6a does not detect a bit error, the data of the frame stored in the buffer 6 can be used by the subsequent component.
[0039] On the other hand, if the CRC unit 6a detects a bit error, the frame data held in the buffer 6 is discarded, and use by subsequent components becomes impossible. Furthermore, if the CRC unit 6a detects a bit error, it sends an error signal Sig5 to the resend processing unit 7.
[0040] Upon receiving the error signal Sig5 from the CRC unit 6a, the resend processing unit 7 transmits a resend request signal for requesting resending of the packet pkt in which a bit error has been detected, to the serial data transmission device of the serial communication system.
[0041] In such a configuration, the 10B8B decoder 4 monitors whether the decoded result is the start code K28.5 or not. Figure 4 and Figure 5 The code table shown correctly decodes a certain number of ( Figure 2 When the M word data shown in FIG. 1 are decoded correctly, an enable signal Sig2 is sent to the start code detection unit 2.
[0042] Figure 3 The first embodiment and the comparative example are diagrams showing an example in which an idle code indicating no data is transmitted when there is no data to be transmitted in the 8B10B system.
[0043] exist Figure 3 In the example shown, the idle period is before the first packet pkt1 and between the first packet pkt1 and the second packet pkt2. During the idle period, the serial data transmission device transmits an idle code. The idle code K28.3, which is a control code of 1 word, is called "Idle" (refer to Figure 5 ).
[0044] The 10B8B decoder 4 decodes the packet pkt to confirm whether the calibration adjusted by the calibration unit 3 is correct. Figure 2 The data codes (M) words shown are also monitored to see whether they are correctly decoded.
[0045] Figure 4 In relation to the first embodiment and the comparative example, a diagram is provided showing an example of a portion of a data code table used in the 8B10B method. Figure 4 , data codes D0.0 to D7.0 are illustrated as part of a data code table used in the 8B10B method, but the actual data code table includes data codes D0.0 to D31.7.
[0046] exist Figure 4 In the 10-bit converted code, there are two types of running disparity (RD: running disparity): positive (+) / negative (-). Therefore, there are 256×2=512 types of data codes. The initial value of the running disparity is negative, and in principle, the code with negative running disparity and the code with positive running disparity are sent alternately from the serial data transmission device.
[0047] also, Figure 5Regarding the control codes shown in the example, considering RD+ / -, there are 9 × 2 = 18 types. Thus, the number of types of codes obtained by adding the data codes and the control codes together is, for example, 512 + 18 = 530 types. On the other hand, there are 1024 types of 10-bit bit arrangements. Thus, there are approximately 500 types of 10-bit bit arrangements that do not exist in the code table. If, for example, word data with a random bit arrangement is received, the 10B8B decoder 4 detects a 10-bit bit arrangement that does not exist in the code table with a probability of approximately 1 / 2. The 10B8B decoder 4 thus monitors 10-bit bit arrangements that are not correctly decoded.
[0048] The serial data transmission device of the 10B8B method refers to Figure 4 the data code table to convert (encode) 8-bit data into 10-bit data codes, and attach Figure 5 10-bit control codes as shown in the control code table and transmit them.
[0049] After the 10B8B decoder 4 decodes the start code K28.5, during the reception of Figure 2 the M (M < N) word data shown, if the received 10-bit data is recorded in the data code table, an enable signal Sig2 is sent to the start code detection unit 2. The enable signal Sig2 is a signal indicating that since the data code has been correctly decoded, the synchronization of the 10-bit boundary should be maintained. In addition, when the received 10-bit data is not recorded in the data code table, the 10B8B decoder 4 does not send the enable signal Sig2 to the start code detection unit 2.
[0050] Furthermore, when the received data codes are correctly decoded up to M, the 10B8B decoder 4 determines that the currently set 10-bit boundary is correct. And if the received data codes exceed M, the 10B8B decoder 4 stops sending the enable signal Sig2 to enable the detection of the next start code K28.5.
[0051] Once the start code detection unit 2 detects the start code K28.5, during the reception of the enable signal Sig2, it considers the boundary indication signal Sig1 sent to the calibration unit 3 to be correct and does not search for 10-bit bit arrangements that match the start code K28.5. Thus, the synchronization of the 10-bit boundary is maintained during the period when the start code detection unit 2 receives the enable signal Sig2.
[0052] On the other hand, if the start code detection unit 2 does not receive the enable signal Sig2, it starts searching for 10-bit bit arrangements that match the start code K28.5 again.
[0053] Figure 6The first embodiment and the comparative example are diagrams showing the arrangement of the start code K28.5 indicating the start of a packet and two data codes D9.3 and D22.0 as examples in the 8B10B format. Figure 7 Regarding the first embodiment and the comparative example, Figure 6 The diagram shows an example of a bit arrangement that is the same as the leading code K28.5 when two data codes D9.3 and D22.0 are transmitted successively and a bit error occurs.
[0054] if Figure 6 As shown in the figure, the RD+ data code D9.3 and the RD+ data code D22.0 are sent continuously, which becomes Figure 7 The bits are arranged as shown. Figure 7 , the bit arrangement of the portion surrounded by the dotted ellipse is "0011011010".
[0055] At this time, if the leading bit of the RD+ data code D22.0 is "0" (in Figure 7 If the bit enclosed by the solid rectangle in the figure changes to "1" due to a bit error, the bit arrangement of the part enclosed by the dotted ellipse becomes "0011111010", which is the same as the bit arrangement of the starting code K28.5 of RD-.
[0056] In addition, Figure 7 : An example is shown in which a bit arrangement identical to the starting code K28.5 is produced due to a bit error occurring in the data code on the rear side of two consecutive data codes, but the present invention is not limited to this. There are also cases in which a bit arrangement identical to the starting code K28.5 is produced due to a bit error occurring in the data code on the front side.
[0057] Figure 8 The diagram shows an example in which, when a bit error occurs in a packet pkt, a frame in which the bit error occurs is discarded, in relation to the first embodiment and the comparative example.
[0058] The CRC unit 6a detects whether a bit error has occurred in the entire data code within one frame. The serial data transmission device regards the entire data code within one frame as a number, and generates and transmits a data code with a remainder of 0 by adding the remainder when divided by a specific number to the data code. The CRC unit 6a divides the entire data code within one frame received by a specific number, and if the remainder is 0, it detects that no bit error has occurred, and if the remainder is other than 0, it detects that a bit error has occurred.
[0059] If the CRC unit 6a detects that a bit error has occurred, the frame in which the bit error has occurred is discarded (specifically, it cannot be used by the subsequent components). Figure 8 As shown, normal operation is performed from the frame next to the frame in which the bit error occurred.
[0060] Fig. 9 The comparative example is a diagram showing an example in which, when a bit error occurs in a certain packet pkt and a bit arrangement identical to the leading code K28.5 is generated, not only the frame in which the bit error occurred is discarded but also the next frame is discarded.
[0061] Assume that the reference Figure 7 As described above, the same bit arrangement as the start code K28.5 occurs across the 10-bit boundary between two word data.
[0062] At this time, if the position where the bit arrangement identical to the starting code K28.5 occurs is within the number of words M from the beginning of the packet pkt excluding the starting code K28.5, the enable signal Sig2 is received, so the starting code detection unit 2 does not search for a 10-bit bit arrangement consistent with the starting code K28.5.
[0063] Thus, since the synchronization of the adjusted 10-bit boundaries is maintained, Figure 7 The two words of data shown are interpreted as one word of correct data code D9.3 and one word of bit-error-incurred data code D22.0, and only one frame including the bit-error-incurred data code D22.0 is discarded.
[0064] On the other hand, if the position where the bit arrangement identical to the start code K28.5 occurs is a position where the number of words exceeds M except the start code K28.5 from the beginning of the packet pkt, the enable signal Sig2 is not received, so the start code detection unit 2 searches for a 10-bit bit arrangement identical to the start code K28.5. Figure 7 The same bit arrangement as the leading code K28.5 is detected in the two word data shown.
[0065] The bit sequence detected at this time is called the suspected start code K28.5. The start code detection unit 2 sends a new boundary indication signal Sig1 corresponding to the position of the suspected start code K28.5 within two words to the calibration unit 3. As a result, the calibration unit 3 generates a new boundary indication signal Sig1 in the first word. Figure 7 The bit arrangement enclosed by the dotted ellipse in is set as the new 10-bit boundary. Fig. 9 In FIG. 1 , the new 10-bit boundary represented by the dotted line is set at a position offset from the original 10-bit boundary represented by the solid line. Fig. 9 The data sequence represented by the dotted line is sequentially sent from the calibration unit 3 as a new packet pkt.
[0066] If the calibration unit 3 sets the 10-bit boundary based on the boundary indication signal Sig1 based on the suspected start code K28.5, the counter 5 is reset. Figure 2 As shown, the number of words of the data code in one packet pkt is N, so the data from the start code K28.5 to the suspected start code K28.5 is discarded.
[0067] Next, the counter 5 counts up the number of timing signals Sig3 received after the calibration unit 3 sets the 10-bit boundary according to the boundary indication signal Sig1 based on the pseudo start code K28.5 in the same manner as described above. At this time, it is assumed that the bit arrangement of the word data sent from the calibration unit 3 following the pseudo start code K28.5 is consistent with any of the bit arrangements of the data codes D0.0 to D31.7 in the data code table. Hereinafter, the bit arrangement that is not the original data code but is recognized as a data code (D**.*) is referred to as a pseudo data code (D**.*).
[0068] Assume that Fig. 9 The dotted line indicates that the suspected data code (D**.*) is continuously sent during the period, as shown by Fig. 9 As indicated by the solid line, the start code K28.5 of the original next packet pkt is sent. At this time, if the position of the start code K28.5 of the original next packet pkt is within the number of words M from the suspected start code K28.5, as described above, the start code detection unit 2 does not search for a 10-bit bit arrangement that matches the start code K28.5. Therefore, the start code K28.5 of the original next packet pkt is not recognized, and as a result, the next frame is also discarded.
[0069] Thus, when a bit error causes the same bit arrangement as the starting code K28.5, depending on the position of the bit error, not only the frame where the bit error occurred but also the next frame of the frame where the bit error occurred may be affected, causing two consecutive frames to be discarded.
[0070] Fig.10 FIG. 1 is a block diagram showing the structure of a serial data receiving device according to the first embodiment. Fig.10 In the description of the present invention, the same reference numerals are given to the same parts as above, and the description is appropriately omitted, and the different points are mainly described.
[0071] The serial data receiving device according to the first embodiment has the following features: Figure 1 In addition to the illustrated configuration, an end code / idle code detection unit 11 and a latch circuit 12 are further provided.
[0072] The serial / parallel conversion unit 1 is connected to the end code / idle code detection unit 11. The end code / idle code detection unit 11 is connected to the latch circuit 12. The latch circuit 12 is connected to the start code detection unit 2.
[0073] In addition, the 10B8B decoder 4 does not Figure 1 The enable signal Sig2 shown is sent to the start code detection unit 2, but the start code detection unit 2 does not use the enable signal Sig2 in the process.
[0074] The end code / idle code detection unit 11 stores two consecutive words of the 10-bit word data received from the serial / parallel conversion unit 1. The end code / idle code detection unit 11 searches for a 10-bit bit arrangement that matches the bit arrangement of the idle code K28.3 of one word indicating no data code and the bit arrangement of the end code K29.7 of one word indicating the end of the packet pkt from the bit arrangement of the two words of data stored.
[0075] When a bit sequence that matches either the idle code K28.3 or the end code K29.7 is detected as a result of the search, the end code / idle code detection unit 11 transmits the first detection signal SigA to the latch circuit 12 .
[0076] The first detection signal SigA includes information indicating that a 10-bit boundary of word data received from the serial / parallel conversion unit 1 is detected at a position shifted by several bits from a bit arrangement that matches either the idle code K28.3 or the end code K29.7.
[0077] The latch circuit 12 receives the first detection signal SigA from the end code / idle code detection unit 11 and holds the first detection signal SigA. The period during which the latch circuit 12 holds the first detection signal SigA is the period during which the start code detection unit 2 searches for the bit arrangement of the start code K28.5 from the bit arrangement of two consecutive words of data including the data of the next word.
[0078] This period is the same as the period during which the end code / idle code detection unit 11 searches for the bit arrangement of either the idle code K28.3 or the end code K29.7 from the bit arrangement of two consecutive words of data including the data of the next word.
[0079] While holding the first detection signal SigA, the latch circuit 12 transmits the second detection signal SigB to the start code detection unit 2. The second detection signal SigB includes information indicating how many bits the 10-bit boundary is shifted, similar to the first detection signal SigA described above.
[0080] The start code detection unit 2 monitors whether a bit arrangement consistent with the start code K28.5 is detected at the position of the 10-bit boundary indicated by the second detection signal SigB in the bit arrangement of the two-word data while receiving the second detection signal SigB from the latch circuit 12. If a bit arrangement consistent with the start code K28.5 is detected, the start code detection unit 2 sends a boundary indication signal Sig1 to the calibration unit 3.
[0081] The boundary indication signal Sig1 transmitted here includes 10-bit boundary information common to the bit sequence that matches one of the idle code K28.3 and the end code K29.7 and the bit sequence that matches the start code K28.5.
[0082] Thus, the start code detection unit 2 sends the boundary indication signal Sig1 to the calibration unit 3 when the idle code K28.3 and the start code K28.5 are sent successively from the serial / parallel conversion unit 1, or when the end code K29.7 and the start code K28.5 are sent successively.
[0083] The above-mentioned end code / idle code detection unit 11 (first detection unit), latch circuit 12, and start code detection unit 2 (second detection unit) constitute a detection unit.
[0084] The data of two consecutive words of idle code K28.3 or end code K29.7 detected by the end code / idle code detection unit 11 and the data of two consecutive words of start code K28.5 detected by the start code detection unit 2 are deviated by one word. Therefore, the detection unit detects a specific bit arrangement of idle code K28.3 or end code K29.7 and start code K28.5 in sequence from the bit arrangement of three words of parallel data that have not been adjusted after conversion from the serial data DATA.
[0085] In addition, since the start code detection unit 2 does not receive the enable signal Sig2, the detection of a specific bit arrangement by the detection unit is performed every time word data is transmitted from the serial / parallel conversion unit 1.
[0086] The result of the calibration unit 3 detecting a specific bit arrangement is that if the boundary indication signal Sig1 is received from the start code detection unit 2, the correct 10-bit boundary is set in the bit arrangement of two consecutive words of data maintained as described above and the calibration is adjusted, and the 1-word data after the adjustment and calibration is sent to the 10B8B decoder 4.
[0087] Other configurations and functions of the serial data receiving device according to the first embodiment Figure 1 The comparative example shown is the same.
[0088] Fig.11 This is a diagram related to the first embodiment, and shows an example in which even if a bit sequence identical to the leading code K28.5 is generated due to a bit error, the next frame of the frame in which the bit error occurred is not discarded.
[0089] Assume that Fig.11 In the example, also with Fig. 9 In the example of , a pseudo start code K28.5 is generated due to a bit error at a position exceeding M words from the beginning of the packet pkt except for the start code K28.5.
[0090] In the configuration of the first embodiment, a bit sequence that matches either the idle code K28.3 or the end code K29.7 is not detected before the pseudo start code K28.5. Therefore, the end code / idle code detection unit 11 does not send the first detection signal SigA, and the latch circuit 12 does not send the second detection signal SigB.
[0091] Therefore, the condition for the start code detection unit 2 to send the boundary indication signal Sig1, that is, the condition that the period during which the bit arrangement consistent with the start code K28.5 is detected is the period during which the second detection signal SigB is received, is not satisfied. Therefore, the start code detection unit 2 does not send a new boundary indication signal Sig1 to the calibration unit 3, and the synchronization of the 10-bit boundary is maintained.
[0092] Results, such as Fig.11 As shown, although the frame in which a bit error occurred is discarded, since the idle code K28.3 and the head code K28.5 are detected continuously for the next frame, it is not discarded and the normal operation is performed.
[0093] According to the first embodiment, even if a pseudo start code K28.5 is generated in a packet due to a bit error, it is possible to reduce the influence of the bit error on packets other than the packet in which the bit error occurred.
[0094] Fig.12 This is a block diagram showing the configuration of a serial data receiving device according to a modified example of the first embodiment.
[0095] This modification example is from Fig.10 The end code / idle code detection unit 11 and the latch circuit 12 are omitted in the configuration of the first embodiment shown in FIG. Figure 1 The comparative example shown is different in that the 10B8B decoder 4 does not send the enable signal Sig2 to the start code detection unit 2, and the start code detection unit 2 does not use the enable signal Sig2 in the process.
[0096] In this case, the detection of the bit arrangement of the start code K28.5 by the start code detection unit 2 is performed every time word data is transmitted from the serial / parallel conversion unit 1. As a result, the pseudo start code K28.5 is detected.
[0097] However, the start code K28.5 of the actual next packet pkt transmitted after the suspected start code K28.5 is also detected by the start code detection unit 2.
[0098] Therefore, the frame following the frame in which the bit error occurred is not discarded, and normal operation is performed from the next frame.
[0099] As described above, according to the modification of the first embodiment, it is also possible to reduce the influence of a bit error on packets other than the packet in which the bit error occurred.
[0100] In the above, the serial data receiving device is mainly described, but the embodiment of the present invention may be a serial data receiving method in which the configuration of each unit is renamed as a processing procedure.
[0101] In addition, although the example of the serial communication system of the 8B10B method is described above, the embodiment is not limited to this. The embodiment can be widely applied to a serial communication system in which a packet starts with a 1-word start code, and a 1-word idle code indicating no data code or a 1-word end code indicating the end of the packet is configured before the start code.
[0102] Several embodiments of the present invention have been described, but these embodiments are shown as examples and are not intended to limit the scope of the invention. These new embodiments can be implemented in various other forms, and various omissions, substitutions, and changes can be made without departing from the scope of the invention. These embodiments and their variations are included in the scope or spirit of the invention, and are included in the invention described in the claims and the scope of their equivalents.
Claims
1. A serial data receiving device, wherein: have: a detection unit that detects a specific bit arrangement in which an idle code of one word indicating no data code or an end code of one word indicating the end of a packet and a start code of one word indicating the beginning of a packet are continuous in order from a bit arrangement of three words of parallel data converted from serial data and not calibrated; and The calibration unit adjusts the calibration of the word data based on the detected bit boundary of the specific bit arrangement.
2. The serial data receiving device according to claim 1, wherein: A serial / parallel conversion unit is provided, which converts the received serial data into parallel data of a first bit width and transmits the parallel data as one word of data; The detection unit has: The first detection unit searches for the bit arrangement of the idle code and the bit arrangement of the end code from the bit arrangement of the two consecutive words of data received by the serial / parallel conversion unit, and sends a first detection signal when either one is detected; a latch circuit that receives the first detection signal from the first detection unit and holds the first detection signal while the first detection unit detects either of the bit arrays of two consecutive words of data including data of the next word; and a second detection unit for detecting a bit arrangement of the head code from the bit arrangement of the two consecutive words of data received from the serial / parallel conversion unit, and for transmitting a boundary indication signal indicating a calibrated bit boundary when the bit arrangement of the head code is detected during a period in which the first detection signal is held in the latch circuit; The calibration unit, when receiving the boundary indication signal from the second detection unit, transmits one word of data adjusted and calibrated from the bit arrangement of two consecutive words of data received from the serial / parallel conversion unit; The serial data receiving device further includes a decoder configured to decode the one-word data of the first bit width received from the calibration unit into one-word data of a second bit width narrower than the first bit width.
3. The serial data receiving device according to claim 2, wherein: After receiving the boundary indication signal, the calibration unit sends a timing signal each time a word of data with calibration adjusted is sent; The serial data receiving device further comprises: a counter receiving the timing signal from the calibration unit, counting the number of the received timing signals, and sending a packet completion signal when the number of words of one packet excluding the start code and the end code is counted; A buffer for holding at least one packet of one word of data received from the decoder; an error detection unit that detects a bit error in data other than the start code and the end code in the data of one packet held in the buffer before receiving the packet completion signal from the counter, and transmits an error signal when a bit error is detected; as well as The retransmission processing unit, when receiving the error signal from the error detection unit, requests the serial data transmission device to retransmit the packet in which the bit error is detected.
4. The serial data receiving device according to claim 2, wherein: The above serial data is data encoded in 8B10B mode; The first bit width is 10 bits, and the second bit width is 8 bits; The above decoder is a 10B8B decoder that decodes a 10-bit code into 8-bit data with reference to a code table of the 8B10B method.
5. A serial data receiving method, wherein: have: A detection step, detecting a specific bit arrangement from the bit arrangement of the three-word parallel data converted from the serial data and not calibrated, in which an idle code of one word indicating no data code or an end code of one word indicating the end of a packet and a start code of one word indicating the beginning of the packet are continuous in order; as well as The calibration step adjusts the calibration of the word data based on the detected bit boundary of the above-mentioned specific bit arrangement.
