aboutsummaryrefslogtreecommitdiffstats
path: root/frontends/ast/genrtlil.cc
diff options
context:
space:
mode:
authorEddie Hung <eddie@fpgeh.com>2019-08-11 21:13:40 -0700
committerEddie Hung <eddie@fpgeh.com>2019-08-11 21:13:40 -0700
commit88d5185596a0cc8319658463a31b20644d90dd6b (patch)
tree106f178d42a54403218f93cae2807d6e67981599 /frontends/ast/genrtlil.cc
parent282cc77604a9a855c303869321d4179790b0b64b (diff)
parentc851dc13108021834533094a8a3236da6d9e0161 (diff)
downloadyosys-88d5185596a0cc8319658463a31b20644d90dd6b.tar.gz
yosys-88d5185596a0cc8319658463a31b20644d90dd6b.tar.bz2
yosys-88d5185596a0cc8319658463a31b20644d90dd6b.zip
Merge remote-tracking branch 'origin/master' into eddie/fix_1262
Diffstat (limited to 'frontends/ast/genrtlil.cc')
-rw-r--r--frontends/ast/genrtlil.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/frontends/ast/genrtlil.cc b/frontends/ast/genrtlil.cc
index 571ddd988..407a34472 100644
--- a/frontends/ast/genrtlil.cc
+++ b/frontends/ast/genrtlil.cc
@@ -1516,7 +1516,7 @@ RTLIL::SigSpec AstNode::genRTLIL(int width_hint, bool sign_hint)
AstNode *child = *it;
if (child->type == AST_CELLTYPE) {
cell->type = child->str;
- if (flag_icells && cell->type.substr(0, 2) == "\\$")
+ if (flag_icells && cell->type.begins_with("\\$"))
cell->type = cell->type.substr(1);
continue;
}