diff options
author | Zachary Snow <zach@zachjs.com> | 2021-02-11 10:26:06 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-11 10:26:06 -0500 |
commit | c383d156e9015cde4718f3a6bc3371dc87c3e4fe (patch) | |
tree | 56859d2a50896707bd20c11619e19de8736b32d4 /tests | |
parent | eff18a2b1519428b11400979f116342086c13e13 (diff) | |
parent | 75335344295a51c11bb72e0add10e365a34ccc1d (diff) | |
download | yosys-c383d156e9015cde4718f3a6bc3371dc87c3e4fe.tar.gz yosys-c383d156e9015cde4718f3a6bc3371dc87c3e4fe.tar.bz2 yosys-c383d156e9015cde4718f3a6bc3371dc87c3e4fe.zip |
Merge pull request #2584 from antmicro/atom_type_signedness
verilog_parser: fix missing is_signed attribute in type_atom
Diffstat (limited to 'tests')
-rw-r--r-- | tests/verilog/atom_type_signedness.ys | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/verilog/atom_type_signedness.ys b/tests/verilog/atom_type_signedness.ys new file mode 100644 index 000000000..22bbe6efc --- /dev/null +++ b/tests/verilog/atom_type_signedness.ys @@ -0,0 +1,19 @@ +read_verilog -dump_ast1 -dump_ast2 -sv <<EOT +module dut(); + +enum integer { uInteger = -10 } a; +enum int { uInt = -11 } b; +enum shortint { uShortInt = -12 } c; +enum byte { uByte = -13 } d; + +always_comb begin + assert(-10 == uInteger); + assert(-11 == uInt); + assert(-12 == uShortInt); + assert(-13 == uByte); +end +endmodule +EOT +hierarchy; proc; opt +select -module dut +sat -verify -seq 1 -tempinduct -prove-asserts -show-all |