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 --- ok ,kaz i want to sort duration ascending such as 8,9,16,32,48 and the code will e 20,40,10,40,50 how i can do it ?? plz help me if you can i will be very thankful to you thanks --- Quote End --- you already done that. you write the values 20~50 at addresses 8,9,16,32,50 once done then you run address cycle from 0 downto 1023 and get output ram contents which are write flagged then you will get them coming out sorted since for example location order will be ascending as 8,9,16,32,48