added fix for new Virtex-6 FPGAs with 1 GB RAM (only 512 MB RAM is used)