Royal Philips Electronics announced Thursday it has agreed to sell an 80.1 percent stake in its semiconductor unit to a private equity consortium for 6.4 billion euros, or about $8.2 billion.