Taiwan Semiconductor Manufacturing Company Ltd, the world’s largest contract chipmaker, said on Saturday a number of its tools had been infected by a virus and the problem had been contained.