When you compile an example design of 40- and 100-Gbps Ethernet MAC and PHY MegaCore® fuction, 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 proper example design for your IP variation.
Even if you generated the IP with Avalon-ST Interface, MegaCore function generates example designs for all variation including Custom Streaming Interface version. Proper example design with Avalon-ST interface for Stratix® V devices is located at:
Proper example design with Avalon-ST interface for Stratix IV devices is located at: