mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-31 03:32:29 +00:00 
			
		
		
		
	Improvements and bugfixes for generate blocks with local signals
This commit is contained in:
		
							parent
							
								
									6a382f2aba
								
							
						
					
					
						commit
						7a99349de4
					
				
					 2 changed files with 2 additions and 4 deletions
				
			
		|  | @ -896,10 +896,8 @@ void AstNode::expand_genblock(std::string index_var, std::string prefix, std::ma | ||||||
| 		return; | 		return; | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
| 	if ((type == AST_IDENTIFIER || type == AST_FCALL || type == AST_TCALL) && name_map.count(str) > 0) { | 	if ((type == AST_IDENTIFIER || type == AST_FCALL || type == AST_TCALL) && name_map.count(str) > 0) | ||||||
| 		str = name_map[str]; | 		str = name_map[str]; | ||||||
| 		return; |  | ||||||
| 	} |  | ||||||
| 
 | 
 | ||||||
| 	std::map<std::string, std::string> backup_name_map; | 	std::map<std::string, std::string> backup_name_map; | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -184,7 +184,7 @@ supply1 { return TOK_SUPPLY1; } | ||||||
| "$signed"   { return TOK_TO_SIGNED; } | "$signed"   { return TOK_TO_SIGNED; } | ||||||
| "$unsigned" { return TOK_TO_UNSIGNED; } | "$unsigned" { return TOK_TO_UNSIGNED; } | ||||||
| 
 | 
 | ||||||
| [a-zA-Z_$][a-zA-Z0-9_$]* { | [a-zA-Z_$][a-zA-Z0-9_\.$]* { | ||||||
| 	frontend_verilog_yylval.string = new std::string(std::string("\\") + yytext); | 	frontend_verilog_yylval.string = new std::string(std::string("\\") + yytext); | ||||||
| 	return TOK_ID; | 	return TOK_ID; | ||||||
| } | } | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue