mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-04 05:19:11 +00:00 
			
		
		
		
	Little steps in realmath test bench
This commit is contained in:
		
							parent
							
								
									6c17d4f242
								
							
						
					
					
						commit
						88470283c9
					
				
					 2 changed files with 3 additions and 0 deletions
				
			
		
							
								
								
									
										1
									
								
								tests/realmath/.gitignore
									
										
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								tests/realmath/.gitignore
									
										
									
									
										vendored
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1 @@
 | 
			
		|||
temp
 | 
			
		||||
| 
						 | 
				
			
			@ -44,8 +44,10 @@ for idx in range(100):
 | 
			
		|||
        print('module uut_%05d(output [63:0] %s);\n' % (idx, ', '.join(['y%02d' % i for i in range(100)])))
 | 
			
		||||
        for i in range(30):
 | 
			
		||||
            print('localparam p%02d = %s;' % (i, random_expression()))
 | 
			
		||||
            # print('localparam%s p%02d = %s;' % (random.choice(['', ' real', ' integer']), i, random_expression()))
 | 
			
		||||
        for i in range(30, 60):
 | 
			
		||||
            print('localparam p%02d = %s;' % (i, random_expression(maxparam = 30)))
 | 
			
		||||
            # print('localparam%s p%02d = %s;' % (random.choice(['', ' real', ' integer']), i, random_expression(maxparam = 30)))
 | 
			
		||||
        for i in range(100):
 | 
			
		||||
            print('assign y%02d = 65536 * (%s);' % (i, random_expression(maxparam = 60)))
 | 
			
		||||
        print('endmodule')
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue