Forum Discussion
Altera_Forum
Honored Contributor
13 years ago --- Quote Start --- Hello, hujianhua (http://www.alteraforum.com/forum/member.php?u=35796) First of all I tryied to use TSE with InterNich tcp/ip stack (SSS example). And I found that tse_mac_init was called somewhere inside alt_iniche_init() and netmain(): I can see link, speed and other information in console, and all works fine. But I do not really need OS + tcp/ip stack using for some reasons. So I tryied to use TSE and SGDMA in the same way as you did. I unchecked the Aligned packet headers to 32-bit boundary and checked SGDMA's Allow unaligned transfers in SOPC builder. When I runned code you posted above, nothing happened. I tryied to use async and sync transmitt also... I didn't see any TSE output (trying to observe mdio_out signal of tse with SignaltapII). The only message in console was "Control register is ffff". Is it correct value? How can I configure command_config to enable send/receive of TSE? --- Quote End --- hi, Forester, I configured the TSE as : unsigned int * mac_addr0 = (unsigned int *)(TRIPLE_SPEED_ETHERNET_BASE+ 0x00C); unsigned int * mac_addr1 = (unsigned int *)(TRIPLE_SPEED_ETHERNET_BASE+ 0x0010); unsigned int * mac_phy_addr = (unsigned int *)(TRIPLE_SPEED_ETHERNET_BASE+0x3C); unsigned int * mac_phy_reg_addr_base = (unsigned int *)(TRIPLE_SPEED_ETHERNET_BASE+0x200); unsigned int * mac_command_configure = (unsigned int *)(TRIPLE_SPEED_ETHERNET_BASE+ 0x008); * mac_addr0 = 0x17231c00;//the mac address * mac_addr1 = 0x0000cb4a;//the mac address * mac_command_configure = *mac_command_configure | 0x2000; //reset TSE for(i = 0; i < 10000000; i++); * mac_command_configure = *mac_command_configure | 0x00800233;//configure use the configure above can enable the TSE trans, you can look up the detail information from Triple speed ehternet user guide. you can contact me by hujianhua.jianhua@163.com