Altera_Forum
Honored Contributor
11 years agoArchitecture generation question
Hi,
I have some questions about such an architecture: https://www.alteraforum.com/forum/attachment.php?attachmentid=9219 As you see, I have two paths in my pipeline, but they are not conditional. Both have to be executed at all times. If I write each path one after the other, like the following, is the compiler intelligent enough to detect there are no memory dependencies and make the arrangement shown previously?
out = in*2;
out = in+4;
Or does it generate something like the following in my pipeline, where the y axis represents the pipeline stages? https://www.alteraforum.com/forum/attachment.php?attachmentid=9220 Or... performance wise, do I have to actually care? Here the problem is simple enough, but in my real kernel, each branch is very big, with inner loops and lots of stuff. Regards, Smith