Changeset 79


Ignore:
Timestamp:
Nov 30, 2009, 12:36:14 AM (15 years ago)
Author:
demin
Message:

switch from 8 to 4 byte command

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MultiChannelUSB/control.v

    r72 r79  
    5454        wire                    crc_error = 1'b0;
    5555        reg                             crc_reset;
    56         reg             [2:0]   byte_counter;
     56        reg             [1:0]   byte_counter;
    5757        reg             [4:0]   idle_counter;
    5858
     
    6161        wire    [15:0]  src, dst;
    6262
    63         reg             [7:0]   buffer [7:0];
     63        reg             [7:0]   buffer [3:0];
    6464
    6565        assign  src = (buffer[0][7]) ? cfg_src_data : {buffer[2], buffer[3]};
     
    118118                                ram_counter <= 19'd0;
    119119                                idle_counter <= 5'd0;
    120                                 byte_counter <= 3'd0;
     120                                byte_counter <= 2'd0;
    121121                                int_cfg_reset <= 1'b0;
    122122                                state <= 5'd1;
     
    129129                                begin
    130130                                        idle_counter <= 5'd0;
    131                                         byte_counter <= byte_counter + 3'd1;
     131                                        byte_counter <= byte_counter + 2'd1;
    132132                                        buffer[byte_counter] <= rx_data;
    133133                                        if (&byte_counter)
Note: See TracChangeset for help on using the changeset viewer.