mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-30 19:22:31 +00:00 
			
		
		
		
	Do not warn on empty selection with prefixed arg_memb.
				
					
				
			Co-Authored-By: N. Engelhardt <nak@symbioticeda.com>
This commit is contained in:
		
							parent
							
								
									ca4e5dd56e
								
							
						
					
					
						commit
						0da65d498b
					
				
					 2 changed files with 7 additions and 1 deletions
				
			
		|  | @ -775,7 +775,8 @@ static void select_stmt(RTLIL::Design *design, std::string arg, bool disable_emp | ||||||
| 			arg_mod = arg.substr(0, pos); | 			arg_mod = arg.substr(0, pos); | ||||||
| 			if (!prefixed) arg_mod_found[arg_mod] = false; | 			if (!prefixed) arg_mod_found[arg_mod] = false; | ||||||
| 			arg_memb = arg.substr(pos+1); | 			arg_memb = arg.substr(pos+1); | ||||||
| 			if (!prefixed) arg_memb_found[arg_memb] = false; | 			bool arg_memb_prefixed = GetSize(arg_memb) >= 2 && isalpha(arg_memb[0]) && arg_memb[1] == ':'; | ||||||
|  | 			if (!arg_memb_prefixed) arg_memb_found[arg_memb] = false; | ||||||
| 		} | 		} | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
							
								
								
									
										5
									
								
								tests/select/no_warn_prefixed_arg_memb.ys
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								tests/select/no_warn_prefixed_arg_memb.ys
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,5 @@ | ||||||
|  | logger -expect-no-warnings | ||||||
|  | read_verilog ../../examples/igloo2/example.v | ||||||
|  | hierarchy | ||||||
|  | proc | ||||||
|  | select example/t:$add | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue