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 --- exactly what i want ,but how i can get the addresses ordered in a single output and the corresponding codes that ordered in another output how i can make it in separate way?? --- Quote End --- In my example you will get two outputs(addr and data): addr data 13 => 40 201 => 20 300 => 30 1012 => 50 addr will be your read address excluding any address that reads zero data. So you need some logic to select out relevant addresses. data will be any data read as nonzero.