In this system, however, there is a limit to the number of terminals on the semiconductor chip as a whole (that is, the number of external pins); hence, the number of terminals that can be used exclusively for testing is limited and it is difficult to accurately set the write pulse width.