Forum Discussion
Altera_Forum
Honored Contributor
21 years ago --- Quote Start --- originally posted by mike desimone@Jul 22 2004, 09:51 AM okay, let's get the "is it plugged in?" steuff out of the way... --- Quote End --- Yes, please do not be afraid to ask basic questions - I am new here, I make a lot of stupid mistakes all the time... <div class='quotetop'>QUOTE </div> --- Quote Start --- Is the Avalon Tristate bus slave connected to the instruction master on the Nios II CPU as well as the data master?[/b] --- Quote End --- Yes and... Yes. It was this way by default http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/smile.gif ...but honestly, I did not check this before - thank you. <div class='quotetop'>QUOTE </div> --- Quote Start --- Does the data master have priority over the instruction master? With the pipelining, it may be trying to fetch something before it gets written out.[/b] --- Quote End --- This I am not sure - how to check these priorities? As you can see, they probably are how they are set by default, did not changed them. <div class='quotetop'>QUOTE </div> --- Quote Start --- Also, in the Nios II Software Developer's Handbook, on page 7-5 there's a section "Writing Program Loaders or Self-Modifying Code." It might be useful, since what you describe also sounds like it's not seeing the instructions in question in the instruction cache, or they haven't flushed from the data cache to the external memory yet. The section on "Bit 31 cache memory bypass" may be useful, too.[/b] --- Quote End --- Should I be concerned with this issue if I use Nios II/e version, without cache memories? But this was good question - it could prove my C-code memory test was flawed if it worked from cache memory without flushing data to external SRAM... Since I am using NiosII/e I assume every memory cycle actually goes to the external memory without passing through cache systems, am I correct or not? Thanks for trying to help, I would appreciate any other ideas I can check, even the craziest ones http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/wink.gif