cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Contributor
Contributor
388 Views
Registered: ‎03-21-2016

Axi ethernet Packet format

Jump to solution

Hey. Tell me, what format do the data from the output (m_axis_rxd) of the axi-stream of the Axi-Etnernet ip have? What is the order of bytes and bits inside a byte? An example picture

Eth.PNG
0 Kudos
1 Solution

Accepted Solutions
Highlighted
Scholar
Scholar
232 Views
Registered: ‎08-01-2012

Re: Axi ethernet Packet format

Jump to solution

Looking further along the packet (the lengths is the biggest give away) , then Yes, it is variant B.

You still need to switch all the bytes around the make it easier to debug.

View solution in original post

5 Replies
Moderator
Moderator
304 Views
Registered: ‎08-25-2009

Re: Axi ethernet Packet format

Jump to solution

Hi @fincs ,

Have you tried to run the example desgin simulation? This is the best way to check the packets and get the info you are looking for.

To run example design simulaton, you will just need to generate the core in Vivado and right click ont the .xci and open the example design; and then click on run simulation.Hope this helps.

 

"Don't forget to reply, kudo and accept as solution."
0 Kudos
Highlighted
Scholar
Scholar
299 Views
Registered: ‎08-01-2012

Re: Axi ethernet Packet format

Jump to solution

@fincs 

Variant A.

Bytes are in network order packed in an annoying to debug way. So byte 0 is in [7..0]. So [7..0] is the MSBs of the dest mac address.

The first thing I usually do in my code flip all the bytes around so they make sense and readable on a wave window.

0 Kudos
Highlighted
Contributor
Contributor
248 Views
Registered: ‎03-21-2016

Re: Axi ethernet Packet format

Jump to solution

@richardhead @nanz Thanks.

Opened an example in the simulator. 

Input MAC Value

assign mtrlb_config_dest_addr = 48'hDA0203040506 ;
assign mtrlb_config_src_addr = 48'hCA789BCDEF12 ;

Tx from pattern generator:

0x040302da
0x78ca0605
0x12efcd9b

The result is Variant B.

Highlighted
Scholar
Scholar
233 Views
Registered: ‎08-01-2012

Re: Axi ethernet Packet format

Jump to solution

Looking further along the packet (the lengths is the biggest give away) , then Yes, it is variant B.

You still need to switch all the bytes around the make it easier to debug.

View solution in original post

Highlighted
Moderator
Moderator
226 Views
Registered: ‎08-25-2009

Re: Axi ethernet Packet format

Jump to solution

Hi @fincs ,

Could you please mark the relevant thread as "accepted solution"? So it will benifit other forum users. Thank you!

 

"Don't forget to reply, kudo and accept as solution."
0 Kudos