FPGA, SoC, And CPLD Boards And Kits
FPGA Evaluation and Development Kits
Announcements
Intel Support hours are Monday-Fridays, 8am-5pm PST, except Holidays. Thanks to our community members who provide support during our down time or before we get to your questions. We appreciate you!

Need Forum Guidance? Click here
Search our FPGA Knowledge Articles here.

TSE_MAC to pc

Altera_Forum
Honored Contributor II
926 Views

hi: 

if I want to realize translation from the data in memory on chip to PC through RJ45,The steps I do as follows: 

1: sopc system: on chip memory->SGDMA_TX->TSE_MAC to PHY then to RJ45. 

2: in niosII elipse,software process is : 

open and reset :SGDMA_TX/RX , 

reset :MAC_TSE 

set : MAC_TSE registers and MAC address 

set :PHY speed and duplex mode 

enable :MAC_TSE and SGDMA_TX 

 

 

when the software code runs to the part of "set MAC_TSE registers".the process stop running,I donnot know why cannot set MAC_TSE register??
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
116 Views

you could debug your code to see if you are stuck in a loop or if it is the hardware that is stalling the CPU. If it is the latter, check that the TSE is receiving all its clocks (including the ones on the PHY side).

Altera_Forum
Honored Contributor II
116 Views

thanks, 

the problem is still there ,I suspect that the reason is the corresponding registers of PHY chip(DP8384c) has not been set. 

because I write code using API which provided by TSE_MAC ,so I refer the  

altera_avalon_tse.h, altera_avalon_tse.c,the codes in these files are not simple,so ,I donnot know how to utilize them.and donnot know which registers of PHY should be set. 

 

I can send you the code I write ,and discuss with each other!~
Reply