OpenCores
URL https://opencores.org/ocsvn/spacewiresystemc/spacewiresystemc/trunk

Subversion Repositories spacewiresystemc

[/] [spacewiresystemc/] [trunk/] [rtl/] [RTL_VB/] [tx_spw.v] - Diff between revs 37 and 38

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 37 Rev 38
Line 89... Line 89...
        reg  [2:0] next_state_fct_send;
        reg  [2:0] next_state_fct_send;
 
 
        reg  [2:0] state_fct_receive;
        reg  [2:0] state_fct_receive;
        reg  [2:0] next_state_fct_receive;
        reg  [2:0] next_state_fct_receive;
 
 
 
        reg  [2:0] state_data_fifo;
 
        reg  [2:0] next_state_data_fifo;
 
 
        reg [13:0] timecode_s;
        reg [13:0] timecode_s;
 
 
        reg [5:0]  last_type;
        reg [5:0]  last_type;
        reg [8:0]  txdata_flagctrl_tx_last;
        reg [8:0]  txdata_flagctrl_tx_last;
        reg [8:0]  tx_data_in;
        reg [8:0]  tx_data_in;
        reg data_rdy_trnsp;
        reg [8:0]  tx_data_took;
 
 
 
 
        reg [7:0]  last_timein_control_flag_tx;
        reg [7:0]  last_timein_control_flag_tx;
        reg [7:0]  tx_tcode_in;
        reg [7:0]  tx_tcode_in;
        reg tcode_rdy_trnsp;
        reg tcode_rdy_trnsp;
 
 
        reg [2:0] fct_send;
        reg [2:0] fct_send;
        reg [2:0] fct_flag;
        reg [2:0] fct_flag;
 
 
        reg [5:0] fct_counter_receive;
        reg [5:0] fct_counter_receive;
 
 
        //reg block_increment;
        reg data_ready_took;
        reg block_decrement;
        reg block_decrement;
        reg char_sent;
        reg char_sent;
 
 
        //reg block_increment_fct_send;
 
        //reg block_decrement_fct_send;
 
        reg fct_sent;
        reg fct_sent;
 
 
        reg last_tx_dout;
        reg last_tx_dout;
        reg last_tx_sout;
        reg last_tx_sout;
 
 
Line 485... Line 488...
                else
                else
                        next_state_fct_send = 3'd0;
                        next_state_fct_send = 3'd0;
        end
        end
        3'd1:
        3'd1:
        begin
        begin
                if(global_counter_transfer == 4'd2)
                if(global_counter_transfer > 4'd0 &&  global_counter_transfer < 4'd12)
                begin
                begin
                        next_state_fct_send = 3'd2;
                        next_state_fct_send = 3'd2;
                end
                end
                else
                else
                begin
                begin
Line 507... Line 510...
                        next_state_fct_send = 3'd0;
                        next_state_fct_send = 3'd0;
                end
                end
        end
        end
        3'd3:
        3'd3:
        begin
        begin
                if(global_counter_transfer == 4'd2)
                if(global_counter_transfer > 4'd0 &&  global_counter_transfer < 4'd12)
                begin
                begin
                        next_state_fct_send = 3'd4;
                        next_state_fct_send = 3'd4;
                end
                end
                else
                else
                begin
                begin
Line 552... Line 555...
                begin
                begin
                        fct_flag <= fct_flag;
                        fct_flag <= fct_flag;
                end
                end
                3'd1:
                3'd1:
                begin
                begin
                        if(global_counter_transfer == 4'd2)
                        if(global_counter_transfer > 4'd0 &&  global_counter_transfer < 4'd12)
                                fct_flag <= fct_flag + 3'd1;
                                fct_flag <= fct_flag + 3'd1;
                        else
                        else
                                fct_flag <= fct_flag;
                                fct_flag <= fct_flag;
                end
                end
                3'd2:
                3'd2:
                begin
                begin
                        fct_flag <= fct_flag;
                        fct_flag <= fct_flag;
                end
                end
                3'd3:
                3'd3:
                begin
                begin
                        if(global_counter_transfer == 4'd2)
                        if(global_counter_transfer > 4'd0 &&  global_counter_transfer < 4'd12)
                                fct_flag <= fct_flag - 3'd1;
                                fct_flag <= fct_flag - 3'd1;
                        else
                        else
                                fct_flag <= fct_flag;
                                fct_flag <= fct_flag;
                end
                end
                3'd4:
                3'd4:
Line 601... Line 604...
                else
                else
                        next_state_fct_receive = 3'd0;
                        next_state_fct_receive = 3'd0;
        end
        end
        3'd1:
        3'd1:
        begin
        begin
                if(global_counter_transfer == 4'd2)
                if(global_counter_transfer > 4'd0 &&  global_counter_transfer < 4'd12)
                begin
                begin
                        next_state_fct_receive = 3'd2;
                        next_state_fct_receive = 3'd2;
                end
                end
                else
                else
                begin
                begin
Line 623... Line 626...
                        next_state_fct_receive = 3'd0;
                        next_state_fct_receive = 3'd0;
                end
                end
        end
        end
        3'd3:
        3'd3:
        begin
        begin
                if(global_counter_transfer == 4'd2)
                if(global_counter_transfer > 4'd0 &&  global_counter_transfer < 4'd12)
                begin
                begin
                        next_state_fct_receive = 3'd4;
                        next_state_fct_receive = 3'd4;
                end
                end
                else
                else
                begin
                begin
Line 670... Line 673...
                begin
                begin
                        fct_counter_receive <= fct_counter_receive;
                        fct_counter_receive <= fct_counter_receive;
                end
                end
                3'd1:
                3'd1:
                begin
                begin
                        if(global_counter_transfer == 4'd2)
                        if(global_counter_transfer > 4'd0 &&  global_counter_transfer < 4'd12)
                        begin
                        begin
                                if(fct_counter_receive < 6'd48)
                                if(fct_counter_receive < 6'd48)
                                begin
                                begin
                                        fct_counter_receive <= fct_counter_receive + 6'd8;
                                        fct_counter_receive <= fct_counter_receive + 6'd8;
                                end
                                end
Line 690... Line 693...
                begin
                begin
                        fct_counter_receive <= fct_counter_receive;
                        fct_counter_receive <= fct_counter_receive;
                end
                end
                3'd3:
                3'd3:
                begin
                begin
                        if(global_counter_transfer == 4'd2)
                        if(global_counter_transfer > 4'd0 &&  global_counter_transfer < 4'd12)
 
                        begin
 
                                if(fct_counter_receive == 6'd0)
 
                                        fct_counter_receive <= fct_counter_receive;
 
                                else
                                fct_counter_receive <= fct_counter_receive - 6'd1;
                                fct_counter_receive <= fct_counter_receive - 6'd1;
 
                        end
                        else
                        else
                                fct_counter_receive <= fct_counter_receive;
                                fct_counter_receive <= fct_counter_receive;
                end
                end
                3'd4:
                3'd4:
                begin
                begin
Line 707... Line 715...
                end
                end
                endcase
                endcase
        end
        end
end
end
 
 
 
 
 
always@(*)
 
begin
 
        next_state_data_fifo = state_data_fifo;
 
 
 
        case(state_data_fifo)
 
        3'd0:
 
        begin
 
                if(!ready_tx_data && txwrite_tx)
 
                begin
 
                        next_state_data_fifo = 3'd1;
 
                end
 
                else
 
                        next_state_data_fifo = 3'd0;
 
        end
 
        3'd1:
 
        begin
 
                next_state_data_fifo = 3'd2;
 
        end
 
        3'd2:
 
        begin
 
 
 
                if(state_tx == tx_spw_null_c && global_counter_transfer > 4'd1 && global_counter_transfer < 4'd7)
 
                        next_state_data_fifo = 3'd3;
 
                else if(state_tx == tx_spw_data_c && global_counter_transfer > 4'd1 && global_counter_transfer < 4'd9)
 
                        next_state_data_fifo = 3'd3;
 
                else
 
                        next_state_data_fifo = 3'd2;
 
        end
 
        3'd3:
 
        begin
 
                if(!ready_tx_data && txwrite_tx)
 
                begin
 
                        next_state_data_fifo = 3'd3;
 
                end
 
                else
 
                begin
 
                        next_state_data_fifo = 3'd0;
 
                end
 
        end
 
        default:
 
        begin
 
                next_state_data_fifo = 3'd0;
 
        end
 
        endcase
 
end
 
 
 
always@(posedge pclk_tx or negedge enable_tx)
 
begin
 
        if(!enable_tx)
 
        begin
 
                data_ready_took <= 1'b0;
 
                state_data_fifo <= 3'd0;
 
                tx_data_took <= 9'd0;
 
        end
 
        else
 
        begin
 
 
 
                state_data_fifo <= next_state_data_fifo;
 
 
 
                case(state_data_fifo)
 
                3'd0:
 
                begin
 
                        //tx_data_took <= tx_data_took;
 
                end
 
                3'd1:
 
                begin
 
                        tx_data_took <= data_tx_i;
 
                end
 
                3'd2:
 
                begin
 
                        tx_data_took <= data_tx_i;
 
 
 
                        if(state_tx == tx_spw_null_c && global_counter_transfer > 4'd0 && global_counter_transfer < 4'd7)
 
                                data_ready_took <= 1'b1;
 
                        else if(state_tx == tx_spw_data_c && global_counter_transfer > 4'd0 && global_counter_transfer < 4'd9)
 
                                data_ready_took <= 1'b1;
 
                        else
 
                                data_ready_took <= 1'b0;
 
                end
 
                3'd3:
 
                begin
 
                        if(!ready_tx_data && txwrite_tx)
 
                        begin
 
                                data_ready_took <= 1'b1;
 
                        end
 
                        else
 
                        begin
 
                                data_ready_took <= 1'b0;
 
                        end
 
                end
 
                default:
 
                begin
 
                end
 
                endcase
 
        end
 
end
 
 
always@(*)
always@(*)
begin
begin
        next_state_tx = state_tx;
        next_state_tx = state_tx;
 
 
        case(state_tx)
        case(state_tx)
Line 729... Line 835...
        begin
        begin
                if(send_null_tx && send_fct_tx && enable_tx)
                if(send_null_tx && send_fct_tx && enable_tx)
                begin
                begin
                        if(global_counter_transfer == 4'd7)
                        if(global_counter_transfer == 4'd7)
                                next_state_tx = tx_spw_fct;
                                next_state_tx = tx_spw_fct;
 
                        else
 
                                next_state_tx = tx_spw_null;
                end
                end
                else
                else
                        next_state_tx = tx_spw_null;
                        next_state_tx = tx_spw_null;
        end
        end
        tx_spw_fct:
        tx_spw_fct:
        begin
        begin
                if(send_fct_tx && fct_flag > 3'd0)
                if(send_fct_tx && global_counter_transfer == 4'd3)
                begin
 
                        next_state_tx = tx_spw_fct;
 
                end
 
                else
 
                begin
 
                        if(send_fct_tx && fct_counter_receive > 6'd0)
 
                        begin
 
                                if(global_counter_transfer == 4'd7 || global_counter_transfer == 4'd3)
 
                                begin
                                begin
                                        if(tickin_tx && !ready_tx_timecode && tcode_rdy_trnsp)
                                        if(tickin_tx && !ready_tx_timecode && tcode_rdy_trnsp)
                                        begin
                                        begin
                                                next_state_tx = tx_spw_time_code_c;
                                                next_state_tx = tx_spw_time_code_c;
                                        end
                                        end
                                        else if(fct_flag > 3'd0 && !send_fct_now)
                                        else if(fct_flag > 3'd0 && !send_fct_now)
                                        begin
                                        begin
                                                next_state_tx = tx_spw_fct_c;
                                next_state_tx = tx_spw_fct;
                                        end
 
                                        else if(txwrite_tx && !gotfct_tx && !gotfct_tx && !ready_tx_data && data_rdy_trnsp && fct_counter_receive > 6'd0)
 
                                        begin
 
                                                next_state_tx = tx_spw_data_c;
 
                                        end
                                        end
                                        else
                                        else
                                        begin
                                        begin
                                                next_state_tx = tx_spw_null_c;
                                                next_state_tx = tx_spw_null_c;
                                        end
                                        end
                                end
                                end
                        end
                else
                end
                        next_state_tx = tx_spw_fct;
        end
        end
        tx_spw_null_c:
        tx_spw_null_c:
        begin
        begin
                if(global_counter_transfer == 4'd7)
                if(global_counter_transfer == 4'd7)
                begin
                begin
Line 777... Line 873...
                        end
                        end
                        else if(fct_flag > 3'd0 && !send_fct_now)
                        else if(fct_flag > 3'd0 && !send_fct_now)
                        begin
                        begin
                                next_state_tx = tx_spw_fct_c;
                                next_state_tx = tx_spw_fct_c;
                        end
                        end
                        else if(txwrite_tx && !gotfct_tx && !ready_tx_data && data_rdy_trnsp && fct_counter_receive > 6'd0)
                        else if(data_ready_took && !gotfct_tx && fct_counter_receive > 6'd0)
                        begin
                        begin
                                next_state_tx = tx_spw_data_c;
                                next_state_tx = tx_spw_data_c;
                        end
                        end
                        else
                        else
                        begin
                        begin
Line 824... Line 920...
                                end
                                end
                                else if(fct_flag > 3'd0 && !send_fct_now)
                                else if(fct_flag > 3'd0 && !send_fct_now)
                                begin
                                begin
                                        next_state_tx = tx_spw_fct_c;
                                        next_state_tx = tx_spw_fct_c;
                                end
                                end
 
                                else if(data_ready_took && !gotfct_tx && fct_counter_receive > 6'd0)
 
                                begin
 
                                        next_state_tx = tx_spw_data_c;
 
                                end
                                else
                                else
                                begin
                                begin
                                        next_state_tx = tx_spw_null_c;
                                        next_state_tx = tx_spw_null_c;
                                end
                                end
                        end
                        end
Line 863... Line 963...
                begin
                begin
                        if(fct_flag > 3'd0 && !send_fct_now)
                        if(fct_flag > 3'd0 && !send_fct_now)
                        begin
                        begin
                                next_state_tx = tx_spw_fct_c;
                                next_state_tx = tx_spw_fct_c;
                        end
                        end
                        else if(txwrite_tx && !gotfct_tx && !ready_tx_data && data_rdy_trnsp && fct_counter_receive > 6'd0 )
                        else if(data_ready_took && !gotfct_tx && fct_counter_receive > 6'd0 )
                        begin
                        begin
                                next_state_tx = tx_spw_data_c;
                                next_state_tx = tx_spw_data_c;
                        end
                        end
                        else
                        else
                        begin
                        begin
Line 913... Line 1013...
                state_tx <= tx_spw_start;
                state_tx <= tx_spw_start;
 
 
                tx_dout_e <= 1'b0;
                tx_dout_e <= 1'b0;
                tx_sout_e <= 1'b0;
                tx_sout_e <= 1'b0;
 
 
                data_rdy_trnsp <= 1'b0;
 
 
 
                tx_tcode_in     <= 8'd0;
                tx_tcode_in     <= 8'd0;
                tcode_rdy_trnsp <= 1'b0;
                tcode_rdy_trnsp <= 1'b0;
 
 
        end
        end
        else
        else
Line 926... Line 1024...
                state_tx <= next_state_tx;
                state_tx <= next_state_tx;
 
 
                case(state_tx)
                case(state_tx)
                tx_spw_start:
                tx_spw_start:
                begin
                begin
 
                        global_counter_transfer <= 4'd0;
                end
                end
                tx_spw_null:
                tx_spw_null:
                begin
                begin
 
 
                        last_tx_dout <= tx_dout;
                        last_tx_dout <= tx_dout;
Line 937... Line 1036...
 
 
                        tx_dout_e <= last_tx_dout;
                        tx_dout_e <= last_tx_dout;
                        tx_sout_e <= last_tx_sout;
                        tx_sout_e <= last_tx_sout;
 
 
 
 
                        if(txwrite_tx && global_counter_transfer == 4'd5)
 
                        begin
 
                                tx_data_in <= data_tx_i;
 
                                data_rdy_trnsp <= 1'b1;
 
                        end
 
                        else
 
                                tx_data_in <= tx_data_in;
 
 
 
                        if(tickin_tx && global_counter_transfer == 4'd5)
                        if(tickin_tx && global_counter_transfer == 4'd5)
                        begin
                        begin
                                tx_tcode_in <= timecode_tx_i;
                                tx_tcode_in <= timecode_tx_i;
                                tcode_rdy_trnsp <= 1'b1;
                                tcode_rdy_trnsp <= 1'b1;
                        end
                        end
                        else
                        else
                                tx_tcode_in <= tx_tcode_in;
                                tx_tcode_in <= tx_tcode_in;
 
 
                        if(global_counter_transfer == 4'd3)
 
                        begin
 
                                ready_tx_timecode <= 1'b0;
 
                                ready_tx_data <= 1'b0;
 
                        end
 
                        else
 
                        begin
 
                                ready_tx_timecode <= ready_tx_timecode;
 
                                ready_tx_data <= ready_tx_data;
 
                        end
 
 
 
                        if(global_counter_transfer == 4'd7)
                        if(global_counter_transfer == 4'd7)
                        begin
                        begin
                                last_type  <= NULL;
                                last_type  <= NULL;
                                global_counter_transfer <= 4'd0;
                                global_counter_transfer <= 4'd0;
Line 984... Line 1065...
                        last_tx_sout <= tx_sout;
                        last_tx_sout <= tx_sout;
 
 
                        tx_dout_e <= last_tx_dout;
                        tx_dout_e <= last_tx_dout;
                        tx_sout_e <= last_tx_sout;
                        tx_sout_e <= last_tx_sout;
 
 
                        ready_tx_data <= ready_tx_data;
 
 
 
                        if(global_counter_transfer == 4'd3)
                        if(global_counter_transfer == 4'd3)
                        begin
                        begin
                                last_type  <=FCT;
                                last_type  <=FCT;
                                global_counter_transfer <= 4'd0;
                                global_counter_transfer <= 4'd0;
                                fct_sent <= 1'b0;
                                fct_sent <= 1'b0;
Line 998... Line 1077...
                        begin
                        begin
                                if(fct_flag > 3'd0)
                                if(fct_flag > 3'd0)
                                        fct_sent <=  1'b1;
                                        fct_sent <=  1'b1;
                                else
                                else
                                        fct_sent <= fct_sent;
                                        fct_sent <= fct_sent;
 
 
                                global_counter_transfer <= global_counter_transfer + 4'd1;
                                global_counter_transfer <= global_counter_transfer + 4'd1;
                        end
                        end
                end
                end
                tx_spw_null_c:
                tx_spw_null_c:
                begin
                begin
Line 1010... Line 1090...
                        last_tx_sout <= tx_sout;
                        last_tx_sout <= tx_sout;
 
 
                        tx_dout_e <= last_tx_dout;
                        tx_dout_e <= last_tx_dout;
                        tx_sout_e <= last_tx_sout;
                        tx_sout_e <= last_tx_sout;
 
 
 
                        if(global_counter_transfer == 4'd7)
                        if(txwrite_tx && global_counter_transfer == 4'd5)
 
                        begin
                        begin
                                tx_data_in <= data_tx_i;
                                last_type  <= NULL;
                                data_rdy_trnsp <= 1'b1;
                                global_counter_transfer <= 4'd0;
                        end
 
 
                                if(data_ready_took)
 
                                        tx_data_in <= tx_data_took;
                        else
                        else
                                tx_data_in <= tx_data_in;
                                tx_data_in <= tx_data_in;
 
 
                        if(tickin_tx && global_counter_transfer == 4'd5)
 
                        begin
 
                                tx_tcode_in <= timecode_tx_i;
 
                                tcode_rdy_trnsp <= 1'b1;
 
                        end
                        end
                        else
                        else
                                tx_tcode_in <= tx_tcode_in;
 
 
 
 
 
                        if(global_counter_transfer == 4'd3)
 
                        begin
                        begin
                                char_sent <= 1'b0;
                                char_sent <= 1'b0;
                                fct_sent <=  1'b0;
                                fct_sent <=  1'b0;
                                ready_tx_timecode <= 1'b0;
                                ready_tx_timecode <= 1'b0;
                                ready_tx_data <= 1'b0;
 
                        end
 
                        else
 
                        begin
 
                                ready_tx_timecode <= ready_tx_timecode;
 
                                ready_tx_data <= ready_tx_data;
 
                        end
 
 
 
                        if(global_counter_transfer == 4'd7)
 
                        begin
 
                                last_type  <= NULL;
 
                                global_counter_transfer <= 4'd0;
 
                        end
 
                        else
 
                        begin
 
                                last_type  <= last_type;
                                last_type  <= last_type;
                                global_counter_transfer <= global_counter_transfer + 4'd1;
                                global_counter_transfer <= global_counter_transfer + 4'd1;
                        end
                        end
                end
                end
                tx_spw_fct_c:
                tx_spw_fct_c:
Line 1061... Line 1118...
                        last_tx_sout <= tx_sout;
                        last_tx_sout <= tx_sout;
 
 
                        tx_dout_e <= last_tx_dout;
                        tx_dout_e <= last_tx_dout;
                        tx_sout_e <= last_tx_sout;
                        tx_sout_e <= last_tx_sout;
 
 
                        ready_tx_data <= ready_tx_data;
 
 
 
                        if(global_counter_transfer == 4'd3)
                        if(global_counter_transfer == 4'd3)
                        begin
                        begin
                                char_sent <= 1'b0;
                                char_sent <= 1'b0;
                                last_type  <=FCT;
                                last_type  <=FCT;
                                fct_sent <=  1'b0;
                                fct_sent <=  1'b0;
Line 1097... Line 1152...
                        begin
                        begin
 
 
                                if(global_counter_transfer == 4'd9)
                                if(global_counter_transfer == 4'd9)
                                begin
                                begin
                                        char_sent <= 1'b1;
                                        char_sent <= 1'b1;
 
 
                                        last_type  <= DATA;
                                        last_type  <= DATA;
                                        ready_tx_data <= 1'b1;
 
                                        data_rdy_trnsp <= 1'b0;
 
                                        global_counter_transfer <= 4'd0;
                                        global_counter_transfer <= 4'd0;
 
 
 
                                        if(data_ready_took)
 
                                                tx_data_in <= tx_data_took;
 
                                        else
 
                                                tx_data_in <= tx_data_in;
                                end
                                end
                                else
                                else
                                begin
                                begin
 
 
 
                                        if(global_counter_transfer == 4'd1)
 
                                        begin
 
                                                txdata_flagctrl_tx_last <= tx_data_in;
 
                                        end
 
                                        else
 
                                                txdata_flagctrl_tx_last <= txdata_flagctrl_tx_last;
 
 
 
 
 
                                        if(global_counter_transfer >= 4'd2 && global_counter_transfer < 4'd5)
 
                                        begin
 
                                                ready_tx_data <= 1'b1;
 
                                        end
 
                                        else
                                        ready_tx_data <= 1'b0;
                                        ready_tx_data <= 1'b0;
 
 
 
                                        char_sent <= 1'b0;
                                        ready_tx_timecode <= 1'b0;
                                        ready_tx_timecode <= 1'b0;
                                        global_counter_transfer <= global_counter_transfer + 4'd1;
                                        global_counter_transfer <= global_counter_transfer + 4'd1;
                                end
 
 
 
                                if(global_counter_transfer == 4'd4)
 
                                        txdata_flagctrl_tx_last <= tx_data_in;
 
 
 
 
                                 end
 
 
                        end
                        end
                        else if(tx_data_in[8])
                        else if(tx_data_in[8])
                        begin
                        begin
 
 
Line 1131... Line 1201...
                                        else if(tx_data_in[1:0] == 2'b01)
                                        else if(tx_data_in[1:0] == 2'b01)
                                        begin
                                        begin
                                                last_type  <=EEP;
                                                last_type  <=EEP;
                                        end
                                        end
 
 
 
                                        ready_tx_data <= 1'b0;
                                        global_counter_transfer <= 4'd0;
                                        global_counter_transfer <= 4'd0;
                                        data_rdy_trnsp <= 1'b0;
 
                                        ready_tx_data <= 1'b1;
 
                                end
                                end
                                else
                                else
                                begin
                                begin
                                        txdata_flagctrl_tx_last <= txdata_flagctrl_tx_last;
                                        txdata_flagctrl_tx_last <= txdata_flagctrl_tx_last;
 
                                        ready_tx_data <= 1'b1;
                                        ready_tx_data <= 1'b0;
 
                                        ready_tx_timecode <= 1'b0;
                                        ready_tx_timecode <= 1'b0;
                                        global_counter_transfer <= global_counter_transfer + 4'd1;
                                        global_counter_transfer <= global_counter_transfer + 4'd1;
                                end
                                end
 
 
 
 
                        end
                        end
 
 
                end
                end
                tx_spw_time_code_c:
                tx_spw_time_code_c:
                begin
                begin
 
 
                        if(txwrite_tx && global_counter_transfer == 4'd6)
 
                        begin
 
                                data_rdy_trnsp <= 1'b1;
 
                                tx_data_in <= data_tx_i;
 
                        end
 
                        else
 
                                tx_data_in <= tx_data_in;
 
 
 
 
 
                        fct_sent <=  1'b0;
                        fct_sent <=  1'b0;
 
 
                        last_tx_dout <= tx_dout;
                        last_tx_dout <= tx_dout;
                        last_tx_sout <= tx_sout;
                        last_tx_sout <= tx_sout;
 
 
Line 1187... Line 1244...
 
 
                                timecode_s <= {timecode_ss[13:10],2'd2,tx_tcode_in[7:0]};
                                timecode_s <= {timecode_ss[13:10],2'd2,tx_tcode_in[7:0]};
                        end
                        end
                        else
                        else
                        begin
                        begin
                                ready_tx_data <= 1'b0;
 
                                last_timein_control_flag_tx <= tx_tcode_in;
                                last_timein_control_flag_tx <= tx_tcode_in;
                                last_type  <= TIMEC;
                                last_type  <= TIMEC;
                        end
                        end
 
 
                end
                end

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.