Patent ID: 9747205
Date: 2017-08-29
CPC Classifications: G06F

Claim:
1. A method for processing data, comprising: assigning first and second address sets in relation to data to be stored in a memory of an electronic device, wherein a predetermined address offset is defined between the first and the second address sets; the first address set corresponds to a first data accessing mode, and the second address set corresponds to a second data accessing mode; writing the data to the first address set in the first data accessing mode in response to a data write command; and reading the data from the second address set in the second data accessing mode in response to the data read command, wherein the data is only read from the second address set; wherein the writing the data to the first address set in the first data accessing mode comprises: writing the data to a high bit address of an address to which a write pointer in first address set points if a bit width of the data corresponding to the data write command is less than or equal to a data bit width of a bus of the electronic device, and updating the write pointer; and writing the data from a low bit address of the address to which the write pointer in the first address set points if a bit width of the data corresponding to the data write command is greater than a data bit width of the bus of the electronic device, and updating the write pointer when the writing is performed at the high bit address of the address to which the write pointer points.