mirror of
				https://github.com/openhwgroup/cvw
				synced 2025-02-11 06:05:49 +00:00 
			
		
		
		
	Added comments about planned changes.
This commit is contained in:
		
							parent
							
								
									7b76fbaa9a
								
							
						
					
					
						commit
						e7de0e033e
					
				@ -61,6 +61,7 @@ module hazard(
 | 
			
		||||
 | 
			
		||||
  // *** can stalls be pushed into earlier stages (e.g. no stall after Decode?)
 | 
			
		||||
 | 
			
		||||
  // *** consider replacing CSRWriteFencePendingDEM with a flush rather than a stall.  
 | 
			
		||||
  assign StallFCause = CSRWriteFencePendingDEM & ~(TrapM | RetM | BPPredWrongE);
 | 
			
		||||
  // stall in decode if instruction is a load/mul/csr dependent on previous
 | 
			
		||||
  assign StallDCause = (LoadStallD | StoreStallD | MDUStallD | CSRRdStallD | FPUStallD | FStallD) & ~(TrapM | RetM | BPPredWrongE);    
 | 
			
		||||
 | 
			
		||||
@ -184,6 +184,15 @@ module lsu (
 | 
			
		||||
      .PMPCFG_ARRAY_REGW, .PMPADDR_ARRAY_REGW);
 | 
			
		||||
 | 
			
		||||
  end else begin
 | 
			
		||||
    // Determine which region of physical memory (if any) is being accessed
 | 
			
		||||
    adrdecs adrdecs(.PhysicalAddress(LSUPAdrM), AccessRW, AccessRX, AccessRWX, Size, .SelRegions(LSUHSel));
 | 
			
		||||
 | 
			
		||||
    // conditionally move adredecs to here and ifu.
 | 
			
		||||
    // the lsu will output LSUHSel to EBU (need the same for ifu).
 | 
			
		||||
    // The ebu will have a mux to select between LSUHSel, IFUHSel
 | 
			
		||||
    // mux for HWSTRB
 | 
			
		||||
    // adrdecs out of uncore.
 | 
			
		||||
    
 | 
			
		||||
    assign {DTLBMissM, LoadAccessFaultM, StoreAmoAccessFaultM, LoadMisalignedFaultM, StoreAmoMisalignedFaultM} = '0;
 | 
			
		||||
    assign {LoadPageFaultM, StoreAmoPageFaultM} = '0;
 | 
			
		||||
    assign LSUPAdrM = PreLSUPAdrM;
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user