Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
528 Views

While writing from Multiple Avalon Master to an Avalon slave, Write from custom Avalon Master is not generating write signal in slave side.

Jump to solution

Hi All,

I'm using Cyclone V development kit, I have a design with two avalon masters (JTAG Master and custom master) connected to a custom Avalon slave interface through qsys.

The issue is when the custom avalon master tries to write in to avalon slave, we are not able to see the write signal in the slave side. However Avalon master is generating write signal as we could confirm that in siganl tap.

The slave module is a FIFO hence the wait request is hardcoded to '0'. Both the custom master and slave has 16 bit write data bus.

Strange thing we observe is, when we remove the JTAG master(i.e, Custom Avalon slave connected only to custom Avalon master) things are working fine.

Also when we try to write data using JTAG master things are working fine always.

Just reiterating it to make it clear, With two avalon masters connected to Avalon slave any write from custom Avalon master is not reflecting in the slave module.

Any help in this regard will be highly appreciated. Thanks in advance:)

0 Kudos

Accepted Solutions
Highlighted
Retired Employee
6 Views

Is your custom master properly acknowledging waitrequest? When waitrequest to the master is high, the master must continue asserting the control signals, like write, until the clock edge after waitrequest is deasserted by the interconnect. This may be why you're seeing the correct behavior when you hold the write. When you remove the other master, no arbitration is needed so a single pulse write is working, but you should still be coding waitrequest correctly.

View solution in original post

0 Kudos
5 Replies
Highlighted
Moderator
6 Views
Can you try to simulate your design in Modelsim? There are few type of fifo in the platform designer, which specific fifo that you were using? Can you attached your *.qsys file here?
0 Kudos
Highlighted
Beginner
6 Views

Hi,

 

We have few more observations, When we increase the pulse width of write signal to two clock period in the custom master then we are able to see the slave is getting a single clock write pulse.

One more observation is even the other master (JTAG Master) is creating a write signal for two clock pulse when we perform a single write operation, Is this what is expected in the custom master as well? Do we have any documentation to explain that?

Note:

The clock and reset of both master and slave is same.

Also when only custom master and slave are connected (No other master to slave) then even a single clock pulse of write from master is able to generate a single clock write pulse in slave.

 

Any help in this regard will be highly appreciated. Thanks in advance:)

 

KTan9,

Thanks for the reply,

Simulating things will be difficult as all these things are in qsys. We are using the FIFO IP of Altera with a wrapper around it.

 

 

0 Kudos
Highlighted
Moderator
6 Views

Can you show us the screenshot of the signal tap result?

0 Kudos
Highlighted
Retired Employee
7 Views

Is your custom master properly acknowledging waitrequest? When waitrequest to the master is high, the master must continue asserting the control signals, like write, until the clock edge after waitrequest is deasserted by the interconnect. This may be why you're seeing the correct behavior when you hold the write. When you remove the other master, no arbitration is needed so a single pulse write is working, but you should still be coding waitrequest correctly.

View solution in original post

0 Kudos
Highlighted
Beginner
6 Views

Thanks a lot for the inputs. The issue is exactly because the master is not acknowledging the waitrequest. We didn't acknowledge waitrequest earlier because we assumed the waitrequest master sees will be the thing which slave sends, And the custom slave's(FIFO) waitrequest signal is hardcoded to zero. The above statement seems to be true only if there is a single master connected to slave. But with multiple masters, interconnect generates it's own waitrequest(Being high) even though at no point of time more than one master are trying to access slave simultaneously.

0 Kudos