主权项 |
1. An address generating circuit comprising:
a register configured to store a partition address indicating a boundary between an interleaved area and a non-interleaved area in a non-volatile storage unit, the non-volatile storage unit having a first bank and a second bank, the interleaved area being provided across the first bank and the second bank, the non-interleaved area being provided across the first bank and the second bank, a value of the partition address being rewritable by a CPU; a comparator configured to compare-a designated address designated by the CPU and the partition address to output either a first comparison result or a second comparison result, the first comparison result indicating that the designated address designates the interleaved area, the second comparison result indicating that the designated address designates the non-interleaved area; a bank selection signal generating unit configured to generate-a bank selection signal based on a least significant bit of the designated address to cause the non-volatile storage unit to alternately store data of consecutive addresses in the first bank and the second bank in units of words in the interleaved area, when the comparator outputs the first comparison result, and which generates the bank selection signal based on a high-order bit other than the least significant bit of the designated address to cause the non-volatile storage unit to consecutively store the data in the first bank or the second bank in the non-interleaved area up to a unit of a sector larger than a unit of the word, when the comparator outputs the second comparison result, and which supplies the non-volatile storage unit with the generated bank selection signal; and a physical address generating unit configured to generate a physical address acquired by excluding the least significant bit from the designated address, when the comparator outputs the first comparison result, and which generates the physical address acquired by excluding the high-order bit from the designated address, when the comparator outputs the second comparison result, and which supplies the non-volatile storage unit with the generated physical address. |