Altera_Forum
Honored Contributor
19 years agoTightly coupled memory and C2H
I have a NIOS application for which using tightly coupled, on-chip memory appears to be offering a nice performance boost. I have a large array of values that I like to reference periodically and rather than chewing up cache space or thrashing the cache every time I want to use the array, I just put it in a unique, tightly-couple, on-chip RAM and it's working super.
Recently I've also started looking at C2H as a way to speed up parts of the code and again, seeing some nice impact in some focussed, repetitive looping situations. However, I seem to have hit a snag when I try to combine the two together. If I create a C2H routine that refers to the tightly coupled memory, the program just hangs. I can use the "software implimentation" of the C2H routine and it runs fine. Likewise I have other C2H routines that access traditional off-chip program memory and they run fine. It's just the C2H accessing the tightly-coupled, on-chip that seems to be an issue. Has anyone tried this yet? Any suggestions? Many thanks