diff options
author | Zachary Snow <zach@zachjs.com> | 2021-02-21 14:45:21 -0500 |
---|---|---|
committer | Zachary Snow <zach@zachjs.com> | 2021-02-21 15:44:43 -0500 |
commit | b6af90fe20bc92631061c48c328f3c6e4760e4df (patch) | |
tree | 9c8fb14f37ae5c4339fd550b7c8322e70c4cf940 /tests/various/const_func.ys | |
parent | 127484e675538fbaeca1f6e53ba264a1f02e9cf6 (diff) | |
download | yosys-b6af90fe20bc92631061c48c328f3c6e4760e4df.tar.gz yosys-b6af90fe20bc92631061c48c328f3c6e4760e4df.tar.bz2 yosys-b6af90fe20bc92631061c48c328f3c6e4760e4df.zip |
verilog: fix sizing of constant args for tasks/functions
- Simplify synthetic localparams for normal calls to update their width
- This step was inadvertently removed alongside `added_mod_children`
- Support redeclaration of constant function arguments
- `eval_const_function` never correctly handled this, but the issue
was not exposed in the existing tests until the recent change to
always attempt constant function evaluation when all-const args
are used
- Check asserts in const_arg_loop and const_func tests
- Add coverage for width mismatch error cases
Diffstat (limited to 'tests/various/const_func.ys')
-rw-r--r-- | tests/various/const_func.ys | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/various/const_func.ys b/tests/various/const_func.ys index 5e3c04105..2f60acfe6 100644 --- a/tests/various/const_func.ys +++ b/tests/various/const_func.ys @@ -1 +1,7 @@ -read_verilog const_func.v +read_verilog -sv const_func.sv +hierarchy +proc +flatten +opt -full +select -module top +sat -verify -seq 1 -tempinduct -prove-asserts -show-all |