Altera_Forum
Honored Contributor
15 years ago9.1 Avalon OpenCores 10/100 Ethernet MAC with DM9000A
Hi
I am Little Confused to Use 9.1 Avalon OpenCores 10/100 Ethernet MAC with DM9000A.As i am new to altera fpga not know how to interace Opencore 10/100 Ethernet Mac with Dm9000A.Can Any body write me the eth_ocm_phy_profile_struct for dm9000A giving me the information of /* PHY structure for PHY detection */ typedef struct eth_ocm_phy_profile_struct{ /* PHY name - (whatever you want to call it) */ char name[80]; /* PHY OUI (Organizationally Unique Identififier) * This is the concatenation of bits [15:0] of register 2 and bits [15:10] * of register 3. (i.e. oui = {reg2[15:0],reg3[15:10]})*/ alt_u32 oui; /* PHY model number (Bits[9:4] of register 3)*/ alt_u8 model_number; /* PHY revision number (Bits 3:0] of register 3*/ alt_u8 revision_number; /* Location (register index) of PHY Specific Status Register * (which register will tell us duplex status)*/ alt_u8 status_reg_location; /* Location of Duplex Status bit in PHY Specific Status Register */ alt_u8 duplex_bit_location; /* Function pointer to execute additional initialization. This function * will be called before attempting to discover duplex status. */ alt_32 (*phy_cfg)(eth_ocm_dev *dev); /** Function pointer to read the duplex status from the PHY. * Set this function pointer to your own function if the PHY's duplex * status cannot be determined using the PHY specific status register * and bit locations listed above. This function should return 1 if * the PHY is in Full Duplex mode or 0 if Half Duplex. **/ alt_u32 (*duplex_status_read)(eth_ocm_dev *dev); } eth_ocm_phy_profile; i am attaching the manual of Dm9000a an opencore 10/100 . Regards Muhammad Junaid Sarwar