mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-04 05:19:11 +00:00 
			
		
		
		
	autoname: add testcase with $-prefix-ed port
This commit is contained in:
		
							parent
							
								
									ca2f3db53f
								
							
						
					
					
						commit
						00964e999d
					
				
					 1 changed files with 19 additions and 0 deletions
				
			
		
							
								
								
									
										19
									
								
								tests/various/autoname.ys
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								tests/various/autoname.ys
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,19 @@
 | 
				
			||||||
 | 
					read_ilang <<EOT
 | 
				
			||||||
 | 
					autoidx 2
 | 
				
			||||||
 | 
					module \top
 | 
				
			||||||
 | 
					  wire output 3 $y
 | 
				
			||||||
 | 
					  wire input 1 \a
 | 
				
			||||||
 | 
					  wire input 2 \b
 | 
				
			||||||
 | 
					  cell $and \b_$and_B
 | 
				
			||||||
 | 
					    parameter \A_SIGNED 0
 | 
				
			||||||
 | 
					    parameter \A_WIDTH 1
 | 
				
			||||||
 | 
					    parameter \B_SIGNED 0
 | 
				
			||||||
 | 
					    parameter \B_WIDTH 1
 | 
				
			||||||
 | 
					    parameter \Y_WIDTH 1
 | 
				
			||||||
 | 
					    connect \A \a
 | 
				
			||||||
 | 
					    connect \B \b
 | 
				
			||||||
 | 
					    connect \Y $y
 | 
				
			||||||
 | 
					  end
 | 
				
			||||||
 | 
					end
 | 
				
			||||||
 | 
					EOT
 | 
				
			||||||
 | 
					autoname
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue