Forum Discussion
Altera_Forum
Honored Contributor
14 years agoHow to use multiple megafunctions
Hi, I want to create a program where it reads in some values, divide the values by a certain coefficient, multiple them by another coefficient and then finally output them. I read in the v...
Altera_Forum
Honored Contributor
14 years agoI had the megafunctions in the program in the following order.
Flip-flops before divide. Flip-flops after divide. Divide. Multiply. I put them like this because i thought it appeared neat and tidy in which they were grouped together. I've just changed it to the following.... Flip-flops before divide. Divide. Flip-flops after divide. Multiply. And now it bloody works! So has Quartus just decided to play nice or does the order in which the megafunctions are used in the program actually matter? I assumed that because they operate in parallel that it wouldn't matter.