diff options
author | Zachary Snow <zach@zachjs.com> | 2021-12-15 18:15:09 -0700 |
---|---|---|
committer | Zachary Snow <zachary.j.snow@gmail.com> | 2021-12-17 21:22:08 -0700 |
commit | 7608985d2c6237b869a4774c6b1659282e7473ad (patch) | |
tree | 129bc1352eca95a6f789ef601a7f7d15ef373566 /tests/simple/case_expr_extend.sv | |
parent | 60c3ea367c942459a95e610ed98f277ce46c0142 (diff) | |
download | yosys-7608985d2c6237b869a4774c6b1659282e7473ad.tar.gz yosys-7608985d2c6237b869a4774c6b1659282e7473ad.tar.bz2 yosys-7608985d2c6237b869a4774c6b1659282e7473ad.zip |
fix width detection of array querying function in case and case item expressions
I also removed the unnecessary shadowing of `width_hint` and `sign_hint`
in the corresponding case in `simplify()`.
Diffstat (limited to 'tests/simple/case_expr_extend.sv')
-rw-r--r-- | tests/simple/case_expr_extend.sv | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/simple/case_expr_extend.sv b/tests/simple/case_expr_extend.sv new file mode 100644 index 000000000..61bd14df1 --- /dev/null +++ b/tests/simple/case_expr_extend.sv @@ -0,0 +1,11 @@ +module top( + output logic [5:0] out +); +always_comb begin + out = '0; + case (1'b1 << 1) + 2'b10: out = '1; + default: out = '0; + endcase +end +endmodule |