Improved SDRAM test with CRC checking, corrected bug in data block CRC generating function