Endianess Question
Posted: Fri Jan 04, 2013 7:47 am
Hey all, I'm sorry but I have a big-endian question or concern that I can't seem to wrap my head around. (MOD 5272)
I have this CPLD that I originally designed as an 8-bit accessible device, and endianess wasn't such a big deal, because I could talk to the thing a byte at a time anyway, so it was fine. I'm transferring 32-bit values, but like I say, it was a byte at a time so ordering it was easy enough.
Now I'm changing it to a sixteen(16) bit device and I'm feeling really uncertain about what is going to happen. What I mean is, what will be on which data line?
Say I'm transferring a 32-bit value into the 16- bit device.
Address 0 still has the MSB, but will it still be in D(31-24)? Will D(23-16) have the same data as D(31-24) at Address 1 when in 8 bit mode?
I'm not sure this question even makes sense, or if I'm over-thinking it. But thanks. Dan B.
I have this CPLD that I originally designed as an 8-bit accessible device, and endianess wasn't such a big deal, because I could talk to the thing a byte at a time anyway, so it was fine. I'm transferring 32-bit values, but like I say, it was a byte at a time so ordering it was easy enough.
Now I'm changing it to a sixteen(16) bit device and I'm feeling really uncertain about what is going to happen. What I mean is, what will be on which data line?
Say I'm transferring a 32-bit value into the 16- bit device.
Address 0 still has the MSB, but will it still be in D(31-24)? Will D(23-16) have the same data as D(31-24) at Address 1 when in 8 bit mode?
I'm not sure this question even makes sense, or if I'm over-thinking it. But thanks. Dan B.