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 05-13-2009, 02:54 PM
jayantbala
Guest
 
Posts: n/a
Default connecting FPGA with PC using ethernet MAC layer only

hi all ,
My objective is to connect the XILINX S3A FPGA Board with P
using Ethernet .that is i want to send and receive data to/from the PC.
and after that i have to control other h/w of the board b
sending data through ethernet as selected in GUI.


but for this purpose i dont want to implement TCP/IP .i just simpl
want to
send and receive MAC Packets i.e preamble+Destination Address+sourc
address
+type+data+FCS

i am using EDK and emaclite to implement the MAC.

my questions are :
1) how can i read and send the packets from PC .
2) is any s/w available to do so.
3) is there any s/w language which supports direct reading/writing o
MAC port of PC (e.g we can read/write the com port)
4) does any body has the code for the same.












Reply With Quote
  #2 (permalink)  
Old 05-13-2009, 05:29 PM
glen herrmannsfeldt
Guest
 
Posts: n/a
Default Re: connecting FPGA with PC using ethernet MAC layer only

jayantbala <[email protected]> wrote:
(snip)

< but for this purpose i dont want to implement TCP/IP
< .i just simply want to send and receive MAC Packets i.e
< preamble+Destination Address+source address+type+data+FCS

For type X'0800' that will be hard on many systems.

If you don't need or want TCP, can you use UDP?
It is a very simple header to add and then send it out.

Receivers can ignore the header, if that is easier, though
they should probably verify the IP address.

-- glen
Reply With Quote
  #3 (permalink)  
Old 05-13-2009, 07:51 PM
Nico Coesel
Guest
 
Posts: n/a
Default Re: connecting FPGA with PC using ethernet MAC layer only

"jayantbala" <[email protected]> wrote:

>hi all ,
> My objective is to connect the XILINX S3A FPGA Board with PC
>using Ethernet .that is i want to send and receive data to/from the PC.
> and after that i have to control other h/w of the board by
>sending data through ethernet as selected in GUI.
>
>
> but for this purpose i dont want to implement TCP/IP .i just simply
>want to
> send and receive MAC Packets i.e preamble+Destination Address+source
>address
> +type+data+FCS
>
> i am using EDK and emaclite to implement the MAC.
>
> my questions are :
> 1) how can i read and send the packets from PC .
> 2) is any s/w available to do so.
> 3) is there any s/w language which supports direct reading/writing of
>MAC port of PC (e.g we can read/write the com port)
> 4) does any body has the code for the same.


Look for libpcap at http://www.tcpdump.org/
With libpcap you can receive and send raw data from and to your
ethernet adapter.

--
Failure does not prove something is impossible, failure simply
indicates you are not using the right tools...
"If it doesn't fit, use a bigger hammer!"
--------------------------------------------------------------
Reply With Quote
  #4 (permalink)  
Old 05-14-2009, 06:01 AM
jayantbala
Guest
 
Posts: n/a
Default Re: connecting FPGA with PC using ethernet MAC layer only

>jayantbala <[email protected]> wrote:
>(snip)
>
>< but for this purpose i dont want to implement TCP/IP
>< .i just simply want to send and receive MAC Packets i.e
>< preamble+Destination Address+source address+type+data+FCS
>
>For type X'0800' that will be hard on many systems.
>
>If you don't need or want TCP, can you use UDP?
>It is a very simple header to add and then send it out.
>
>Receivers can ignore the header, if that is easier, though
>they should probably verify the IP address.
>
>-- glen
>

thank you glen.
I am using XP with intel machine .glen the thing is that i even don
want
UDP also. cant i write few lines of code in any supportive s/
language
which can read and write MAC packet over ethernet bcoz m
application
is point 2 point connection.
i just want to make it simple.

also i am not very much familiar with TCP/IP. so can u suggest me th
S/W language and some gud tutorial for implementing TCP/IP if needed.

Reply With Quote
  #5 (permalink)  
Old 05-14-2009, 08:51 PM
MikeWhy
Guest
 
Posts: n/a
Default Re: connecting FPGA with PC using ethernet MAC layer only

"jayantbala" <[email protected]> wrote in message
news:[email protected] ...
> >jayantbala <[email protected]> wrote:
>>(snip)
>>
>>< but for this purpose i dont want to implement TCP/IP
>>< .i just simply want to send and receive MAC Packets i.e
>>< preamble+Destination Address+source address+type+data+FCS
>>
>>For type X'0800' that will be hard on many systems.
>>
>>If you don't need or want TCP, can you use UDP?
>>It is a very simple header to add and then send it out.
>>
>>Receivers can ignore the header, if that is easier, though
>>they should probably verify the IP address.
>>
>>-- glen
>>

> thank you glen.
> I am using XP with intel machine .glen the thing is that i even dont
> want
> UDP also. cant i write few lines of code in any supportive s/w
> language
> which can read and write MAC packet over ethernet bcoz my
> application
> is point 2 point connection.
> i just want to make it simple.
>
> also i am not very much familiar with TCP/IP. so can u suggest me the
> S/W language and some gud tutorial for implementing TCP/IP if needed.


libpcap will read and write to the link layer. Please do something about
your spelling.


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
Regarding connecting two Ethernet Mac Phy Adnan FPGA 1 03-29-2007 04:06 PM
FPGA board with multiple Ethernet connections (Gigabit Ethernet) [email protected] FPGA 1 03-28-2007 02:47 PM
FPGA board with multiple Ethernet connections (Gigabit Ethernet) [email protected] FPGA 0 03-27-2007 06:12 AM
implement IP TCP Layer in FPGA freechip FPGA 2 02-24-2006 10:29 PM
How do i detect ethernet frames of layer 2 using ethereal? ashwin FPGA 4 11-11-2005 02:09 PM


All times are GMT +1. The time now is 11:40 AM.


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