mirror of
				https://github.com/openhwgroup/cvw
				synced 2025-02-11 06:05:49 +00:00 
			
		
		
		
	Added comments about why it is not possible to use FlushWay and VictimWay directly.
This commit is contained in:
		
							parent
							
								
									f09b9e1572
								
							
						
					
					
						commit
						d3b2e331c2
					
				
							
								
								
									
										5
									
								
								pipelined/src/cache/cacheway.sv
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										5
									
								
								pipelined/src/cache/cacheway.sv
									
									
									
									
										vendored
									
									
								
							@ -82,11 +82,12 @@ module cacheway #(parameter NUMLINES=512, parameter LINELEN = 256, TAGLEN = 26,
 | 
			
		||||
  logic                              FlushWayEn, VictimWayEn;
 | 
			
		||||
  
 | 
			
		||||
 | 
			
		||||
  // FlushWay and VictimWay are part of a one hot way selection.  Must clear them if FlushWay not selected
 | 
			
		||||
  // or VictimWay not selected.
 | 
			
		||||
  assign FlushWayEn = FlushWay & SelFlush;
 | 
			
		||||
  assign VictimWayEn = VictimWay & SelEvict;
 | 
			
		||||
  
 | 
			
		||||
  assign SelWriteback = SelFlush | SetValid | SelEvict;
 | 
			
		||||
  //assign SelWriteback = FlushWay | SetValid | SelEvict;
 | 
			
		||||
  assign SelWriteback = FlushWayEn | SetValid | SelEvict;
 | 
			
		||||
  
 | 
			
		||||
  mux2 #(1) seltagmux(VictimWay, FlushWay, SelFlush, SelTag);
 | 
			
		||||
  //assign SelTag = VictimWay | FlushWay;
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user