Method and apparatus for storing code block
View Patent ↗Various embodiments provide a method and apparatus for storing a code block. When the size of the buffer in the terminal device is smaller than the size of the buffer at the rate matching at the base station, the code block is stored in the buffer, which is used when the terminal device fails to decode the code block.
1. A method for storing a code block (CB), comprising:
when failing to decode a CB sent by a base station,
determining, by a terminal device, a Redundancy Version (RV) which has a minimum index among at least one received RV corresponding to the CB;
determining, by the terminal device, an initial bit position of the determined RV:
storing, by the terminal device, combined bit information of the at least one received RV corresponding to the CB according to the initial bit position.
2. The method of claim 1 , wherein storing, by the terminal device, the combined bit information of at least one received RV corresponding to the CB according to the initial bit position comprises:
storing, by the terminal device, the combined bit information of at least one received RV corresponding to the CB in a buffer by starting from the initial bit position of the RV which has the minimum index among the at least one received RV corresponding to the CB, and according to a bit position sequence in a rate matching at the base station.
3. The method of claim 2 , wherein storing, by the terminal device, the combined bit information of at least one received RV corresponding to the CB in the buffer according to the bit position sequence in the rate matching at the base station comprises:
if the terminal device identifies that bit information to be stored is null when storing the combined bit information of at least one received RV corresponding to the CB,
setting, by the terminal device, a position corresponding to the bit information to be stored in the buffer as null.
4. The method of claim 1 , wherein storing, by the terminal device, the combined bit information of at least one received RV corresponding to the CB according to the initial bit position comprises:
storing, by the terminal device, the combined bit information of at least one received RV corresponding to the CB in a buffer by starting from the initial bit position of the RV which has the minimum index among the at least one received RV corresponding to the CB, and according to an ascending bit order in a rate matching at the base station.
5. The method of claim 4 , wherein storing, by the terminal device, the combined bit information of at least one received RV corresponding to the CB in the buffer according to the ascending bit order in the rate matching at the base station comprises:
if the terminal device identifies that bit information to be stored is null when storing the combined bit information of at least one received RV corresponding to the CB,
taking, by the terminal device, a subsequent bit as the bit information to be stored until the bit information to be stored is not null, and storing the bit information.