mirror of
				https://github.com/openhwgroup/cvw
				synced 2025-02-11 06:05:49 +00:00 
			
		
		
		
	Named change for ahb tests to be less annoying.
This commit is contained in:
		
							parent
							
								
									3571fb18c2
								
							
						
					
					
						commit
						83306ec238
					
				@ -103,7 +103,7 @@ for test in tests32e:
 | 
				
			|||||||
ahbTests = [("0", "0"), ("0", "1"), ("1", "0"), ("1", "1"), ("2", "0"), ("2", "1")] 
 | 
					ahbTests = [("0", "0"), ("0", "1"), ("1", "0"), ("1", "1"), ("2", "0"), ("2", "1")] 
 | 
				
			||||||
for test in ahbTests:
 | 
					for test in ahbTests:
 | 
				
			||||||
  tc = TestCase(
 | 
					  tc = TestCase(
 | 
				
			||||||
        name="RAM_LATENCH_" + test[0] + "_BURST_EN_" + test[1],
 | 
					        name="ram_latency_" + test[0] + "_burst_en_" + test[1],
 | 
				
			||||||
        variant="ahb",
 | 
					        variant="ahb",
 | 
				
			||||||
        cmd="vsim > {} -c <<!\ndo wally-pipelined-batch.do rv64gc ahb "+test[0]+" "+test[1]+"\n!",
 | 
					        cmd="vsim > {} -c <<!\ndo wally-pipelined-batch.do rv64gc ahb "+test[0]+" "+test[1]+"\n!",
 | 
				
			||||||
        grepstr="All tests ran without failures")
 | 
					        grepstr="All tests ran without failures")
 | 
				
			||||||
 | 
				
			|||||||
@ -20,11 +20,17 @@
 | 
				
			|||||||
onbreak {resume}
 | 
					onbreak {resume}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# create library
 | 
					# create library
 | 
				
			||||||
if [file exists wkdir/work_${1}_${2}] {
 | 
					if {$2 eq "ahb"} {
 | 
				
			||||||
    vdel -lib wkdir/work_${1}_${2} -all
 | 
					    if [file exists wkdir/work_${1}_${2}_${3}_${4}] {
 | 
				
			||||||
 | 
					        vdel -lib wkdir/work_${1}_${2}_${3}_${4} -all
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					    vlib wkdir/work_${1}_${2}_${3}_${4}
 | 
				
			||||||
 | 
					} else {
 | 
				
			||||||
 | 
					    if [file exists wkdir/work_${1}_${2}] {
 | 
				
			||||||
 | 
					        vdel -lib wkdir/work_${1}_${2} -all
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					    vlib wkdir/work_${1}_${2}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
vlib wkdir/work_${1}_${2}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
# compile source files
 | 
					# compile source files
 | 
				
			||||||
# suppress spurious warnngs about 
 | 
					# suppress spurious warnngs about 
 | 
				
			||||||
# "Extra checking for conflicts with always_comb done at vopt time"
 | 
					# "Extra checking for conflicts with always_comb done at vopt time"
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user