When you compile an example design of 40- and 100-Gbps Ethernet MAC and PHY MegaCore® function, the following error message might be reported.
Error (12002): Port "din" does not exist in macrofunction "ior" File: [path]/alt_e100_top_sv.v Line: 164
This is because you generated the IP with Avalon®-ST Interface but compiled an example design with Custom Streaming Interface.
Compile a proper example design for your IP variation.
Even if you generated the IP with Avalon-ST Interface, the MegaCore function generates example designs for all variations, including the Custom Streaming Interface version.
Proper example design with Avalon-ST interface for Stratix® V devices is located at:
<project_dir>_example/example_design/alt_e*_avalon_top_sv
A proper example design with Avalon-ST interface for Stratix IV devices is located at:
<project_dir>_example/example_design/alt_e*_avalon_top_siv