Skip to content

Commit

Permalink
Merge pull request #509 from diffblue/synth-part-select
Browse files Browse the repository at this point in the history
Verilog: move translation of part select expressions into synthesis phase
  • Loading branch information
tautschnig authored May 19, 2024
2 parents 1976274 + 491a289 commit 66a241c
Show file tree
Hide file tree
Showing 5 changed files with 321 additions and 128 deletions.
7 changes: 7 additions & 0 deletions regression/verilog/synthesis/part_select1.desc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
CORE
part_select1.sv

^EXIT=0$
^SIGNAL=0$
--
^warning: ignoring
15 changes: 15 additions & 0 deletions regression/verilog/synthesis/part_select1.sv
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
module main;

reg [31:0] t;

always @(*) begin
t = 0;

// out of bounds accesses are ignored
t[0:-1] = 'b10;

// should pass
assert(t == 1);
end

endmodule
Loading

0 comments on commit 66a241c

Please sign in to comment.