I did the polynomial in your comment, but it did not work (seemed to loop infinitely). This way seems to assume the lsb left and the msb right, so that we shift everything onto the msb's positon and xor it. I want the polynomial in my comment, which seems to be the one pointed out. I have used uint32_t for all my data types and lfsr is set to start_state when the function is called. I want to implement a Linear-feedback shift register for the following polynomial x^24 + x^23 + x^22 + x^20 + x^19 + x^18 + x^17 + x^16 + x^15 + x^13 + x^12 + x^8 + x^7 + x^6 + 1, relying on what can be found here with the associated C code:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |