Altera_Forum
Honored Contributor
16 years agoTSE mdc/mdio wirte/read problem.
i am using 88e111 mac phy.
First this is what tb in Modelsim does: mido wirte to addr 128 (200h) with 0x0000aaaa. read of addr 128(200h) is 0x0000aaaa. But I actually read 0x00002000 out of 128(200h) after wirten 0x0000aaaa to it. and I've tried to read addr 128 without writing anything ahead, the read out result is still 0x00002000. According to the 88e111 datasheet. 0x00002000 means reg0.15 reset is always high, and never gets self cleared. I thought it was the problem of my mdc/mdio/mdio_oen/mdio_in/mdio_out signals. but as I tried to read out addr 129(204h) , the result 00007949h (0111100101001001) seems to be correct, except reg (1.14:11 hwcfg_mode[3:0]) which I was expecting it would be 1011 instead of 1111 ( because that's the value i think i've configed hwcfg to be.). I'm confused, i don't know where the problem is. I don't know if the PHY is correctly initialized.