Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
21206 Discussions

KSZ8851SNL 10/100 Mbps Ethernet

Altera_Forum
Honored Contributor II
1,749 Views

Hello Guys, 

 

i am trying to interface KSZ8851SNL ethernet MAC with Cyclone III FPGA in order to download data. The send and receive functions are all fine and i implement my own TCP/IP stack as well. while the system is in monitoring stage, (Slow send and receive) it is still fine. however, while i am trying to download a file the receive unit in KSZ8851SNL kind of crashes. have you had any experiences working with this MAC. I tried everything and working on that for couple of weeks and it doesn't work. I really appreciate your feedbacks. 

 

regards, 

Aidin.
0 Kudos
6 Replies
Altera_Forum
Honored Contributor II
1,061 Views

I need to add that I implement two SGDMAs for both Tx and RX.

0 Kudos
Altera_Forum
Honored Contributor II
1,061 Views

What does "the receive unit in KSZ8851SNL kind of crashes" mean?

0 Kudos
Altera_Forum
Honored Contributor II
1,061 Views

thanks for the response. the receive buffer is 12 KB long and with high speed data download it crashes. I managed to figure it out the problem. it was wrong SPI timing and also poor signal integrity. by looking at those, it works fine.

0 Kudos
Altera_Forum
Honored Contributor II
1,061 Views

Hello. You were able to come up with an FPGA design to control this chip? I'm looking to do the same thing. Do you just ping the TX and RX fifos with the interrupts for incoming packets? The document for the part kind of stinks, but do you have something better for reference?

0 Kudos
Altera_Forum
Honored Contributor II
1,061 Views

yeah, it was a bit difficult but I did it. I am checking the number of packets rather than interrupts. also, KSZ is a bit slow and you should give enough time to send a packet otherwise simply crashes. I implement most part in FPGA (TCP/IP Stack) in HDL and it is pretty cool. although it is too fast for KSZ , we will use faster Ethernet controller in future . Hope this helps

0 Kudos
deepak_7
Beginner
663 Views

Can you send the intialization sequence and receiving sequence code for KSZ8851SNL Module 

0 Kudos
Reply