rrucha
Member level 3
I wish to make a parameterized CRC generator that takes different widths of data in and gives 2 different types of CRC at the output. This depends on the parameter "crc_poly" which will decide whether the output CRC will be 32 bit or 64 bit.
My code will have all the different combinations of the CRC generators as a function.
Based on the select signal, I will pick which CRC to choose for my output. This is pretty straight forward.
I need help in understanding how I can have one parameterized module that can have two different output crc widths. I will attach a picture to explain better.
My question is, will i need two completely different CRC modules if the output width is not fixed? I know its possible to use the same module if only the polynomial differs but the widths stay the same. But in my case my output width is changing.
My code will have all the different combinations of the CRC generators as a function.
Based on the select signal, I will pick which CRC to choose for my output. This is pretty straight forward.
I need help in understanding how I can have one parameterized module that can have two different output crc widths. I will attach a picture to explain better.
My question is, will i need two completely different CRC modules if the output width is not fixed? I know its possible to use the same module if only the polynomial differs but the widths stay the same. But in my case my output width is changing.