Hi there group,
I'm implementing a user defined Master interface to the Avalon Bus using Altera's Stratix FPGA and read through the documentation on the Avalon Bus requirements and the SDRAM controller as a slave, and I'm still not quite getting how the SDRAM controller interprets an address supplied by a Master peripheral? The SDRAM has a total of 22 bits (12 bits row, 8 bits column, & 2 bits bank). I am provisioning the address width on my master to be 32 bits wide of which the top 10 bits are stuffed with 0's and the remaining bits are column-row-bank respectively. Is this a correct understanding on how to provide the address to the slave peripheral sdram controller? If not, I'm definitely missing something here.
Also I suspect this provided address is also de-correlated from the address assigned in the SOPC builder configuration wizard? That if i have a Master peripheral talking to multiple slaves at different clock cycles within my state machine, how do I specify which slave peripheral I am targetting and guarantee that I'm talking to the right one?
Help would be appreciated Pino