Serial data receiving device and method for receiving serial data
The device addresses the issue of bit errors affecting adjacent frames by using detection units to adjust alignment and correct synchronization, reducing frame discarding and maintaining packet integrity.
Patent Information
- Application Number
- JP2023048775
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-24
- Publication Date
- 2024-10-07
- Estimated Expiration
- 2043-03-24
Smart Images

Figure 2024137305000001_ABST
Abstract
Description
[Technical field]
[0001] An embodiment of the present invention relates to a serial data receiving device and a serial data receiving method for receiving serial data transmitted in packets. [Background technology]
[0002] Serial communication methods that transmit and receive data one bit at a time have been widely used for a long time. In high-speed serial communication, the 8B10B method, which converts 8-bit data into a 10-bit code (also called a symbol) and transmits it, is widely used.
[0003] In the 8B10B method, when converting 8-bit data into a 10-bit code, the difference between the number of "1"s and "0"s in the data is always kept within ±1, and the run length is limited so that the bit values "0" and "1" do not occur more than five bits in a row. This suppresses the low-frequency components contained in the serial signal and reduces inter-symbol interference (ISI) jitter. Furthermore, the 8B10B method prevents the maximum toggle frequency, where "0"s and "1"s alternate multiple times, from occurring consecutively across codes. This also suppresses the high-frequency components contained in the serial signal.
[0004] However, when a packet consisting of a plurality of data words is transmitted from a serial data transmitting device and received by a serial data receiving device, a bit error may occur due to the influence of noise, etc. The serial data receiving device detects the occurrence of a bit error by employing an error detection method such as CRC (Cyclic Redundancy Check). When a bit error is detected, the serial data receiving device transmits a request to resend the packet to the serial data transmitting device.
[0005] However, depending on the bit error that occurs, the bit error may affect packets other than the packet in which the bit error occurred. [Prior art documents] [Patent documents]
[0006] [Patent Document 1] Patent No. 4967341 Summary of the Invention [Problem to be solved by the invention]
[0007] Therefore, an object of the embodiments is to provide a serial data receiving device and a serial data receiving method that can reduce the influence of a bit error on packets other than the packet in which the bit error occurs. [Means for solving the problem]
[0008] The serial data receiving device of the embodiment includes a detection unit that detects a specific bit sequence in which one word of idle code indicating the absence of a data code or one word of end code indicating the end of a packet and one word of start code indicating the start of a packet are consecutively arranged from a bit sequence of three words of parallel data converted from serial data and whose alignment has not been adjusted, and an alignment unit that adjusts the alignment of the word data based on the bit boundary of the detected specific bit sequence. [Brief description of the drawings]
[0009] [Figure 1] FIG. 1 is a block diagram showing a configuration of a serial data receiving device according to a comparative example. [Diagram 2] FIG. 2 is a diagram showing a typical configuration example of a packet in the 8B10B system according to the first embodiment and a comparative example. [Diagram 3] FIG. 11 is a diagram relating to the first embodiment and the comparative example, showing an example in which an idle code indicating that there is no data code is transmitted when there is no data to transmit in the 8B10B system. [Figure 4]1 is a diagram showing an example of a portion of a data code table used in the 8B10B system according to the first embodiment and a comparative example. [Diagram 5] 4 is a diagram showing an example of a control code table used in the 8B10B system according to the first embodiment and a comparative example. [Figure 6] 1 is a table relating to the first embodiment and the comparative example, showing a head code indicating the head of a packet and two data codes as an example in the 8B10B system. [Figure 7] FIG. 7 is a diagram relating to the first embodiment and the comparative example, showing an example in which, when a bit error occurs when the two data codes shown in FIG. 6 are transmitted consecutively, a bit sequence identical to that of the first code is generated. [Figure 8] FIG. 11 is a diagram showing an example in which, when a bit error occurs in a packet, a frame in which a bit error has occurred is discarded, according to the first embodiment and the comparative example. [Figure 9] FIG. 11 is a diagram showing an example of a comparative example in which, when a bit error occurs in a packet, resulting in a bit sequence identical to that of the first code, not only the frame in which the bit error occurred but also the next frame is discarded. [Figure 10] 1 is a block diagram showing a configuration of a serial data receiving device according to a first embodiment. [Figure 11] FIG. 11 is a diagram showing an example in which, even if a bit error causes a bit sequence identical to that of a leading code, the frame next to the frame in which the bit error occurs is not discarded, according to the first embodiment. [Figure 12] FIG. 11 is a block diagram showing a configuration of a serial data receiving device according to a modified example of the first embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0010] A comparative example and an embodiment will be described below with reference to the drawings. Fig. 1 is a block diagram showing the configuration of a serial data receiving device according to the comparative example.
[0011] A 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 the following, an example of a serial communication system that employs the 8B10B method will be described.
[0012] The serial data receiving device of the comparative example includes a serial-parallel conversion unit 1, a head code detection unit 2, an alignment unit 3, a 10B8B decoder 4, a counter 5, a buffer 6, and a retransmission processing unit .
[0013] The serial-parallel converter 1 receives serial data DATA, converts the serial data DATA into parallel data of a first bit width (10 bits in the 8B10B system), and transmits the parallel data as one word of data.
[0014] Specifically, the serial-parallel conversion unit 1 receives serial data DATA and a clock CLK. The serial-parallel conversion unit 1 converts the 10-bit serial data DATA received sequentially in synchronization with the clock CLK into parallel data [9:0] and transmits it.
[0015] Note that [9:0] indicates 10-bit data from the 0th bit to the 9th bit. Furthermore, 10-bit or 8-bit data transferred as parallel data within a serial data receiving device is referred to as word data, as appropriate.
[0016] The serial-parallel converter 1 simply converts the input serial data DATA into parallel data [9:0] every 10 bits. For this reason, the parallel data [9:0] generally spans two words of data sent by the serial data transmitter, and requires processing by the alignment unit 3 at the subsequent stage.
[0017] The head code detection unit 2 (second detection unit) holds two consecutive words of 10-bit word data received from the serial-parallel conversion unit 1. From the bit sequences of the two words of data it holds, the head code detection unit 2 searches for a 10-bit bit sequence that matches the head code K28.5 (one of the control codes (K codes)) (see Figure 5) of one word indicating the start of the packet pkt.
[0018] If the search finds a bit sequence that matches the leading code K28.5, the leading code detector 2 transmits a boundary indication signal Sig1 that indicates the bit boundary (word boundary) of the alignment. The boundary indication signal Sig1 contains information indicating how many bits the 10-bit boundary of the word data received from the serial-parallel converter 1 should be shifted to obtain the correct word data.
[0019] The alignment unit 3 holds two consecutive words of 10-bit word data received from the serial-parallel conversion unit 1. The alignment unit 3 transmits the parallel data received from the serial-parallel conversion unit 1 as is until it receives a boundary indication signal Sig1 from the leading code detection unit 2. When the alignment unit 3 receives the boundary indication signal Sig1 from the leading code detection unit 2, it sets the correct 10-bit boundary in the bit sequence of the two consecutive words of data it holds, adjusts the alignment, and transmits the aligned one-word data to the 10B8B decoder 4.
[0020] After receiving the boundary indication signal Sig1, the alignment unit 3 transmits a timing signal Sig3 to the counter 5 every time it transmits one word of data for which the alignment has been adjusted.
[0021] The 10B8B decoder 4 (a decoder in the 8B10B system) decodes one word data of a first bit width (10 bits in the 8B10B system) received from the alignment unit 3 into one word data of a second bit width (8 bits in the 8B10B system) narrower than the first bit width, by referring to a data code (D code) table as shown in Fig. 4 and a control code table as shown in Fig. 5. The data code table and the control code table are collectively referred to simply as the code table.
[0022] Fig. 2 is a diagram showing a typical configuration example of a packet pkt in the 8B10B system according to the first embodiment and a comparative example. Fig. 5 is a diagram showing an example of a control code table used in the 8B10B system according to the first embodiment and a comparative example.
[0023] As shown in Figures 2 and 5, in the 8B10B format, the head code K28.5, which is a one-word control code indicating the beginning of a packet pkt, is called "Comma." Also, the end code K29.7, which is a one-word control code indicating the end of a packet pkt, is called "END."
[0024] One packet pkt starts with a head code K28.5 (Comma) and ends with an end code K29.7 (END). A data code (D**.*) (where D**.* is any of D0.0 to D31.7, as explained below) is placed between the head code K28.5 and the end code K29.7. The number of data code words excluding the head code K28.5 and the end code K29.7 placed in one packet pkt is assumed to be a fixed length of N. In this case, the fixed length of one packet pkt including the head code K28.5 and the end code K29.7 is (N+2) words.
[0025] The counter 5 receives a timing signal Sig3 from the alignment unit 3. The counter 5 counts up the number of timing signals Sig3 received after the alignment unit 3 sets a 10-bit boundary. When the counted value reaches the number of words N of the data code sandwiched between the start code K28.5 and the end code K29.7, the counter 5 transmits a packet end signal Sig4 indicating that the end of the packet pkt has been reached to the buffer 6. The counter 5 is also reset when the alignment unit 3, which has received a boundary indication signal Sig1 based on the start code K28.5, resets the 10-bit boundary.
[0026] The buffer 6 sequentially accumulates the 8-bit word data transmitted from the 10B8B decoder 4, and holds at least one frame of data corresponding to one packet pkt.
[0027] The buffer 6 includes a CRC section 6a (error detection section). When the CRC section 6a receives the packet end signal Sig4 from the counter 5, it performs a CRC (Cyclic Redundancy Check) on the data code (D**.*) excluding the head code K28.5 and end code K29.7 in one frame held in the buffer 6 to detect bit errors. If the CRC section 6a does not detect a bit error, the data of the frame held in the buffer 6 becomes available for use by subsequent components.
[0028] On the other hand, if the CRC unit 6a detects a bit error, the frame data held in the buffer 6 is discarded and cannot be used by the downstream components. Furthermore, if the CRC unit 6a detects a bit error, it transmits an error signal Sig5 to the retransmission processing unit 7.
[0029] When the retransmission processing unit 7 receives the error signal Sig5 from the CRC unit 6a, it transmits a retransmission request signal requesting retransmission of the packet pkt in which the bit error was detected to the serial data transmitting device of the serial communication system.
[0030] In such a configuration, after the decoded result is the leading code K28.5, the 10B8B decoder 4 monitors whether a certain number (M shown in FIG. 2) of word data has been correctly decoded based on the code table as shown in FIG. 4 and FIG. 5, and if the data has been correctly decoded, it transmits an enable signal Sig2 to the leading code detection unit 2.
[0031] FIG. 3 relates to the first embodiment and a comparative example, and is a diagram showing an example in which an idle code indicating that there is no data code is transmitted when there is no data to be transmitted in the 8B10B system.
[0032] In the example shown in Fig. 3, there are idle periods before the first packet pkt1 and between the first packet pkt1 and the second packet pkt2. During the idle periods, an idle code is transmitted from the serial data transmitter. The idle code K28.3, which is a one-word control code, is called "Idle" (see Fig. 5).
[0033] After the 10B8B decoder 4 recognizes that the decoded result is the first code K28.5 and that the packet pkt has started, it monitors whether the data codes of several subsequent words (M as shown in Figure 2) have been decoded correctly in order to confirm that the alignment adjusted by the alignment unit 3 is indeed correct.
[0034] Fig. 4 is a diagram showing an example of a part of a data code table used in the 8B10B system according to the first embodiment and a comparative example. Note that Fig. 4 shows data codes D0.0 to D7.0 as part of the data code table used in the 8B10B system, but the actual data code table includes data codes D0.0 to D31.7.
[0035] In FIG. 4, for the code after 10-bit conversion, there are two types of running disparity (RD): plus (+) and minus (-). Therefore, the number of types of data codes is 256 × 2 = 512 types. The initial value of the running disparity is minus, and in principle, the serial data transmission device alternately transmits codes with a minus running disparity and codes with a plus running disparity.
[0036] Also, considering RD+ / - as shown in the example of FIG. 5, there are 9 × 2 = 18 types of control codes. Therefore, the number of types of codes combining data codes and control codes is, for example, 512 + 18 = 530 types. On the other hand, there are 1024 types of 10-bit bit arrays. Therefore, there are approximately 500 types of 10-bit bit arrays that do not exist in the code table. If word data with a random bit array is received, the 10B8B decoder 4 detects a 10-bit array that does not exist in the code table with a probability of about 1 / 2. The 10B8B decoder 4 monitors such 10-bit arrays that are not correctly decoded.
[0037] The 10B8B serial data transmission device converts (encodes) 8-bit data into 10-bit data codes with reference to the data code table in FIG. 4, and adds a 10-bit control code as shown in the control code table in FIG. 5 and then transmits it.
[0038] While the 10B8B decoder 4 is receiving M (M < N) word data shown in FIG. 2 after decoding the start code K28.5, if the received 10-bit data is described in the data code table, it transmits an enable signal Sig2 to the start code detection unit 2. The enable signal Sig2 is a signal indicating that since the data code is correctly decoded, the synchronization at the 10-bit boundary should be maintained. Also, when the received 10-bit data is not described in the data code table, the 10B8B decoder 4 does not transmit the enable signal Sig2 to the start code detection unit 2.
[0039] Furthermore, the 10B8B decoder 4 determines that the currently set 10-bit boundary is correct if the received data codes are correctly decoded up to M. Then, when the received data codes exceed M, the 10B8B decoder 4 stops transmitting the enable signal Sig2 so that the next leading code K28.5 can be detected.
[0040] Once the head code detection unit 2 detects the head code K28.5, it determines that the boundary indication signal Sig1 sent to the alignment unit 3 is correct and does not search for a 10-bit bit sequence that matches the head code K28.5 while it is receiving the enable signal Sig2. In this way, while the head code detection unit 2 is receiving the enable signal Sig2, synchronization of the 10-bit boundary is maintained.
[0041] On the other hand, when the head code detector 2 no longer receives the enable signal Sig2, it resumes searching for a 10-bit sequence that matches the head code K28.5.
[0042] Fig. 6 is a diagram showing the head code K28.5 indicating the head of a packet pkt and two data codes D9.3 and D22.0 as an example in the 8B10B system according to the first embodiment and the comparative example. Fig. 7 is a diagram showing an example in which, when the two data codes D9.3 and D22.0 shown in Fig. 6 are transmitted consecutively, if a bit error occurs, the same bit sequence as the head code K28.5 is generated according to the first embodiment and the comparative example.
[0043] When the RD+ data code D9.3 and the RD+ data code D22.0 are transmitted consecutively as shown in Fig. 6, the bit sequence becomes as shown in Fig. 7. In Fig. 7, the bit sequence of the part surrounded by the dotted oval is "0011011010".
[0044] In this case, if the leading bit "0" of the data code D22.0 of RD+ (the bit surrounded by the solid-line square in Figure 7) changes to "1" due to a bit error, the bit sequence of the part surrounded by the dotted-line oval becomes "0011111010," which is the same as the bit sequence of the leading code K28.5 of RD-.
[0045] Note that Figure 7 shows an example in which a bit error occurring in the latter of two consecutive data codes results in a bit sequence identical to the leading code K28.5. However, this is not limited to the above, and a bit error occurring in the former data code may also result in a bit sequence identical to the leading code K28.5.
[0046] FIG. 8 is a diagram showing an example in which, when a bit error occurs in a packet pkt, the frame in which the bit error occurs is discarded, according to the first embodiment and the comparative example.
[0047] The CRC unit 6a detects whether or not a bit error has occurred in the entire data code in one frame. The serial data transmitting device regards the entire data code in one frame as a number, and by dividing the entire data code by a specific number, adds the remainder to the data code to generate and transmit a data code with a remainder of 0. The CRC unit 6a divides the entire data code in one received frame 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.
[0048] When the CRC section 6a detects that a bit error has occurred, the frame in which the bit error occurred is discarded (specifically, it becomes unusable by subsequent components). If only a simple bit error has occurred, normal operation is resumed from the frame following the frame in which the bit error occurred, as shown in FIG.
[0049] FIG. 9 is a diagram showing a comparative example in which, when a bit error occurs in a packet pkt, resulting in a bit sequence identical to the leading code K28.5, not only the frame in which the bit error occurred but also the next frame is discarded.
[0050] Assume that the same bit sequence as the head code K28.5 occurs on either side of a 10-bit boundary between two word data, as described with reference to FIG.
[0051] In this case, if the position where a bit sequence identical to the leading code K28.5 occurs is within M words from the beginning of the packet pkt excluding the leading code K28.5, then the enable signal Sig2 has been received, and the leading code detection unit 2 will not search for a 10-bit bit sequence that matches the leading code K28.5.
[0052] Therefore, since the already adjusted synchronization of the 10-bit boundary is maintained, the two words of data shown in FIG. 7 are interpreted as one word of correct data code D9.3 and one word of data code D22.0 in which a bit error has occurred, and the one frame containing the data code D22.0 in which a bit error has occurred is simply discarded.
[0053] On the other hand, if the position where the same bit sequence as the head code K28.5 occurs is a position that exceeds the number of words M excluding the head code K28.5 from the beginning of the packet pkt, the enable signal Sig2 has not been received, so the head code detector 2 searches for a 10-bit bit sequence that matches the head code K28.5. Therefore, the same bit sequence as the head code K28.5 is detected from the two-word data shown in FIG.
[0054] The bit sequence detected at this time is referred to as pseudo head code K28.5. The head code detection unit 2 transmits a new boundary indication signal Sig1 according to the position of the pseudo head code K28.5 in the two words to the alignment unit 3. As a result, the alignment unit 3 sets the bit sequence surrounded by the dotted ellipse in Fig. 7 as a new 10-bit boundary. In Fig. 9, the new 10-bit boundary shown by the dotted line is set at a position deviated from the original 10-bit boundary shown by the solid line. Then, the data string shown by the dotted line in Fig. 9 is transmitted sequentially from the alignment unit 3 as a new packet pkt.
[0055] The counter 5 is reset when the alignment unit 3 sets a 10-bit boundary by the boundary indication signal Sig1 based on the pseudo head code K28.5. At the time of reset, the count number has not reached the number of words N of the data code in one packet pkt shown in Figure 2, so the data from the head code K28.5 to the pseudo head code K28.5 is discarded.
[0056] Then, the counter 5 counts up the number of timing signals Sig3 received after the alignment unit 3 sets the 10-bit boundary by the boundary indication signal Sig1 based on the pseudo head code K28.5 in the same manner as described above. At this time, it is assumed that the bit sequence of the word data transmitted from the alignment unit 3 following the pseudo head code K28.5 matches any of the bit sequences of data codes D0.0 to D31.7 in the data code table. A bit sequence that is not a real data code but is recognized as a data code (D**.*) will be referred to as a pseudo data code (D**.*) below.
[0057] Assume that the head code K28.5 of the original next packet pkt is transmitted as shown by the solid line in Fig. 9 while the pseudo data code (D**.*) as shown by the dotted line in Fig. 9 is being transmitted continuously. At this time, if the position of the head code K28.5 of the original next packet pkt is within the number of words M from the pseudo head code K28.5, the head code detection unit 2 does not search for a 10-bit bit sequence that matches the head code K28.5 as described above. Therefore, the head code K28.5 of the original next packet pkt is not recognized, and as a result, the next frame is also rejected.
[0058] Thus, if a bit error causes a bit sequence identical to the leading code K28.5, depending on the location of the bit error, it may affect not only the frame in which the bit error occurred, but also the frame following the frame in which the bit error occurred, causing two consecutive frames to be discarded.
[0059] Fig. 10 is a block diagram showing the configuration of a serial data receiving device according to the first embodiment. In the description of Fig. 10, the same parts as those described above are given the same reference numerals, and the description will be omitted as appropriate, and differences will be mainly described.
[0060] The serial data receiving device according to the first embodiment includes an end code / idle code detection unit 11 and a latch circuit 12 in addition to the components shown in FIG.
[0061] The serial-parallel conversion unit 1 is connected to an end code / idle code detection unit 11. The end code / idle code detection unit 11 is connected to a latch circuit 12. The latch circuit 12 is connected to a head code detection unit 2.
[0062] Furthermore, the 10B8B decoder 4 does not transmit the enable signal Sig2 shown in FIG. 1 to the head code detection unit 2, and the head code detection unit 2 does not use the enable signal Sig2 in its processing.
[0063] The end code / idle code detection unit 11 holds two consecutive words of 10-bit word data received from the serial-parallel conversion unit 1. From the bit sequences of the two words of data it holds, the end code / idle code detection unit 11 searches for a 10-bit bit sequence that matches the bit sequence of one word of idle code K28.3, which indicates the absence of a data code, and the bit sequence of one word of end code K29.7, which indicates the end of the packet pkt.
[0064] As a result of the search, if a bit sequence matching either the idle code K28.3 or the end code K29.7 is detected, the end code / idle code detection unit 11 transmits a first detection signal SigA to the latch circuit 12.
[0065] The first detection signal SigA includes information indicating how many bits a bit sequence matching either the idle code K28.3 or the end code K29.7 has been detected at a position shifted from the 10-bit boundary of the word data received from the serial-to-parallel conversion unit 1.
[0066] 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 head code detection unit 2 searches for the bit sequence of the head code K28.5 from the bit sequences of two consecutive words of data including the next word of data.
[0067] This period is the same as the period during which the end code / idle code detection unit 11 searches for the bit sequence of either the idle code K28.3 or the end code K29.7 from the bit sequence of two consecutive words of data including the next word of data.
[0068] During the period in which the latch circuit 12 holds the first detection signal SigA, the latch circuit 12 transmits the second detection signal SigB to the head code detection unit 2. The second detection signal SigB includes information indicating how many bits to shift the 10-bit boundary, similar to the above-mentioned first detection signal SigA.
[0069] The head code detector 2 monitors whether a bit sequence matching the head code K28.5 is detected at the 10-bit boundary position indicated by the second detection signal SigB in the bit sequence of two words of data while receiving the second detection signal SigB from the latch circuit 12. If a bit sequence matching the head code K28.5 is detected, the head code detector 2 transmits a boundary indication signal Sig1 to the alignment unit 3.
[0070] The boundary indication signal Sig1 transmitted here contains 10-bit boundary information that is common to a bit sequence that matches either the idle code K28.3 or the end code K29.7, and a bit sequence that matches the start code K28.5.
[0071] In this way, the leading code detection unit 2 transmits the boundary indication signal Sig1 to the alignment unit 3 either when the serial-parallel conversion unit 1 transmits an idle code K28.3 and a leading code K28.5 in succession, or when the serial-parallel conversion unit 1 transmits an end code K29.7 and a leading code K28.5 in succession.
[0072] The end code / idle code detection section 11 (first detection section), the latch circuit 12, and the head code detection section 2 (second detection section) described above constitute a detection section.
[0073] There is a one-word shift between the two consecutive words of data in which the end code / idle code detection unit 11 detected the idle code K28.3 or end code K29.7 and the two consecutive words of data in which the head code detection unit 2 detected the head code K28.5. Therefore, the detection unit detects a specific bit sequence in which the idle code K28.3 or end code K29.7 and the head code K28.5 are consecutive in order from the bit sequence of three words of parallel data that has not been aligned and that has been converted from the serial data DATA.
[0074] Incidentally, since the head code detector 2 does not receive the enable signal Sig2, the detection of the specific bit sequence by the detector is performed every time word data is transmitted from the serial-parallel converter 1.
[0075] When the alignment unit 3 receives a boundary indication signal Sig1 from the head code detection unit 2 as a result of detecting a specific bit sequence, it sets the correct 10-bit boundary in the bit sequence of the two consecutive words of data held as described above, adjusts the alignment, and transmits the aligned one word data to the 10B8B decoder 4.
[0076] Other configurations and operations of the serial data receiving device according to the first embodiment are similar to those of the comparative example shown in FIG.
[0077] FIG. 11 is a diagram showing an example according to the first embodiment in which, even if a bit error causes a bit sequence identical to the head code K28.5, the frame next to the frame in which the bit error occurs is not discarded.
[0078] In the example of FIG. 11, similarly to the example of FIG. 9, it is assumed that a pseudo head code K28.5 occurs due to a bit error at a position exceeding M words from the head of the packet pkt excluding the head code K28.5.
[0079] In the configuration of the first embodiment, a bit sequence matching either the idle code K28.3 or the end code K29.7 is not detected before the pseudo head code K28.5, so the end code / idle code detector 11 does not transmit the first detection signal SigA, and the latch circuit 12 does not transmit the second detection signal SigB.
[0080] Therefore, the condition for the head code detector 2 to transmit the boundary indication signal Sig1, that is, the condition that a bit sequence matching the head code K28.5 is detected during the period in which the second detection signal SigB is received, is not met, so the head code detector 2 does not transmit a new boundary indication signal Sig1 to the alignment unit 3, and the previous synchronization of the 10-bit boundary is maintained.
[0081] As a result, as shown in FIG. 11, the frame in which the bit error occurred is discarded, but for the next frame, since the idle code K28.3 and the head code K28.5 are detected in succession, it is not discarded and normal operation is carried out.
[0082] According to the first embodiment, even if a pseudo head code K28.5 occurs due to a bit error in a packet, it is possible to reduce the influence of the bit error on packets other than the packet in which the bit error occurred.
[0083] FIG. 12 is a block diagram showing a configuration of a serial data receiving device according to a modified example of the first embodiment.
[0084] In this modified example, the end code / idle code detection unit 11 and the latch circuit 12 are omitted from the configuration of the first embodiment shown in Fig. 10. As a result, this modified example is different from the comparative example shown in Fig. 1 in that the 10B8B decoder 4 does not transmit the enable signal Sig2 to the head code detection unit 2, and the head code detection unit 2 does not use the enable signal Sig2 for processing.
[0085] In this case, the head code detector 2 detects the bit sequence of the head code K28.5 every time word data is transmitted from the serial-parallel converter 1. As a result, the pseudo head code K28.5 is detected.
[0086] However, the head code detector 2 also detects the head code K28.5 of the actual next packet pkt that is transmitted after the pseudo head code K28.5.
[0087] Therefore, the frame following the frame in which a bit error occurs is not discarded, and normal operation is carried out from the next frame.
[0088] In this way, the modification of the first embodiment can also reduce the influence of bit errors on packets other than the packet in which the bit error occurs.
[0089] Although the above description has been focused on a serial data receiving device, an embodiment of the present invention may be a serial data receiving method in which the configurations of the various components are replaced with processing steps.
[0090] Although an example of an 8B10B serial communication system has been 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 one-word head code, and a one-word idle code indicating that there is no data code before the head code, or a one-word end code indicating the end of the packet, is placed.
[0091] Although some embodiments of the present invention have been described, these embodiments are presented as examples and are not intended to limit the scope of the invention. These novel embodiments can be implemented in various other forms, and various omissions, substitutions, and modifications can be made without departing from the spirit of the invention. These embodiments and their modifications are included in the scope and spirit of the invention, and are included in the scope of the invention and its equivalents described in the claims. [Explanation of symbols]
[0092] 1...Serial-parallel conversion section, 2...Head code detection section, 3...Alignment section, 4...10B8B decoder, 5...Counter, 6...Buffer, 6a...CRC section, 7...Retransmission processing section, 11...End code / idle code detection section, 12...Latch circuit, CLK...Clock, DATA...Serial data, Sig1...Boundary indication signal, Sig2...Enable signal, Sig3...Timing signal, Sig4...Packet end signal, Sig5...Error signal, SigA...First detection signal, SigB...Second detection signal, pkt...Packet
Claims
1. a detection unit that detects, from a bit sequence of three words of parallel data that has been converted from serial data and has not been adjusted for alignment, a specific bit sequence in which one word of idle code indicating the absence of a data code or one word of end code indicating the end of a packet and one word of head code indicating the beginning of a packet are consecutively arranged; an alignment unit that adjusts alignment of word data based on a bit boundary of the detected specific bit array; A serial data receiving device comprising:
2. a serial-to-parallel converter that converts the received serial data into parallel data having a first bit width and transmits the parallel data as one word of data; The detection unit is a first detection unit that searches for the bit sequence of the idle code and the bit sequence of the end code from the bit sequences of two consecutive words of data received from the serial-parallel conversion unit, and transmits a first detection signal when either one of them is detected; a latch circuit that receives the first detection signal from the first detection unit and holds the first detection signal during a period in which the first detection unit detects either one of the data from a bit sequence of two consecutive words of data including the next word of data; a second detection unit that detects the bit sequence of the leading code from the bit sequences of two consecutive words of data received from the serial-parallel conversion unit, and transmits a boundary indication signal that indicates an alignment bit boundary when the bit sequence of the leading code is detected during a period in which the first detection signal is held in the latch circuit; having when the alignment unit receives the boundary indication signal from the second detection unit, the alignment unit transmits one word of data with alignment adjusted from a bit sequence of the two consecutive words of data received from the serial-parallel conversion unit; a decoder that decodes the one-word data of the first bit width received from the alignment unit into one-word data of a second bit width narrower than the first bit width; The serial data receiving device according to claim 1 , further comprising:
3. the alignment unit transmits a timing signal every time it transmits one word of aligned data after receiving the boundary indication signal; a counter that receives the timing signal from the alignment unit, counts the number of the received timing signals, and transmits an end-of-packet signal when the number of words in one packet excluding the head code and the end code has been counted; a buffer for holding at least one packet of one-word data received from the decoder; an error detection unit that detects a bit error in data, excluding the head code and the end code, of one packet of data held in the buffer until receiving the packet end signal from the counter, and transmits an error signal when a bit error is detected; a retransmission processing unit that requests the serial data transmitting device to retransmit the packet in which the bit error was detected when the error signal is received from the error detection unit; The serial data receiving device according to claim 2 , further comprising:
4. The serial data is data encoded in 8B10B format, the first bit width is 10 bits and the second bit width is 8 bits; The decoder is a 10B8B decoder that decodes 10-bit code into 8-bit data by referring to a code table of an 8B10B system.
3. The serial data receiving device according to claim 2.
5. a detection step of detecting a specific bit sequence in which one word of idle code indicating the absence of a data code or one word of end code indicating the end of a packet and one word of head code indicating the beginning of a packet are consecutively arranged from a bit sequence of three words of parallel data that has been converted from serial data and has not been adjusted for alignment; an alignment step of adjusting alignment of word data based on the bit boundary of the detected specific bit array; A method for receiving serial data comprising:
Citation Information
Patent Citations
Asynchronous serial data recovery method based on 8B / 10B coding
CN114416626A
Programmable logic device with high speed serial interface circuitry
JP2003017999A
Data processing unit
JP2018195905A
Serial image data format and method and apparatus for convering image data from serial to parallel
US20130266231A1
System for identifying communication sequences transmitted across multiple carriers by examining bit streams for sequences of valid words
US5610945A
