I’m learning about bit-banding and am making good progress. However, I’m a bit confused why the bit banding alias words are spaced 4 apart for each bit of a word in the bit band region,
eg. Taking the first word in the SRAM bit band region 0x2000.0000 and it’s accompanying bit band alias words for each of its’ bits:
Bit-Band Region Aliased Equivalent
0x20000000 bit[0] 0x22000000 bit[0]
0x20000000 bit[1] 0x22000004 bit[0] (4 words ahead)
0x20000000 bit[2] 0x22000008 bit[0] (another 4 words ahead, etc, etc)
… …
0x20000000 bit[31] 0x2200007C bit[0]
Why does each word in the bit-band alias region need to be 4 apart. I’m mainly just curious.
Why couldn’t it be like this:
Bit-Band Region Aliased Equivalent
0x20000000 bit[0] 0x22000000 bit[0]
0x20000000 bit[1] 0x22000001 bit[0]
0x20000000 bit[2] 0x22000002 bit[0] (and so forth)
Is it just something in the design of the hardware and we really don’t need to care, or is there some logical reason that I can’t see.