Forum Discussion
Altera_Forum
Honored Contributor
16 years agoFft In Sopc
Guyz please help , if u have an idea. Uptil now i made a 64 point FFT using megacore and added it to the sopc as a new component but there are a lot of signals and so it gives me an error when ...
Altera_Forum
Honored Contributor
15 years agoSo, now im having another issue. It appears that when I read data from the output_Ram component, the bytes are swapped. For the 32-bits of data read, bytes 4 and 1 are swapped and bytes 3 and 2 are swapped.
To get around this issue, I just made a byte pointer (alt_8 or alt_u8) and casted the rx_ptr to to a byte pointer : (alt_8) *byte_ptr = (alt_8*) rx_ptr; And then printed the bytes in the correct order using printf. However, I am now concerned that the input bytes maybe having the same issue. Majd, I noticed the note about the ordering of the bytes for the input. Do you think that changing the I/O Ordering parameter for the FFT component could also remedy the byte arrangements? Has anyone tried this approach?