--- Quote Start ---
Has anybody got MDIO master core OR code that I can import in SOPC builder please? thanks.
--- Quote End ---
Hi you can use Qsys and create a project with Nios II and Ethernet MDIO .and use this code for MDIO read and write.
// writing
IOWR_32DIRECT(ETH_MDIO_0_BASE,0x84,0x80000001);
IOWR_32DIRECT(ETH_MDIO_0_BASE,0x80,0x0000b55d);
//Reading
IOWR_32DIRECT(ETH_MDIO_0_BASE,0x84,0x80000001);
data32 = IORD_32DIRECT(ETH_MDIO_0_BASE, 0x80);