sv: fix two struct access bugs
authorZachary Snow <zach@zachjs.com>
Tue, 22 Jun 2021 14:39:57 +0000 (10:39 -0400)
committerZachary Snow <zachary.j.snow@gmail.com>
Thu, 15 Jul 2021 15:57:20 +0000 (11:57 -0400)
commita9c8ca21d583c58a38931389f90bbaae0caec0d6
treeeab021de70957cf08a44d296fbf63b29e3a3e9e7
parent1aab608cffa19332dc5cf722def7413b16f5ee54
sv: fix two struct access bugs

- preserve signedness of struct members
- fix initial width detection of struct members (e.g., in case expressions)
frontends/ast/ast.h
frontends/ast/genrtlil.cc
frontends/ast/simplify.cc
tests/verilog/struct_access.sv [new file with mode: 0644]
tests/verilog/struct_access.ys [new file with mode: 0644]