Japanese semiconductor company Renesas is in talks to buy chipmaker Maxim in what could be a $20 billion deal, according to people familiar with the matter.