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 agokaz,be patient to make me understand the code
you consider in the code that addresses(duration) is a continuous values ,ok if there is not a value in the successive address it put a zero in content of ram (corresponding to this empty address) its wright or not?? but the reverse happens i.e i have a discrete values. and i have a question to you if i want to separate the codes and the addresses that output ascending i.e the codes ordered in output and the corresponding in another output because i will use the codes that ordered to count the distances that we done before i hope you understand me well