The referendum is the centerpiece of the 2005 peace deal that ended Sudan 's north-south civil war .