Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12599 Discussions

TSE Header Checksum and CRC

Altera_Forum
Honored Contributor II
1,238 Views

(1) Does the TSE (Triple Speed Ethernet) calculate the header checksum when transmitting, or does the avalon stream need to already have this embedded? 

 

(2) Does the TSE calculate the packet CRC when transmitting, or does the avalon stream need to already have this embedded? 

 

Similarly, are these automatically checked by the receiver? 

 

Thanks.
0 Kudos
4 Replies
Altera_Forum
Honored Contributor II
402 Views

(1) No 

(2) No 

 

If the receiver is just the TSE, no again. I'm guessing these aren't the answers you were hoping for.
0 Kudos
Altera_Forum
Honored Contributor II
402 Views

Actually the TSE by default automatically adds and checks the Ethernet CRR. You can disable this if you want to do it yourself on the Avalon stream. When you let the TSE check the CRC, you will always receive the frame, but an error bit will indicate if there was a CRC error. It is up to you to decide what you want to do to the frame. 

The header checksum isn't handled by the TSE though, this one you have to do yourself.
0 Kudos
Altera_Forum
Honored Contributor II
402 Views

 

--- Quote Start ---  

Actually the TSE by default automatically adds and checks the Ethernet CRR. You can disable this if you want to do it yourself on the Avalon stream. When you let the TSE check the CRC, you will always receive the frame, but an error bit will indicate if there was a CRC error. It is up to you to decide what you want to do to the frame. 

The header checksum isn't handled by the TSE though, this one you have to do yourself. 

--- Quote End ---  

 

 

 

is there a way to read the data generated by TSE reference design Ethernet Packet generator and store in memory or text file or array
0 Kudos
Altera_Forum
Honored Contributor II
402 Views

I don't know what you mean by "reference design Ethernet Packet generator" but if you are talking about the offload example, it's aim is to handle packet generation or reception in hardware, and it's not that easy to get hold of the data. 

If you use a standard TSE design example with the Nios CPU and a network stack then you can do this in software, using the standard BSD sockets API.
0 Kudos
Reply