Forum Discussion
UDP for TSE MAC
Hi all,
Currently I am using TSE MAC, but is there any UDP Verilog module already available to connect with TSE MAC? I tried to search around but can not find one. Thanks a lot!15 Replies
- Altera_Forum
Honored Contributor
Have a look here (http://www.alterawiki.com/wiki/nios_ii_udp_offload_example).
- Altera_Forum
Honored Contributor
Thanks, it's exactly what I need!
- Altera_Forum
Honored Contributor
--- Quote Start --- Have a look here (http://www.alterawiki.com/wiki/nios_ii_udp_offload_example). --- Quote End --- It seems that the NiosIIUDOffloadExample does not work for Stratix III FPGA. When I compile the software in Nios IDE, errors show up when compile "alt_sys_init.c" file. What's wrong with it? - Altera_Forum
Honored Contributor
First you have to redo the hardware project to be sure it is adapted to your board. Then you need to check that your SOPC configuration has everything that is required by the software. The error while compiling is probably coming from the fact that some required SOPC components are missing, or don't have the name that the software expected. Check also that the software project is pointing to the correct hardware description.
- Altera_Forum
Honored Contributor
Hi, Daixiwen, Errors still show up even I use the original hardware description to compile in Nios. The error information is as follows:
system_description/alt_sys_init.c:128: error: `GENERATOR_0' undeclared (first use in this function) system_description/alt_sys_init.c:128: error: (Each undeclared identifier is reported only once system_description/alt_sys_init.c:128: error: for each function it appears in.) system_description/alt_sys_init.c:128: error: `generator_0' undeclared (first use in this function) system_description/alt_sys_init.c:129: error: `GENERATOR_1' undeclared (first use in this function) system_description/alt_sys_init.c:129: error: `generator_1' undeclared (first use in this function) system_description/alt_sys_init.c:130: error: `GENERATOR_2' undeclared (first use in this function) system_description/alt_sys_init.c:130: error: `generator_2' undeclared (first use in this function) system_description/alt_sys_init.c:131: error: `GENERATOR_3' undeclared (first use in this function) system_description/alt_sys_init.c:131: error: `generator_3' undeclared (first use in this function) system_description/alt_sys_init.c:132: warning: implicit declaration of function `UDP_PAYLOAD_INSERTER_INIT' system_description/alt_sys_init.c:132: error: `UDP_INSERTER_0' undeclared (first use in this function) system_description/alt_sys_init.c:132: error: `udp_inserter_0' undeclared (first use in this function) system_description/alt_sys_init.c:133: error: `UDP_INSERTER_1' undeclared (first use in this function) system_description/alt_sys_init.c:133: error: `udp_inserter_1' undeclared (first use in this function) system_description/alt_sys_init.c:134: error: `UDP_INSERTER_2' undeclared (first use in this function) system_description/alt_sys_init.c:134: error: `udp_inserter_2' undeclared (first use in this function) system_description/alt_sys_init.c:135: error: `UDP_INSERTER_3' undeclared (first use in this function) system_description/alt_sys_init.c:135: error: `udp_inserter_3' undeclared (first use in this function) system_description/alt_sys_init.c:136: warning: implicit declaration of function `ERROR_PACKET_DISCARD_INIT' system_description/alt_sys_init.c:136: error: `ERROR_DISCARD' undeclared (first use in this function) system_description/alt_sys_init.c:136: error: `error_discard' undeclared (first use in this function) system_description/alt_sys_init.c:137: warning: implicit declaration of function `UDP_PORT_TO_CHANNEL_MAPPER_INIT' system_description/alt_sys_init.c:137: error: `UDP_MAPPER' undeclared (first use in this function) system_description/alt_sys_init.c:137: error: `udp_mapper' undeclared (first use in this function) system_description/alt_sys_init.c:138: warning: implicit declaration of function `OVERFLOW_PACKET_DISCARD_INIT' system_description/alt_sys_init.c:138: error: `OVERFLOW_DISCARD' undeclared (first use in this function) system_description/alt_sys_init.c:138: error: `overflow_discard' undeclared (first use in this function) system_description/alt_sys_init.c:139: warning: implicit declaration of function `UDP_PAYLOAD_EXTRACTOR_INIT' system_description/alt_sys_init.c:139: error: `EXTRACTOR_0' undeclared (first use in this function) system_description/alt_sys_init.c:139: error: `extractor_0' undeclared (first use in this function) system_description/alt_sys_init.c:140: error: `EXTRACTOR_1' undeclared (first use in this function) system_description/alt_sys_init.c:140: error: `extractor_1' undeclared (first use in this function) system_description/alt_sys_init.c:141: error: `EXTRACTOR_2' undeclared (first use in this function) system_description/alt_sys_init.c:141: error: `extractor_2' undeclared (first use in this function) system_description/alt_sys_init.c:142: error: `EXTRACTOR_3' undeclared (first use in this function) system_description/alt_sys_init.c:142: error: `extractor_3' undeclared (first use in this function) system_description/alt_sys_init.c:143: warning: implicit declaration of function `PRBS_PACKET_CHECKER_INIT' system_description/alt_sys_init.c:143: error: `CHECKER_0' undeclared (first use in this function) system_description/alt_sys_init.c:143: error: `checker_0' undeclared (first use in this function) system_description/alt_sys_init.c:144: error: `CHECKER_1' undeclared (first use in this function) system_description/alt_sys_init.c:144: error: `checker_1' undeclared (first use in this function) system_description/alt_sys_init.c:145: error: `CHECKER_2' undeclared (first use in this function) system_description/alt_sys_init.c:145: error: `checker_2' undeclared (first use in this function) system_description/alt_sys_init.c:146: error: `CHECKER_3' undeclared (first use in this function) system_description/alt_sys_init.c:146: error: `checker_3' undeclared (first use in this function) make[1]: *** [obj/alt_sys_init.o] Error 1 make: *** [system_project] Error 2 I checked the original "alt_sys_init.c" file and found that there was no operation on these IPs for the protocol. Do I miss something? Thanks! - Altera_Forum
Honored Contributor
Which "original hardware description" are you using? The one from the kit?
It looks like you are missing all the acceleration components in your hardware description. You need to add them to your SOPC project. - Altera_Forum
Honored Contributor
Hi, thanks for the reply. What do you mean the "acceleration components"? I have added the IP components concerning the Ethernet packet formulation.
- Altera_Forum
Honored Contributor
the hardware description i'm using is the one i build the SOPC system by following the example step by step and have the complete compilation.
- Altera_Forum
Honored Contributor
Could you check the system.h file in the system_description folder, and verify that it contains the definitions for those IP components (look for GENERATOR_0, for example)?
- Altera_Forum
Honored Contributor
I found the definitions for these IP components in my "system.h" file. The file is also attached in the following.