Fix calculation of the number of plinks on xs1g devices.