Advanced Micro Devices Inc. said late Thursday it plans to buy about $1.6 billion in silicon wafers from GlobalFoundries Inc. over the next few years.