P
Paul
Guest
Hi
I've just read through the page. Found one problem:
// IP header
7'h14: pkt_data <= 8'h08;
7'h15: pkt_data <= 8'h00;
According to my textbook from Tanenbaum.
This 2 bytes should be the length of the MAC data.
From the rest of codes, it should be "0x48 - 8" , i.e.
7'h14: pkt_data <= 8'h00;
7'h15: pkt_data <= 8'h40;
// IP header
...
...
I wonder why it should work if it did. (I can't test it yet.)
Does that imply you can switch positions for CRC and some 4 data bytes?
Also one more question:
I notice there are idle bits inserted for mechester encoding. is that necessary?
Since I have a PHY chip, I guess I don't have to worry about that. Just curious.
Thanks.
I've just read through the page. Found one problem:
// IP header
7'h14: pkt_data <= 8'h08;
7'h15: pkt_data <= 8'h00;
According to my textbook from Tanenbaum.
This 2 bytes should be the length of the MAC data.
From the rest of codes, it should be "0x48 - 8" , i.e.
7'h14: pkt_data <= 8'h00;
7'h15: pkt_data <= 8'h40;
// IP header
...
...
I wonder why it should work if it did. (I can't test it yet.)
Does that imply you can switch positions for CRC and some 4 data bytes?
Also one more question:
I notice there are idle bits inserted for mechester encoding. is that necessary?
Since I have a PHY chip, I guess I don't have to worry about that. Just curious.
Thanks.