To make a mutual interference test between memory blocks easy.
In a delay operation mode, a selection signal in accordance with a register value of a MRS register 130 is outputted, selectors 121, 123 select an external control signal, and output it to a bank 0(111) to be tested. On the other hand, selectors 122, 124 select a delay control signal being an output of a delay circuit 140, and output it to a bank (112) not to be tested. In the case of an automatic test mode, a selection signal in accordance with the MRS register 130 is outputted, the selectors 121, 123 select an external control signal, and output it to the bank 0(111). In an incorporated test circuit 150, an internal control signal in accordance with an operation pattern previously set is generated, the selector 124 selects an internal control signal outputted from the incorporated test circuit 150, and outputs it to a bank 1(112).