public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* FPGA NAND Interface tips
@ 2006-02-24  5:07 Russ Dill
  2006-02-24  6:26 ` Russ Dill
  2006-02-24 11:24 ` Ben Dooks
  0 siblings, 2 replies; 4+ messages in thread
From: Russ Dill @ 2006-02-24  5:07 UTC (permalink / raw)
  To: linux-mtd

I'm providing some input on the NAND wire up, and FPGA design on a new
board (80200 + FPGA).  I'm currently using rtc_from4.c and s3c2410.c
as examples.

So I'm thinking the following for a basic setup:

reed solomon encoder
Bit in the FPGA to reset the reed solomon encoder
place in the FPGA to read out rs codes from last written/read block
CLE/ALE as address lines
Read/Busy connected as gpio/interrupt (multiple chips connect to multiple lines)

Also, when writing/reading to a single address, the 80200 will not
burst, and round trip time is horrid, especially when talking to IO
devices. Would a FIFO with a 32 byte interface be a good solution to
this? maybe with 16 entries (512 bytes)? I realize that DMA would be
more ideal, but a fifo seems like it might be simplier.

Does anyone have any paticular pet peeves when dealing with their NAND
interface?

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: FPGA NAND Interface tips
  2006-02-24  5:07 FPGA NAND Interface tips Russ Dill
@ 2006-02-24  6:26 ` Russ Dill
  2006-02-24 11:24 ` Ben Dooks
  1 sibling, 0 replies; 4+ messages in thread
From: Russ Dill @ 2006-02-24  6:26 UTC (permalink / raw)
  To: linux-mtd

> Also, when writing/reading to a single address, the 80200 will not
> burst, and round trip time is horrid, especially when talking to IO
> devices. Would a FIFO with a 32 byte interface be a good solution to
> this? maybe with 16 entries (512 bytes)? I realize that DMA would be
> more ideal, but a fifo seems like it might be simplier.

quick rethink on that portion, the input to the fifo would be 8 bytes
(80200 has a 64 bit data interface)

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: FPGA NAND Interface tips
  2006-02-24  5:07 FPGA NAND Interface tips Russ Dill
  2006-02-24  6:26 ` Russ Dill
@ 2006-02-24 11:24 ` Ben Dooks
  2006-02-24 18:01   ` Russ Dill
  1 sibling, 1 reply; 4+ messages in thread
From: Ben Dooks @ 2006-02-24 11:24 UTC (permalink / raw)
  To: Russ Dill; +Cc: linux-mtd

On Thu, Feb 23, 2006 at 10:07:36PM -0700, Russ Dill wrote:
> I'm providing some input on the NAND wire up, and FPGA design on a new
> board (80200 + FPGA).  I'm currently using rtc_from4.c and s3c2410.c
> as examples.
> 
> So I'm thinking the following for a basic setup:
> 
> reed solomon encoder
> Bit in the FPGA to reset the reed solomon encoder
> place in the FPGA to read out rs codes from last written/read block
> CLE/ALE as address lines
> Read/Busy connected as gpio/interrupt (multiple chips connect to multiple lines)

these sound like good ideas.
 
> Also, when writing/reading to a single address, the 80200 will not
> burst, and round trip time is horrid, especially when talking to IO
> devices. Would a FIFO with a 32 byte interface be a good solution to
> this? maybe with 16 entries (512 bytes)? I realize that DMA would be
> more ideal, but a fifo seems like it might be simplier.

you might also think about a way of writing cmd+addr in one go, or
at-least the address cycles.
 
> Does anyone have any paticular pet peeves when dealing with their NAND
> interface?
> 
> ______________________________________________________
> Linux MTD discussion mailing list
> http://lists.infradead.org/mailman/listinfo/linux-mtd/

-- 
Ben (ben@fluff.org, http://www.fluff.org/)

  'a smiley only costs 4 bytes'

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: FPGA NAND Interface tips
  2006-02-24 11:24 ` Ben Dooks
@ 2006-02-24 18:01   ` Russ Dill
  0 siblings, 0 replies; 4+ messages in thread
From: Russ Dill @ 2006-02-24 18:01 UTC (permalink / raw)
  To: Ben Dooks, linux-mtd

> you might also think about a way of writing cmd+addr in one go, or
> at-least the address cycles.

I did consider that, a seperate command/address fifo. It would have 2
addresses, one for command, one for address, internally, extra bits
would be stored with each byte to indicate command or address.

However, it seems like a nice to have, since command/address setup
would be such a small percentage of total accesses.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-02-24 18:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-24  5:07 FPGA NAND Interface tips Russ Dill
2006-02-24  6:26 ` Russ Dill
2006-02-24 11:24 ` Ben Dooks
2006-02-24 18:01   ` Russ Dill

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox