Changeset 72 for PROJECT_CORE_MPI/CORE_MPI/BRANCHES/v1.00/load_instr.vhd
- Timestamp:
- Jan 6, 2014, 3:16:44 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
PROJECT_CORE_MPI/CORE_MPI/BRANCHES/v1.00/load_instr.vhd
r70 r72 193 193 end if; 194 194 next_loadinst<=init; 195 Ram_address_i<=(others=>' -');195 Ram_address_i<=(others=>'0'); 196 196 count_i<=0; 197 197 when getbus => … … 205 205 206 206 end if; 207 Ram_address_i<=(others=>' -');207 Ram_address_i<=(others=>'0'); 208 208 count_i<=0; 209 209 When readptr => … … 223 223 elsif count=3 then 224 224 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)); 226 226 count_i <=count+1; 227 227 elsif count=4 then 228 229 228 count_i <=count+1; 230 229 elsif count=5 then 230 count_i <=count+1; 231 elsif count=6 then 231 232 ptr(15 downto 8):=Ram_data; 232 233 count_i<=0; … … 239 240 else 240 241 timeout:=timeout+1; 242 count_i<=0; 241 243 end if; 242 244 when readmem => … … 274 276 else 275 277 timeout:=timeout+1; 278 fifo_wr_i<='0'; 279 Count_i<=0; --recommencer les cycles d'attente de la donnée 276 280 if timeout=50 then 277 281 next_loadinst<=st_timeout; 278 282 end if; 279 Ram_address_i<=(others=>'-');-- le bus n'est pas libre283 -- le bus n'est pas libre 280 284 281 285 end if; … … 284 288 fifo_wr_i<='0'; 285 289 count_i<=0; 286 Ram_address_i<=(others=>' -');290 Ram_address_i<=(others=>'0'); 287 291 if instruction_en='0' then 288 292 next_loadinst <= init; … … 290 294 when st_timeout => 291 295 fifo_wr_i<='0'; 292 Ram_address_i<=(others=>' -');296 Ram_address_i<=(others=>'0'); 293 297 next_loadinst<=init; 294 298 count_i<=0;
Note: See TracChangeset
for help on using the changeset viewer.