Forum Discussion
Altera_Forum
Honored Contributor
10 years agoHi vaka,
which Hardware you are using? If there is an ethernet example for it then the best way will be to start with that. If you have an ethernet connection running the MAC and PHY are properly initialized, you can read the register settings. for the TSE Registers ulRegValue = IORD_32DIRECT( TSE_MAC_BASE, REG_OFFSET ); for the PHY Registers via MDIO Interface ulRegValue = IORD_32DIRECT( TSE_MAC_BASE + 0x200, REG_OFFSET ); If you will use the Interniche TCP/IP stack you can look at the function tse_mac_init(int iface) in ins_tse_mac.c for initialization of MAC and PHY. (in \altera\14.1\ip\altera\ethernet\altera_eth_tse\src\software\lib\UCOSII\src\iniche\) Jens