Receiving Ethernet Packets

Postby Stijena » Wed Jan 28, 2004 12:10 pm

Hi, Mariusc,

Could You send me the project files You are using. My ISE full version throws million error mesages when I try to convert it and adapt to xilinx.
Last edited by Stijena on Wed Dec 13, 2006 11:46 am, edited 1 time in total.
Stijena
 
Posts: 42
Joined: Tue Jan 27, 2004 10:57 am

Postby fpga4fun » Wed Jan 28, 2004 7:34 pm

does sync1 work? Does it reach all 1's state?
It needs to for sync2 to start.

2N2222 are just fine.
Anyway this 48MHz oversampling business is not so great, I'll try to improve it.
fpga4fun
Site Admin
 
Posts: 837
Joined: Thu Sep 18, 2003 6:47 am

Postby Stijena » Thu Jan 29, 2004 11:23 am

Mariusc,

No I received some other error message when I included Coregen fifo and dpram, but that is an ISE bug I think. So I simply cut the fifo and dpram, an I am trying to adapt interface to FTDI245BM chip ( fifo-usb from WWW.ftdichip.com) which I have in the form of a ready-made module (www.dlpdesign.com)

Stijena
Stijena
 
Posts: 42
Joined: Tue Jan 27, 2004 10:57 am

Postby Stijena » Thu Jan 29, 2004 1:34 pm

Mariusc,

I have problems with opening Your rar file. Could You post it as a zip?

Stijena
Stijena
 
Posts: 42
Joined: Tue Jan 27, 2004 10:57 am

Postby fpga4fun » Fri Jan 30, 2004 7:36 am

ok, so you need to debug the logic before "sync1". You are not able to extract the bits.
"new_bit_avail" should toggle at 10MHz, in sync with each incoming "Manchester decoded" bit.
Also make sure your diff input circuit works fine and that it outputs a square signal during the preamble (output ratio 50%).
fpga4fun
Site Admin
 
Posts: 837
Joined: Thu Sep 18, 2003 6:47 am

Postby Stijena » Fri Jan 30, 2004 6:19 pm

Marius,

I tried to sinthesize the project You sent me (with no alterations), and I have some 50 warnings of unconnected internal signals or some signals being constant. The problem is as I suppose some sintax issue in ISE. I don't have enoug knowledge to solve the problem, but all warnings do have implications in the sinthesized design. I looked into the fpga interconnections, and constants are really tied to gnd or vcc; according to warnings.

Conclusion: design does not reflect the source


Predrag

PS: The files one You sent me contain only receive part.
Stijena
 
Posts: 42
Joined: Tue Jan 27, 2004 10:57 am

Postby fpga4fun » Sun Feb 01, 2004 1:30 am

no each family has its own set of output options. Newer families tend to support more standards.
fpga4fun
Site Admin
 
Posts: 837
Joined: Thu Sep 18, 2003 6:47 am

Postby fpga4fun » Tue Feb 24, 2004 7:19 am

Happy to hear that, the receiver part is not the easiest to get working in its current form.
Feel free to send the html once you have your page ready, we'll find a nice place for it.
fpga4fun
Site Admin
 
Posts: 837
Joined: Thu Sep 18, 2003 6:47 am

Postby Stijena » Fri Apr 23, 2004 10:35 am

Jean,

Why did You use 48MHZ clock for the manchester decoder. Could You explain the math more precisely.

Stijena
Stijena
 
Posts: 42
Joined: Tue Jan 27, 2004 10:57 am

Postby fpga4fun » Fri Apr 23, 2004 7:06 pm

I wanted a frequency high enough to over-sample the Manchester encoded signal (50ns pulses).
I went through my stock and found a 48MHz. I drew a few timing diagrams and it seemed good enough with its 21ns period. I tried and it worked... No complex math involved!
You should be able to use a faster clock too. A slower clock may work but it will become unreliable if you go too low.
fpga4fun
Site Admin
 
Posts: 837
Joined: Thu Sep 18, 2003 6:47 am

"Almost" full success

Postby Stijena » Sat May 15, 2004 10:17 am

Jan,

Are You going to post some update on this 10base t topic

I had "allmost" full success with it so maybe Your new code could solve my problems.

I used a big cpld instead fpga (for the beginning, later I will transfer it on fpga). TXpart is working fine, and I also added possibility to send also ARP reply packets.

For the RX part, I took off the fifo and uart part, and am sending byte wide output to the FTDI245bm chip. I changed the manchester decoder to the one mentioned in xl17-30.pdf of xilinx (that is a schematic, but i translated it to verilog). The original didn't work properly.
For testing I use loopback between TX and RX both internal (no pins used), and external through ferrite trafo (salvaged from a NIC card).

The results are the same (erratic) so my analog part is ok.

All packets are identical, with lost or extra bits in same place of all packets. So there is a problem with framing which I cannot find.

My rx frequency is 67 MHz, and xiinx manchester decoder according to the article) tolerates everything from 50 - 120 MHz.

The question is : did You revise that part of the code, or any other.

Stijena
Stijena
 
Posts: 42
Joined: Tue Jan 27, 2004 10:57 am

Postby fpga4fun » Sun May 16, 2004 6:23 am

I'm still tied up with PCI these days. I should have more time for Ethernet in a few weeks...
fpga4fun
Site Admin
 
Posts: 837
Joined: Thu Sep 18, 2003 6:47 am


Return to Ethernet