Interleaver and de-interleaver for correcting a burst bit error
09916240 ยท 2018-03-13
Assignee
Inventors
Cpc classification
H03M13/275
ELECTRICITY
H03M13/2778
ELECTRICITY
International classification
G06F12/00
PHYSICS
G06F12/06
PHYSICS
Abstract
The present invention relates to an interleaving and de-interleaving method, an interleaver and a de-interleaver. The interleaving method includes: receiving NM frames of data, and sequentially storing, with each frame as a unit, the NM frames of data in storage space indicated by NM addresses of a first storage unit; transferring the data stored in the storage space indicated by an ((X1)M+Y+1).sup.th address of the first storage unit to the storage space indicated by a (YN+X).sup.th address of a second storage unit; and according to an address sequence, outputting the data stored in the space indicated by the NM addresses of the second storage unit frame by frame. The interleaving and de-interleaving solutions of the present invention have low implementation complexity, and high capacity of correcting a burst bit error.
Claims
1. An interleaving method, comprising: receiving NM frames of data, and sequentially storing, with each frame as a unit, the NM frames of data in storage space indicated by NM addresses of a first storage unit, wherein storage space indicated by each address is capable of storing one frame of data, and N and M are natural numbers greater than 1; transferring data stored in storage space indicated by an ((X1)M+Y+1).sup.th address of the first storage unit to storage space indicated by a (YN+X).sup.th address of a second storage unit, wherein the second storage unit comprises storage space indicated by NM addresses, and storage space indicated by each address of the second storage unit is capable of storing one frame of data; and outputting data, according to an address sequence, stored in the space indicated by the NM addresses of the second storage unit frame by frame.
2. The method according to claim 1, wherein received NM frames of data are specifically NM frames of data after block convolutional coding.
3. A de-interleaving method, comprising: receiving NM frames of data, and sequentially storing, with each frame as a unit, the NM frames of data in storage space indicated by NM addresses of a third storage unit, wherein storage space indicated by each address is capable of storing one frame of data, and both N and M are natural numbers greater than 1; transferring data stored in the storage space indicated by a (BN+A).sup.th address of the third storage unit to storage space indicated by an ((A1)M+B+1).sup.th address of a fourth storage unit, wherein the fourth storage unit comprises storage space indicated by NM addresses, and storage space indicated by each address of the fourth storage unit is capable of storing one frame of data; and outputting, with each frame as a unit, according to an address sequence, NM frames of data stored in the fourth storage unit.
4. The method according to claim 3, further comprising: performing block convolutional decoding on data output by the fourth storage unit.
5. The method according to claim 4, wherein the performing the block convolutional decoding on the data output by the fourth storage unit comprises: taking data output by space indicated by an A.sup.th address to an (AM).sup.th address of the fourth storage unit as a group of data, performing convolutional decoding on the group of data, and outputting an A.sup.th frame of data.
6. An interleaver, comprising: a first storage unit, a second storage unit, and an interleaving processor, wherein both the first storage unit and the second storage unit have storage space indicated by NM addresses, storage space indicated by each address is capable of storing one frame of data, and both N and M are natural numbers greater than 1; the first storage unit is configured to receive NM frames of data, and sequentially store, with each frame as a unit, the NM frames of data in the storage space indicated by NM addresses; the interleaving processor is configured to read one frame of data from storage space indicated by an ((X1)M+Y+1).sup.th address of the first storage unit, and store the one frame of data, which has been read, in storage space indicated by a (YN+X).sup.th address of the second storage unit; and the second storage unit is configured to output data stored in the space indicated by NM addresses frame by frame according to an address sequence.
7. The interleaver according to claim 6, further comprising: a block convolutional coder, configured to perform block convolutional coding on data input to the block convolutional coder, and send data obtained through the block convolutional coding to the first storage unit.
8. A de-interleaver, comprising: a third storage unit, a fourth storage unit, and a de-interleaving processor, wherein both the third storage unit and the fourth storage unit have storage space indicated by NM addresses, storage space indicated by each address is capable of storing one frame of data, and both N and M are natural numbers greater than 1; the third storage unit is configured to receive NM frames of data, and sequentially store, with each frame as a unit, the NM frames of data in storage space indicated by the NM addresses of the third storage unit; the de-interleaving processor is configured to read one frame of data from storage space indicated by a (BN+A).sup.th address of the third storage unit, and store the one frame of data, which has been read, in storage space indicated by an ((A1)M+B+1).sup.th address of the fourth storage unit; and the fourth storage unit is configured to, according to an address sequence, output, with each frame as a unit, NM frames of data stored by the fourth storage unit.
9. The de-interleaver according to claim 8, further comprising: a block convolutional decoder, configured to perform block convolutional decoding based on data output by the fourth storage unit.
10. The de-interleaver according to claim 9, wherein the block convolutional decoder is configured to take data output from storage space indicated by an A.sup.th address to an (A+M1).sup.th address of the fourth storage unit as a group of data, perform convolutional decoding on the group of data, and output an A.sup.th frame of data.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1) To illustrate the technical solutions according to the embodiments of the present invention or in the prior art more clearly, the accompanying drawings required for describing the embodiments or the prior art are introduced briefly below. Apparently, the accompanying drawings in the following descriptions merely show some of the embodiments of the present invention, and persons skilled in the art may obtain other drawings according to the accompanying drawings without creative efforts.
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10)
(11)
(12)
DETAILED DESCRIPTION OF THE EMBODIMENTS
(13) The technical solutions of the present invention are to be clearly and described in the following with reference to the accompanying drawings. It is obvious that the embodiments to be described are a part rather than all of the embodiments of the present invention. All other embodiments obtained by persons skilled in the art based on the embodiments of the present invention without creative effects shall fall within the protection scope of the present invention.
(14) In order to make the objectives, technical solutions and advantages of the present invention clearer, the embodiments of the present invention are described in detail in the following with reference to the accompanying drawings.
(15) An embodiment of the present invention provides an interleaving method, and the flow chart of it is shown in
(16) Step S11: Receive NM frames of data, and sequentially store, with each frame as a unit, the NM frames of data in storage space indicated by NM addresses of a first storage unit, where the storage space indicated by each address is capable of storing one frame of data, and both N and M are natural numbers greater than 1. In the present invention, the NM represents interleave depth, and specific values of N and M may be determined according to a burst noise level of a channel and a block convolution algorithm, for example, if the depth of one block convolution of the block convolutional code is K, N=K, M is generally a value greater than or equal to 2, and the greater the burst noise of the channel is, the greater the value of M is. In the present invention, the specific values of N and M are not limited thereto.
(17) Step S12: Transfer the data stored in the storage space indicated by an ((X1)M+Y+1).sup.th address of the first storage unit to the storage space indicated by a (YN+X).sup.th address in a second storage unit, where the second storage unit includes storage space indicated by NM addresses, and the storage space indicated by each address of the second storage unit is capable of storing one frame of data; when N=M=2, X=[1,2] and Y=[0,1]; and when N and M are natural numbers greater than 2, X=1 . . . N; Y=0 . . . M1.
(18) In this embodiment, the size of the storage space indicated by each address in the first storage unit and the second storage unit may at least match the size of one frame of data, that is, if one frame of data has L bits, the size of the storage space indicated by each address is at least L bits, and the sizes of the first storage unit and the second storage unit are at least NML bits.
(19) Step S13: According to an address sequence, output the data stored in the space indicated by the NM addresses of the second storage unit frame by frame. The data output from the second storage unit frame by frame is interleaved data.
(20) In an embodiment, the NM frames of data received in step S11 are specifically the NM frames of data after block convolutional coding. The block convolutional coding is one of FEC coding, which is the prior art and is not described here again.
(21) The interleaving method provided in the embodiment of the present invention is further described with reference to the schematic diagram of a data transfer process as shown in
(22) Firstly, the NM frames of data are stored sequentially in the storage space indicated by the NM addresses of the first storage unit, and each frame of data is stored in the storage space indicated by one address. As shown in
(23) Next, one frame of data in the storage space indicated by an ((X1)M+Y+1).sup.th address of the first storage unit is transferred to the storage space indicated by a (YN+X).sup.th address of the second storage unit, where when N=M=2, X=[1,2] and Y=[0,1]; and when N and M are natural numbers greater than 2, X=1 . . . N; Y=0 . . . M1. It should be noted that, X needs to take each value from 1 to N (including 1 and N), and likewise, Y needs to take each value from 0 to M1 (including 0 and M1). The specific transfer process is as follows:
(24) (1) Y=0, transfer a frame ((X1)M+0+1) stored in the storage space indicated by an address ((X1)M+0+1) in the first storage unit to the storage space indicated by an address (0N+X) in the second storage unit, that is: transfer a frame 1 stored in the storage space indicated by an address 1 in the first storage unit to the storage space indicated by the address 1 in the second storage unit; transfer a frame M+1 stored in the storage space indicated by an address M+1 in the first storage unit to the storage space indicated by an address 2 in the second storage unit; transfer a frame 2M+1 stored in the storage space indicated by an address 2M+1 in the first storage unit to the storage space indicated by an address 3 in the second storage unit; . . . transfer a frame (N1)*M+1 stored in the storage space indicated by an address (N1)*M+1 in the first storage unit to the storage space indicated by an address N in the second storage unit.
(25) (2) Y=1, transfer a frame ((X1)M+1+1) stored in the storage space indicated by an address ((X1)M+1+1) in the first storage unit to the storage space indicated by an address (1N+X) in the second storage unit. In this case, X needs to take each value from 1 to N (including 1 and N). When X takes each value from 1 to N, the specific value of X is substituted in an expression of the address, and a specific transfer process of each frame may be explicit, which is not listed here one by one.
(26) (3) Y=2, transfer a frame ((X1)M+2+1) stored in the storage space indicated by an address ((X1)M+2+1) in the first storage unit to the storage space indicated by an address (2N+X) in the second storage unit. In this case, X needs to take each value from 1 to N (including 1 and N). When X takes each value from 1 to N, the specific value of X is substituted in an expression of the address, and a specific transfer process of each frame may be explicit, which is not listed here one by one.
(27) . . .
(28) (M) Y=M1, transfer a frame ((X1)M+M1+1) stored in the storage space indicated by an address ((X1)M+M1+1) in the first storage unit to the storage space indicated by an address ((M1)N+X) in the second storage unit. In this case, X needs to take each value from 1 to N (including 1 and N). When X takes each value from 1 to N, the specific value of X is substituted in an expression of the address, and a specific transfer process of each frame may be explicit, which is not listed here one by one.
(29) After the NM frames of data stored in the first storage unit are transferred to the second storage unit, the second storage unit, with each frame as a unit, outputs the NM frames of data stored by the second storage unit frame by frame. The data output by the second storage unit is interleaved data.
(30) It should be noted that, in the transfer process described in the foregoing embodiment, it is first assumed that Y takes a specific value and then X takes different values, and it should be understood that, it may also be assumed that X takes a specific value and then Y takes different values.
(31) With the interleaving method provided in the embodiment of the present invention, interleaving may be implemented merely through transferring the data frames to change the original sequence of the data frames, and therefore the implementation complexity is low, in addition, the data frames are transferred in combination with features of the convolutional code, which may achieve a good effect of correcting the burst bit error, and the capacity of correcting the burst bit error linearly increases with the increase of the interleave depth.
(32) An embodiment of the present invention further provides a de-interleaving method, and the flow chart of it is shown in
(33) Step S21: Receive NM frames of data, and sequentially store, with each frame as a unit, the NM frames of data in storage space indicated by NM addresses of a third storage unit, where the storage space indicated by each address is capable of storing one frame of data, and both N and M are natural numbers greater than 1. In the present invention, the NM represents interleave depth, and specific values of N and M may be determined according to a burst noise level of a channel and a block convolution algorithm, for example, if the depth of one block convolution of the block convolutional code is K, N=K, M is generally a value greater than or equal to 2, and the greater the burst noise of the channel is, the greater the value of M is. In the present invention, the specific values of N and M are not limited thereto.
(34) Step S22: Transfer the data stored in the storage space indicated by a (BN+A).sup.th address of the third storage unit in the storage space indicated by an ((A1)M+B+1).sup.th address of a fourth storage unit, where the fourth storage unit includes storage space indicated by NM addresses, and the storage space indicated by each address of the fourth storage unit is capable of storing one frame of data; when N=M=2, A=[1,2] and B=[0,1]; and when N and M are natural numbers greater than 2, A=1 . . . N; B=0 . . . M1.
(35) In this embodiment, the size of the storage space indicated by each address in the third storage unit and the fourth storage unit may at least match the size of one frame of data, that is, if one frame of data has L bits, the size of the storage space indicated by each address is at least L bits, and the sizes of the third storage unit and the fourth storage unit are at least NML bits.
(36) Step S23: According to an address sequence, output, with each frame as a unit, the NM frames of data stored in the fourth storage unit.
(37) In an embodiment, the de-interleaving method provided in the embodiment of the present invention may further include: performing block convolutional decoding on the data read from the fourth storage unit. The block convolutional decoding is one of FEC decoding, which is the prior art and is not described here again.
(38) In another embodiment, the performing the block convolutional decoding on the data read from the fourth storage unit specifically includes: taking the data read from the space indicated by an A.sup.th address to an (AM).sup.th address of the fourth storage unit as a group of data, performing complete convolutional decoding on the group of data, and outputting an A.sup.th frame of data. For example, M frames of data stored in the storage space indicated by a 1.sup.st address to an M.sup.th address in the fourth storage unit are taken as a group of data, complete convolutional decoding is performed on the group of data, and a first frame of data is output; while M frames of data stored in the storage space indicated by a 2.sup.nd address to an (M+1).sup.th address in the fourth storage unit are taken as a group of data, complete convolutional decoding is performed on the group of data, and a 2.sup.nd frame of data is output. Reference can be made to the prior art for the specific process of the convolutional decoding, which is not described here again.
(39) The de-interleaving method provided in the embodiment of the present invention is further described with reference to the schematic diagram of a data transfer process as shown in
(40) Firstly, the NM frames of data from the channel are stored sequentially in the storage space indicated by the NM addresses of the third storage unit, and each frame of data is stored in the storage space indicated by one address. As shown in
(41) Next, one frame of data stored in the storage space indicated by a (BN+A).sup.th address of the third storage unit is transferred to the storage space indicated by an ((A1)M+B+1).sup.th address of the fourth storage unit, where when N=M=2, A=[1,2] and B=[0,1], and when N and M are natural numbers greater than 2, A=1 . . . N; B=0 . . . M1. The specific transfer process is as follows:
(42) (1) B=0, a frame (0N+A) stored in the storage space indicated by an address (0N+A) in the third storage unit is transferred to the storage space indicated by an address ((A1)M+0+1) in the second storage unit, that is: transfer a frame 1 stored in the storage space indicated by an address 1 in the third storage unit to the storage space indicated by the address 1 in the fourth storage unit; transfer a frame 2 stored in the storage space indicated by an address 2 in the third storage unit to the storage space indicated by an address M+1 in the fourth storage unit; transfer a frame 3 stored in the storage space indicated by an address 3 in the third storage unit to the storage space indicated by an address 2M+1 in the fourth storage unit; . . . transfer a frame N stored in the storage space indicated by an address N in the third storage unit to the storage space indicated by an address (N1)*M+1 in the fourth storage unit;
(43) (2) B=1, transfer a frame (1N+A) stored in the storage space indicated by an address (1N+A) in the third storage unit to the storage space indicated by an address ((A1)M+1+1) in the fourth storage unit. In this case, A needs to take each value from 1 to N (including 1 and N). When A takes each value from 1 to N, the specific value of A is substituted in an expression of the address, and a specific transfer process of each frame may be explicit, which is not listed here one by one.
(44) (3) B=2, a frame (2N+A) stored in the storage space indicated by an address (2N+A) in the third storage unit is transferred to the storage space indicated by an address ((A1)M+2+1) in the fourth storage unit. In this case, A needs to take each value from 1 to N (including 1 and N). When A takes each value from 1 to N, the specific value of A is substituted in an expression of the address, and a specific transfer process of each frame may be explicit, which is not listed here one by one.
(45) . . .
(46) (M) B=M1, a frame ((M1)N+A) stored in the storage space indicated by an address ((M1)N+A) in the third storage unit is transferred to the storage space indicated by an address ((A1)M+M1+1) in the fourth storage unit. In this case, A needs to take each value from 1 to N (including 1 and N). When A takes each value from 1 to N, the specific value of A is substituted in an expression of the address, and a specific transfer process of each frame may be explicit, which is not listed here one by one.
(47) After the NM frames of data stored in the third storage unit are transferred to the fourth storage unit, the fourth storage unit outputs the NM frames of data stored by the fourth storage unit frame by frame with each frame as a unit. The data output by the fourth storage unit is the de-interleaved data.
(48) With the de-interleaving method provided in the embodiment of the present invention, de-interleaving may be implemented merely through transferring the data frames to change the original sequence of the data frames, and therefore the implementation complexity is low, in addition, the data frames are transferred in combination with features of the convolutional code, which may achieve a good effect of correcting the burst bit error, and the capacity of correcting the burst bit error linearly increases with the increase of the interleave depth.
(49) Corresponding to the interleaving method described in the foregoing embodiment, an embodiment of the present invention further provides an interleaver, and the structure of it is shown in
(50) The first storage unit 41 is configured to receive NM frames of data, and sequentially store, with each frame as a unit, the NM frames of data in the storage space indicated by NM addresses.
(51) The interleaving processor 42 is configured to read one frame of data from the storage space indicated by an ((X1)M+Y+1).sup.th address of the first storage unit 41, and store the one frame of data, which has been read, in the storage space indicated by a (YN+X).sup.th address of the second storage unit 43, where when N=M=2, X=[1,2] and Y=[0,1], and when N and M are natural numbers greater than 2, X=1 . . . N; Y=0 . . . M1.
(52) The second storage unit 43 is configured to output the data stored in the space indicated by the NM addresses frame by frame according to an address sequence.
(53) In an embodiment, a block convolutional coder may also be integrated in the interleaver of the embodiment of the present invention. As shown in
(54) For transfer processing of the interleaver provided in the embodiment of the present invention, reference can be made to the foregoing relevant description of the embodiment of the interleaving method, which is not described here again.
(55) With the interleaver provided in the embodiment of the present invention, interleaving may be implemented merely through transferring the data frames to change the original sequence of the data frames, and therefore the implementation complexity is low, in addition, the data frames are transferred in combination with features of the convolutional code, which may achieve a good effect of correcting the burst bit error, and the capacity of correcting the burst bit error linearly increases with the increase of the interleave depth.
(56) Corresponding to the de-interleaving method described in the foregoing embodiment, an embodiment of the present invention further provides a de-interleaver, and the structure of it is shown in
(57) The third storage unit 51 is configured to receive NM frames of data, and sequentially store, with each frame as a unit, the NM frames of data in the storage space indicated by NM addresses.
(58) The de-interleaving processor 52 is configured to read one frame of data from the storage space indicated by a (BN+A).sup.th address of the third storage unit, and store the one frame of data, which has been read, in the storage space indicated by an ((A1)M+B+1).sup.th address of the fourth storage unit; when N=M=2, A=[1,2] and B=[0,1]; and when N and M are natural numbers greater than 2, A=1 . . . N; B=0 . . . M1.
(59) The fourth storage unit 53 is configured to, according to an address sequence, output, with each frame as a unit, the NM frames of data stored by the fourth storage unit.
(60) In an embodiment, a block convolutional decoder may also be integrated in the de-interleaver provided in the embodiment of the present invention. As shown in
(61) For transfer processing of the de-interleaver provided in the embodiment of the present invention, reference can be made to the foregoing relevant description of the embodiment of the de-interleaving method, which is not described here again.
(62) With the de-interleaver provided in the embodiment of the present invention, de-interleaving may be implemented merely through transferring the data frames to change the original sequence of the data frames, and therefore the implementation complexity is low, in addition, the data frames are transferred in combination with features of the convolutional code, which may achieve a good effect of correcting the burst bit error, and the capacity of correcting the burst bit error linearly increases with the increase of the interleave depth.
(63) Persons skilled in the art should understand that all or a part of the steps in the method of the embodiments may be accomplished through a program instructing related hardware. The program may be stored in a computer readable storage medium, including a read only memory, a random access memory, a magnetic disk or an optical disk.
(64) The foregoing descriptions are merely exemplary embodiments of the present invention, but not intended to limit the present invention. Various modifications and replacements that may be easily thought of by persons skilled in the art without departing from the technical scope of the present invention should be considered falling within the protection scope of the present invention. Therefore, the protection scope of the present invention is subject to the appended claims.