Forum Discussion
Altera_Forum
Honored Contributor
15 years agoMdio
Does Altera have an MDIO core in the SOPC builder , or mega functions? I want to use the MDIO STA master to configure phy device on the board.
Altera_Forum
Honored Contributor
12 years ago --- 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);