[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Endian Mapping




Amit Shah,

>Does this type of approach work ?
>Does this really solve big endian to little endian mapping ?

Basically yes. Bit 31 is what the MSB is called in a little-endian
(bitwise) notation, bit 0 is what the MSB is called in a big-endian
notation. It is just the same. 

CBE 3:0 refer to byte arrangement. The above would be valid in his case
if he calls his internal MS-byte enable BE-0; how the command is multiplexed
with this would probably not be an issue. 

When it comes to actually reading and writing data through the
bus so configured, you may be pretty sure there will be
surprises with exchanged bytes; but no serious problem, since
the PPC has separate load/store instructions for little-endian
access (which implies he may have to do software fixes to the end
system).

I had some experience recently with a q-span bridge, which could
be programmed for big/little endian byte addressing, a b69030
display controller which had such features (even on a 16-bit
basis), and an 8240 PPC which could also reverse everything.
Quite a mess at the first glance, yet everything could be programmed
to work smoothly.

Dimiter

--------------------------------------------------------------------
Dimiter Popoff
Transgalactic Instruments, Gourko Str. 25 b, 1000 Sofia, Bulgaria
http://transgalactic.freeyellow.com
Email: tgi@cit.bg, tgi_earth@yahoo.com
NEW ---^^^^^^^^^^---------------vvvvvv
Phone: 00359/2/9923340, 00359/2/566752, Fax: 00359/2/9540384