// wire ll_d2h_last; // may loose ll timing and send 'last' after data. Now assuming no data comes next xyxle after last
// wire [1:0] d2h_type_in;
reg[1:0]d2h_type_in;
regfis_over_r;// push 1 more DWORD (ignore) + type (ERR/OK) when received FIS is done/error
wirell_frame_req_w;// pre ll_frame_req
regll_frame_req;// -> link // request for a new frame transition
wirell_frame_busy;// link -> // a little bit of overkill with the cound of response signals, think of throwing out 1 of them // LL tells back if it cant handle the request for now
// wire ll_frame_ack; // link -> // LL tells if the request is transmitting not used
// wire ll_frame_rej; // link -> // or if it was cancelled because of simultanious incoming transmission
// wire ll_frame_done_good; // link -> // TL tell if the outcoming transaction is done and how it was done
// wire ll_frame_done_bad; // link ->
wirell_incom_start;// link -> // if started an incoming transaction assuming this and next 2 are single-cycle
wirell_incom_done;// link -> // if incoming transition was completed
wirell_incom_invalidate;// link -> // if incoming transition had errors
// 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
wirell_link_reset;// -> link // oob sequence is reinitiated and link now is not established or rxelecidle
wirell_incom_stop_req;// -> link // TL demands to stop current recieving session (use !PxCMD.ST)?
.data_last_in(),// input wire // transaction's last data budle pulse
.data_last_in(ll_h2d_last),// input wire // transaction's last data budle pulse
.data_val_in(),// input wire // read data is valid (if 0 while last pulse wasn't received => need to hold the line)
.data_val_in(h2d_nempty),// input wire // read data is valid (if 0 while last pulse wasn't received => need to hold the line)
.data_out(),// output[31:0] wire // read data, same as related inputs
.data_mask_out(),// output[1:0] wire // same thing - all 1s for now. TODO
.data_out(ll_d2h_data_out),// output[31:0] wire // read data, same as related inputs
.data_val_out(),// output wire // count every data bundle read by transport layer, even if busy flag is set // let the transport layer handle oveflows by himself
.data_mask_out(ll_d2h_mask_out),// output[1:0] wire // same thing - all 1s for now. TODO
.data_busy_in(),// input wire // transport layer tells if its inner buffer is almost full
.data_val_out(ll_d2h_valid),// output wire // count every data bundle read by transport layer, even if busy flag is set // let the transport layer handle oveflows by himself
.data_last_out(),// output wire
.data_busy_in(ll_d2h_almost_full),// input wire // transport layer tells if its inner buffer is almost full
.frame_req(),// input wire // request for a new frame transition
.data_last_out(),// ll_d2h_last), // output wire not used
.frame_busy(),// output wire // a little bit of overkill with the cound of response signals, think of throwing out 1 of them // LL tells back if it cant handle the request for now
.frame_ack(),// output wire // LL tells if the request is transmitting
.frame_req(ll_frame_req),// input wire // request for a new frame transmission
.frame_rej(),// output wire // or if it was cancelled because of simultanious incoming transmission
.frame_busy(ll_frame_busy),// output wire // a little bit of overkill with the cound of response signals, think of throwing out 1 of them // LL tells back if it cant handle the request for now
.frame_done_good(),// output wire // TL tell if the outcoming transaction is done and how it was done
.frame_ack(),// ll_frame_ack), // output wire // LL tells if the request is transmitting
.frame_done_bad(),// output wire
.frame_rej(x_rdy_collision),// output wire // or if it was cancelled because of simultanious incoming transmission
.incom_start(),// output wire // if started an incoming transaction
.frame_done_good(xmit_ok),// output wire // TL tell if the outcoming transaction is done and how it was done
.incom_done(),// output wire // if incoming transition was completed
.frame_done_bad(xmit_err),// output wire
.incom_invalidate(),// output wire // if incoming transition had errors
.incom_ack_good(),// input wire // transport layer responds on a completion of a FIS
.incom_start(ll_incom_start),// output wire // if started an incoming transaction
.incom_ack_bad(),// input wire // oob sequence is reinitiated and link now is not established or rxelecidle
.incom_done(ll_incom_done),// output wire // if incoming transition was completed
.link_reset(),// input wire // oob sequence is reinitiated and link now is not established or rxelecidle
.incom_invalidate(ll_incom_invalidate),// output wire // if incoming transition had errors
.sync_escape_req(),// input wire // TL demands to brutally cancel current transaction
.incom_sync_escape(syncesc_recv),// output wire - received sync escape
.sync_escape_ack(),// output wire // acknowlegement of a successful reception?
.incom_ack_good(send_R_OK),// input wire // transport layer responds on a completion of a FIS
.incom_stop_req(),// input wire // TL demands to stop current recieving session
.incom_ack_bad(send_R_ERR),// input wire // oob sequence is reinitiated and link now is not established or rxelecidle
.link_reset(ll_link_reset),// input wire // oob sequence is reinitiated and link now is not established or rxelecidle
.sync_escape_req(syncesc_send),// input wire // TL demands to brutally cancel current transaction
.sync_escape_ack(syncesc_send_done),// output wire // acknowlegement of a successful reception?
.incom_stop_req(ll_incom_stop_req),// input wire // TL demands to stop current recieving session
// inputs from phy
// inputs from phy
.phy_ready(),// input wire // phy is ready - link is established
.phy_ready(),// input wire // phy is ready - link is established