fix endian swap on Spartan 6, presumably 7 series