forked from Github_Repos/cvw
		
	Fixed a bug where the instruction fetch got out of sync with the icache.
This commit is contained in:
		
							parent
							
								
									d909e8f371
								
							
						
					
					
						commit
						e0c310fea7
					
				
							
								
								
									
										3
									
								
								wally-pipelined/src/cache/icachefsm.sv
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										3
									
								
								wally-pipelined/src/cache/icachefsm.sv
									
									
									
									
										vendored
									
									
								
							@ -128,6 +128,9 @@ module icachefsm
 | 
			
		||||
      STATE_READY: begin
 | 
			
		||||
        SelAdr = 2'b00;
 | 
			
		||||
        ICacheReadEn = 1'b1;
 | 
			
		||||
		if(IgnoreRequest) begin
 | 
			
		||||
		  NextState = STATE_READY;
 | 
			
		||||
		end else 
 | 
			
		||||
		if(ITLBMissF) begin
 | 
			
		||||
		  NextState = STATE_READY;
 | 
			
		||||
		  SelAdr = 2'b01;
 | 
			
		||||
 | 
			
		||||
@ -244,7 +244,8 @@ module ifu (
 | 
			
		||||
 | 
			
		||||
  assign IfuStallF = ICacheStallF | BusStall;
 | 
			
		||||
 | 
			
		||||
  assign IgnoreRequest = ITLBMissF | ExceptionM | PendingInterruptM;
 | 
			
		||||
  //assign IgnoreRequest = ITLBMissF | ExceptionM | PendingInterruptM;
 | 
			
		||||
  assign IgnoreRequest = ITLBMissF;
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user