Pseudo-random sequence generation method, device, equipment and storage medium
By generating the sequence parameters and matrices of the pseudo-random sequence, parallel calculation of the pseudo-random sequence is realized, which solves the problem of large calculation delay in the existing technology and improves the efficiency of pseudo-random sequence generation.
Patent Information
- Application Number
- CN202411061795.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-05
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2044-08-05
AI Technical Summary
The existing pseudo-random sequence generation method requires multiple calculations and cannot be calculated in parallel, resulting in a large computational delay in generating pseudo-random sequences.
By generating a generating matrix for each bit in the first random sequence and the second random sequence, the sequence parameters of the pseudo-random sequence are determined according to the user parameters, and these matrices are used to calculate in parallel to generate the pseudo-random sequence, thereby reducing the number of calculations and reducing the calculation delay.
It realizes parallel calculation of different bits in the same sequence, significantly reduces the calculation delay of pseudo-random sequence generation, and improves efficiency.
Smart Images

Figure CN118567609B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, and in particular to a pseudo-random sequence generation method, device, equipment and storage medium. Background Art
[0002] In the 5G NR (New Radio) system, both the scrambling sequence and the demodulation reference signal DMRS (Demodulation Reference Signal) are generated based on pseudo-random sequences. In the existing pseudo-random sequence generation method, two random sequences, X1 and X2, need to be generated respectively. The initialization value used to generate the random sequence X1 is known, while the initialization value for generating the random sequence X2 needs to be calculated based on user parameters. When generating random sequences X1 and X2, each bit in the sequence is calculated in turn based on the initialization value, and multiple calculations need to be performed according to the sequence length. In addition, the generation of the subsequent bits depends on the bits generated by the previous calculations, and it is impossible to achieve parallel calculation of the sequence bits, resulting in a large calculation delay in the generation of pseudo-random sequences. Summary of the invention
[0003] The present invention provides a pseudo-random sequence generation method, device, equipment and storage medium, which are used to solve the defect that the existing pseudo-random sequence generation method needs to perform multiple calculations and cannot perform parallel calculations, resulting in a large calculation delay in generating the pseudo-random sequence.
[0004] The present invention provides a pseudo-random sequence generation method, comprising:
[0005] Determining sequence parameters of a pseudo-random sequence to be generated according to user parameters of the communication channel; the sequence parameters include start and end positions and sequence length;
[0006] Generate a first random sequence, and generate a generator matrix for each bit in a second random sequence;
[0007] Based on the sequence parameters, the pseudo-random sequence is generated according to the first random sequence and the generator matrix.
[0008] According to the pseudo-random sequence generation method provided by the present invention, the pseudo-random sequence is generated based on the sequence parameter, according to the first random sequence and the generator matrix, including:
[0009] Acquire the maximum sequence length of the pseudo-random sequence, and select a matrix to be used from each of the generator matrices according to the maximum sequence length; the number of rows of the matrix to be used is the same as the number of bits corresponding to the maximum sequence length;
[0010] Generate the second random sequence according to the sequence parameter and the matrix to be used;
[0011] An XOR operation is performed on the first random sequence and the second random sequence to generate the pseudo-random sequence.
[0012] According to the pseudo-random sequence generation method provided by the present invention, the pseudo-random sequence includes a scrambling code sequence, and the sequence parameters include a first sequence length and a first start and end position corresponding to the scrambling code sequence; generating the second random sequence according to the sequence parameters and the matrix to be used includes:
[0013] Selecting a first target matrix from the matrix to be used according to the first start and end positions and the first sequence length; the number of rows of the first target matrix is the same as the number of bits corresponding to the first sequence length;
[0014] Generate a first initialization value based on a first preset algorithm;
[0015] Perform a modulo operation on the product of the first target matrix and the first initialization value to generate the second random sequence.
[0016] According to the pseudo-random sequence generation method provided by the present invention, performing an XOR operation on the first random sequence and the second random sequence to generate the pseudo-random sequence includes:
[0017] Selecting a first sequence to be used from the first random sequence according to the first start and end positions and the first sequence length; the length of the first sequence to be used is the same as the length of the first sequence;
[0018] An exclusive OR operation is performed on the first sequence to be used and the second random sequence to generate the scrambling code sequence.
[0019] According to the pseudo-random sequence generation method provided by the present invention, the pseudo-random sequence includes a demodulation reference signal sequence, and the sequence parameters include a second sequence length and a second start and end position corresponding to the demodulation reference signal sequence; generating the second random sequence according to the sequence parameters and the matrix to be used includes:
[0020] Selecting a second target matrix from the matrix to be used according to the second start and end positions and the second sequence length; the number of rows of the second target matrix is the same as the number of bits corresponding to the second sequence length;
[0021] Generate a second initialization value based on a second preset algorithm;
[0022] A modulo operation is performed on the product of the second target matrix and the second initialization value to generate the second random sequence; the sequence length of the second random sequence is the same as the length of the second sequence.
[0023] According to the pseudo-random sequence generation method provided by the present invention, performing an XOR operation on the first random sequence and the second random sequence to generate the pseudo-random sequence includes:
[0024] Selecting a second sequence to be used from the first random sequence according to the second start and end positions and the second sequence length; the length of the second sequence to be used is the same as the length of the second sequence;
[0025] An XOR operation is performed on the second sequence to be used and the second random sequence to generate the demodulation reference signal sequence.
[0026] According to the pseudo-random sequence generation method provided by the present invention, the generating of the first random sequence and the generating matrix of each bit in the second random sequence include:
[0027] Generate initial random sequence and basis matrix;
[0028] Generate a first random sequence according to the maximum sequence length and the initial random sequence; the sequence length of the first random sequence is the same as the maximum sequence length;
[0029] A generator matrix for each bit in a second random sequence is generated based on the base matrix and the maximum sequence length; the number of rows of the generator matrix is greater than the number of bits corresponding to the maximum sequence length.
[0030] The present invention also provides a pseudo-random sequence generating device, comprising the following modules:
[0031] A parameter determination module, used to determine the sequence parameters of the pseudo-random sequence to be generated according to the user parameters of the communication channel; the sequence parameters include the start and end positions and the sequence length;
[0032] A first sequence generation module, used to generate a first random sequence and a generator matrix for each bit in a second random sequence;
[0033] The second sequence generating module is used to generate the pseudo-random sequence based on the sequence parameters, the first random sequence and the generating matrix.
[0034] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps of any of the pseudo-random sequence generation methods described above are implemented.
[0035] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of any of the pseudo-random sequence generation methods described above.
[0036] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the steps of any of the above-mentioned pseudo-random sequence generation methods are implemented.
[0037] The pseudo-random sequence generation method, device, equipment and storage medium provided by the present invention generate a generation matrix of each bit in the first random sequence and the second random sequence, based on the sequence parameters of the pseudo-random sequence determined according to the user parameters, and generate a pseudo-random sequence according to the generation matrix of the first random sequence and the second random sequence. By generating the second random sequence in a matrix manner, parallel calculation of different bits in the same sequence can be achieved, while reducing the number of calculations on the bits and reducing the calculation delay when generating the pseudo-random sequence. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0039] Figure 1 It is a flow chart of the pseudo-random sequence generation method provided by the present invention.
[0040] Figure 2 It is a schematic diagram of the pseudo-random sequence generation process provided by the present invention.
[0041] Figure 3 It is a structural schematic diagram of the pseudo-random sequence generating device provided by the present invention.
[0042] Figure 4 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION
[0043] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0044] In the pseudo-random sequence generation scheme recorded in the related technology such as the 38211 protocol, the initialization parameter Cinit used to generate the pseudo-random sequence is first calculated according to the calculation formula of the initialization parameter Cinit corresponding to the DMRS or scrambling sequence of different channels, and the 31-bit initialization value corresponding to the X2 sequence is determined according to Cinit. Then, according to the sequence length len of the DMRS sequence or the scrambling sequence, the length of the sequence to be calculated is determined to be NC+len. In the 38211 protocol, the value of NC is generally 1600.
[0045] The X1 sequence with a length of NC+len is calculated according to the following formula 1, and the X2 sequence with a length of NC+len is calculated according to the following formula 2:
[0046] ; (1)
[0047] ; (2)
[0048] Where n ranges from 0 to len-1. For a sequence of length NC+len, the first 1600 bits are removed, and the remaining NC bits are the bit sequence required to generate the pseudo-random sequence. The pseudo-random sequence is calculated according to the following formula 3:
[0049] ; (3)
[0050] In this pseudo-random sequence generation method, 1600 calculations are required based on the initialization value, each time calculating one bit, to finally obtain the X1 and X2 sequences. In addition, the calculation of subsequent bits depends on the bits generated by the previous calculations, and it is impossible to achieve parallel calculation of different bits in the same sequence, resulting in a large calculation delay.
[0051] Based on this, an embodiment of the present invention provides a pseudo-random sequence generation method, which provides a generator matrix for the bits of an X2 sequence. According to the starting position and sequence length of the pseudo-random sequence to be generated, a corresponding matrix can be selected from the generator matrix to generate the X2 sequence, thereby generating a pseudo-random sequence. Each bit in the X2 sequence can be calculated and generated based on the generator matrix separately without relying on previously generated bits. Parallel calculation of different bits in the same sequence can be achieved, and the number of calculations is reduced, which is conducive to reducing calculation delays.
[0052] Specifically, Figure 1 : is a flow chart of the pseudo-random sequence generation method provided by the present invention, such as Figure 1 As shown, the method comprises the following steps:
[0053] Step 100, determining sequence parameters of a pseudo-random sequence to be generated according to user parameters of a communication channel; the sequence parameters include start and end positions and sequence length;
[0054] Step 200, generating a first random sequence, and generating a generator matrix for each bit in a second random sequence;
[0055] Step 300: Generate the pseudo-random sequence based on the sequence parameters, according to the first random sequence and the generator matrix.
[0056] First, according to the user parameters of the communication channel, the sequence parameters of the pseudo-random sequence to be generated are determined, and the sequence parameters include the start and end positions and the sequence length. The sequence parameters of the pseudo-random sequence are used as a reference for generating the pseudo-random sequence.
[0057] Optionally, the user parameters include the aggregation level of the user's physical downlink control channel PDCCH (physical downlink control channel) and the frequency domain resource configuration parameters of the user in the physical downlink shared channel PDSCH (physical downlink shared channel). Further, the frequency domain resource configuration parameters include the DMRS type and the location of the resource block RB (Resource Block) allocated to the user.
[0058] When generating a pseudo-random sequence, a first random sequence is first generated, and a generator matrix for each bit in a second random sequence is generated. Optionally, for the second random sequence and its generator matrix, one bit in the sequence may correspond to one generator matrix, or all bits in the sequence may correspond to one generator matrix, and one bit in the sequence may correspond to a row in the generator matrix.
[0059] Further, based on the sequence parameters, a pseudo-random sequence is generated according to the generated first random sequence and the generator matrix, specifically, the pseudo-random sequence is generated based on the first random sequence and the generator matrix with reference to the sequence parameters. The sequence length in the sequence parameters is the sequence length of the generated pseudo-random sequence, and the bits required to generate the pseudo-random sequence are determined from the first random sequence and the generator matrix, and the positions of the required bits in the first random sequence and the generator matrix are determined according to the start and end positions in the sequence parameters.
[0060] Optionally, the second random sequence is first generated according to the generator matrix. In one embodiment, if a bit in the second random sequence corresponds to a generator matrix, a bit in the second random sequence is generated based on each generator matrix, and the generated bits constitute the second random sequence. In other embodiments, if all bits in the second random sequence correspond to a generator matrix, and a bit in the second random sequence corresponds to a row of the generator matrix, then based on each row of the generator matrix, each bit of the second random sequence is generated, and the generated bits constitute the second random sequence.
[0061] It can be understood that when generating the second random sequence, based on the generation matrix, or based on each row of the generation matrix, each bit in the second random sequence can be generated simultaneously, the dependency between the previous and next bits generated in the same sequence is decoupled, and parallel calculation of different bits in the same sequence is achieved.
[0062] Then, the pseudo-random sequence is generated based on the first random sequence and the second random sequence with the sequence parameters as reference. Optionally, the start and end positions in the sequence parameters are used as reference points, bits of the same length as the sequence length in the sequence parameters are selected from the first random sequence and the second random sequence, and then the pseudo-random sequence is generated based on a preset algorithm using the selected bits.
[0063] In this embodiment, by generating a generator matrix of each bit in the first random sequence and the second random sequence, based on the sequence parameters of the pseudo-random sequence determined according to the user parameters, a pseudo-random sequence is generated according to the generator matrices of the first random sequence and the second random sequence. By generating the second random sequence in a matrix manner, parallel calculation of different bits in the same sequence can be achieved, while reducing the number of calculations on the bits and reducing the calculation delay when generating the pseudo-random sequence.
[0064] In one embodiment, the pseudo-random sequence is generated according to its maximum sequence length. Therefore, in step 300, based on the sequence parameters, the pseudo-random sequence is generated according to the generator matrix of each bit in the first random sequence and the second random sequence, specifically including:
[0065] Step 310, obtaining the maximum sequence length of the pseudo-random sequence, and selecting a matrix to be used from each of the generator matrices according to the maximum sequence length; the number of rows of the matrix to be used is the same as the number of bits corresponding to the maximum sequence length;
[0066] Step 320, generating the second random sequence according to the sequence parameters and the matrix to be used;
[0067] Step 330: Perform an XOR operation on the first random sequence and the second random sequence to generate the pseudo-random sequence.
[0068] The maximum sequence length of the pseudo-random sequence is obtained, and a matrix to be used is selected from each generation matrix of the second random sequence according to the maximum sequence length, and the number of rows of the matrix to be used is the same as the number of bits corresponding to the maximum sequence length. A second random sequence is generated according to the sequence parameters and the matrix to be used, and an XOR operation is further performed on the first random sequence and the second random sequence to generate a pseudo-random sequence.
[0069] Among them, the maximum sequence length of the pseudo-random sequence can also be determined according to the user parameters. For example, in the 5G communication system, the maximum aggregation level of the PDCCH is 16, and the length of the scrambling sequence is 1728 bits. When the DMRS type of the PDSCH channel is Type 1, there are 6 DMRS symbols in one RB. If the maximum number of RBs allocated by the user is 273, there are a total of 1638 DMRS symbols, corresponding to 3276 bits of the pseudo-random sequence. Therefore, the maximum sequence length of the pseudo-random sequence can be set to 3276.
[0070] In some embodiments, reference Figure 2 In the pseudo-random sequence generation process shown, after determining the sequence parameters such as the sequence length, start and end positions of the pseudo-random sequence, a target matrix for generating a second random sequence is selected from the matrix to be used according to the sequence parameters, and bits to be used are selected from the first random sequence as the sequence to be used according to the sequence parameters. For the selected target matrix, a second random sequence is generated according to the initialization value of the acquired second random sequence, and then the second random sequence is XORed with the sequence to be used to obtain a pseudo-random sequence.
[0071] Optionally, the pseudo-random sequence to be generated includes a scrambling code sequence and a demodulation reference signal DMRS sequence, and the sequence parameters include a first sequence parameter corresponding to the scrambling code sequence and a second sequence parameter corresponding to the DMRS sequence. The first sequence parameter further includes a first sequence length and a first start and end position of the scrambling code sequence, and the second sequence parameter further includes a second sequence length and a second start and end position of the DMRS sequence.
[0072] exist Figure 2 In step 320, the initialization value of the second random sequence obtained includes a first initialization value and a second initialization value. Based on this, when the pseudo-random sequence to be generated includes a scrambling sequence, in step 320, the second random sequence is generated according to the sequence parameters and the matrix to be used, including:
[0073] Step 321: selecting a first target matrix from the matrix to be used according to the first start and end positions and the first sequence length; the number of rows of the first target matrix is the same as the number of bits corresponding to the first sequence length;
[0074] Step 322, generating a first initialization value based on a first preset algorithm;
[0075] Step 323: Perform a modulo operation on the product of the first target matrix and the first initialization value to generate the second random sequence.
[0076] According to the first starting and ending positions and the first sequence length, a first target matrix is selected from the matrix to be used, and the number of rows of the first target matrix is the same as the number of bits corresponding to the first sequence length. A first initialization value is generated based on a first preset algorithm, and a modulo operation is performed on the product of the first target matrix and the first initialization value to generate each bit in the second random sequence to obtain a second random sequence. Optionally, any row of the first target matrix corresponds to a bit in the second random sequence.
[0077] In one embodiment, the first preset algorithm is shown in the following formula 4:
[0078] ; (4)
[0079] In formula 4, It is a temporary wireless network identifier for a user, used to identify a specific user or device. It is unique and is used to distinguish different users or devices. In the process of wireless communication, in order to distinguish different users and devices, each user will be assigned a unique The identifier is used as an input parameter when generating the scrambling sequence to ensure that each user's data has a unique scrambling code, thereby improving the security of data transmission. It is the network identifier of the user. In the communication system, different cells or network units may use the same frequency resources. In order to distinguish signals and reduce interference, each cell or network unit will be assigned a unique network identifier. , when generating the scrambling sequence, As another key parameter, combined , a pseudo-random sequence with high anti-interference properties can be generated.
[0080] Furthermore, when generating the scrambling sequence, Figure 2 As shown, it is also necessary to select the bits to be used from the first random sequence according to the first sequence parameter to form the first sequence to be used. In step 330, the first random sequence and the second random sequence are subjected to an XOR operation to generate a pseudo-random sequence, which also includes:
[0081] Step 331: selecting a first sequence to be used from the first random sequence according to the first start and end positions and the first sequence length; the length of the first sequence to be used is the same as the length of the first sequence;
[0082] Step 332: Perform an XOR operation on the first sequence to be used and the second random sequence to generate the scrambling code sequence.
[0083] According to the first start and end positions and the first sequence length, a first sequence to be used is selected from the first random sequence, the sequence length of the first sequence to be used is the same as the first sequence length, and an XOR operation is performed on the first sequence to be used and the second random sequence to generate a scrambling code sequence.
[0084] Similarly, if the pseudo-random sequence to be generated includes a DMRS sequence, then in step 320, generating a second random sequence according to the sequence parameters and the matrix to be used includes:
[0085] Step 324: selecting a second target matrix from the matrix to be used according to the second start and end positions and the second sequence length; the number of rows of the second target matrix is the same as the number of bits corresponding to the second sequence length;
[0086] Step 325, generating a second initialization value based on a second preset algorithm;
[0087] Step 326: Perform a modulo operation on the product of the second target matrix and the second initialization value to generate the second random sequence; the sequence length of the second random sequence is the same as the length of the second sequence.
[0088] According to the second starting and ending positions and the second sequence length, a second target matrix is selected from the matrix to be used, the number of rows of the second target matrix is the same as the number of bits corresponding to the second sequence length, a second initialization value is generated based on a second preset algorithm, a modulo operation is performed on the product of the second target matrix and the second initialization value, and each bit in the second random sequence is generated, and the sequence length of the second random sequence is the same as the second sequence length. Optionally, any row of the second target matrix corresponds to a bit in the second random sequence.
[0089] In one embodiment, the second preset algorithm is shown in the following formula 5:
[0090] ; (5)
[0091] In formula 5, Indicates the number of consecutive OFDM (Orthogonal Frequency Division Multiplexing) symbols in a time slot. is the time slot number within the frame, is an identifier configured by the channel higher layer, , determined by the initialization field of the DMRS sequence.
[0092] Furthermore, when generating a DMRS sequence, Figure 2As shown, it is also necessary to select the bits to be used from the first random sequence according to the second sequence parameter to form the second sequence to be used. In step 330, the first random sequence and the second random sequence are subjected to an XOR operation to generate a pseudo-random sequence, which also includes:
[0093] Step 333: selecting a second sequence to be used from the first random sequence according to the second start and end positions and the second sequence length; the length of the second sequence to be used is the same as the length of the second sequence;
[0094] Step 334: Perform an XOR operation on the second sequence to be used and the second random sequence to generate the demodulation reference signal sequence.
[0095] According to the second start and end positions and the second sequence length, a second sequence to be used is selected from the first random sequence, and the sequence length of the second sequence to be used is the same as the second sequence length. An XOR operation is performed on the second sequence to be used and the second random sequence to generate a DMRS sequence.
[0096] In one embodiment, the generator matrix of the bits in the second random sequence is generated based on the base matrix, and the first random sequence is generated based on the initial random sequence. In step 200, generating the first random sequence and generating the generator matrix of each bit in the second random sequence specifically includes:
[0097] Step 210, generating an initial random sequence and a base matrix;
[0098] Step 220, generating a first random sequence according to the maximum sequence length and the initial random sequence; the sequence length of the first random sequence is the same as the maximum sequence length;
[0099] Step 230: Generate a generator matrix for each bit in the second random sequence based on the base matrix and the maximum sequence length; the number of rows of the generator matrix is greater than the number of bits corresponding to the maximum sequence length.
[0100] First, an initial random sequence and a base matrix are generated. Optionally, the sequence length of the initial random sequence may be a preset value, which is generally a value greater than the maximum sequence length of the pseudo-random sequence. The dimension of the base matrix may also be a preset dimension.
[0101] Further, a first random sequence is generated according to the obtained maximum sequence length and the initial random sequence, and the sequence length of the first random sequence is the same as the maximum sequence length of the pseudo-random sequence. Optionally, when generating the first random sequence, a sequence having the same length as the maximum sequence length of the pseudo-random sequence may be selected from the initial random sequence according to the maximum sequence length as the first random sequence.
[0102] Further, a generator matrix for each bit in the second random sequence is generated based on the base matrix, and the number of rows of the generator matrix is greater than the number of bits corresponding to the maximum sequence length of the pseudo-random sequence. Optionally, the dimension of the base matrix can be a fixed value, for example, the dimension of the base matrix can be determined according to the number of initialization values of the second random sequence.
[0103] In some embodiments, taking the maximum sequence length of the pseudo-random sequence to be generated as 3276 bits, the X1 sequence as the first random sequence, and the X2 sequence as the second random sequence as an example, the pseudo-random sequence generation method provided in an embodiment of the present invention is described in detail.
[0104] First, since the initialization value of the X1 sequence is fixed and has nothing to do with the user parameters, a random sequence X1_Used with a sequence length of 3276 bits can be generated after the maximum sequence length of the pseudo-random sequence is obtained. Optionally, an initial random sequence with a sequence length greater than 3276 can be generated first, and then 3276 bits can be selected as the X1_Used sequence, or an X1_Used sequence with a sequence length of 3276 can be directly generated, and there is no specific limitation on this.
[0105] For the X2 sequence, a basis matrix is first generated. For example, the basis matrix matrix31_x2 can be calculated according to the following algorithm:
[0106] matrix31_x2(m,m:m+3)=1, the value of m is 1 to 28; in the 1st to 28th rows of the basis matrix matrix31_x2, the values of the elements in the mth to m+3rd columns of the mth row are 1;
[0107] matrix31_x2(29,[1:4,29:31])=1; in the 29th row of the base matrix matrix31_x2, the element values of columns 1 to 9 and columns 29 to 31 are 1;
[0108] matrix31_x2(30,[1,5,30,31])=1; in the 30th row of the base matrix matrix31_x2, the values of the elements in the 1st, 5th, 30th, and 31st columns are 1;
[0109] matrix31_x2(31,[1,3,4,6,31])=1; in the 29th row of the base matrix matrix31_x2, the element values of the 1st, 3rd, 4th, 6th, and 31st columns are 1.
[0110] The dimension of the basis matrix is , i.e. 31 rows and 31 columns, the generator matrix matrixTotal corresponding to each bit of the X2 sequence is calculated according to the calculated basis matrix. Exemplarily, the generator matrix matrixTotal is calculated as follows:
[0111] Nc=1600;
[0112] matrixTotal=zeros(Mpn+Nc,31); Generate a zero matrix with Mpn+Nc rows and 31 columns;
[0113] matrixTotal(1:31,:)=eye(31); Take the first 31 rows of the 0 matrix as the identity matrix;
[0114] num=floor((Mpn+Nc-31) / 31); Round down the value of "(Mpn+Nc-31) / 31" to get the number of calculations;
[0115] lastNum=mod(Mpn+Nc-31,31); take the remainder of "(Mpn+Nc-31) / 31";
[0116] matrixLast1=1; define a variable matrixLast1 with an initial value of 1;
[0117] for m=1:num;
[0118] matrixLast1=matrixLast1 matrix31; In the mth calculation, the product of matrixLast1 and the base matrix matrix31 is calculated;
[0119] matrixLast1=mod(matrixLast1,2); Perform modulo operation on matrixLast1;
[0120] matrixTotal(m 31+[1:31],:)=matrixLast1; The final calculated matrixLast1 is used as the mth matrix of the generated matrix matrixTotal 31+1 to m The value of row 31+31;
[0121] end
[0122] matrixLast=mod(matrix31(1:lastNum,:) matrixLast1,2); After completing num calculations, perform a modulo operation on the product of the first to lastNum rows of the base matrix matrix31 and matrixLast1 to obtain the value of the variable matrixLast;
[0123] matrixTotal(Mpn+Nc+1-lastNum:Mpn+Nc,:)=matrixLast;Use the value of matrixLast as the element value of the (Mpn+Nc+1-lastNum) to (Mpn+Nc) rows of the generator matrix to obtain the generator matrix.
[0124] Among them, Mpn=3276, the dimension of matrixTotal is ; eye(31) represents the 31-dimensional identity matrix. Take the following 3276 rows from the matrix Total corresponding to each bit of the X2 sequence as the matrix Total_X2_Used to be used, whose dimension is .
[0125] Optionally, if the user PDCCH aggregation level is 16, the number of bits of the corresponding scrambling code sequence is 1728 (i.e., the first sequence length). At this time, the initialization value Cinit of the corresponding X2 sequence is calculated according to the first preset algorithm, and Cinit is converted into 31 bits Cinit_31. Then, taking the first starting and ending positions as reference starting and ending points, 1728 rows are taken out from the sequence to be used matrixTotal_X2_Used, and 1728 bits are taken out from the first random sequence X1_Used to form the sequence to be used, and the scrambling code sequence is generated.
[0126] The generation process of the scrambling code sequence is specifically shown in the following algorithm:
[0127] matrixTotal_X2=matrixTotal_X2_Used(1:1728,:); According to the first sequence length 1728 of the scrambling sequence, starting from the first row of the matrix matrixTotal_X2_Used to be used, take the first 1728 rows as the first target matrix matrixTotal_X2;
[0128] ScramblingBit_x2=mod(matrixTotal_X2 Cinit_31,2); perform a modulo operation on the product of the first target matrix matrixTotal_X2 and the initialization value Cinit_31 to obtain the bit ScramblingBit_x2 in the X2 sequence;
[0129] ScramblingBit_x1=X1_Used(1:1728); according to the first sequence length 1728 of the scrambling sequence, 1728 bits ScramblingBit_x1 are taken from the sequence X1_Used to form the first sequence to be used;
[0130] ScramblingBit=xor(ScramblingBit_x1, ScramblingBit_x2); perform an XOR operation on the bit ScramblingBit_x1 in the sequence to be used and the bit ScramblingBit_x2 in the X2 sequence to generate the bit ScramblingBit in the scrambling sequence, thereby obtaining the scrambling sequence.
[0131] Among them, mod represents the modulus operation; matrixTotal_X2 Cinit_31 means Dimensional matrices and Dimensional matrices are multiplied to obtain Dimensional column vector, each row of matrixTotal_X2 generates a bit; xor represents exclusive OR operation. It can be seen that each scrambling code bit in the scrambling code sequence can be calculated and generated separately without affecting each other, supporting parallel operation.
[0132] Optionally, assuming that the user PDSCH frequency domain resource configuration is (54,96), the DMRS type is Type1, 54 indicates that the frequency domain starts from the 54th RB (i.e., the second start and end positions), and 96 indicates that 96 RBs are configured for the user, and 6 DMRS symbols are allocated in each RB, corresponding to 12 bits. The 96 RBs configured for the user correspond to 1152 bits (i.e., the second sequence length). The initialization value Cinit corresponding to the X2 sequence is calculated according to the second preset algorithm, and Cinit is converted into 31 bits Cinit_31. Then, with the second start and end positions as reference start and end points, 1152 rows are taken out from the matrix to be used matrixTotal_X2_Used, and 1152 bits are taken out from the sequence X1_Used to form the second sequence to be used, and a DMRS sequence is generated.
[0133] The generation process of the DMRS sequence is shown in the following algorithm:
[0134] matrixTotal_X2=matrixTotal_X2_Used(54 12+[1:1152],:); According to the second sequence length 1152 of the DMRS sequence, from the first Starting from row 1152, take row 1152 as the second target matrix matrixTotal_X2;
[0135] dmrsBit_x2=mod(matrixTotal_X2 Cinit_31,2); performing a modulo operation on the product of the second target matrix matrixTotal_X2 and the initialization value Cinit_31 to obtain the bit dmrsBit_x2 in the X2 sequence;
[0136] dmrsBit_x1=X1_Used(54 12+[1:1152]); according to the second sequence length 1152 of the DMRS sequence, 1152 bits of ScramblingBit_x1 are taken from the sequence X1_Used to form a second sequence to be used;
[0137] dmrsBit=xor(dmrsBit_x1,dmrsBit_x2); perform an XOR operation on the bit dmrsBit_x1 in the sequence to be used and the bit dmrsBit_x2 in the X2 sequence to generate the bit dmrsBit in the DMRS sequence, and obtain the scrambling code sequence.
[0138] matrixTotal_X2 Cinit_31 means The matrix and Dimensional matrices are multiplied to obtain Each row of the second target sequence matrixTotal_X2 generates a corresponding bit. It can be seen that each bit in the DMRS sequence can also be calculated separately without affecting each other, and parallel operation can be realized, which can significantly reduce the delay.
[0139] It can be understood that in the above embodiments, the calculation and generation of the X1 sequence and the X2 sequence are independent of each other and can be calculated in parallel. Based on matrix operations, the calculation and generation of each bit in the X2 sequence are also independent of each other and can be calculated in parallel. Therefore, in application scenarios with strict requirements on latency, the overall latency can be significantly reduced by reducing the calculation latency.
[0140] In this embodiment, by calculating the generator matrix of the X2 sequence, and selecting the corresponding target matrix from the generator matrix for generating the pseudo-random sequence according to the start and end positions and the sequence length of the pseudo-random sequence, independent calculation of each bit in the X2 sequence can be achieved, so that parallel calculation of different bits in the same sequence can be achieved, thereby reducing calculation delay.
[0141] Furthermore, based on the matrix calculation of the X2 sequence, parallel calculation of the X1 sequence and the X2 sequence, as well as parallel calculation of the scrambling code sequence and the DMRS sequence are also implemented, further reducing the calculation delay.
[0142] The pseudo-random sequence generation device provided by the present invention is described below. The pseudo-random sequence generation device described below and the pseudo-random sequence generation method described above can be referenced to each other.
[0143] Reference Figure 3 , the pseudo-random sequence generation device provided by the embodiment of the present invention includes:
[0144] The parameter determination module 10 is used to determine the sequence parameters of the pseudo-random sequence to be generated according to the user parameters of the communication channel; the sequence parameters include the start and end positions and the sequence length;
[0145] A first sequence generating module 20, used to generate a first random sequence and a generating matrix for each bit in a second random sequence;
[0146] The second sequence generating module 30 is used to generate the pseudo-random sequence based on the sequence parameters, the first random sequence and the generating matrix.
[0147] In one embodiment, the second sequence generating module 30 is further configured to:
[0148] Acquire the maximum sequence length of the pseudo-random sequence, and select a matrix to be used from each of the generator matrices according to the maximum sequence length; the number of rows of the matrix to be used is the same as the number of bits corresponding to the maximum sequence length;
[0149] Generate the second random sequence according to the sequence parameter and the matrix to be used;
[0150] An XOR operation is performed on the first random sequence and the second random sequence to generate the pseudo-random sequence.
[0151] In one embodiment, the pseudo-random sequence includes a scrambling code sequence, and the sequence parameters include a first sequence length and a first start and end position corresponding to the scrambling code sequence; the second sequence generating module 30 is further used to:
[0152] Selecting a first target matrix from the matrix to be used according to the first start and end positions and the first sequence length; the number of rows of the first target matrix is the same as the number of bits corresponding to the first sequence length;
[0153] Generate a first initialization value based on a first preset algorithm;
[0154] Perform a modulo operation on the product of the first target matrix and the first initialization value to generate the second random sequence.
[0155] In one embodiment, the second sequence generating module 30 is further configured to:
[0156] Selecting a first sequence to be used from the first random sequence according to the first start and end positions and the first sequence length; the length of the first sequence to be used is the same as the length of the first sequence;
[0157] An exclusive OR operation is performed on the first sequence to be used and the second random sequence to generate the scrambling code sequence.
[0158] In one embodiment, the pseudo-random sequence includes a demodulation reference signal sequence, and the sequence parameters include a second sequence length and a second start and end position corresponding to the demodulation reference signal sequence; the second sequence generation module 30 is further used to:
[0159] Selecting a second target matrix from the matrix to be used according to the second start and end positions and the second sequence length; the number of rows of the second target matrix is the same as the number of bits corresponding to the second sequence length;
[0160] Generate a second initialization value based on a second preset algorithm;
[0161] A modulo operation is performed on the product of the second target matrix and the second initialization value to generate the second random sequence; the sequence length of the second random sequence is the same as the length of the second sequence.
[0162] In one embodiment, the second sequence generating module 30 is further configured to:
[0163] Selecting a second sequence to be used from the first random sequence according to the second start and end positions and the second sequence length; the length of the second sequence to be used is the same as the length of the second sequence;
[0164] An XOR operation is performed on the second sequence to be used and the second random sequence to generate the demodulation reference signal sequence.
[0165] In one embodiment, the first sequence generating module 20 is further configured to:
[0166] Generate initial random sequence and basis matrix;
[0167] Generate a first random sequence according to the maximum sequence length and the initial random sequence; the sequence length of the first random sequence is the same as the maximum sequence length;
[0168] A generator matrix for each bit in a second random sequence is generated based on the base matrix and the maximum sequence length; the number of rows of the generator matrix is greater than the number of bits corresponding to the maximum sequence length.
[0169] Figure 4 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 4As shown, the electronic device may include: a processor 410, a communication interface 420, a memory 430 and a communication bus 440, wherein the processor 410, the communication interface 420 and the memory 430 communicate with each other through the communication bus 440. The processor 410 may call the logic instructions in the memory 430 to execute the steps of the pseudo-random sequence generation method, for example, including:
[0170] Determining sequence parameters of a pseudo-random sequence to be generated according to user parameters of the communication channel; the sequence parameters include start and end positions and sequence length;
[0171] Generate a first random sequence, and generate a generator matrix for each bit in a second random sequence;
[0172] Based on the sequence parameters, the pseudo-random sequence is generated according to the first random sequence and the generator matrix.
[0173] In addition, the logic instructions in the above-mentioned memory 430 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.
[0174] On the other hand, the present invention further provides a computer program product, the computer program product comprising a computer program, the computer program can be stored on a non-transitory computer-readable storage medium, and when the computer program is executed by a processor, the computer can perform the steps of the pseudo-random sequence generation method provided by the above methods, for example, including:
[0175] Determining sequence parameters of a pseudo-random sequence to be generated according to user parameters of the communication channel; the sequence parameters include start and end positions and sequence length;
[0176] Generate a first random sequence, and generate a generator matrix for each bit in a second random sequence;
[0177] Based on the sequence parameters, the pseudo-random sequence is generated according to the first random sequence and the generator matrix.
[0178] In another aspect, the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to perform the steps of the pseudo-random sequence generation method provided by the above methods, for example, including:
[0179] Determining sequence parameters of a pseudo-random sequence to be generated according to user parameters of the communication channel; the sequence parameters include start and end positions and sequence length;
[0180] Generate a first random sequence, and generate a generator matrix for each bit in a second random sequence;
[0181] Based on the sequence parameters, the pseudo-random sequence is generated according to the first random sequence and the generator matrix.
[0182] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0183] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0184] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for generating a pseudo-random sequence, characterized in that: include: Determining sequence parameters of a pseudo-random sequence to be generated according to user parameters of the communication channel; The sequence parameters include start and end positions and sequence length; Generate a first random sequence, and generate a generator matrix for each bit in a second random sequence; Based on the sequence parameters, generating the pseudo-random sequence according to the first random sequence and the generator matrix; The step of generating the pseudo-random sequence based on the sequence parameter and according to the first random sequence and the generator matrix comprises: Acquire the maximum sequence length of the pseudo-random sequence, and select a matrix to be used from each of the generator matrices according to the maximum sequence length; the number of rows of the matrix to be used is the same as the number of bits corresponding to the maximum sequence length; Generate the second random sequence according to the sequence parameter and the matrix to be used; Performing an XOR operation on the first random sequence and the second random sequence to generate the pseudo-random sequence; The pseudo-random sequence includes a scrambling code sequence, and the sequence parameters include a first sequence length and a first start and end position corresponding to the scrambling code sequence; and generating the second random sequence according to the sequence parameters and the matrix to be used includes: Selecting a first target matrix from the matrix to be used according to the first start and end positions and the first sequence length; the number of rows of the first target matrix is the same as the number of bits corresponding to the first sequence length; Generate a first initialization value based on a first preset algorithm; Performing a modulo operation on the product of the first target matrix and the first initialization value to generate the second random sequence; The first preset algorithm is: ; in, is the first initialization value, It is the user's temporary wireless network identifier. The network ID of the user.
2. The pseudo-random sequence generation method according to claim 1, characterized in that: The performing an XOR operation on the first random sequence and the second random sequence to generate the pseudo-random sequence includes: Selecting a first sequence to be used from the first random sequence according to the first start and end positions and the first sequence length; the length of the first sequence to be used is the same as the length of the first sequence; An exclusive OR operation is performed on the first sequence to be used and the second random sequence to generate the scrambling code sequence.
3. The pseudo-random sequence generation method according to claim 1, characterized in that: The pseudo-random sequence includes a demodulation reference signal sequence, and the sequence parameters include a second sequence length and a second start and end position corresponding to the demodulation reference signal sequence; and generating the second random sequence according to the sequence parameters and the matrix to be used includes: Selecting a second target matrix from the matrix to be used according to the second start and end positions and the second sequence length; the number of rows of the second target matrix is the same as the number of bits corresponding to the second sequence length; Generate a second initialization value based on a second preset algorithm; A modulo operation is performed on the product of the second target matrix and the second initialization value to generate the second random sequence; the sequence length of the second random sequence is the same as the length of the second sequence.
4. The pseudo-random sequence generation method according to claim 3, characterized in that: The performing an XOR operation on the first random sequence and the second random sequence to generate the pseudo-random sequence includes: Selecting a second sequence to be used from the first random sequence according to the second start and end positions and the second sequence length; the length of the second sequence to be used is the same as the length of the second sequence; An XOR operation is performed on the second sequence to be used and the second random sequence to generate the demodulation reference signal sequence.
5. The pseudo-random sequence generation method according to claim 1, characterized in that: The generating of the first random sequence and the generating matrix of each bit in the second random sequence comprises: Generate initial random sequence and basis matrix; Generate a first random sequence according to the maximum sequence length and the initial random sequence; the sequence length of the first random sequence is the same as the maximum sequence length; A generator matrix for each bit in a second random sequence is generated based on the base matrix and the maximum sequence length; the number of rows of the generator matrix is greater than the number of bits corresponding to the maximum sequence length.
6. A pseudo-random sequence generating device, characterized in that: include: A parameter determination module, used to determine the sequence parameters of the pseudo-random sequence to be generated according to the user parameters of the communication channel; The sequence parameters include start and end positions and sequence length; A first sequence generation module, used to generate a first random sequence and a generator matrix for each bit in a second random sequence; A second sequence generating module, configured to generate the pseudo-random sequence based on the sequence parameters, the first random sequence and the generating matrix; The second sequence generating module is further used for: Acquire the maximum sequence length of the pseudo-random sequence, and select a matrix to be used from each of the generator matrices according to the maximum sequence length; the number of rows of the matrix to be used is the same as the number of bits corresponding to the maximum sequence length; Generate the second random sequence according to the sequence parameter and the matrix to be used; Performing an XOR operation on the first random sequence and the second random sequence to generate the pseudo-random sequence; The pseudo-random sequence includes a scrambling sequence, and the sequence parameters include a first sequence length and a first start and end position corresponding to the scrambling sequence; the second sequence generation module is further used to: Selecting a first target matrix from the matrix to be used according to the first start and end positions and the first sequence length; the number of rows of the first target matrix is the same as the number of bits corresponding to the first sequence length; Generate a first initialization value based on a first preset algorithm; Performing a modulo operation on the product of the first target matrix and the first initialization value to generate the second random sequence; The first preset algorithm is: ; in, is the first initialization value, It is the user's temporary wireless network identifier. The network ID of the user.
7. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the steps of the pseudo-random sequence generation method according to any one of claims 1 to 5 are implemented.
8. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the pseudo-random sequence generation method according to any one of claims 1 to 5 are implemented.
Citation Information
Patent Citations
Pseudo-random sequence generation method and device and storage medium
CN112579045A
Secure polarization code dynamic coding method based on double-sequence mixing
CN116827540A
