Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > VHDL > VHDL implementation of merge-sort

Reply
Thread Tools

VHDL implementation of merge-sort

 
 
vizziee@yahoo.com
Guest
Posts: n/a
 
      12-28-2004
Hi all,

Can anyone provide me inputs and tips on how the merge-sort (i.e.
merging two pre-sorted arrays) can be implemented in VHDL. I am looking
for a parallel implementation (or otherwise also) wherein I want the
merged-sorted array in the next clock cycle itself.

Thanx in advance.

 
Reply With Quote
 
 
 
 
Swapnajit Mittra
Guest
Posts: n/a
 
      01-03-2005
What you want is only the last step of a merge sort.
You still need to need to implement it in VHDL (or
whatever HDL you choose), but here is a pointer
that may help you.

http://www-unix.mcs.anl.gov/dbpp/text/node127.html

--
SystemVerilog DPI tutorial on Project VeriPage:
http://www.project-veripage.com/dpi_tutorial_1.php
For subscribing to Project VeriPage mailing list:
<URL: http://www.project-veripage.com/list/?p=subscribe&id=1>

 
Reply With Quote
 
 
 
 
vizziee@yahoo.com
Guest
Posts: n/a
 
      01-04-2005
Hi Swapnajit,

Thank you so much for the inputs.

You got it correctly i.e. I want only the last step of merge-sort. For
sorting I am using parallel VHDL implementation of Insertion Sort for
my application (I know it consumes lot of LEs on my FPGA, but I found
it quite suitable for my application).

In each clock cycle, I am required to sort two sequences (for which
insertion sort suits best). I get the sorted sequences in the next
clock cycle. I would like to merge these two sorted sequences now. And
I do have a latency of one more clock cycle. So I want a similar
implementation of merge-sort also, wherein single sorted sequence
should be obtained in the next clock cyle itself.

However I doubt if the hypercube implementation will help here. Ya, the
compare-exchange method seems to be of some use in this case.

vizziee.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Insertion Sort : C++ implementation 100 times slower than C implementation sanket C++ 7 11-03-2011 05:00 AM
Knowing the implementation, are all undefined behaviours become implementation-defined behaviours? Michael Tsang C Programming 54 03-30-2010 07:46 AM
Knowing the implementation, are all undefined behaviours become implementation-defined behaviours? Michael Tsang C++ 32 03-01-2010 09:15 PM
Implementation of Register File VHDL Model New User ^_^ VHDL 3 08-02-2009 09:54 PM
VHDL-2002 vs VHDL-93 vs VHDL-87? afd VHDL 1 03-23-2007 09:33 AM



Advertisments