mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-30 19:22:31 +00:00 
			
		
		
		
	sf2: add a test for $alu gate
This commit is contained in:
		
							parent
							
								
									c25f3ff3df
								
							
						
					
					
						commit
						0f6cf8b8e4
					
				
					 1 changed files with 22 additions and 0 deletions
				
			
		
							
								
								
									
										22
									
								
								techlibs/sf2/tests/test_arith.ys
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								techlibs/sf2/tests/test_arith.ys
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,22 @@ | ||||||
|  | # Our implementation | ||||||
|  | read_verilog ../arith_map.v | ||||||
|  | read_verilog ../cells_sim.v | ||||||
|  | read_verilog -DSIMLIB_NOCHECKS ../../common/simlib.v | ||||||
|  | rename \$__SF2_ALU gate | ||||||
|  | hierarchy -top gate -chparam A_WIDTH 4 -chparam B_WIDTH 5 -chparam Y_WIDTH 5 | ||||||
|  | flatten | ||||||
|  | opt | ||||||
|  | write_verilog gate.v | ||||||
|  | 
 | ||||||
|  | # The reference | ||||||
|  | read_verilog -DSIMLIB_NOCHECKS ../../common/simlib.v | ||||||
|  | rename \$alu gold | ||||||
|  | hierarchy -top gold -chparam A_WIDTH 4 -chparam B_WIDTH 5 -chparam Y_WIDTH 5 | ||||||
|  | flatten | ||||||
|  | proc | ||||||
|  | clean | ||||||
|  | write_verilog gold.v | ||||||
|  | 
 | ||||||
|  | read_verilog gate.v | ||||||
|  | miter -equiv -flatten -make_outputs gold gate miter | ||||||
|  | sat -verify -prove trigger 0 -show-ports miter | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue