Forum Discussion

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

NIOS TSE initialize

Dear All,

I am new in NIOSII and TSE. I use the Altera developemnt DK-DEV-4CGX150N for project development. I use the Qsys to build up my system and want to write some code to make the development board to TX some data to my PC.

I use a sniffer program to capture the data TX to my PC. In my current situation, I cannot receive any data at the PC. My program flow is as below:

1. Hardware reset the PHY.

2. Initialize the phy (mdio address, change to RGMII mode...)

3. Software reset the TSE

4. Setup those FIFO threshold of the TSE

5. Disable both shift 16 for TX and RX

6. Set the TSE CMD config to enable the TSE

7. Set the MAC address of TSE

8. Set up SGDMA device and descriptor

9. Send data to my PC.

I reference to the examplet program in following thread to build my program. But still not work.

"tse mac and marvell 88e1111 "

I attached herewith is a few files of my design for your refrence.

I believe that the issue is due to the initialize process of my TSE and phy. Would any one provide some advice on it.

Thanks for your kind help in advance.

Best Regards,

Albert Siu

23 Replies