Forum Discussion
Altera_Forum
Honored Contributor
12 years agosorter in vhdl
hi every one i want avhdl code to sort integer input ascending if i have an array such as 1,8,9,7,2 the out put will be such as 1,2,7,8,9 i search a lot but didn't find any code that he...
Altera_Forum
Honored Contributor
12 years ago --- Quote Start --- Two points: - I can't identify a valid bubblesort algorithm which would imply exchanging RAM entries. - The real challenge is to implement the sort algorithm in FPGA block RAM, being aware of the requirements for RAM inference. --- Quote End --- we are not exchanging ram entries but want to sort som data in ascending order to output. If the post wants to rearrange in second ram then this could be done. by reading ram1 into a second ram.