mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-23 00:55:32 +00:00
Add missing is_signed to type_atom
Signed-off-by: Kamil Rakoczy <krakoczy@antmicro.com>
This commit is contained in:
parent
eff18a2b15
commit
7533534429
2 changed files with 23 additions and 4 deletions
19
tests/verilog/atom_type_signedness.ys
Normal file
19
tests/verilog/atom_type_signedness.ys
Normal file
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue