In a stacked semiconductor device which has a plurality of semiconductor chips of desired sizes stacked as one package, a first semiconductor chip is mounted on a flexible printed wiring board provided with external connecting terminals. A side surface of the lower element isolation layer protrudes closer to the transistor than a side surface of the upper element isolation layer. The storage cells are configurable for a read access from one of a plurality of access data paths.