mirror of
				https://github.com/openhwgroup/cvw
				synced 2025-02-11 06:05:49 +00:00 
			
		
		
		
	fix regression
This commit is contained in:
		
							parent
							
								
									f94a13e242
								
							
						
					
					
						commit
						b1be8f4858
					
				@ -31,7 +31,7 @@ configs = [
 | 
				
			|||||||
    TestCase(
 | 
					    TestCase(
 | 
				
			||||||
        name="buildroot",
 | 
					        name="buildroot",
 | 
				
			||||||
        cmd="vsim -do wally-buildroot-batch.do -c > {}",
 | 
					        cmd="vsim -do wally-buildroot-batch.do -c > {}",
 | 
				
			||||||
        grepstr="loaded 6000 instructions"
 | 
					        grepstr="8900000 instructions"
 | 
				
			||||||
    ),
 | 
					    ),
 | 
				
			||||||
    TestCase(
 | 
					    TestCase(
 | 
				
			||||||
        name="arch64",
 | 
					        name="arch64",
 | 
				
			||||||
@ -81,7 +81,7 @@ def main():
 | 
				
			|||||||
    """Run the tests and count the failures"""
 | 
					    """Run the tests and count the failures"""
 | 
				
			||||||
    # Scale the number of concurrent processes to the number of test cases, but
 | 
					    # Scale the number of concurrent processes to the number of test cases, but
 | 
				
			||||||
    # max out at 12 concurrent processes to not overwhelm the system
 | 
					    # max out at 12 concurrent processes to not overwhelm the system
 | 
				
			||||||
    TIMEOUT_DUR = 600 # seconds
 | 
					    TIMEOUT_DUR = 1800 # seconds
 | 
				
			||||||
    try:
 | 
					    try:
 | 
				
			||||||
        os.mkdir("regression_logs")
 | 
					        os.mkdir("regression_logs")
 | 
				
			||||||
    except:
 | 
					    except:
 | 
				
			||||||
 | 
				
			|||||||
@ -363,6 +363,8 @@ module testbench();
 | 
				
			|||||||
      InstrCountW += 1;
 | 
					      InstrCountW += 1;
 | 
				
			||||||
      // turn on waves at certain point
 | 
					      // turn on waves at certain point
 | 
				
			||||||
      if (InstrCountW == waveOnICount) $stop;
 | 
					      if (InstrCountW == waveOnICount) $stop;
 | 
				
			||||||
 | 
					      // print progress message
 | 
				
			||||||
 | 
					      if (InstrCountW % 'd100000 == 0) $display("Reached %d instructions", InstrCountW);
 | 
				
			||||||
      // check PCW
 | 
					      // check PCW
 | 
				
			||||||
      fault = 0;
 | 
					      fault = 0;
 | 
				
			||||||
      if(PCW != ExpectedPCW) begin
 | 
					      if(PCW != ExpectedPCW) begin
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user