mirror of
				https://github.com/YosysHQ/sby.git
				synced 2025-11-04 06:39:11 +00:00 
			
		
		
		
	Add support for "abc pdr -d" engine
Signed-off-by: Claire Xenia Wolf <claire@clairexen.net>
This commit is contained in:
		
							parent
							
								
									8b3ba68845
								
							
						
					
					
						commit
						f692eff845
					
				
					 1 changed files with 4 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -42,7 +42,7 @@ def run(mode, task, engine_idx, engine):
 | 
			
		|||
    elif abc_command[0] == "pdr":
 | 
			
		||||
        if mode != "prove":
 | 
			
		||||
            task.error("ABC command 'pdr' is only valid in prove mode.")
 | 
			
		||||
        abc_command[0] += f" -v"
 | 
			
		||||
        abc_command[0] += f" -v -I engine_{engine_idx}/invariants.pla"
 | 
			
		||||
 | 
			
		||||
    else:
 | 
			
		||||
        task.error(f"Invalid ABC command {abc_command[0]}.")
 | 
			
		||||
| 
						 | 
				
			
			@ -66,7 +66,9 @@ def run(mode, task, engine_idx, engine):
 | 
			
		|||
        task,
 | 
			
		||||
        f"engine_{engine_idx}",
 | 
			
		||||
        task.model("aig"),
 | 
			
		||||
        f"""cd {task.workdir}; {task.exe_paths["abc"]} -c 'read_aiger model/design_aiger.aig; fold{" -s" if task.opt_aigfolds else ""}; strash; {" ".join(abc_command)}; write_cex -a engine_{engine_idx}/trace.aiw'""",
 | 
			
		||||
        f"""cd {task.workdir}; {task.exe_paths["abc"]} -c 'read_aiger model/design_aiger.aig; fold{
 | 
			
		||||
                " -s" if task.opt_aigfolds or (abc_command[0].startswith("pdr ") and "-d" in abc_command[1:]) else ""
 | 
			
		||||
                }; strash; {" ".join(abc_command)}; write_cex -a engine_{engine_idx}/trace.aiw'""",
 | 
			
		||||
        logfile=open(f"{task.workdir}/engine_{engine_idx}/logfile.txt", "w")
 | 
			
		||||
    )
 | 
			
		||||
    proc.checkretcode = True
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue