Forum Discussion
The initialization process generally includes setting up the MAC with the correct operating parameters, which might involve configuring registers for control, speed, duplex mode, and other settings. To set the speed for the TSE MAC, you would write to the control registers to select between 10/100/1000 Mbps operation modes. This is often part of the initialization routine. The register set with bit descriptions and offset addresses for TSE MAC initialization can typically be found in the TSE MAC’s datasheet or technical reference manual. This document will list all the registers, their functions, and how to program them. Attaching the driver to the main function and processing TCP and UDP packets usually involves integrating the TSE MAC driver with your system’s TCP/IP stack. This might require configuring the stack to recognize the TSE MAC as a network interface and ensuring that the driver is properly initialized during system startup.
Hi ,
Thanks for the Response . Can you please give me the detailed information regarding the TSE MAC's driver which got generated to nios II SDK tool .
I have used tse_mac_SwReset(np_tse_mac *pmac) , alt_tse_phy_add_profile(alt_tse_phy_profile *phy), alt_tse_mac_set_speed(np_tse_mac *pmac, alt_u8 speed) these functions . But, am unable to read back the registers which are present inside these functions .
0x00111000 this is the Mac address which got generated to NIOS II SDK tool. (0x02)Command Config This is the offset in which Reset, Speed and duplex mode were present. I Have Set the Reset Bit according to the Command config Register description .But, It is unable to come out of Reset. I have attached the Files in the last message. Can you please go through those files and tell me that these files will work or not?
I have attached altera_avalon_tse.c file in which TSE MAC Driver is there.
Please help me in this .
Thanks,
Deepa