Forum Discussion
Altera_Forum
Honored Contributor
17 years agoI want knowing POF file format structures.
hello, everyone. I want knowing POF file format structures. I can open a .pof file and program this to the EPCS16 device if i know the length of the header so i can remove it first. T...
Altera_Forum
Honored Contributor
11 years agoFWIW the crc is CRC-CCITT as used by hdlc.
This means the the calculation can be reduced to: crc = 0xffff;
while (p < lim) {
crc ^= *p++;
t = (crc ^ crc << 4) & 0xff;
crc = crc >> 8 ^ t << 8 ^ t << 3 ^ t >> 4;
crc ^= 0xffff;