// ref clk from an external source, shall be connected to pads
// ref clk from an external source, shall be connected to pads
...
@@ -88,6 +92,7 @@ module ahci_sata_layers #(
...
@@ -88,6 +92,7 @@ module ahci_sata_layers #(
inputwirerxp_in,
inputwirerxp_in,
inputwirerxn_in
inputwirerxn_in
);
);
localparamPHY_SPEED=2;// SATA2
localparamFIFO_ADDR_WIDTH=9;
localparamFIFO_ADDR_WIDTH=9;
localparamD2H_TYPE_DMA=0;
localparamD2H_TYPE_DMA=0;
...
@@ -99,6 +104,7 @@ module ahci_sata_layers #(
...
@@ -99,6 +104,7 @@ module ahci_sata_layers #(
localparamH2D_TYPE_FIS_HEAD=1;
localparamH2D_TYPE_FIS_HEAD=1;
localparamH2D_TYPE_FIS_LAST=2;
localparamH2D_TYPE_FIS_LAST=2;
wirephy_ready;
wire[31:0]ll_h2d_data_in;
wire[31:0]ll_h2d_data_in;
wire[1:0]ll_h2d_mask_in;
wire[1:0]ll_h2d_mask_in;
wirell_strobe_out;
wirell_strobe_out;
...
@@ -128,8 +134,9 @@ module ahci_sata_layers #(
...
@@ -128,8 +134,9 @@ module ahci_sata_layers #(
// wire incom_ack_good = send_R_OK; // -> link // transport layer responds on a completion of a FIS
// wire incom_ack_good = send_R_OK; // -> link // transport layer responds on a completion of a FIS
// wire incom_ack_bad = send_R_ERR; // -> link // oob sequence is reinitiated and link now is not established or rxelecidle
// wire incom_ack_bad = send_R_ERR; // -> link // oob sequence is reinitiated and link now is not established or rxelecidle
wirell_link_reset;// -> link // oob sequence is reinitiated and link now is not established or rxelecidle
wirell_link_reset=~phy_ready;// -> link // oob sequence is reinitiated and link now is not established or rxelecidle //TODO Alexey:mb it shall be independent
wirell_incom_stop_req;// -> link // TL demands to stop current recieving session (use !PxCMD.ST)?
// wire ll_incom_stop_req; // -> link // TL demands to stop current recieving session (use !PxCMD.ST)?