dpaul81
Newbie level 6
Hi all,
I need to convert data from big-endian to small-endian and vice-versa.
So that would essentially be the MSB bit taking the position of LSB bit and the LSB bit goes to the MSB position. The bit in position MSB-1 would take the position LSB+1 and the bit in LSB+1 would take the MSB-1 position. This goes on for the other bits!
The data size that needs to be converted can be 8/16/32 bits, they will be residing in corresponding size registers before conversion.
The most important requirement is to use the least number of clock cycles (if 1 clock cycle is used, then that would be the best solution).
So please suggest me the best possible logic requiring LEAST number of clock cycles. I need to implement this in Verilog....but this is later! Must have the logic first!
Thanks in advance,
dpaul
I need to convert data from big-endian to small-endian and vice-versa.
So that would essentially be the MSB bit taking the position of LSB bit and the LSB bit goes to the MSB position. The bit in position MSB-1 would take the position LSB+1 and the bit in LSB+1 would take the MSB-1 position. This goes on for the other bits!
The data size that needs to be converted can be 8/16/32 bits, they will be residing in corresponding size registers before conversion.
The most important requirement is to use the least number of clock cycles (if 1 clock cycle is used, then that would be the best solution).
So please suggest me the best possible logic requiring LEAST number of clock cycles. I need to implement this in Verilog....but this is later! Must have the logic first!
Thanks in advance,
dpaul