mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-04 05:19:11 +00:00 
			
		
		
		
	Test *.aag too, by using *.aig as reference
This commit is contained in:
		
							parent
							
								
									a04521c6b7
								
							
						
					
					
						commit
						65924fd12f
					
				
					 1 changed files with 19 additions and 0 deletions
				
			
		| 
						 | 
					@ -1,6 +1,25 @@
 | 
				
			||||||
#!/bin/bash
 | 
					#!/bin/bash
 | 
				
			||||||
 | 
					
 | 
				
			||||||
set -e
 | 
					set -e
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					for aag in *.aag; do
 | 
				
			||||||
 | 
					    # Since ABC cannot read *.aag, read the *.aig instead
 | 
				
			||||||
 | 
					    # (which would have been created by the reference aig2aig utility)
 | 
				
			||||||
 | 
					    ../../yosys-abc -c "read -c ${aag%.*}.aig; write ${aag%.*}_ref.v"
 | 
				
			||||||
 | 
					    ../../yosys -p "
 | 
				
			||||||
 | 
					read_verilog ${aag%.*}_ref.v
 | 
				
			||||||
 | 
					prep
 | 
				
			||||||
 | 
					design -stash gold
 | 
				
			||||||
 | 
					read_aiger -clk_name clock $aag
 | 
				
			||||||
 | 
					prep
 | 
				
			||||||
 | 
					design -stash gate
 | 
				
			||||||
 | 
					design -import gold -as gold
 | 
				
			||||||
 | 
					design -import gate -as gate
 | 
				
			||||||
 | 
					miter -equiv -flatten -make_assert -make_outputs gold gate miter
 | 
				
			||||||
 | 
					sat -verify -prove-asserts -show-ports -seq 16 miter
 | 
				
			||||||
 | 
					"
 | 
				
			||||||
 | 
					done
 | 
				
			||||||
 | 
					
 | 
				
			||||||
for aig in *.aig; do
 | 
					for aig in *.aig; do
 | 
				
			||||||
    ../../yosys-abc -c "read -c $aig; write ${aig%.*}_ref.v"
 | 
					    ../../yosys-abc -c "read -c $aig; write ${aig%.*}_ref.v"
 | 
				
			||||||
    ../../yosys -p "
 | 
					    ../../yosys -p "
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue