diff options
author | Clifford Wolf <clifford@clifford.at> | 2017-09-29 11:56:43 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2017-09-29 11:56:43 +0200 |
commit | dbfd8460a9f1d24d1c8893dfae7dd272d17a7b6f (patch) | |
tree | 7afbacc238f153323f425f39987e0520e0b844ee /frontends/ast/simplify.cc | |
parent | 637a02eb5cf8ef09a7fb02af31d6149a31460d0f (diff) | |
download | yosys-dbfd8460a9f1d24d1c8893dfae7dd272d17a7b6f.tar.gz yosys-dbfd8460a9f1d24d1c8893dfae7dd272d17a7b6f.tar.bz2 yosys-dbfd8460a9f1d24d1c8893dfae7dd272d17a7b6f.zip |
Allow $size and $bits in verilog mode, actually check test case
Diffstat (limited to 'frontends/ast/simplify.cc')
-rw-r--r-- | frontends/ast/simplify.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/frontends/ast/simplify.cc b/frontends/ast/simplify.cc index 678951850..cd2120b8c 100644 --- a/frontends/ast/simplify.cc +++ b/frontends/ast/simplify.cc @@ -1870,7 +1870,7 @@ skip_dynamic_range_lvalue_expansion:; goto apply_newNode; } - if (VERILOG_FRONTEND::sv_mode && (str == "\\$size" || str == "\\$bits")) + if (str == "\\$size" || str == "\\$bits") { if (str == "\\$bits" && children.size() != 1) log_error("System function %s got %d arguments, expected 1 at %s:%d.\n", |