Hi,
You can use an odd-even transposition sort. This is
a parallel version of the bubble sort that works well
in hardware. I have a version of it written in Verilog
on my site,
http://www.engr.sjsu.edu/crabill in Lecture
Module 6. You can adapt it to your application and then
remove the pipeline registers if you want to trade
frequency of operation for lower latency.
Eric
glen herrmannsfeldt wrote:
>
> If it really works that way there is just about only one way
> to do it, because you must do everything in one clock cycle.
>
> You need to compare the number coming in against all the others
> in the list, except the one going out, and arrange the new data
> ready to clock in on the next cycle.