Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
14 years ago

Avalon-MM Master Read/Write Template

Hi,

I'm using Altera's Avalon-MM Master Read/Write template.

The problem is, that the adress will not increment automatically.

For testing I wrote known data in the memory and verified them with NIOS2.

Reading the data with the template, manually incrementing the adress works fine, but I think this will be slower as I cannot use reasonably the fifo.

Configuration:

32bit adressbus

32bit databus

control_fixed_location=0

control_read_base=x"0c000000"

control_read_length=x"00000004";

for starting reading, I set control_go for one clock_cycle high.

for reading data, I clock the user_read_buffer input.

attached: signal-tap signals (corr_reader_clock=user_read_buffer)

Any ideas?

Best Regards

Mark

1 Reply

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    The address isn't incrementing because you are telling the master to move 4 bytes of data (one transfer and it's done). Typically you tell the master to move multiple words of data in sequential memory locations.