Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
13 years ago

Finding registers of PHY

Hello friends,

I'm currently working with ALTERA DE2-115 board.

I need to know the internal registers of this board's PHY. The PHY is Marvell 88E1111.

After searching, I found a product brief. But it hasn't mentioned the map of the registers.

Has anyone experienced this?

Thanks in advance

17 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Do you only read PHY registers (MDIO?) or also ethernet data directly ?

    >Do you know about the built in feature called :"Packet Generator"?

    Yes, it is activated by setting some bits in a certain register. I tried that recenctly in a xilinx system but did not succeed. I am about to repeat this on my Altera board now.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I'm currently working on MII (Media Dependent Interface) for receiving data packets.

    Exactly...I have the same problem.I mean I set the mentioned bits for activating this Packet Generator, but nothing happened.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    My problem was that I did not know about the reserved bits, I have to maintain. When reading back the bits, I found them all to be Zero. Anyway, when writing them, nothing happend. From the phy data sheet, I learned about the paging technique, which makes the access of registers more complex. I assume, the fault was there.

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I do not change the reserved bits. You know, for enabling 88E1111 Packet Generator you have to write in register 30 page 18

    and for accessing reg30 page 18,first you have to write s.th in reg 29.

    I did all these things, but nothing happens.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    dear fpgaengineerfrankfurt,

    I understood how to trigger this "Packet Generator". If you are interested in knowing that, tell me to explain it.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    Thank you dear fpgaengineerfrankfurt ,

    I found the datasheet and I wrote a code which is able to write/read to/from the PHY.

    I needed to change the MAC speed in register 20.6:4 to 100 Mb/s.

    --- Quote End ---

    please help me to how to write/read to/from the PHY via Mdio ?