Data Processing System for Discrete DMA Data Access

By using the first shift register to perform hardware data shifting and splicing in the user design to be tested, the problem of low data processing efficiency caused by software splicing in the existing technology is solved, and more efficient discrete DMA data processing is achieved.

CN117667789BActive Publication Date: 2024-09-20SHANGHAI UNIVISTA IND SOFTWARE GRP CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211018496.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-24
Publication Date
2024-09-20
Estimated Expiration
2042-08-24

AI Technical Summary

Technical Problem

When the existing technology processes discrete DMA data, the data needs to be spliced ​​through software, resulting in low data processing efficiency, especially when the amount of data is huge, affecting storage and transmission efficiency.

Method used

By introducing the first shift register into the user design to be tested, the data is shifted and spliced ​​at the hardware level according to the preset data splicing rules, replacing the software splicing operation, directly generating a data format suitable for extended memory, and improving data processing efficiency.

Benefits of technology

It is realized that during the discrete DMA data processing process, the data processing efficiency is significantly improved through hardware shift operation, the time required for software splicing is reduced, and the storage and transmission efficiency is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117667789B
    Figure CN117667789B
Patent Text Reader

Abstract

The present invention relates to a data processing system for discrete DMA data access, comprising a DUT designed by a user to be tested, a simulator, a computer PC, a DMA control module and an extended memory; the DUT comprises N internal storage units {U1, U2, ... N} and a first shift register, the first shift register is used to convert {U1 i ,U2 i ,…U z(i) i}The corresponding original data is shifted to generate U x i The data to be spliced, DUT will x i The data to be spliced ​​is spliced ​​to generate M-bit data stored for the i-th time, and sent to the simulator; the simulator can be used to store the M-bit data stored for the i-th time into the address space corresponding to the extended memory. The present invention replaces the software splicing data operation with a hardware shift operation, thereby improving the discrete DMA data processing efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a data processing system for discrete DMA data access. Background Art

[0002] Existing computers (PC) use direct memory access (DMA) technology to access extended memory such as static random access memory (SRAM) or double data rate synchronous dynamic random access memory (DDR) that is not a computer memory stick. Existing DMA transmission can only achieve overall byte enable control (Byte Enable), so that all Byte Enables are continuously valid and support continuous data transmission. In existing large-scale hardware emulators or prototype verification platforms, there are situations where large-capacity extended memory such as SRAM and DDR is used to simulate chip storage.

[0003] In specific applications, all or part of the internal storage blocks of one or more small bit width user designs under test (DUT) are usually mapped to the same extended memory memory, or part of the internal storage blocks of the user designs under test with a larger bit width are mapped to the same extended memory memory. Since the data width to be stored in the internal storage blocks of the DUT is inconsistent with the data width of the extended memory memory, the data of different internal storage units are usually spliced ​​together and placed in the same extended memory data port when data splicing is performed, or part of the data in the storage unit of a user design under test is spliced ​​and stored in the same extended memory data port alone or with the ports of other internal storage units of the DUT, so that DMA transmission is non-aligned transmission or non-continuous DMA transmission, collectively referred to as discrete DMA data transmission. The backdoor access of the PC to the extended memory is often implemented by DMA technology transmission. When the PC writes data with a data width greater than the bit width of the extended memory into the extended memory, in some cases, it also needs to be spliced ​​by software first and then written into the extended memory. However, software data splicing takes a lot of time, especially in the case of huge data volume, which greatly reduces the efficiency of discrete DMA data processing. Summary of the invention

[0004] The present invention aims to provide a data processing system for discrete DMA data access, which improves the discrete DMA data processing efficiency by replacing software data splicing operations with hardware shift operations.

[0005] The invention provides a data processing system for discrete DMA data access, comprising a user-designed DUT to be tested, a simulator, a computer PC, a DMA control module and an extended memory, wherein the DUT, the simulator and the extended memory are connected in sequence; the PC, the DMA control module and the extended memory are connected in sequence; the simulator and the PC are connected, and the PC accesses the data in the extended memory through the DMA control module.

[0006] The DUT includes N internal storage units {U1, U2, ...U N} and the first shift register, U n The nth internal storage unit, n ranges from 1 to N, U n The data bit width of the extended memory is less than, greater than or equal to the data bit width M of the extended memory, and the first shift register is used to convert {U1 i ,U2 i ,…U z(i) i} The original data corresponding to the shift generates U x i The data to be spliced, DUT will x i The data to be spliced ​​is spliced ​​to generate the M-bit data stored for the i-th time and sent to the simulator, where U x i is the xth internal storage unit in the ith storage process, U1 i 、U2 i ,…U z(i) i All belong to {U1, U2, ...U N}, x ranges from 1 to Z(i), Z(i) is a function of i, i ranges from 1 to P, and P is the total number of storage times performed by the DUT to the extended memory.

[0007] The simulator can be used to store the M-bit data stored for the ith time into the address space corresponding to the extended memory.

[0008] Compared with the prior art, the present invention has obvious advantages and beneficial effects. By means of the above technical solution, the data processing system for discrete DMA data access provided by the present invention can achieve considerable technical advancement and practicality, and has wide industrial utilization value, and has at least the following advantages:

[0009] In the discrete DMA data processing process, the present invention replaces the software data splicing operation with the hardware shift operation, thereby improving the discrete DMA data processing efficiency.

[0010] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the following specifically cites a preferred embodiment and describes it in detail with the accompanying drawings as follows. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] Figure 1 A schematic diagram of a data processing system for discrete DMA data access provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0012] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the specific implementation method and effects of a data processing system for discrete DMA data access proposed by the present invention are described in detail below in combination with the accompanying drawings and preferred embodiments.

[0013] An embodiment of the present invention provides a data processing system for discrete DMA data access, such as Figure 1 As shown, it includes a user-designed DUT to be tested, an emulator, a computer PC, a DMA control module and an extended memory. The DUT, the emulator and the extended memory are connected in sequence; the PC, the DMA control module and the extended memory are connected in sequence; the emulator and the PC are connected, and the PC accesses the data in the extended memory through the DMA control module. The extended memory can be specifically an extended memory such as SRAM or DDR. Figure 1 As shown, the DUT includes N internal storage units {U1, U2, ...U N} and the first shift register, U n is the nth internal storage unit, and the value range of n is 1 to N. It can be understood that N is a positive integer greater than or equal to 2, and the data bit widths of different internal storage units can be the same or different. The DUT can map the data of the DUT internal storage unit to the extended memory through the simulator, and can also obtain data from the extended memory through the simulator. n The data bit width of the extended memory is less than, greater than or equal to the data bit width M of the extended memory, and the first shift register is used to convert {U1 i ,U2 i ,…U z(i) i} The original data corresponding to the shift generates U x i The data to be spliced, DUT will x i The data to be spliced ​​is spliced ​​to generate the M-bit data stored for the i-th time and sent to the simulator.x i is the xth internal storage unit in the ith storage process, U1 i 、U2 i ,…U z(i) i All belong to {U1, U2, ...U N}, x ranges from 1 to Z(i), Z(i) is a function of i, i ranges from 1 to P, and P is the total number of storage times performed by the DUT to the extended memory. The simulator can be used to store the M-bit data stored for the i-th time into the address space corresponding to the extended memory. The system pre-sets the preset data splicing according to the simulation requirements or verification requirements of a specific large-scale hardware simulator or prototype verification platform.

[0014] It should be noted that in the prior art, the data to be stored needs to be spliced ​​by the simulator and stored in the extended memory to realize the discrete storage of DMA data, which is realized by software splicing. However, software splicing takes a lot of time and will greatly affect the storage efficiency of DMA discrete data when the amount of data is huge. The present invention sets a first shift register in combination with a preset data splicing rule to quickly and easily shift each U x i The original data is shifted to generate U x i The data to be spliced ​​can be realized by the first shift register in the process of DUT performing the i-th storage to the extended memory, within a preset clock cycle, to {U1 i ,U2 i ,…U z(i) i} The original data corresponding to the shift generates U x i Then, the M-bit data to be stored for the i-th time can be generated by simple combination, thereby improving the storage efficiency of discrete DMA data.

[0015] U x i The original data of U may not be stored in the extended memory, but only a part of it may be stored. And it may not be stored in a continuous location space, so it is necessary to store U based on different situations. x i The original data is shifted to generate the corresponding data to be spliced, and then all U x i The data to be spliced ​​can be simply combined and stored in the extended memory. As an embodiment, U x i The bit width of the original data is f(zi), U xi The data bit width to be spliced is m(zi), B is the number of bits corresponding to a byte, G is the bit width of the extended memory.

[0016] If f(zi) > m(zi), the DUT obtains U according to the preset data splicing rule x i corresponding first byte enable sequence {C1, C2,... C f(zi) / B}, C a is the a-th byte enable flag corresponding to the first byte enable sequence of U1 i , the value range of a is from 1 to f(zi) / B, the byte enable flag is a valid flag or an invalid flag, and C is read one by one from the low bit to the high bit a , when C a is an invalid flag, the first shift register shifts the data from the (a*B + 1)-th bit to the f(zi)-th bit of the original data of U x i down by B bits to generate U x i data to be spliced, where the total number of valid flags in {C1, C2,... C f(zi) / B} is D i , m(zi) = D i *B. In this way, the data that does not need to be concerned about in the original data of U x i can be directly removed, improving the processing efficiency of discrete DMA data.

[0017] If f(zi) < m(zi), the DUT obtains U according to the preset data splicing rule x i corresponding second byte enable sequence {E1, E2,... E m(zi) / B}, E c is the c-th byte enable flag corresponding to the second byte enable sequence of U1 i , the value range of c is from 1 to m(zi) / B, the byte enable flag is a valid flag or an invalid flag, and E is read one by one from the low bit to the high bit c , when E c is an invalid flag, the first shift register shifts the data from the ((c - 1)*B + 1)-th bit to the f(zi)-th bit of the original data of U x i up by B bits to generate U x i data to be spliced; in this way, the original data of U x i can be extended to generate the corresponding data to be spliced, improving the processing efficiency of discrete DMA data.

[0018] If f(zi)=m(zi), then U x i The original data is equal to U x i The data to be spliced.

[0019] DUT will all U x i The data to be spliced ​​are spliced ​​to generate M bits of data stored for the i-th time.

[0020] As an embodiment, all i-th data concatenation rules are the same, {U1 i ,U2 i ,…U z(i) i}={U1,U2,…U N}. Take the case where the DUT includes only two internal storage units {U1, U2}, and the splicing rule is that the data of U1 is mapped to the upper M / 2 bits, and the data of U2 is mapped to the lower M / 2 bits. U1 and U2 can specifically map data to the extended memory through time division multiplexing, that is, it is not necessary to splice the data of U1 and U2 and then map them to the extended memory at the same time, but after setting the splicing rule, the address space of the extended memory mapped by each internal storage unit is determined, and then the data of different internal storage units are mapped to the extended memory through time division multiplexing.

[0021] It is understandable that the above example is only a simple example, and there may be more internal storage units, and more complex splicing rules may be set, and a splicing rule may be set for each M bits of data. As another embodiment, among all the i-th data splicing rules, some rules are the same, or all rules are different, {U1 i ,U2 i ,…U z(i) i} is {U1, U2, ...U N}. Take M = 64, and the DUT includes 4 internal storage units {U1, U2, U3, U4} as an example. The data bit width of U1 is 32, and the data bit width of U2, U3, U4 31 The data bit width of U1 is 16, and the data bit width of U4 is 8. According to application requirements, the following rules can be set: in the first 4 mappings, bits [31,0] correspond to U1 data, bits [47,32] correspond to U2 data, and bits [63,48] correspond to U2 data; for the 5th to 10th mappings, bits [15,0] correspond to U2 data, [47,16] correspond to U1 data, [55,48] correspond to U4 data, and [63,56] is set to invalid... The preset data splicing rules can be flexibly set according to specific application requirements, and are no longer listed one by one.

[0022] As an embodiment, the simulator is also used to store preset data splicing rules; the PC is used to obtain the preset data splicing rules and the address space corresponding to the extended memory from the simulator to generate mapping information; and is also used to obtain a write access request, the write access request includes the data to be written, and based on the write access request, the corresponding mapping information is obtained, a third byte enable sequence is generated, and the mapping information and the third byte enable sequence are sent to the DMA control module. It should be noted that the PC can also obtain a read access request, and can also generate a third byte enable sequence according to a similar method to the write access request, so that different byte enable settings of the DMA controller are valid or invalid. It can also directly read all the M bits of data corresponding to the extended memory according to the existing DMA technology, and then obtain the target data therefrom.

[0023] like Figure 1 In the example shown, the DMA control module includes a byte enable configurator and a DMA controller, wherein the byte enable configurator is used to configure the state of each byte enable signal line according to the byte enable sequence, and it should be noted that the initial state of all byte enable signal lines can be configured as a valid state; the DMA controller is used to generate control signals such as read-write control signals and address signals in addition to the byte enable control signal based on the corresponding mapping information, and write the target data corresponding to the write access request into the target address of the spliced ​​data in the corresponding extended memory, and the data of the non-target address of the spliced ​​data in the corresponding extended memory remains unchanged. It should be noted that the traditional DMA technology cannot directly process discrete DMA data transmission. In order to avoid affecting the contents of other user storage blocks when accessing a certain target user design storage block, all the data stored in the extended memory memory must be read out first, and then only the part corresponding to the target user design storage block is replaced, and then the entire data is rewritten into the extended memory using DMA, while the embodiment of the invention can realize that the M-bit data where the target data is located does not need to be read out, and is directly written into the corresponding extended memory based on the write access, and will not affect the non-target data, which greatly improves the processing efficiency of DMA discrete data write access.

[0024] It should be noted that the system described in the embodiment of the present invention is usually used in a large-scale hardware simulator or a prototype verification platform. If the data in the extended memory is changed through the DUT, the operation speed is very slow. Therefore, it is usually necessary to perform backdoor access through the PC to change it, that is, write the target data into the target address space corresponding to the extended memory. As an embodiment, in the process of processing the write access of the PC backdoor access, the PC is specifically used to obtain a write access request, parse the target data corresponding to the write access request, and the U corresponding to the target data from the write access request. n , based on the U corresponding to the target data nObtain corresponding mapping information, and generate a byte enable sequence list {S1, S2, ... S Y},S y is the byte enable sequence corresponding to the yth write to the extended memory of the write access request, the value range of y is 1 to Y, Y is the total number of writes corresponding to the write access request, S y ={r1 y ,r2 y ,…r Q y},r q y For S y The corresponding qth byte enable signal, r q y When the corresponding storage address is the target address corresponding to the target data, it is set to be valid; q y When the corresponding storage address is a non-target address corresponding to non-target data, it is set to invalid. Q is the total number of bytes corresponding to the extended memory, Q=M / B, and B is the number of bits corresponding to each byte. The value of B is usually 8, that is, 8 bits correspond to one byte, but it should be noted that, according to application requirements, the value of B can also be 9, 10, etc., that is, 9 bits or 10 bits correspond to one byte. Preferably, the value of M is an integer power of 2, the value of B is 8, M is set to 32 bits, 64 bits or 128 bits, etc., and the corresponding value of Q is 4, 8 or 16.

[0025] The system described in the embodiment of the present invention adopts a method of directly modifying the byte enable signal in the DMA transmission interface, so that a single write can complete the write access of the target user-designed storage block, solving the problem that traditional DMA transmission cannot directly process discrete DMA data transmission, and greatly improving the efficiency of discrete DMA data transmission.

[0026] As an embodiment, the DMA control module further includes a counter for determining the number of times the extended memory is written, and when it is determined to be the yth time, the byte enable configurator is specifically used to y Configure the state of each byte enable signal line.

[0027] like Figure 1 In the example shown, the PC further includes a second shift register, which shifts the data to be written to generate target data according to the mapping information. The byte enable configurator is used to configure the state of each byte enable signal line according to the third byte enable sequence; the DMA controller is used to generate a read / write control signal and an address signal based on the corresponding mapping information, and write the target data into the target address of the spliced ​​data in the corresponding extended memory, and the data of the non-target address of the spliced ​​data in the corresponding extended memory remains unchanged.

[0028] As an embodiment, the PC is specifically configured to obtain the i-th stitching rule and the address space corresponding to the extended memory from the emulator, and generate corresponding mapping information. The mapping information includes each U corresponding to the i-th storage process x i 、each U x i corresponding address information. Based on the corresponding mapping information, the address of the M-bit data corresponding to the extended memory can be determined, as well as the U corresponding to the data stored in each of the M bits x i .

[0029] The data to be written by the PC does not necessarily need to be all stored in the extended memory. It may be that only a part of the data is written. And it is not necessarily written in consecutive position spaces. Therefore, based on different situations, as an embodiment, the bit width of the data to be written is H, the target data bit width is I, and B is the number of bits corresponding to a byte

[0030] If H > I, the PC generates a fourth byte enable sequence {J1, J2,... J H / B}, J t is the t-th byte enable flag corresponding to the fourth byte enable sequence of the data to be stored, and the value range of t is from 1 to H / B. The byte enable flag is a valid flag or an invalid flag. Read J one by one from the low bit to the high bit t , when J t is an invalid flag, the second shift register shifts the data from the (t*B + 1)-th bit to the H-th bit of the data to be written B bits to the low bit to generate the target data. Among them, the total number of valid flags in {J1, J2,... J H / B} is DJ, and I = DJ*B. In this way, the data that does not need to be concerned in the data to be written by the PC can be directly removed to obtain the target data, improving the processing efficiency of discrete DMA data

[0031] If H < I, the PC generates a fifth byte enable sequence {K1, K2,... K I / B}, K u is the u-th byte enable flag corresponding to the fifth byte enable sequence of the target data, and the value range of u is from 1 to I / B. Read K one by one from the low bit to the high bit u , when K u is an invalid flag, the second shift register shifts the data from the ((u - 1)*B + 1)-th bit to the H-th bit of the data to be written B bits to the high bit to generate the target data. In this way, the data to be written by the PC can be extended to generate the corresponding target data, improving the processing efficiency of discrete DMA data

[0032] If H=I, then U x i The target data such as the data to be written.

[0033] In the discrete DMA data processing process, the embodiment of the present invention replaces the software data splicing operation with the hardware shift operation, thereby improving the discrete DMA data processing efficiency.

[0034] It should be noted that some exemplary embodiments are described as processes or methods depicted as flow charts. Although the flow charts describe the steps as sequential processes, many of the steps can be implemented in parallel, concurrently or simultaneously. In addition, the order of the steps can be rearranged. The process can be terminated when its operation is completed, but it can also have additional steps not included in the accompanying drawings. The process can correspond to a method, function, procedure, subroutine, subprogram, etc.

[0035] The above description is only a preferred embodiment of the present invention and does not limit the present invention in any form. Although the present invention has been disclosed as a preferred embodiment as above, it is not used to limit the present invention. Any technician familiar with this profession can make some changes or modifications to equivalent embodiments of equivalent changes using the technical contents disclosed above without departing from the scope of the technical solution of the present invention. However, any simple modification, equivalent change and modification made to the above embodiments based on the technical essence of the present invention without departing from the content of the technical solution of the present invention still falls within the scope of the technical solution of the present invention.

Claims

1. A data processing system for discrete DMA data access, characterized in that: It includes a user-designed DUT to be tested, a simulator, a computer PC, a DMA control module and an extended memory, and the DUT, the simulator and the extended memory are connected in sequence; The PC, the DMA control module and the extended memory are connected in sequence; the emulator is connected to the PC, and the PC accesses the data in the extended memory through the DMA control module; The DUT includes N internal storage units {U1, U2, ...U N } and the first shift register, U n The nth internal storage unit, n ranges from 1 to N, U n The data bit width of the extended memory is less than, greater than or equal to the data bit width M of the extended memory, and the first shift register is used to convert {U1 i ,U2 i ,…U z(i) i }The corresponding original data is shifted to generate U x i The data to be spliced, DUT will x i The data to be spliced ​​is spliced ​​to generate the M-bit data stored for the i-th time and sent to the simulator, where U x i is the xth internal storage unit in the ith storage process, U1 i 、U2 i ,…U z(i) i All belong to {U1, U2, ...U N }, x ranges from 1 to z(i), z(i) is a function of i, i ranges from 1 to P, P is the total number of storages executed by the DUT to the extended memory; The simulator can be used to store the M-bit data stored for the ith time into the address space corresponding to the extended memory; U x i The bit width of the original data is f(zi), U x i The width of the data to be spliced ​​is m(zi), B is the number of bits corresponding to the byte, G is the bit width of the extended memory; If f(zi)>m(zi), DUT obtains U according to the preset data splicing rules. x i The corresponding first byte enables the sequence {C1, C2, ... C f(zi) / B }, C a For U1 i The ath byte enable flag corresponding to the first byte enable sequence, the value range of a is 1 to f(zi) / B, the byte enable flag is a valid flag or an invalid flag, read one by one from low to high C a , when C a When the flag is invalid, the first shift register will x i The data from the a*B+1th bit to the f(zith bit) of the original data is shifted to the lower bit by B bits to generate U x i The data to be spliced, where {C1, C2, ...C f(zi) / B The total number of valid identifiers in} is D i , m(zi)=D i *B; If f(zi) < m(zi), the DUT obtains U according to the preset data splicing rule x i The corresponding second-byte enable sequence {E1, E2,..., E m(zi) / B}, E c is U1 i The c-th byte enable flag corresponding to the second-byte enable sequence corresponding to U1, where the value range of c is from 1 to m(zi) / B, and the byte enable flag is a valid flag or an invalid flag. Read E one by one from the low bit to the high bit c , when E c is an invalid flag, the first shift register shifts the data from the ((c - 1)*B + 1)-th bit to the f(zi)-th bit of the original data of U x i by B bits to the high bit to generate U x i data to be spliced; If f(zi)=m(zi), then U x i The original data is equal to U x i The data to be spliced; DUT will all U x i The data to be spliced ​​are spliced ​​to generate M bits of data stored for the i-th time.

2. The system according to claim 1, characterized in that The first shift register performs the i-th storage process of the DUT to the extended memory within a preset clock cycle. i ,U2 i ,…U z(i) i }The corresponding original data is shifted to generate U x i The data to be spliced.

3. The system according to claim 1, characterized in that All i-th data splicing rules are the same, {U1 i ,U2 i ,…U z(i) i }={U1,U2,…U N }.

4. The system according to claim 1, characterized in that Among all the i-th data splicing rules, some rules are the same, or all rules are different, {U1 i ,U2 i ,…U z(i) i } is {U1, U2, ...U N }.

5. The system according to claim 1, characterized in that The simulator is also used to store preset data splicing rules; The PC is used to obtain a preset data splicing rule from the simulator and an address space corresponding to the extended memory to generate mapping information; it is also used to obtain a write access request, the write access request includes data to be written, and based on the write access request, obtain the corresponding mapping information, generate a third byte enable sequence, and send the mapping information and the third byte enable sequence to the DMA control module; The PC further includes a second shift register, which shifts the data to be written to generate target data according to the mapping information; The DMA control module includes a byte enable configurator and a DMA controller, wherein the byte enable configurator is used to configure the state of each byte enable signal line according to a third byte enable sequence; the DMA controller is used to generate a read / write control signal and an address signal based on corresponding mapping information, and write the target data into the target address of the spliced ​​data in the corresponding extended memory, while the data of the non-target address of the spliced ​​data in the corresponding extended memory remains unchanged.

6. The system according to claim 5, characterized in that The PC is specifically used to obtain the i-th splicing rule and the address space corresponding to the extended memory from the simulator, and generate corresponding mapping information, wherein the mapping information includes each U corresponding to the i-th storage process. x i , each U x i The corresponding address information.

7. The system according to claim 5, characterized in that The bit width of the data to be written is H, the bit width of the target data is I, and B is the number of bits corresponding to the byte. If H>I, PC generates the fourth byte enable sequence {J1, J2, ... J corresponding to the data to be stored according to the corresponding mapping information. H / B },J t The tth byte enable flag corresponding to the fourth byte enable sequence corresponding to the data to be stored, the value range of t is 1 to H / B, the byte enable flag is a valid flag or an invalid flag, and J is read one by one from low to high. t , when J t When the flag is invalid, the second shift register shifts the data from the t*B+1th bit to the Hth bit to be written to the lower bit by B bits to generate the target data, wherein {J1, J2, ...J H / B }The total number of valid identifiers is DJ, I = DJ*B; If H < I, the PC generates the fifth-byte enable sequence {K1, K2, … K I / B} corresponding to the target data according to the corresponding mapping information, where K u is the u-th byte enable flag corresponding to the fifth-byte enable sequence of the target data, and the value range of u is from 1 to I / B. Read K u one by one from the low bit to the high bit. When K u is an invalid flag, the second shift register shifts the data from the ((u - 1)*B + 1)-th bit to the H-th bit of the data to be written to the high bit by B bits to generate the target data. If H = I, then the data to be written of U x i is the target data and so on.