Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions regression/verilog/bit-extract/bit-extract4.desc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
CORE
bit-extract4.sv
--bound 0
^EXIT=0$
^SIGNAL=0$
--
^warning: ignoring
7 changes: 7 additions & 0 deletions regression/verilog/bit-extract/bit-extract4.sv
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module main;

wire integer x = 'hff;

p0: assert property (x[7] == 1);

endmodule
4 changes: 2 additions & 2 deletions src/verilog/parser.y
Original file line number Diff line number Diff line change
Expand Up @@ -1323,7 +1323,7 @@ integer_atom_type:
| TOK_SHORTINT { init($$, ID_verilog_shortint); }
| TOK_INT { init($$, ID_verilog_int); }
| TOK_LONGINT { init($$, ID_verilog_longint); }
| TOK_INTEGER { init($$, ID_integer); }
| TOK_INTEGER { init($$, ID_verilog_integer); }
| TOK_TIME { init($$, ID_verilog_time); }
;

Expand Down Expand Up @@ -1804,7 +1804,7 @@ range_or_type_opt:
range_or_type:
packed_dimension
| TOK_INTEGER
{ init($$, ID_integer); }
{ init($$, ID_verilog_integer); }
| TOK_REAL
{ init($$, ID_verilog_real); }
| TOK_REALTIME
Expand Down
4 changes: 0 additions & 4 deletions src/verilog/verilog_typecheck_type.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,6 @@ typet verilog_typecheck_exprt::convert_type(const typet &src)
// it's just a bit
return bool_typet().with_source_location(source_location);
}
else if(src.id() == ID_integer)
{
return integer_typet().with_source_location(source_location);
}
else if(src.id() == ID_verilog_byte)
{
return signedbv_typet{8}.with_source_location(source_location);
Expand Down