Matrix extension block multiplexing method in interleaving coding
By extending the interleaved coding matrix in OFDM technology to block multiplexing, the problems of high coding delay and limited storage space caused by fixed matrix size are solved, and efficient multiplexing and adaptability of storage space are achieved.
Patent Information
- Application Number
- CN202410739720.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-07
- Publication Date
- 2024-09-24
- Estimated Expiration
- Not applicable · inactive patent
Smart Images

Figure CN118694480A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of mobile communications, and particularly to a matrix expansion block multiplexing method in interleaved coding. Background Art
[0002] With the development of mobile communication technologies, OFDM (Orthogonal Frequency Division Multiplexing), that is, orthogonal frequency division multiplexing, as a key technology has been widely concerned. The data transmission volume of OFDM systems has increased significantly, and higher requirements have been put forward for mobile communication technologies in terms of high speed, high energy efficiency, and spectrum utilization. And with the continuous improvement of wireless communication rates, the quality of communication services has become increasingly important. Interleaved coding can effectively detect and correct burst errors in wireless channels of OFDM systems, improving the authenticity and reliability of information in communication.
[0003] Currently, the block interleaved coding principle in OFDM technology includes sequential interleaving and scrambled interleaving, and the implementation strategies include single matrix read / write and dual matrix ping-pong read / write. Sequential interleaving means writing by rows and reading by columns or writing by columns and reading by rows; scrambled interleaving means generating write addresses according to certain rules and then reading sequentially; the single matrix strategy means aiming at a matrix storage space and reading after all data has been written; the dual matrix read / write strategy requires using twice as much storage resources to perform ping-pong read / write operations. The disadvantage of the single matrix strategy is large latency and low rate, and the dual matrix strategy makes the ping-pong storage of multiple groups of data occupy additional storage space, consuming too much hardware resources. Moreover, in existing interleaved coding technologies, the scale of the interleaved coding matrix is fixed and cannot adapt to the requirements of different application scenarios. Summary of the Invention
[0004] In view of the above technical problems, the present invention provides a matrix expansion block multiplexing method in interleaved coding.
[0005] To achieve the above technical objectives, the following technical solutions are provided:
[0006] A matrix expansion block multiplexing method in interleaved coding, the method comprising:
[0007] Step 1: Alternately recombine every N data in interleaved coding into an interleaved matrix A and an interleaved matrix B; wherein, A is an interleaved matrix of m*n, N = m*n, and m < n, and A is decomposed into a square matrix of m*m and a matrix of m*(n - m); B is an interleaved matrix of n*m, N = n*m, and m < n, and B is decomposed into a square matrix of m*m and a matrix of (n - m)*m;
[0008] Step 2: Divide the square matrix storage space of size n*n into blocks; divide it into a first square matrix of size m*m, a second matrix of size m*(nm), a third matrix of size (nm)*m and a fourth square matrix of size (nm)*(nm); wherein the n*n storage space is equivalent to the expansion of the storage space corresponding to the m*n or n*m interleaved matrix in step 1;
[0009] Step 3: Through address mapping, the first square matrix and the second matrix are used as the storage space of the interleaving matrix A in the above step 1; the first square matrix and the third matrix are used as the storage space of the interleaving matrix B in the above step 1. The corresponding read and write addresses of the A and B matrices are generated for the two interleaving types, sequential and random.
[0010] Furthermore, in step 3, the method for performing read and write address mapping for sequential interleaving is:
[0011] Matrix A is written row by row while matrix B is read row by row, and matrix B is written column by column while matrix A is read column by column. Four address mappings are performed sequentially and interleaved, namely, writing A in row, reading B in row, writing B in column, and reading A in column.
[0012] Furthermore, in step 3, the method for performing read and write address mapping for out-of-order interleaving is:
[0013] The matrix sequence number to be written is transformed according to a certain rule to generate a write address, and then read out in row order; random interleaving is performed four times of address mapping, namely random write A, row order read A, random write B and row order read B;
[0014] The random transformation formula used is:
[0015] i=(N CBPS / C)*(k mod C)+floor(k / C)
[0016] Where i is the index after interleaving into the matrix; N CBPS is the interleaving depth; C is a constant, which is 16 in IEEE 802.11; mod is the modulo operator, and floor() is the integer function.
[0017] Furthermore, the method also includes a method for processing when data conflicts occur between sequential interleaving and random interleaving:
[0018] The data conflict handling method for the sequential interleaving matrix is:
[0019] Matrix A is written row by row while matrix B is read row by row, and matrix B is written column by column while matrix A is read column by column. This reading and writing method can avoid data conflicts.
[0020] The data conflict handling method for the random interleaving matrix is:
[0021] When interleaving out of order, compare the address sizes of the matrix elements written and read at the same time. When the write address is smaller than the read address, write directly.
[0022] When the write address is greater than the read address, a read-write data conflict occurs. The write data is cached first. After all data is cached, a write conflict address is generated in the write conflict control module, and the cached write conflict data is sequentially written into the write conflict address.
[0023] Furthermore, for sequential interleaving and out-of-order interleaving, the method for handling data conflicts caused when the read and write addresses are the same at the same time is: adjust the clock edge triggered by the read and write operations, so that the read operation occurs on the rising edge of the clock and the write operation occurs on the falling edge of the clock.
[0024] Furthermore, the storage space of the matrix is implemented using large-capacity DDR4, which adopts a dual-write single-read interface design.
[0025] The beneficial effects of the present invention are:
[0026] The method provided by the present invention expands, blocks and reuses the interleaving matrix, thereby achieving the effect of reusing the memory space of a large-capacity memory, avoiding ping-pong storage of multiple groups of data occupying additional storage space, and solving the problems of high coding delay and limited storage space. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] The accompanying drawings are used to provide a further understanding of the present invention and constitute a part of the specification. They are used to explain the present invention and do not constitute a limitation of the present invention. In the accompanying drawings:
[0028] Figure 1 It is a schematic diagram of two interleaved matrix data decompositions of the present invention;
[0029] Figure 2 It is a schematic diagram of the expansion, block division and multiplexing of the matrix storage space of the present invention;
[0030] Figure 3 It is a principle block diagram of the present invention;
[0031] Figure 4 Schematic diagram of matrix expansion, block division and multiplexing in an embodiment of the present invention;
[0032] Figure 5 The address mapping rule of row writing A and row reading B according to the embodiment of the present invention is as follows;
[0033] Figure 6 Write B column read A address mapping rule for the embodiment of the present invention;
[0034] Figure 7A principle block diagram of sequential interleaving address mapping according to an embodiment of the present invention;
[0035] Figure 8 The present invention implements the address mapping rule of writing A out of order and reading B in order;
[0036] Fig. 9 The present invention implements the address mapping rule of writing B out of order and reading A in order;
[0037] Fig.10 It is a principle block diagram of out-of-order interleaving address mapping according to an embodiment of the present invention;
[0038] Fig.11 This is an illustration of data conflict when row A is written and row B is read according to an embodiment of the present invention;
[0039] Fig.12 This is an illustration of a data conflict when writing column B and reading column A in an embodiment of the present invention;
[0040] Fig.13 The present invention implements the rule of data conflict of writing A out of order and reading B in order;
[0041] Fig.14 The present invention implements the rule of data conflict of writing B out of order and reading A in order;
[0042] Fig.15 A principle block diagram of data conflict address mapping according to an embodiment of the present invention;
[0043] Fig.16 This is a block diagram of the principle of processing data conflicts according to an embodiment of the present invention.
[0044] Fig.17 This is a principle block diagram of a conflict data cache register according to an embodiment of the present invention.
[0045] Fig.18 The figure is a schematic diagram of the read and write trigger clock edge in an embodiment of the present invention. DETAILED DESCRIPTION
[0046] The technical solution of the present invention is further described below in conjunction with specific embodiments and drawings.
[0047] The present invention provides a system embodiment for matrix extension block multiplexing in interleaving coding, such as Figure 3 As shown, the system includes SOC (abbreviation of System on Chip, called system-level chip) and DDR4 memory;
[0048] The SOC includes a MIG controller, a write operation control module, a read operation control module, a write conflict control module and an embedded controller;
[0049] The embedded controller is connected to the write operation control module, the read operation control module and the write conflict control module via a standard AXI-lite bus, and the embedded controller is used to configure parameters of each module;
[0050] The write operation control module, the read operation control module and the write conflict control module are all connected to the embedded controller via a standard AXI-lite bus; the write operation control module, the read operation control module and the write conflict control module are connected to the DDR4 memory via a MIG controller using an AXI4 bus.
[0051] When the system is running, the embedded controller generates control signals of various modules inside the FPGA and values of internal variables according to the input interleaved coding codeword length, and the embedded controller transmits configuration information to the write operation control module, the read operation control module, and the write conflict control module through the AXI-lite bus; the embedded processor is supported to configure parameters of different interleaved coding matrix sizes through the standard AXI-lite bus to meet various application requirements;
[0052] Specifically, the configuration information is the parameter value in the calculation formula, which is reflected in the hardware circuit as:
[0053] (1) The modulus value of the element counter, such as cnt_47;
[0054] (2) The values of the intermediate counters, such as cnt_5 and cnt_7;
[0055] (3) shift value of each shifter;
[0056] (4) Multiple-selector input value;
[0057] (5) The value of the conflict counter, etc.
[0058] The FPGA performs address mapping and handles data conflicts; data is written or read from DDR4 via the AXI4 bus via the MIG controller.
[0059] The control signals of each module inside the FPGA include the encoding start signal, encoding end signal, data conflict start signal, data conflict end signal, data conflict enable signal and multiplexer read / write flag signal in the write operation control module, the read operation control module and the write conflict control module; the values of the internal variables of each module inside the FPGA include the modulus value of the element counter in the write operation control module, the read operation control module and the write conflict control module, the modulus value of all internal counters, the shift value of all internal shifters, the input value of all multiplexers and the modulus value of the conflict counter, etc.
[0060] The present invention builds a SCO system on an FPGA. The SCO system includes a write operation control module, a read operation control module and a write conflict control module. An embedded controller configures parameters of the above modules according to the input interleaved coding codeword length, and the configuration information is transmitted to each module through a standard AXI-lite bus.
[0061] The present invention uses AXI protocol communication. In Xilinx FPGA, ARM and FPGA information interaction is mainly carried out using AXI4 bus protocol. AXI is a member of the microcontroller bus AMBA proposed by ARM, and the latest version was released in 2010. AXI bus protocols include AXI4, AXI4-Stream, and AXI-lite. The AXI4 protocol is oriented to the needs of high-performance address mapping communication, allowing a maximum of 256 rounds of data burst transmission (Burst). The AXI4 bus is divided into 5 channels, including a read address channel, a read data channel, a write address channel, a write data channel, and a write response channel. By encapsulating the IP core into a unified AXI interface, ARM can be used to schedule the IP. The AXI4-Stream protocol does not contain address information and is used for high-speed stream transmission of data. The AXI-lite protocol is a simplified version of the AXI protocol, which cancels the setting of the Burst length, has simple functions, and is usually used to configure modules.
[0062] The present invention also provides a method embodiment for matrix extension block multiplexing in interleaving coding. The present invention takes an interleaving coding with a data volume of 48 bits as an example, and the method comprises:
[0063] Step 1: Alternately reorganize every 48 data in the interleaved code into interleaved matrix A and interleaved matrix B, where A is a 6*8 interleaved matrix, decomposed into a 6*6 square matrix and a 6*2 matrix; B is an 8*6 interleaved matrix, decomposed into a 6*6 square matrix and a 2*6 matrix.
[0064] Step 2: Figure 4 For example, the storage space of size 8*8 is divided into blocks (the storage space of 8*8 is equivalent to the expansion of the storage space corresponding to the 6*8 or 8*6 interleaved matrix in step 1 above), the number of elements of sub-matrix No. 1 (i.e., the first square matrix) is 6*6=36, the number of elements of sub-matrix No. 2 (i.e., the second matrix) is 6*2=12, the number of elements of sub-matrix No. 3 (i.e., the third matrix) is 2*6=12, and the number of elements of sub-matrix No. 4 (i.e., the fourth square matrix) is 2*2=4. Through address mapping, No. 1 and No. 2 constitute the storage space of one A matrix in step 1 above, and No. 1 and No. 3 constitute the storage space of another B matrix, and the storage space of No. 1 sub-matrix is reused twice.
[0065] The method provided by the present invention decomposes an interleaved coding matrix (m*n) into an m*m square matrix and an m*(nm) matrix; decomposes an interleaved coding matrix (n*m) into an m*m square matrix and a (nm)*m matrix. The storage space of the n*n square matrix is divided into blocks, and two storage spaces (m*n and n*m) of the size of the interleaved coding matrix are replanned, and a hardware logic circuit is added externally, so as to finally realize a double matrix ping-pong operation on one matrix resource.
[0066] Step 3: Figure 5-Figure 10 Taking as an example, the read and write address mapping for sequential interleaving and random interleaving are described respectively.
[0067] 3.1 Sequential interleaved read and write address mapping
[0068] The sequential interleaving strategy of the present invention is: write matrix A by row while read matrix B by row, write matrix B by column while read matrix A by column. Sequential interleaving requires four address mappings, namely, write A by row, read B by row, write B by column, and read A by column. Because the original matrix is still used as the A matrix of the ping-pong operation in the expanded matrix, the address mapping of writing A by row is consistent with its element numbering and remains unchanged.
[0069] The address mapping rule for row read B is as follows Figure 5 As shown, after analysis, the address of row read B can be calculated by formula (1):
[0070] Line_read_B=Addr_47+(Addr_47 / / 5)*2 (1)
[0071] Where Line_read_B is the address of line read B and Addr_47 is the element number counter.
[0072] The address mapping rules for column write B and column read A are as follows Figure 6 As shown, after analysis, the addresses of column write B and column read A can be calculated by equation (2) and equation (3):
[0073] Column_write_B=Addr_47[5:0]*8+Addr_47 / / 7 (2)
[0074] Column_read_A=(Addr_47%5)*8+Addr_47 / / 5 (3)
[0075] Where Column_write_B is the address of column write B, Column_read_A is the address of column read A, and Addr_47 is the element number counter.
[0076] The schematic diagram of the sequential interleaved address mapping circuit is as follows Figure 7As shown. In the address calculation formula, " / / " represents integer operation, and returns the integer quotient of division; "%" represents modulo operation, and returns the remainder of division. The present invention is implemented in hardware by a counter with the divisor as the modulus value. The count value count of the counter is the remainder of the division. After the counter is full and cleared, the full flag count register full_count is increased by 1, which is the integer quotient of the division. The address mapping formula for sequential interleaving can be implemented in hardware by the following method:
[0077] The row write address A is equal to the value of the element number counter (cnt_47); the row read address B is equal to the value of the element number counter plus twice the value of the full flag count register of the modulo 5 counter, which is represented by shifting left by 1 bit (cnt_47+full_5_count<<1); the column read address A is equal to the value of the full flag count register of the modulo 5 counter plus the value of the modulo 5 counter multiplied by 8, which is represented by shifting left by 3 bits (full_5_count+count<<3); the column write address B is equal to the value of the element number counter multiplied by 8 plus the value of the full flag count register of the modulo 7 counter (cnt_47<<3+full_7_count).
[0078] After the encoding start signal begin_sign is valid, when the read-write flag signal rd_sign is 1, the output address is column write B and column read A; when the read-write flag signal rd_sign is 0, the output address is row write A and row read B.
[0079] 3.2 Random interleaved read and write address mapping
[0080] The random interleaving strategy of the present invention is: the sequential numbers of the matrix elements to be written are transformed according to certain rules to generate write addresses, and then read out in row order. Therefore, four address mappings are also required, namely random write A, sequential read A, random write B and sequential read B. The random transformation involved in the 48-bit interleaving provided by the embodiment of the present invention is shown in formula (4):
[0081] i=(N CBPS / C)*(kmodC)+floor(k / C) (4)
[0082] Where k is the bit number before interleaving into the matrix, N CBPS is the interleaving depth, which is 48 in this example; C is a constant, which is 16 in IEEE 802.11; mod is the modulo operator, and floor() is the rounding function.
[0083] Because the original matrix is still used as the A matrix of the ping-pong operation in the expanded matrix, the address mapping rule of random write A can be directly obtained by formula (4), where i is the address write_A of random write A, and k is the input element number of the A matrix, which is equivalent to the element number counter.
[0084] The rule of reading B in row order is consistent with the above analysis of sequential interleaved reading B, and can also be calculated by formula (1). The address mapping rule of writing A out of order and reading B in sequence is as follows: Figure 8 shown.
[0085] The address mapping when writing the B matrix out of order is divided into two steps. First, the bit number of the input B matrix is transformed by formula (4) to obtain the element number written into the B matrix, and then the element address of the B matrix is obtained by formula (1). The whole operation can be regarded as first transforming the input 0-47 bit number into Figure 8 The random write A lookup table in the random write B matrix element numbering sequence is obtained, and then the B matrix element numbering sequence is Figure 5 The row read B lookup table finally obtains the out-of-order write B address sequence.
[0086] The sequential writing of A is consistent with the sequential interleaved row writing of A analyzed above, and both are consistent with their element numbers and remain unchanged.
[0087] The address mapping rules of writing B out of order and reading A in sequence are as follows Fig. 9 As shown, after analysis, the address of out-of-order write B can be calculated by formula (5):
[0088]
[0089] Where write_B is the address of out-of-order write B, and Addr_47 is the element number counter.
[0090] The schematic diagram of the out-of-order interleaving address mapping circuit is as follows Fig.10 As shown, the formula (4) for writing address A out of order can be simplified to formula (6):
[0091] write_A=cnt_47[3:0]+(cnt_47[3:0]<<1)+cnt_47[5:4] (6)
[0092] The out-of-order write of A can be implemented in hardware by an adder and a shifter; the out-of-order write of B address can be implemented by an accumulator: the elements are accumulated in order of odd and even to 3 or 5, and the parity is determined by the lowest bit cnt_47[0] of the element counter; the row-sequential read of A is consistent with the sequential interleaved row read of A, which is equal to the value of the element counter; the row-sequential read of B is consistent with the sequential interleaved row read of B, which is equal to the value of the element number counter plus twice the value of the full flag count register of the modulo 5 counter (cnt_47+full_5_count<<1).
[0093] After the encoding start signal begin_sign is valid, when the read-write flag signal rd_sign is 1, the output address is to write B in random order and read A in sequence; when the read-write flag signal rd_sign is 0, the output address is to write A in random order and read B in sequence.
[0094] Below Figure 11-Figure 17 Taking as an example, the possible data conflicts in sequential interleaving and random interleaving are respectively explained.
[0095] For matrix data conflicts during sequential interleaving coding, the present invention adopts the strategy of sequential interleaving coding as follows: write matrix A by row while reading matrix B by row, write matrix B by column while reading matrix A by column. This reading and writing method can ensure that the write address at the same time is never greater than the read address, thereby avoiding read data errors caused by the data of the read address being overwritten by the data of the previous write address.
[0096] Specific as Fig.11 As shown, when row A is written and row B is read, matrix A is written to x in sequence. m , matrix B is also read out row by row to x m , the next moment matrix A continues to write the first row x m+1 , and matrix B has read out the first element x of the second row 1+n , thus avoiding B reading x 1+n , the element has already been covered in A.
[0097] like Fig.12 As shown, when matrix B is written column by column and matrix A is read column by column, the address of matrix B written is never greater than the address of matrix A read out. In summary, under sequential interleaving, in matrix No. 1 reused by the ping-pong matrix, the read operation is always completed before the write operation, that is, no data conflict occurs.
[0098] Random interleaving matrix data conflict: During random interleaving, because the write address increases non-sequentially, it is necessary to compare the address sizes of the matrix elements written and read at the same time. When the write address is smaller than the read address, it means that the old data at the current write address has been read before and can be written directly; when the write address is larger than the read address, it means that the old data at the current write address has not been read. Direct writing at this time will cause the original data to be overwritten and the read data to be incorrect.
[0099] When a read-write data conflict occurs in out-of-order interleaving, the write data is cached first. After the last bit of conflicting data is cached, a write conflict address is generated through the write conflict control module, and the cached write data is written into the matrix storage space.
[0100] Fig.13This is the read and write address situation at each moment when A is written out of order and B is read sequentially. There are 14 data conflicts in 48 elements. Although the shortest duration of each conflict is different, the address where the conflict occurs is fixed. Therefore, the cache area only needs to cache 14 bits of write data, and the write address can be generated by the conflict address generation unit. After the last bit of conflicting data is cached, the write data of the cache area is written into the matrix storage space through another input port. Analyze the address where the conflict occurs, and the address can be obtained by formula (7):
[0101]
[0102] Where Con_A is the conflicting write address of the out-of-order write matrix A, and con_num is the conflict number counter.
[0103] Similarly, Fig.14 This is the read and write address situation at each moment when B is written out of order and A is read sequentially. There are 17 data conflicts. Analyze the address where the conflict occurs. The address can be obtained by formula (8):
[0104]
[0105] Where Con_B is the conflicting write address of the out-of-order write matrix B, and con_num is the conflict number counter.
[0106] The schematic diagram of the address mapping circuit of the conflict handling module with random interleaving is as follows: Fig.15 When the read / write flag signal rd_sign is 1, the conflict of writing B out of order and reading A in sequence is handled; when the read / write flag signal rd_sign is 0, the conflict of writing A out of order and reading B in sequence is handled. This can be implemented in hardware by an accumulator and a multiplexer.
[0107] When the read-write flag signal rd_sign is 0, it is a disorderly write A and sequential read B conflict address. When the value of the conflict counter is an even number or 5, the accumulator accumulates 3. When the value of the conflict counter is an odd number and not 5, the accumulator accumulates 6. When the value of the conflict counter is 11, an additional 50 is added to the accumulation of 6.
[0108] When the read-write flag signal rd_sign is 1, it is a disorderly write B and a sequential read A conflict address. When the value of the conflict counter is an even number, the accumulator accumulates 3. When the value of the conflict counter is an odd number and not 11, the accumulator accumulates 5. When the value of the conflict counter is 11, an additional 41 is added to the accumulation of 5.
[0109] Combination Fig.16As shown in the figure, when a data conflict occurs, the enable signal clash_en and the start signal clash_begin are both valid, the conflict register starts to cache data, and after the data is cached, the end signal clash_end is valid; the conflict address generation module starts to generate a write conflict address, and the conflict register outputs data at the same time, and writes the conflict data into the matrix storage space where the conflict occurs. After all writing is completed, the enable signal is pulled low, and the write conflict control module stops running.
[0110] like Fig.17 As shown, the conflict data cache register is composed of a shift register with a size of 17 bits. The start signal clash_begin and the end signal clash_end control the writing and reading of data. When the read-write flag signal rd_sign is 1, it indicates that it is a 17-bit conflict of writing B out of order. When it is 0, it indicates that it is a 14-bit conflict of writing A out of order.
[0111] Read and write clock edge: The above analysis does not involve the situation where the read and write addresses are the same at the same time. Regardless of whether it is sequential interleaving or random interleaving, when the read and write addresses are the same at the same time, data conflicts will also occur. Adjusting the clock edge triggered by the read and write operations can solve the data conflicts of reading and writing the same address at the same time. The read operation of the present invention occurs at the rising edge of the clock, and the write operation occurs at the falling edge of the clock.
[0112] like Fig.18 As shown in the figure, when read and write operations come at the same time, the read operation is triggered at the rising edge of the clock, and the write operation is triggered at the falling edge of the clock, and the read operation is performed first. In this way, the write operation in the same cycle is always half a cycle later than the read operation. This avoids data conflicts caused by reading and writing the same address at the same time.
[0113] The matrix storage space in the present invention is implemented by using large-capacity DDR4. The data stream is written into DDR4 via the AXI4 bus through the MIG module; the encoded data is read out to the read operation control module via the AXI4 bus through the MIG module. The present invention supports the embedded processor to configure the parameters of different interleaved coding matrix sizes through the standard AXI-lite bus to meet various application requirements.
[0114] The present invention provides a method for first reorganizing continuous scalars in interleaved coding into two interleaved coding matrices alternately, and then decomposing the reorganized interleaved coding matrix into a square matrix and a small matrix. The large square matrix storage space is diagonally decomposed into storage spaces of two small square matrices and two small matrices. The storage space is multiplexed by mapping the addresses of different interleaved coding matrices to the storage space. It is avoided that multiple groups of data occupy additional storage space, and the problem of high coding delay and limited storage space is solved.
[0115] The method first reorganizes the continuous scalars in the interleaved coding into two interleaved coding matrices alternately, and then decomposes the reorganized interleaved coding matrix into a square matrix and a small matrix. The large square matrix storage space is diagonally decomposed into the storage space of two small square matrices and two small matrices. The storage space is reused by mapping the addresses of different interleaved coding matrices to the storage space. It avoids that multiple groups of data occupy additional storage space, and solves the problem of high coding delay and limited storage space.
[0116] Finally, it should be noted that the above is only a preferred embodiment of the present invention and is not intended to limit the present invention. For ordinary technicians in this field, they can still modify or transform the technical solutions described above, which all fall within the scope of protection of the present invention.
Claims
1. A matrix extension block multiplexing method in interleaving coding, characterized in that: The method includes: Step 1: Alternately recombine every N data in the interleaved coding into an interleaved matrix A and an interleaved matrix B; where A is an interleaved matrix of m*n, N = m*n, and m < n, decompose A into a square matrix of m*m and a matrix of m*(n - m); B is an interleaved matrix of n*m, N = n*m, and m < n, decompose B into a square matrix of m*m and a matrix of (n - m)*m; Step 2: Divide the square matrix storage space of size n*n into blocks; divide it into a first square matrix of size m*m, a second matrix of size m*(n - m), a third matrix of size (n - m)*m, and a fourth square matrix of size (n - m)*(n - m); where the storage space of n*n is equivalent to the expansion of the corresponding storage space of the m*n or n*m interleaved matrix in Step 1; Step 3: Through address mapping, use the first square matrix and the second matrix as the storage space of the interleaved matrix A in Step 1; use the first square matrix and the third matrix as the storage space of the interleaved matrix B in Step 1; generate read and write addresses for the corresponding A and B matrices for both sequential and scrambled interleaved types.
2. The matrix extension block multiplexing method in interleaving coding according to claim 1, characterized in that: In Step 3, the method for read and write address mapping for sequential interleaving is: Write matrix A row by row while reading matrix B row by row, write matrix B column by column while reading matrix A column by column; sequential interleaving performs four address mappings, namely row write A, row read B, column write B, and column read A.
3. The matrix extension block multiplexing method in interleaving coding according to claim 1, characterized in that: In Step 3, the method for read and write address mapping for scrambled interleaving is: Generate a write address after transforming the sequence numbers of the matrix to be written according to a certain rule, and then read it row by row; scrambled interleaving performs four address mappings, namely scrambled write A, row sequential read A, scrambled write B, and row sequential read B; The adopted scrambled transformation formula is: i=(N CBPS / C)*(k mod C)+floor(k / C) Where k is the address before the random transformation; i is the address after the random transformation; N CBPS is the interleaving depth; C is a constant; mod is the modulo operator, and floor() is the integer function.
4. The matrix extension block multiplexing method in interleaving coding according to claim 1, characterized in that: The method also includes a processing method for data conflicts when sequential interleaving and scrambled interleaving occur: The data conflict processing method for the sequential interleaved matrix is: Write matrix A row by row while reading matrix B row by row, write matrix B column by column while reading matrix A column by column; The data conflict processing method for the scrambled interleaved matrix is: During scrambled interleaving, compare the address sizes of the matrix elements written and read at the same moment. When the write address is less than the read address, write directly; When the write address is greater than the read address, that is, a read-write data conflict occurs. First, cache the write data. After all conflict data is cached, the write conflict control module generates a write conflict address, and sequentially write the cached write conflict data into the write conflict address.
5. The matrix extension block multiplexing method in interleaving coding according to claim 1, characterized in that: For sequential interleaving and scrambled interleaving, the processing method for data conflicts generated when the read and write addresses are the same at the same moment is: Adjust the clock edge triggered by the read and write operations. The read operation occurs at the rising edge of the clock, and the write operation occurs at the falling edge of the clock.
6. The method for matrix extension block multiplexing in interleaving coding according to claim 1, characterized in that: The storage space of the matrix is implemented using a large-capacity DDR4. DDR4 adopts a dual-write single-read interface design.
Citation Information
Patent Citations
Interleaver or deinterleaver method and device thereof based on block interleaver
CN101800619A
Configurable block interleaving method and interleaver
CN108023662A
