A Japanese tech giant is buying a Santa Clara AI chip designer for $6.5 billion, the company announced on Wednesday.