Debug: Fix off-by-1 for detecting nonexistent harts.
This commit is contained in:
		
				
					committed by
					
						
						Andrew Waterman
					
				
			
			
				
	
			
			
			
						parent
						
							01372e1686
						
					
				
				
					commit
					051acee76c
				
			@@ -524,7 +524,7 @@ class TLDebugModuleInner(device: Device, getNComponents: () => Int)(implicit p:
 | 
			
		||||
    val unavailVec = Wire(init = Vec.fill(nComponents){false.B})
 | 
			
		||||
    unavailVec := io.debugUnavail
 | 
			
		||||
 | 
			
		||||
    when (selectedHartReg > nComponents.U) {
 | 
			
		||||
    when (selectedHartReg >= nComponents.U) {
 | 
			
		||||
      DMSTATUSRdData.allnonexistent := true.B
 | 
			
		||||
      DMSTATUSRdData.anynonexistent := true.B
 | 
			
		||||
    }.elsewhen (unavailVec(selectedHartReg)) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user