reference:
如果你有内存测试和内存地址Decode这方面的需求,可以私信我,我们一起进步!
Here is an example of how 32-bit physical addresses might be mapped*:
Bits 12-0 identify the byte within the 8KB page.
Bits 16-13 identify which of the 16 memory channels the system should use for this address.
Bits 20-17 identify which of the 16 banks the address will be found in.
Bits 32-21 identify which row within the bank is accessed.
So if you have two physical addresses, you should be able to compare bits 17-20 to determine whether or not they are in the same bank.