Forum Discussion
Altera_Forum
Honored Contributor
12 years agoTo see an example of "function use on steriods" take a look at the code associated with this tutorial
http://www.ovro.caltech.edu/~dwh/correlator/pdf/lfsr_tutorial.pdf http://www.ovro.caltech.edu/~dwh/correlator/pdf/lfsr_tutorial_src.zip and look at lfsr_tutorial_src\prbs\src\prbs.vhd The code uses functions to statically initialize what is effectively a matrix operation. The "static" initialization means that the code changes based on generics, but does not change once those generics have defined values. Cheers, Dave