factional sorter

Guest #3631904
Rate this post
• ▲ useful
▼ not useful
hi all
if i have two input first for codes std_logic_vector ( 0 to 7)
and the second for its time which is in integer type ,such as
00000001 ------> 125 ms
00010010 ------> 100 ms
01000100 ------> 200 ms
01111000 ------> 147 ms
and i want to sort them as the following
00010010 ------> 100 ms
00000001 ------> 125 ms
01111000 ------> 147 ms
01000100 ------> 200 ms
so, i want to sort the second input in ascending order and the 
corresponding firt input data to it
any idea plz
sorry for bad english.

Reply

Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.

Formatting
  • [c]C-Code[/c]
  • [vhdl]VHDL-Code[/vhdl]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.