Questions about 10GE mac configuration and CRC inserting enabling in eth_e2e_e10
Hello Sir/madam,
For design example eth_e2e_e10,
1,May I know where I can check the c code or SV code for 10G mac configuration in design example eth_e2e_e10?
2,As to CRC checksum, I have noticed avalon_st_gen.v has a 4 bytes CRC checksum been inserted in the last of stream to the MAC, I know customer has option either to generate CRC by themselves or leave it to MAC IP for automatic CRC inserting. Can I understand the tx_crc_control[1] was set to 0 to disabling CRC inserting by MAC IP ,therefore user need to generate CRC checksum by themselves? If so ,where can I find this register writing configuration code in what design file? Also If I managed to set tx_crc_control[1] to 1,which means I can remove CRC generation code from avalon_st_gen.v without influcing the function?
3,I have found the length number I have send through command does not match the length number catching by wireshark, there are 4 byte difference. For example
I sent 1 packet with length 0x108 as below over channel 0
./pac_hssi_e10 -b 0xd8 -d 00 -f 00 -p 0x01 -l 0x108 -s 0:0:0:0:0:0 -m e4:43:4b:13:b8:4a --channel=0 --action=pkt_send
Wireshark got this packet, but only catched 0x104 bytes, 4 bytes missing, can you give some suggestion? Thanks
Jim