Forum Discussion
Altera_Forum
Honored Contributor
15 years agocompare multiple std_logic_vectors
Hi, I have several FIFO's and i need to read out, the one with the most data first. I use the byte counter of the fifo to compare. But what is the best way to compare those vectors? if A...
Altera_Forum
Honored Contributor
15 years agoIf you want exactly to compare n values (and not use an equivalent criterion for FIFO selection, as suggested by kaz), then a binary tree would be the most effective way to achieve it. I guess the FIFO depth and the number of FIFOs will be small numbers, both. So the effort is limited.