Swap method and Electronic System thereof
A swap method, for an electronic system, includes generating an accessing signal by a calculating module of the electronic system; generating a swap signal for instructing a swap mode of the accessing signal by the calculating module; accessing data from a storage module of the electronic system according to the accessing signal by an accessing module of the electronic system; and swapping the data according to the swap signal by a swap module.
1 . A swap method, for an electronic system, comprising:
generating an accessing signal by a calculating module of the electronic system;
generating a swap signal for instructing a swap mode of the accessing signal by the calculating module;
accessing data from a storage module of the electronic system according to the accessing signal by an accessing module of the electronic system; and
swapping the data between different data ordering sequences according to the swap signal by a swap module, wherein the swap mode is switched while accessing data of different data ordering sequences;
wherein a corresponding swap signal is adaptively generated by the calculating module according to various system operation requirements, and the swap mode is adaptively changed according to the corresponding swap signal.
2 . The swap method of claim 1 , wherein the swap signal comprises at least one undefined bit of an address signal of the accessing signal.
3 . The swap method of claim 1 , wherein the step of swapping the data according to the swap signal by the swap module comprises:
swapping the data according to the swap signal by the swap module while the data is transmitted between the access module and the storage module.
4 . The swap method of claim 1 , wherein the step of swapping the data according to the swap signal by the swap module comprises:
swapping the data according to the swap signal by the swap module while the data is transmitted between the access module and the calculating module.
5 . The swap method of claim 1 , wherein the different data ordering sequences are network data ordering sequences.
6 . An electronic system, comprising:
a storing module;
a calculating module, for generating an accessing signal and a swap signal instructing a swap mode of the accessing signal;
an accessing module, coupled to the calculating module for accessing data from the storing module according to the accessing signal; and
a swap module, for swapping the data between different data ordering sequences according to the swap signal, wherein the swap mode is switched while accessing data of different data ordering sequences;
wherein the calculating module is hardware, a corresponding swap signal is adaptively generated by the calculating module according to various system operation requirements, and the swap mode is adaptively changed according to the corresponding swap signal.
7 . The electronic system of claim 6 , wherein the swap signal comprises at least one undefined bit of an address signal of the accessing signal.
8 . The electronic system of claim 6 , wherein the swap module is coupled between the accessing module and the storing module.
9 . The electronic system of claim 6 , wherein the swap module is coupled between the accessing module and the calculating module.
10 . The electronic system of claim 6 , wherein the different data ordering sequences are network data ordering sequences.