FPGA Central - World's 1st FPGA / CPLD Portal

FPGA Central

World's 1st FPGA Portal

 

Go Back   FPGA Groups > NewsGroup > FPGA

FPGA comp.arch.fpga newsgroup (usenet)

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-02-2004, 12:20 AM
greg
Guest
 
Posts: n/a
Default FPGA+ggiabit ethernet and protocols

Hello
i need to implement gigabit ethernet in FPGA..
now all is almost done (MAC in FPGA , PHY), and need to implement a simple
protocol that will ensure proper delivery of all data from digital camera (1
picture = 128MB). I thought about IP/UDP and own protocols with handshake
and retransmition of lost packets, but maybe there exists something
simpler - already used and implemented protocols - i just need to make
programmer's life easier at the other end of cable
Regards
Greg


Reply With Quote
  #2 (permalink)  
Old 10-02-2004, 11:53 PM
H. Peter Anvin
Guest
 
Posts: n/a
Default Re: FPGA+ggiabit ethernet and protocols

Followup to: <[email protected]>
By author: "greg" <[email protected]>
In newsgroup: comp.arch.fpga
>
> Hello
> i need to implement gigabit ethernet in FPGA..
> now all is almost done (MAC in FPGA , PHY), and need to implement a simple
> protocol that will ensure proper delivery of all data from digital camera (1
> picture = 128MB). I thought about IP/UDP and own protocols with handshake
> and retransmition of lost packets, but maybe there exists something
> simpler - already used and implemented protocols - i just need to make
> programmer's life easier at the other end of cable
>


At that point you might as well use TCP... implementing TCP is not
that hard if you don't care about super-high performance across very
long distances.

See for example uIP or lwIP for small TCP/IP stacks that can be run on
a small microcontroller which can easily be synthesized in an FPGA.

If you want to use UDP or raw Ethernet packets you probably want to do
something like TFTP.

-hpa
Reply With Quote
  #3 (permalink)  
Old 10-03-2004, 02:44 PM
greg
Guest
 
Posts: n/a
Default Re: FPGA+ggiabit ethernet and protocols

> > i need to implement gigabit ethernet in FPGA..
> > now all is almost done (MAC in FPGA , PHY), and need to implement a

simple
> > protocol that will ensure proper delivery of all data from digital

camera (1
> > picture = 128MB). I thought about IP/UDP and own protocols with

handshake
> > and retransmition of lost packets, but maybe there exists something
> > simpler - already used and implemented protocols - i just need to make
> > programmer's life easier at the other end of cable
> >

>
> At that point you might as well use TCP... implementing TCP is not
> that hard if you don't care about super-high performance across very
> long distances.


The problem is, that i need to have transfer about 70MB/s
I thought about TCP/IP and it really doesn't look so bad..The CRC
calculation can be done in hardware on fly and the rest implemented using
8bit microcontroller,that i already have in design or NIOS.
>
> See for example uIP or lwIP for small TCP/IP stacks that can be run on
> a small microcontroller which can easily be synthesized in an FPGA.
>
> If you want to use UDP or raw Ethernet packets you probably want to do
> something like TFTP.
>

Thanks, i will have a look for it.


Reply With Quote
  #4 (permalink)  
Old 10-03-2004, 08:07 PM
H. Peter Anvin
Guest
 
Posts: n/a
Default Re: FPGA+ggiabit ethernet and protocols

Followup to: <[email protected]>
By author: "greg" <[email protected]>
In newsgroup: comp.arch.fpga
> >
> > At that point you might as well use TCP... implementing TCP is not
> > that hard if you don't care about super-high performance across very
> > long distances.

>
> The problem is, that i need to have transfer about 70MB/s
> I thought about TCP/IP and it really doesn't look so bad..The CRC
> calculation can be done in hardware on fly and the rest implemented using
> 8bit microcontroller,that i already have in design or NIOS.
>


If so, you really want to either:

a) Just to full-blown TCP, using your microcontroller or NIOS (Altera
has a fairly nice low-overhead TCP/IP library for NIOS, too.)

b) Use a "windowed spew" protocol; effectively TCP without the
congestion control. Just spew a bunch of sequenced-number packets out
the wire, and expect to get an ACK back clearing all packets up to the
packet specified. The big issue with ANY of these protocols is how
much buffer memory do you devote to it: you want to have enough buffer
memory that you can send at least ~2 roundtrips worth of data before
you have to stall until your ACK gets back.

> > See for example uIP or lwIP for small TCP/IP stacks that can be run on
> > a small microcontroller which can easily be synthesized in an FPGA.
> >
> > If you want to use UDP or raw Ethernet packets you probably want to do
> > something like TFTP.
> >

> Thanks, i will have a look for it.


Using a ping/pong protocol like TFTP would be an absolute performance
killer in your application.

-hpa

Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Bodged up 10/100 Ethernet & USB on FPGA. Symon FPGA 0 09-21-2004 09:36 PM
Old XCV50 FPGA and Ethernet quantum FPGA 1 05-21-2004 05:48 PM
Ethernet & FPGA Stefan Kopetsch FPGA 2 05-04-2004 11:20 PM


All times are GMT +1. The time now is 08:05 AM.


Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Copyright 2008 @ FPGA Central. All rights reserved