Patent ID: 7818476
Filing Date: 2010-10-19
Classification: G06F

Abstract:
1. A method of dynamic data transfer width adjustment, comprising: setting a data size of a transfer data, wherein the transfer data includes a plurality of continuous data segments, and there is a non-transfer data between the continuous data segments; setting a register r_addr for a data address of the transfer data; setting a spacing between start addresses of adjacent continuous data segments of the continuous data segments; setting a register r_count for a continuous data size of one of the continuous data segments; determining a data transfer width mode of the transfer data according to the data address of the transfer data, wherein the data transfer width mode comprises a first transfer mode and a second transfer mode; transferring the transfer data according to the data address, the data transfer width mode, and the data size of the transfer data; detecting whether transfer of a continuous data segment of the plurality of continuous data segments is completed; when the continuous data segment has not been transferred, the contents of the register r_addr is added with a width of a preceding transferred data; when the continuous data segment has not been transferred, the width of the preceding transferred data is subtracted from the contents of the register r_count and the data size of the transfer data, respectively; when the continuous data segment has been transferred, a start data address of the transfer data is added with the spacing between the start addresses of the adjacent continuous data segments, so as to transfer the next continuous data segment; when the continuous data segment has been transferred, the start data address of the transfer data is written into the register r_addr, and the register r_count is reset; and when the continuous data segment has been transferred, the width of the preceding transferred data is subtracted from the data size of the transfer data.