Ignore:
Timestamp:
Jan 6, 2014, 3:16:44 PM (10 years ago)
Author:
rolagamo
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • PROJECT_CORE_MPI/CORE_MPI/BRANCHES/v1.00/load_instr.vhd

    r70 r72  
    193193                                                                end if;
    194194                                                                next_loadinst<=init;
    195                                         Ram_address_i<=(others=>'-');
     195                                        Ram_address_i<=(others=>'0');
    196196                                        count_i<=0;
    197197         when getbus =>
     
    205205                                       
    206206                                end if;
    207                                 Ram_address_i<=(others=>'-');
     207                                Ram_address_i<=(others=>'0');
    208208                                count_i<=0;
    209209         When readptr =>
     
    223223                                        elsif count=3 then
    224224                                                ptr(Word-1 downto 0):=Ram_data;
    225                                                 Ram_address_i<=incr_vec(ram_address_i,'1');
     225                                                Ram_address_i<=std_logic_vector(to_unsigned(BASE_AD+3,16));
    226226                                                count_i <=count+1;
    227227                                        elsif count=4 then
    228                                                
    229228                                                count_i <=count+1;
    230229                                        elsif count=5 then
     230                                                count_i <=count+1;
     231                                        elsif count=6 then
    231232                                                ptr(15 downto 8):=Ram_data;
    232233                                                count_i<=0;
     
    239240                                else
    240241                                  timeout:=timeout+1;
     242                                  count_i<=0;
    241243                                end if;
    242244                        when readmem =>
     
    274276                                else
    275277                                  timeout:=timeout+1;
     278                                  fifo_wr_i<='0';
     279                                  Count_i<=0; --recommencer les cycles d'attente de la donnée
    276280                                        if timeout=50 then
    277281                                                next_loadinst<=st_timeout;
    278282                                        end if;
    279                                         Ram_address_i<=(others=>'-'); -- le bus n'est pas libre
     283                                        -- le bus n'est pas libre
    280284                                       
    281285                                end if;
     
    284288                                fifo_wr_i<='0';
    285289                                count_i<=0;
    286                                  Ram_address_i<=(others=>'-');
     290                                 Ram_address_i<=(others=>'0');
    287291            if instruction_en='0' then
    288292                                        next_loadinst <= init;
     
    290294                        when st_timeout =>
    291295                                fifo_wr_i<='0';
    292                          Ram_address_i<=(others=>'-');
     296                         Ram_address_i<=(others=>'0');
    293297                                next_loadinst<=init;
    294298                                count_i<=0;
Note: See TracChangeset for help on using the changeset viewer.