diff options
author | Kamil Rakoczy <krakoczy@antmicro.com> | 2021-02-11 12:53:07 +0100 |
---|---|---|
committer | Kamil Rakoczy <krakoczy@antmicro.com> | 2021-02-11 15:05:38 +0100 |
commit | 75335344295a51c11bb72e0add10e365a34ccc1d (patch) | |
tree | 56859d2a50896707bd20c11619e19de8736b32d4 /tests/verilog | |
parent | eff18a2b1519428b11400979f116342086c13e13 (diff) | |
download | yosys-75335344295a51c11bb72e0add10e365a34ccc1d.tar.gz yosys-75335344295a51c11bb72e0add10e365a34ccc1d.tar.bz2 yosys-75335344295a51c11bb72e0add10e365a34ccc1d.zip |
Add missing is_signed to type_atom
Signed-off-by: Kamil Rakoczy <krakoczy@antmicro.com>
Diffstat (limited to 'tests/verilog')
-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 |