From: Matthias Fuchs <matthias.fuchs@esd-electronics.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] RFC: Some improvements for the FPGA subsystem
Date: Mon, 12 Nov 2007 10:45:28 +0100 [thread overview]
Message-ID: <200711121045.28656.matthias.fuchs@esd-electronics.com> (raw)
In-Reply-To: <473827BA.1750.2697C2@w.wegner.astro-kom.de>
Hi,
On Monday 12 November 2007 10:15, w.wegner at astro-kom.de wrote:
> I have one wish on my list:
... you haven't seen my wishlist :-)
>
> Would it be possible to have an optional "block write" function for the FPGA?
yes.
>
> While I appreciate the current approach of single bit functions for the FPGA
> to be very convenient for board bring-up, it is somewhat slow on the larger
> FPGAs (with something like 1.5 MByte bitstream size).
>
> An additional block write function that - if present - replaces the internal
> (generic) programming algorithm would give a clean way to use the existing
> FPGA infrastructure (commands, image handling, pre- and post-configuration)
> and switch to a fast load for production use.
>
> Only then, you could take advantage of buses like SPI for FPGA load, too.
I was in a similar situation some time before. Our PMC440 board (patches have
been posted yesterday) uses a Spartan3E FPGA that is programmed in slave serial
mode. I started with download time about 13 seconds (!!!). The main reason
is the extensive use of callbacks by the FPGA subsystem. Then updated the boot
code to use U-Boot's slave parallel implementation to boot the FPGA still in
slave serial mode. My write-data-byte function just shifts out the byte bit by bit.
This improved the download time to about 3 seconds. The last step was to
enable the cache for the 440 CPU. This speeds things up to an acceptable level.
But I agree, a block write function would be cleaner.
>
> (I hacked something like this in my local u-boot, and the speed-up for
> FPGA loading was significant, at least 3 times. And I still did not
> implement the SPI path because I did not have the time yet...)
If you already have something it might be a good idea to share your work
with us. I think this is independent from what my patch does at the moment.
Matthias
next prev parent reply other threads:[~2007-11-12 9:45 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-11 16:45 [U-Boot-Users] RFC: Some improvements for the FPGA subsystem Matthias Fuchs
2007-11-12 0:17 ` Grant Likely
2007-11-12 9:15 ` w.wegner at astro-kom.de
2007-11-12 9:45 ` Matthias Fuchs [this message]
2007-11-12 10:06 ` w.wegner at astro-kom.de
2007-11-12 13:24 ` Jerry Van Baren
2007-11-12 14:51 ` Matthias Fuchs
2007-11-12 15:00 ` Jerry Van Baren
2007-12-10 12:04 ` w.wegner at astro-kom.de
2007-12-11 17:00 ` Matthias Fuchs
2007-12-12 10:44 ` w.wegner at astro-kom.de
2007-12-13 9:23 ` Matthias Fuchs
2007-11-12 22:55 ` Bruce_Leonard at selinc.com
2007-11-12 23:09 ` Grant Likely
2007-11-13 8:34 ` Matthias Fuchs
2007-11-13 18:15 ` Bruce_Leonard at selinc.com
2007-11-14 7:56 ` Matthias Fuchs
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=200711121045.28656.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