Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12600 Discussions

Read access through Avalon-MM tristate bridge

Altera_Forum
Honored Contributor II
1,111 Views

Hi there, 

 

I was simulating an external memory access through Avalon-MM tristate bridge and the data width of my external memory is 16 bits. Everything worked fine except that, it always performs two read cycles for 8bit or 16bit reads, with all byte enables disabled in one of the read cycles. This practically reduced the bandwidth in half on the memory interface for read access. 

 

My question is, is this fixed in SOPC builder for the versions later than QII 9.1 SP2? 

 

Thanks, 

Hua
0 Kudos
3 Replies
Altera_Forum
Honored Contributor II
228 Views

I'm pretty sure this is a known issue. I don't expect it to be fixed and that users who want to avoid this should use Qsys instead.

0 Kudos
Altera_Forum
Honored Contributor II
228 Views

As BadOmen said, this is indeed a known issue which was discussed elsewhere in the forum. 

If you use the external memory only for 16bit data, you can define the tristate data port 32bit wide and discard the upper 16bits. This will ensure a single access for every read operation.
0 Kudos
Altera_Forum
Honored Contributor II
228 Views

As well as behaviour of the bus width adapter (which might do cycles with no asserted byte enables), the nios2 processor always asserts all 4 byte enables for its memory reads - regardless of the requested width.

0 Kudos
Reply