mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-30 11:12:29 +00:00 
			
		
		
		
	Added test cases from 2012 paper on comparison of foss verilog synthesis tools
This commit is contained in:
		
							parent
							
								
									04843bdcbe
								
							
						
					
					
						commit
						5640b7d607
					
				
					 6 changed files with 111 additions and 0 deletions
				
			
		
							
								
								
									
										20
									
								
								tests/simple/forgen01.v
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								tests/simple/forgen01.v
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,20 @@ | |||
| module uut_forgen01(a, y); | ||||
| 
 | ||||
| input [4:0] a; | ||||
| output y; | ||||
| 
 | ||||
| integer i, j; | ||||
| reg [31:0] lut; | ||||
| 
 | ||||
| initial begin | ||||
| 	for (i = 0; i < 32; i = i+1) begin | ||||
| 		lut[i] = i > 1; | ||||
| 		for (j = 2; j*j <= i; j = j+1) | ||||
| 			if (i % j == 0) | ||||
| 				lut[i] = 0; | ||||
| 	end | ||||
| end | ||||
| 
 | ||||
| assign y = lut[a]; | ||||
| 
 | ||||
| endmodule | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue