Ignore:
Timestamp:
Apr 22, 2013, 11:35:33 AM (11 years ago)
Author:
rolagamo
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • PROJECT_CORE_MPI/SWITCH_GEN/BRANCHES/v0.03/Proto_receiv.vhd

    r22 r65  
    8181                                                                dlen:=to_integer(unsigned(fifo_out));
    8282                                                                mem(1)<=fifo_out; -- la longueur
    83                                                                 etrec<=r_data;
    8483                                                               
     84                                                                if dlen>2 then
     85                                                                        etrec<=r_data;
     86                                                                else
     87                                                                        etrec<=r_end;
     88                                                                end if;
    8589                                                                i:=1;
    8690                                                               
    8791                                                when r_data  =>
    8892                                                                if fifo_empty='0' then
    89                                                                         if i<dlen-3 then
     93                                                                        if i<dlen-2 then
    9094                                                                                i:=i+1;
    9195                                                                                mem(i)<=fifo_out;
Note: See TracChangeset for help on using the changeset viewer.