-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem with etherload stub #3
Comments
What differences are you seeing? We did see some subtle bit corruption bug |
to see what is going on in the hardware maybe you could add checkpoint messages to the .a65 asm files? and view those messages using the serial-monitor. ie
or even better populate the output message with values corresponding to the register values. |
I don't think that it has to do with the C65 code. There are a lot of bit btw: the sourcecode reveals who to tell the hardware how big the packet to |
Yes, I recall there was a problem with bit-flips. I am not sure of the |
Datasheet for the ethernet interface IC on the Nexys4 is at: http://ww1.microchip.com/downloads/en/DeviceDoc/8720a.pdf TX data is latched when the clock goes high. The data should already be Probably the best solution is to make the controller run at 100MHz, divide |
Have just taken a quick look: It seems possible to just invert the sense of the ethernet 50MHz clock to the PHY. Trying that (commit e788e25). |
I am no expert, but I think the clocking of components needs revision. |
my opinion is that all components should be clocked at 200mhz (or more), and the chip-enable to each circuit be generated from a 4-bit counter (to give 100, 50, 25) driven by the incoming 200+ clock_in. |
I agree the clocking can be improved. However, the pixel clock requires 192MHz, and the ethernet 50MHz, thus we cannot avoid having 2 clock domains. The CPU is 48MHz (pixelclock/4), which is generated by the FPGA's PLL. However, there are some other clocks lurking around the place that can probably be simplified, provided the process doesn't break anything. |
We have just tried flipping the ethernet clock, as it looked like we were providing data on the wrong clock phase, but that is in fact not the problem. Ben and my best guess now is that there is glitching on the TX side, and will try registering the outputs. |
Implementing registering of ethernet tx signals in commit 44cddf8 |
I still haven't gotten around to testing if registering the signals has fixed the bit-flip problem. |
Please assign this one to me. I will look into it after sdcard/fat32. |
Fixing Issue #3: side register handling for floppy controller.
…ntroller."" This reverts commit 413267e.
As this is very old, and stuff like WeeIP, fetch and Haustierbegriff works, I deem it hereby closed. |
Hello,
I tried a partial rewrite of the etherload stub to get arp replies working. I succeeded, almost. Even though the code should reply always the same if arping'ed from the same host, the results vary.
Without knowing what happening inside the hardware, I can't go on any further.
Once this issue has been solved, I might be able to squeeze in support for ICMP, so the stub will reply to pings.
etherload.txt
The text was updated successfully, but these errors were encountered: