From: Clifford Wolf Date: Tue, 26 Mar 2013 10:13:58 +0000 (+0100) Subject: Improvements and bugfixes for generate blocks with local signals X-Git-Tag: yosys-0.2.0~680 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7a99349de4d9375845c05e3ac17d1eed366aab2e;p=yosys.git Improvements and bugfixes for generate blocks with local signals --- diff --git a/frontends/ast/simplify.cc b/frontends/ast/simplify.cc index 981897db5..a03cd0bed 100644 --- a/frontends/ast/simplify.cc +++ b/frontends/ast/simplify.cc @@ -896,10 +896,8 @@ void AstNode::expand_genblock(std::string index_var, std::string prefix, std::ma 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]; - return; - } std::map backup_name_map; diff --git a/frontends/verilog/lexer.l b/frontends/verilog/lexer.l index a269c072a..2a6c44171 100644 --- a/frontends/verilog/lexer.l +++ b/frontends/verilog/lexer.l @@ -184,7 +184,7 @@ supply1 { return TOK_SUPPLY1; } "$signed" { return TOK_TO_SIGNED; } "$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); return TOK_ID; }