public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Jerry Van Baren <gerald.vanbaren@smiths-aerospace.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] Some RFCs about U-Boot's the generic FPGA support
Date: Wed, 22 Aug 2007 13:33:47 -0400	[thread overview]
Message-ID: <46CC737B.20604@smiths-aerospace.com> (raw)
In-Reply-To: <OF607A1731.31DEF31D-ON8825733F.005D11BC-8825733F.005E2ECF@selinc.com>

Bruce_Leonard at selinc.com wrote:
> Hi Laurent,
> 
> Laurent Pinchart <laurentp@cse-semaphore.com> wrote on 08/22/2007 12:28:36 
> AM:
> 
>> Hi Bruce,
>>
>> ordering. UG322 sheds some light on the issue. D0-D7 are indeed MSB-LSB, 
> 
>> making the SelectMAP interface use the big-endian PPC bit ordering 
>> convention.
> 
> I'm with Matthaias, I've learned to refer to them as MSB/LSB on the list 
> :).  Avoids confusion.

In my experience, numbering the MSB as 0 is an IBM phenomenon.  Where it 
isn't a direct IBM artifact, if you dig you will likely find IBM's 
influence (e.g. Mil-Std-1750 was heavily influenced by IBM, PowerPC is 
an IBM architecture, I don't know about Jovial and Ada but suspect IBM 
Federal Systems had their say in them).

I've read an explanation that makes sense to me, although it be a urban 
legend.  The first computers (many made by IBM) were used to compute 
artillery trajectories and used fixed point math.  Numbers were therefore:
   2^ 0 = 1
   2^-1 = 0.5
   2^-2 = 0.75
   ...
so numbering the MSB...LSB as 0,1,2...31 (dropping the "-" sign) made 
sense to the mathematicians who were writing the trajectory solving 
programs.

>> to D7-D0 on 
>> the FPGA. I'll go scold our hardware engineer :-)
> 
> Don't scold him to hard.  It's an easy mistake to make especially if 
> you're used to everything being little endian.  (I can say this because I 
> am a HW engineer and I've made this mistake!)

Sometimes is is a Good Thing[tm], and sometimes you are screwed 
regardless.  :-/  Each case needs to be thought through carefully.  The 
whole issue is very confusing and it is awfully easy to chose wrong. 
Then it is always "sorry, but the software will have to fix it."  :-/

[snip]

gvb

  reply	other threads:[~2007-08-22 17:33 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-20 13:13 [U-Boot-Users] Some RFCs about U-Boot's the generic FPGA support Matthias Fuchs
2007-08-20 13:47 ` Laurent Pinchart
2007-08-20 15:46   ` Matthias Fuchs
2007-08-21  8:59     ` Laurent Pinchart
2007-08-21 10:46       ` Matthias Fuchs
2007-08-21 11:33         ` Laurent Pinchart
2007-08-21 12:53           ` Matthias Fuchs
2007-08-21 20:09       ` Bruce_Leonard at selinc.com
2007-08-22  7:28         ` Laurent Pinchart
2007-08-22  7:59           ` Matthias Fuchs
2007-08-22  8:23             ` Laurent Pinchart
2007-08-22 17:12             ` Bruce_Leonard at selinc.com
2007-08-22 17:09           ` Bruce_Leonard at selinc.com
2007-08-22 17:33             ` Jerry Van Baren [this message]
2007-08-22 18:03               ` [U-Boot-Users] Loading vxWorks by u-boot Leonid
2007-08-22 19:40                 ` Chris Fester
2007-08-22 20:12                   ` Leonid
2007-08-22 20:42                     ` Chris Fester
2007-08-22 21:18                       ` Leonid
2007-08-22 20:12                 ` Frank
2007-08-23  6:27                 ` [U-Boot-Users] Antw: " Niklaus Giger
2007-10-09 20:04               ` [U-Boot-Users] Some RFCs about U-Boot's the generic FPGA support Bruce_Leonard at selinc.com
2007-08-23  7:41             ` Matthias Fuchs
2007-08-23 18:59               ` Bruce_Leonard at selinc.com
2007-08-20 13:52 ` Wolfgang Denk
2007-08-20 18:46 ` Bruce_Leonard at selinc.com
2007-08-21  8:30   ` Matthias Fuchs
2007-08-21 19:37     ` Bruce_Leonard at selinc.com

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=46CC737B.20604@smiths-aerospace.com \
    --to=gerald.vanbaren@smiths-aerospace.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox