摘要 |
A stack memory includes an address input section, a memory element array, a stack pointer, and an address buffer. The address input section has "n" bits where "n" denotes a predetermined number. The memory element array has 2n words and is connected to the address input section. The stack pointer generates a first address signal having "n" bits, and an n-th bit of the first address signal is inverted by a control signal. The address buffer is connected between the stack pointer and the address input section. The address buffer generates a second address signal from the first address signal and outputs the second address signal to the address input section. The second address signal remains equal to the first address signal in bits except an n-th bit, and the n-th bit of the first address signal is inverted again by the control signal to be converted into the n-th bit of the second address signal.
|