A semiconductor memory device is provided which includes: a plurality of
memory cells each formed by latch means; gated clock circuits for writing
identical data to all of the memory cells in response to a simultaneous
writing signal supplied thereto; inverters for inverting data outputted
from the memory cells; and selectors for selectively writing the inverted
data to the memory cells.