mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-04 05:19:11 +00:00 
			
		
		
		
	smt2: Treat bweqx as xnor
Without x-bits they are equivalent
This commit is contained in:
		
							parent
							
								
									62afe61779
								
							
						
					
					
						commit
						673ad561b8
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -640,6 +640,7 @@ struct Smt2Worker
 | 
			
		|||
			if (cell->type == ID($xor)) return export_bvop(cell, "(bvxor A B)");
 | 
			
		||||
			if (cell->type == ID($xnor)) return export_bvop(cell, "(bvxnor A B)");
 | 
			
		||||
 | 
			
		||||
			if (cell->type == ID($bweqx)) return export_bvop(cell, "(bvxnor A B)", 'U');
 | 
			
		||||
			if (cell->type == ID($bwmux)) return export_bvop(cell, "(bvor (bvand A (bvnot S)) (bvand B S))", 'U');
 | 
			
		||||
 | 
			
		||||
			if (cell->type == ID($shl)) return export_bvop(cell, "(bvshl A B)", 's');
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue