Forum Discussion
Altera_Forum
Honored Contributor
10 years agoMemory type for variables
I am modifying the sobel example to find out how to describe the behaviour I want of the system/program. The sobel example has a shift register that holds some of the pixels to be processed. When I c...
Altera_Forum
Honored Contributor
10 years agoI found a configuration in which the only difference is the local keyword before the rows variable. This uses a little more resources, but the difference in performance (time) is more significant. It is significantly slower, 980us where the non-local runs in 700 us. I think this means the addition of local prevents the compiler from inferring a shift register. If that is the case I assume the first piece of code infers registers and thus is private. Am I correct?