Synthesis in ISE Project Navigator says that: "HDLCompilers:191 - "scaler.v" line 626 Indices in part-select of vector reg 'readSelect' are reversed".
Originally 624 line....
What value have you set BUFFER_SIZE to? It must be 3 or greater. Setting it to 2 or lower may cause the error you're seeing.