Chipmaker Nvidia Corp said on Monday it will buy Israeli chip designer Mellanox Technologies Ltd for $6.8 billion in cash.