mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-12 20:18:20 +00:00
Allow $size and $bits in verilog mode, actually check test case
This commit is contained in:
parent
637a02eb5c
commit
dbfd8460a9
|
@ -1870,7 +1870,7 @@ skip_dynamic_range_lvalue_expansion:;
|
||||||
goto apply_newNode;
|
goto apply_newNode;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (VERILOG_FRONTEND::sv_mode && (str == "\\$size" || str == "\\$bits"))
|
if (str == "\\$size" || str == "\\$bits")
|
||||||
{
|
{
|
||||||
if (str == "\\$bits" && children.size() != 1)
|
if (str == "\\$bits" && children.size() != 1)
|
||||||
log_error("System function %s got %d arguments, expected 1 at %s:%d.\n",
|
log_error("System function %s got %d arguments, expected 1 at %s:%d.\n",
|
||||||
|
|
2
tests/sat/sizebits.ys
Normal file
2
tests/sat/sizebits.ys
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
read_verilog -sv sizebits.sv
|
||||||
|
prep; sat -verify -prove-asserts
|
Loading…
Reference in a new issue