A semiconductor memory device with a plurality of primary memory cells and a plurality of spare memory cells, the semiconductor memory device comprising:
- decoder means for interconnecting the primary memory cell and the spare memory cell through a shared decode line which is driven through a shared word line drive signal generating circuit;
- and
- memory replacement means coupled to said decoder means for storing in advance an address of a defective memory cell of the plurality of primary memory cells and makes, when an address signal corresponding to a memory cell to be accessed agrees with the address of the defective memory cell, the decoder means operates to select the spare memory cell to replace the defective primary memory cell.