public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Matthias Fuchs <matthias.fuchs@esd-electronics.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] Some RFCs about U-Boot's the generic FPGA support
Date: Tue, 21 Aug 2007 12:46:23 +0200	[thread overview]
Message-ID: <200708211246.23489.matthias.fuchs@esd-electronics.com> (raw)
In-Reply-To: <200708211059.44690.laurentp@cse-semaphore.com>

Laurent,

now things are getting clearer.
All this sounds to me that the shift direction in 
slave serial mode is not compatible to the parallel download
code. When we say that fpga_load (and the fpga load command) should only
work for promgen files with mirrored bits and fpga_loadbitstream() 
(and the fpga loadb command) should be used for .bit files, I
would like to get rid of the mirroring at least for slave serial mode
because changing the shift order is much more efficient.

Bruce suggested a CONFIG option to turn on/off mirroring. This is
not the right way. It should be handled by the FPGA subsystem.
What about passing a bitorder flag down to the load functions?
So we get rid of the huge malloc in loadbitstream and we can 
just swap bits in parallel mode just before writing it to the 
FPGA port. For Slave serial mode the _load funtion can use
the correct shift direction and so swapping is needed.

Matthias

On Tuesday 21 August 2007 10:59, Laurent Pinchart wrote:
> > So what option are you using for and which bitsteam format/file are you
> > using?
> 
> I'm calling fpga_load directly from board-specific code, using PROMgen 
> generated data (with bit mirroring applied).
> 
> Bit mirroring might not be needed in slave serial mode, but is needed in slave 
> parallel mode. Bytes in the .bit file are stored with the LSB on the left 
> side. The bytes must then be reversed before being written in slave parallel 
> mode, as the FPGA expects the LSB on D0, not on D7.
> 
> In slave serial mode, you can choose the shift direction, so mirroring is not 
> required.
> 
> > I still vote for removing the bit mirror :-)
> 
> Without mirroring, bitstreams won't load in slave parallel mode. You should 
> keep mirroring, and change the slave serial code to shift bits the other way 
> around.
> 
> > Are you using .bit Images, PROM files and which fpga command option
> > do you use? load or loadb?
> 
> I don't use the fpga commands, but call fpga_load() directly from board 
> specific code. This is roughly equivalent to "fpga load". The data come from 
> a bit-mirrored PROM file. I used to use a .bit file, which required "fpga 
> loadb" to be loaded correctly.
> 

  reply	other threads:[~2007-08-21 10:46 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 [this message]
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
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=200708211246.23489.matthias.fuchs@esd-electronics.com \
    --to=matthias.fuchs@esd-electronics.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