cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
6,122 Views
Registered: ‎10-15-2015

Marvell 88e1512 PHY Ethernet problem -sparton6 to configuration phy register

hi all,

i am trying to configure phy marvell 88E1512,sgmi mode copeer media,1G speed,

writing control registers through mdio line, but when am dumping bit file to fpga link will disable, some changes done in control register(autonegation), it is conected link but not pinging. here am adding register writing sequence and see once is there any modefication need tell me

//-------------------Write data --------------------------------------------
always @(negedge MDC_CPU_ETH,negedge GPIO)
begin
if(!GPIO)
REG_DATA<=16'd0;
else if(PRESENT_STATE == INIT_REG)
begin
if(COUNT_REG == 'd0)
 REG_DATA <= {2'b01,2'b01,5'b0,5'b10110,2'b10,16'd0};//22            page 0
else  if(COUNT_REG == 'd1)
            
REG_DATA<={2'b01,2'b01,5'b0,5'd0,2'b10,16'h9340};//0
 else  if(COUNT_REG == 'd2)
            
REG_DATA<={2'b01,2'b01,5'b0,5'd16,2'b10,16'h7F61};//16
 else  if(COUNT_REG == 'd3)
            
REG_DATA<={2'b01,2'b01,5'b0,5'd20,2'b10,16'hE0};//20
else  if(COUNT_REG == 'd4)
            
REG_DATA<={2'b01,2'b01,5'b0,5'd26,2'b10,16'h0730};//26

else  if(COUNT_REG == 'd5)
            
REG_DATA<={2'b01,2'b01,5'b0,5'b10110,2'b10,16'd2};//22   page2
else  if(COUNT_REG == 'd6)
            
REG_DATA<={2'b01,2'b01,5'b0,5'd16,2'b10,16'h4448};//16   page2
else  if(COUNT_REG == 'd7)
            
REG_DATA<={2'b01,2'b01,5'b0,5'd21,2'b10,16'h1076};//21   page2
else  if(COUNT_REG == 'd8)
            
REG_DATA<={2'b01,2'b01,5'b0,5'b10110,2'b10,16'd18};//22   page18

else  if(COUNT_REG == 'd9)
            
REG_DATA<={2'b01,2'b01,5'b0,5'd19,2'b10,16'h000C};//19   page18
else  if(COUNT_REG == 'd10)
            
REG_DATA<={2'b01,2'b01,5'b0,5'd20,2'b10,16'h8211};//20   page18
else  if(COUNT_REG == 'd11)
            
REG_DATA<={2'b01,2'b01,5'b0,5'd16,2'b10,16'hFF98};//16   page18 paceket genration

else  if(COUNT_REG == 'd12)
            
REG_DATA<={2'b01,2'b10,5'b00000,5'b10001};//17th


else if(COUNT_REG == 'd13)
            REG_DATA <= {2'b01,2'b01,5'b0,5'b10110,2'b10,16'd6};//22            page 6
else  if(COUNT_REG == 'd14)
            
REG_DATA<={2'b01,2'b01,5'b0,5'd16,2'b10,16'hFFDC};//16
else  if(COUNT_REG == 'd15)
            
REG_DATA<={2'b01,2'b10,5'b00000,5'b10001};//17th
end

 

0 Kudos