Changeset 87 for trunk


Ignore:
Timestamp:
Dec 21, 2009, 11:56:31 PM (15 years ago)
Author:
demin
Message:

fix writing of the last EPT sample to SRAM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MultiChannelUSB/control.v

    r84 r87  
    377377                        18:
    378378                        begin
    379 //                              int_ram_data[8:1] <= ram_counter[7:0];
    380379                                int_ram_data[8:1] <= int_ept_data[7:0];
    381380                                int_ram_data[17:10] <= int_ept_data[15:8];
     
    385384                        19:
    386385                        begin
    387 //                              int_ram_data[8:1] <= ram_counter[7:0];
    388386                                int_ram_data[8:1] <= int_ept_data[23:16];
    389387                                int_ram_data[17:10] <= int_ept_data[31:24];
     
    394392                        20:
    395393                        begin
    396 //                              int_ram_data[8:1] <= ram_counter[7:0];
    397394                                int_ram_data[8:1] <= int_ept_data[39:32];
    398395                                int_ram_data[17:10] <= int_ept_data[47:40];
     
    400397                                begin
    401398                                        int_ram_we <= 1'b0;
    402                                         int_ram_data <= 18'd0;
    403399                                        ram_counter <= 19'd0;
    404400                                        state <= 5'd21;
     
    409405                                end
    410406                        end
    411 /*
    412                         21:
    413                         begin
    414                                 int_wrreq <= 1'b0;
    415                                 state <= 5'd22;
    416                         end
    417 
    418                         22:
    419                         begin
    420                                 state <= 5'd23;
    421                         end
    422 
    423                         23:
    424                         begin
    425                                 if (~tx_full)
    426                                 begin
    427                                         int_data <= int_ram_q[8:1];
    428                                         int_wrreq <= 1'b1;
    429                                         if (&ram_counter)
    430                                         begin
    431                                                 state <= 5'd0;
    432                                         end
    433                                         else
    434                                         begin
    435                                                 state <= 5'd21;
    436                                                 ram_counter <= ram_counter + 20'd1;
    437                                         end
    438                                 end
    439                         end
    440 */
     407
    441408                        21:
    442409                        begin
Note: See TracChangeset for help on using the changeset viewer.