> Create two shift registers;
> 1) one will hold an index of where to start your search
> 2) the other should be an array to hold your indexes.
> 
> Init your search index to zero outside the loop and wire the left SR
> to the search 1-d array.
> 

A slight change you might consider is to use an accumulating tunnel 
instead of a shift register for the indices.  You will loop the same 
number of times as the indices, but your last element will be a -1. Make 
sure the tunnel has auto-indexing on, and subset or resize the array 
after the loop to get rid of the -1 on the end.

These will work pretty much the same, but with a few less nodes and 
wires I think.

Greg McKaskle.


Reply via email to