A semiconductor device has a least one logic circuit and at least one
memory macro cell having a plurality of memory cell array blocks each
composed of a plurality of memory cells. Addresses for designating the
memory cell array blocks in test are selected among external addresses by
a switching signal. The semiconductor device may have a plurality of
memory macro calls having a plurality of memory cell array blocks each
composed of a plurality of memory cells. The memory macro cells are
switched in configuration as having the same length of rows or columns
between the memory macro cells in test. The configuration is different
from a configuration of row and column for a regular operation.