A.M.D. Agrees to Buy Xilinx for $35 Billion in Stock

The deal would broaden A.M.D.’s business into chips for markets like 5G communications and automotive electronics.