How to calculate the address remapping for a particular case of ddr3 to hps
Hi,
I want to work on some specific addressing shceme as mentioned in https://www.repo.uni-hannover.de/bitstream/handle/123456789/9978/Dissertation_Meinl.pdf?sequence=3&isAllowed=y#page=85 (Figure 3.14)
To do that first I need to know the address remapping scheme from DDR3 to HPS and vice versa.
Right now i am working with ARRIA 10 SOC where as HPS is connected to emif as follows mentioned in our problem statement attachment below.
In online I found this link to know address mapping.
My question is as follows:
1. But how can i find or calculate for my memory that i used and for the configuration of command address that i used.
2. I found some source code in Verilog in a NIOS project about this address conversion in DummyAddressRemappingDDR3.v , according to that when i calculate for my arria 10 with hps connected to it, i get
chip-row-bank-col
ch[0] = cmd[27];
row[15:0] = cmd[26:11];
bank[2:0] = cmd[10:8];
col[9:0] cmd[7:0] & "00";
But, here what happens to the cmd_address from [31:28], I suspect the above calculation i got is correct or not, can anyone clarify please.