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 ago --- Quote Start --- But not what is happening inside the process. --- Quote End --- The idea is 'recursive programing'. This topic is usually covered in computer programming classes. Most of the time the teacher / professor will then continue to explain that you have to 'unroll' it using a for-loop construct to avoid stack-overflow and to minimize running-time, but in VHDL the compiler makes the nicest logic from it. Just take a look at the schematic in the RTL Viewer, then double up the number of entries, re-compile and look again at the RTL Viewer. You will appreciate what the 'recursive' action does.