mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-03 21:09:12 +00:00 
			
		
		
		
	printattrs: Add test.
This commit is contained in:
		
							parent
							
								
									e50e4ee285
								
							
						
					
					
						commit
						6228b10c9f
					
				
					 1 changed files with 14 additions and 0 deletions
				
			
		
							
								
								
									
										14
									
								
								tests/various/printattr.ys
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								tests/various/printattr.ys
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,14 @@
 | 
			
		|||
logger -expect log ".*cells_not_processed=[01]* .*" 1
 | 
			
		||||
logger -expect log ".*src=.<<EOT:1\.1-9\.10. .*" 1
 | 
			
		||||
read_verilog <<EOT
 | 
			
		||||
module mux2(a, b, s, y);
 | 
			
		||||
	input a, b, s;
 | 
			
		||||
	output y;
 | 
			
		||||
 | 
			
		||||
	wire s_n = ~s;
 | 
			
		||||
	wire t0 = s & a;
 | 
			
		||||
	wire t1 = s_n & b;
 | 
			
		||||
	assign y = t0 | t1;
 | 
			
		||||
endmodule
 | 
			
		||||
EOT
 | 
			
		||||
printattrs
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue