A test signal applied to an embedded memory is changed in synchronization with
a test clock signal, set to an invalidated state by an asynchronous control signal
asynchronous to the test clock signal and then is applied to a memory. The memory
takes in a received signal in synchronization with a memory clock signal. An invalid
data generating circuit modifies the test signal in accordance with the asynchronous
control signal and generates a test signal and to apply the test signal to the
memory. A period of an invalid state of the modified test signal can be adjusted
and therefore, by monitoring a changing timing of the asynchronous control signal
PTX with an external tester, setup and hold times of a signal for the memory can
be measured. Setup and hold times and an access time for an embedded memory can
be correctly measured.