Line 241... |
Line 241... |
mdio_out_en = 1'b1;
|
mdio_out_en = 1'b1;
|
if(operation)
|
if(operation)
|
mdio_out = 1'b0;
|
mdio_out = 1'b0;
|
else
|
else
|
mdio_out = 1'b1;
|
mdio_out = 1'b1;
|
//mdio_out = 1'b0; naveen 120199
|
|
mdio_nxt_st = mdio_op2_st;
|
mdio_nxt_st = mdio_op2_st;
|
end
|
end
|
|
|
mdio_op2_st:
|
mdio_op2_st:
|
// This state shifts the second bit
|
// This state shifts the second bit
|
Line 302... |
Line 301... |
|
|
mdio_turnar_st:
|
mdio_turnar_st:
|
// This state determines whether the output enable
|
// This state determines whether the output enable
|
// needs to on or of based on the type of command
|
// needs to on or of based on the type of command
|
begin
|
begin
|
//mdio_out_en = 1'b1;naveen 011299
|
|
mdio_out = 1'b1;
|
mdio_out = 1'b1;
|
if(operation)
|
if(operation)
|
begin
|
begin
|
mdio_out_en = 1'b1;
|
mdio_out_en = 1'b1;
|
mdio_nxt_st = mdio_wrturn_st;
|
mdio_nxt_st = mdio_wrturn_st;
|
Line 430... |
Line 428... |
begin
|
begin
|
operation <= 1'b0;
|
operation <= 1'b0;
|
phy_addr <= phy_addr;
|
phy_addr <= phy_addr;
|
transmit_data <= transmit_data;
|
transmit_data <= transmit_data;
|
reg_addr <= reg_addr;
|
reg_addr <= reg_addr;
|
// receive_data <= receive_data; naveen 011299
|
|
end // else: !if(go_mdio)
|
end // else: !if(go_mdio)
|
|
|
if(phyaddr_mux_sel)
|
if(phyaddr_mux_sel)
|
begin
|
begin
|
/*
|
/*
|
Line 490... |
Line 487... |
receive_data[12] <= receive_data[11];
|
receive_data[12] <= receive_data[11];
|
receive_data[13] <= receive_data[12];
|
receive_data[13] <= receive_data[12];
|
receive_data[14] <= receive_data[13];
|
receive_data[14] <= receive_data[13];
|
receive_data[15] <= receive_data[14];
|
receive_data[15] <= receive_data[14];
|
end
|
end
|
// end // else: !if(go_mdio) naveen 011298
|
|
end // else: !if(!reset_n)
|
end // else: !if(!reset_n)
|
end // always @ (posedge mdio_clk or negedge reset_n)
|
end // always @ (posedge mdio_clk or negedge reset_n)
|
|
|
// Temporary counter used to shift the data on the mdio line
|
// Temporary counter used to shift the data on the mdio line
|
// This is also used to receive data on the line
|
// This is also used to receive data on the line
|
Line 509... |
Line 505... |
end // always @ (posedge mdio_clk or negedge reset_n)
|
end // always @ (posedge mdio_clk or negedge reset_n)
|
|
|
reg mdio_outen_reg, mdio_out_reg;
|
reg mdio_outen_reg, mdio_out_reg;
|
|
|
//----------------------------------------------
|
//----------------------------------------------
|
// Scan fix done for negedge FF-Dinesh-A for A200
|
|
// Note: Druring Scan Mode inverted mdio_clk used for
|
// Note: Druring Scan Mode inverted mdio_clk used for
|
// mdio_outen_reg & mdio_out_reg
|
// mdio_outen_reg & mdio_out_reg
|
//-----------------------------------------------
|
//-----------------------------------------------
|
wire mdio_clk_scan = (scan_mode) ? !mdio_clk : mdio_clk;
|
wire mdio_clk_scan = (scan_mode) ? !mdio_clk : mdio_clk;
|
|
|